vuchat 1.0.1 → 1.0.2

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 (108) hide show
  1. package/dist/index.js +398 -0
  2. package/package.json +9 -8
  3. package/rollup.config.ts +17 -10
  4. package/dist/cjs/index.js +0 -399
  5. package/dist/cjs/index.js.map +0 -1
  6. package/dist/cjs/types/components/Buttons/VuButton.d.ts +0 -6
  7. package/dist/cjs/types/components/Buttons/VuIconButton.d.ts +0 -12
  8. package/dist/cjs/types/components/Buttons/index.d.ts +0 -2
  9. package/dist/cjs/types/components/Buttons/styled.d.ts +0 -5
  10. package/dist/cjs/types/components/Buttons/types.d.ts +0 -13
  11. package/dist/cjs/types/components/ErrorComponent/index.d.ts +0 -7
  12. package/dist/cjs/types/components/ErrorComponent/styled.d.ts +0 -5
  13. package/dist/cjs/types/components/Header/index.d.ts +0 -6
  14. package/dist/cjs/types/components/Header/styled.d.ts +0 -3
  15. package/dist/cjs/types/components/Icons/VuIcon.d.ts +0 -8
  16. package/dist/cjs/types/components/Icons/index.d.ts +0 -1
  17. package/dist/cjs/types/components/SearchInput/SearchInput.d.ts +0 -5
  18. package/dist/cjs/types/components/SearchInput/index.d.ts +0 -1
  19. package/dist/cjs/types/components/SearchInput/styled.d.ts +0 -7
  20. package/dist/cjs/types/components/TextArea/VuTextArea.d.ts +0 -7
  21. package/dist/cjs/types/components/TextArea/index.d.ts +0 -1
  22. package/dist/cjs/types/components/TextArea/styled.d.ts +0 -8
  23. package/dist/cjs/types/components/api/api.d.ts +0 -9
  24. package/dist/cjs/types/components/api/axiosInstance.d.ts +0 -29
  25. package/dist/cjs/types/components/api/types.d.ts +0 -27
  26. package/dist/cjs/types/components/index.d.ts +0 -5
  27. package/dist/cjs/types/index.d.ts +0 -2
  28. package/dist/cjs/types/pages/VuChat.d.ts +0 -8
  29. package/dist/cjs/types/pages/chatbot/Chatbot.d.ts +0 -6
  30. package/dist/cjs/types/pages/chatbot/components/ChatSection/ChatSection.d.ts +0 -10
  31. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/ActionButtons/ActionButtons.d.ts +0 -6
  32. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/ActionButtons/styled.d.ts +0 -2
  33. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/Charts/Charts.d.ts +0 -9
  34. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/Charts/styled.d.ts +0 -4
  35. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/EmptyState/EmptyState.d.ts +0 -3
  36. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/EmptyState/styled.d.ts +0 -4
  37. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/QuestionCard/QuestionCard.d.ts +0 -6
  38. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/QuestionCard/styled.d.ts +0 -4
  39. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/ResponseCard/ResponseCard.d.ts +0 -11
  40. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/ResponseCard/styled.d.ts +0 -8
  41. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/ResponseLoader/ResponseLoader.d.ts +0 -3
  42. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/ResponseLoader/styled.d.ts +0 -4
  43. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/SuggestedQuestions/SuggestedQuestions.d.ts +0 -3
  44. package/dist/cjs/types/pages/chatbot/components/ChatSection/components/SuggestedQuestions/styled.d.ts +0 -2
  45. package/dist/cjs/types/pages/chatbot/components/ChatSection/styled.d.ts +0 -5
  46. package/dist/cjs/types/pages/chatbot/components/RecentConversations/RecentConversations.d.ts +0 -9
  47. package/dist/cjs/types/pages/chatbot/components/RecentConversations/questions.d.ts +0 -1
  48. package/dist/cjs/types/pages/chatbot/components/RecentConversations/styled.d.ts +0 -11
  49. package/dist/cjs/types/pages/chatbot/index.d.ts +0 -1
  50. package/dist/cjs/types/pages/chatbot/styled.d.ts +0 -14
  51. package/dist/cjs/types/pages/index.d.ts +0 -1
  52. package/dist/cjs/types/pages/styled.d.ts +0 -2
  53. package/dist/cjs/types/utils/icons.d.ts +0 -1
  54. package/dist/cjs/types/utils/iconsList.d.ts +0 -2
  55. package/dist/cjs/types/utils/index.d.ts +0 -2
  56. package/dist/esm/index.js +0 -399
  57. package/dist/esm/index.js.map +0 -1
  58. package/dist/esm/types/components/Buttons/VuButton.d.ts +0 -6
  59. package/dist/esm/types/components/Buttons/VuIconButton.d.ts +0 -12
  60. package/dist/esm/types/components/Buttons/index.d.ts +0 -2
  61. package/dist/esm/types/components/Buttons/styled.d.ts +0 -5
  62. package/dist/esm/types/components/Buttons/types.d.ts +0 -13
  63. package/dist/esm/types/components/ErrorComponent/index.d.ts +0 -7
  64. package/dist/esm/types/components/ErrorComponent/styled.d.ts +0 -5
  65. package/dist/esm/types/components/Header/index.d.ts +0 -6
  66. package/dist/esm/types/components/Header/styled.d.ts +0 -3
  67. package/dist/esm/types/components/Icons/VuIcon.d.ts +0 -8
  68. package/dist/esm/types/components/Icons/index.d.ts +0 -1
  69. package/dist/esm/types/components/SearchInput/SearchInput.d.ts +0 -5
  70. package/dist/esm/types/components/SearchInput/index.d.ts +0 -1
  71. package/dist/esm/types/components/SearchInput/styled.d.ts +0 -7
  72. package/dist/esm/types/components/TextArea/VuTextArea.d.ts +0 -7
  73. package/dist/esm/types/components/TextArea/index.d.ts +0 -1
  74. package/dist/esm/types/components/TextArea/styled.d.ts +0 -8
  75. package/dist/esm/types/components/api/api.d.ts +0 -9
  76. package/dist/esm/types/components/api/axiosInstance.d.ts +0 -29
  77. package/dist/esm/types/components/api/types.d.ts +0 -27
  78. package/dist/esm/types/components/index.d.ts +0 -5
  79. package/dist/esm/types/index.d.ts +0 -2
  80. package/dist/esm/types/pages/VuChat.d.ts +0 -8
  81. package/dist/esm/types/pages/chatbot/Chatbot.d.ts +0 -6
  82. package/dist/esm/types/pages/chatbot/components/ChatSection/ChatSection.d.ts +0 -10
  83. package/dist/esm/types/pages/chatbot/components/ChatSection/components/ActionButtons/ActionButtons.d.ts +0 -6
  84. package/dist/esm/types/pages/chatbot/components/ChatSection/components/ActionButtons/styled.d.ts +0 -2
  85. package/dist/esm/types/pages/chatbot/components/ChatSection/components/Charts/Charts.d.ts +0 -9
  86. package/dist/esm/types/pages/chatbot/components/ChatSection/components/Charts/styled.d.ts +0 -4
  87. package/dist/esm/types/pages/chatbot/components/ChatSection/components/EmptyState/EmptyState.d.ts +0 -3
  88. package/dist/esm/types/pages/chatbot/components/ChatSection/components/EmptyState/styled.d.ts +0 -4
  89. package/dist/esm/types/pages/chatbot/components/ChatSection/components/QuestionCard/QuestionCard.d.ts +0 -6
  90. package/dist/esm/types/pages/chatbot/components/ChatSection/components/QuestionCard/styled.d.ts +0 -4
  91. package/dist/esm/types/pages/chatbot/components/ChatSection/components/ResponseCard/ResponseCard.d.ts +0 -11
  92. package/dist/esm/types/pages/chatbot/components/ChatSection/components/ResponseCard/styled.d.ts +0 -8
  93. package/dist/esm/types/pages/chatbot/components/ChatSection/components/ResponseLoader/ResponseLoader.d.ts +0 -3
  94. package/dist/esm/types/pages/chatbot/components/ChatSection/components/ResponseLoader/styled.d.ts +0 -4
  95. package/dist/esm/types/pages/chatbot/components/ChatSection/components/SuggestedQuestions/SuggestedQuestions.d.ts +0 -3
  96. package/dist/esm/types/pages/chatbot/components/ChatSection/components/SuggestedQuestions/styled.d.ts +0 -2
  97. package/dist/esm/types/pages/chatbot/components/ChatSection/styled.d.ts +0 -5
  98. package/dist/esm/types/pages/chatbot/components/RecentConversations/RecentConversations.d.ts +0 -9
  99. package/dist/esm/types/pages/chatbot/components/RecentConversations/questions.d.ts +0 -1
  100. package/dist/esm/types/pages/chatbot/components/RecentConversations/styled.d.ts +0 -11
  101. package/dist/esm/types/pages/chatbot/index.d.ts +0 -1
  102. package/dist/esm/types/pages/chatbot/styled.d.ts +0 -14
  103. package/dist/esm/types/pages/index.d.ts +0 -1
  104. package/dist/esm/types/pages/styled.d.ts +0 -2
  105. package/dist/esm/types/utils/icons.d.ts +0 -1
  106. package/dist/esm/types/utils/iconsList.d.ts +0 -2
  107. package/dist/esm/types/utils/index.d.ts +0 -2
  108. package/rollup.config-1696564443080.cjs +0 -67
package/dist/index.js ADDED
@@ -0,0 +1,398 @@
1
+ import*as t from'react';import e,{useRef as n,useState as A,useEffect as r,useReducer as i,useCallback as o,isValidElement as s,cloneElement as a,forwardRef as c,createContext as l,useContext as u,useLayoutEffect as h,useMemo as d,Component as f,Fragment as g}from'react';import p,{createPortal as m}from'react-dom';import{jsx as b}from'react/jsx-runtime';function v(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&'undefined'!=typeof document){var A=document.head||document.getElementsByTagName('head')[0],r=document.createElement('style');r.type='text/css','top'===n&&A.firstChild?A.insertBefore(r,A.firstChild):A.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function w(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,y(t,e)}v('/*\n! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: \'\';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user\'s configured `sans` font-family by default.\n5. Use the user\'s configured `sans` font-feature-settings by default.\n6. Use the user\'s configured `sans` font-variation-settings by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user\'s configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type=\'button\'],\n[type=\'reset\'],\n[type=\'submit\'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type=\'search\'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user\'s configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don\'t get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.static {\n position: static;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.bottom-2 {\n bottom: 0.5rem;\n}\n.right-2 {\n right: 0.5rem;\n}\n.m-0 {\n margin: 0px;\n}\n.my-2 {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.my-5 {\n margin-top: 1.25rem;\n margin-bottom: 1.25rem;\n}\n.mb-10 {\n margin-bottom: 2.5rem;\n}\n.mb-2 {\n margin-bottom: 0.5rem;\n}\n.mr-2 {\n margin-right: 0.5rem;\n}\n.mt-4 {\n margin-top: 1rem;\n}\n.inline-block {\n display: inline-block;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.grid {\n display: grid;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-32 {\n height: 8rem;\n}\n.h-fit {\n height: -moz-fit-content;\n height: fit-content;\n}\n.h-full {\n height: 100%;\n}\n.w-80 {\n width: 20rem;\n}\n.w-full {\n width: 100%;\n}\n.min-w-\\[20rem\\] {\n min-width: 20rem;\n}\n.grow {\n flex-grow: 1;\n}\n.grow-0 {\n flex-grow: 0;\n}\n.cursor-not-allowed {\n cursor: not-allowed;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.resize-none {\n resize: none;\n}\n.grid-cols-3 {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n}\n.flex-col {\n flex-direction: column;\n}\n.items-center {\n align-items: center;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.justify-evenly {\n justify-content: space-evenly;\n}\n.gap-1 {\n gap: 0.25rem;\n}\n.gap-2 {\n gap: 0.5rem;\n}\n.gap-20 {\n gap: 5rem;\n}\n.gap-4 {\n gap: 1rem;\n}\n.gap-8 {\n gap: 2rem;\n}\n.gap-x-3 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n.gap-x-8 {\n -moz-column-gap: 2rem;\n column-gap: 2rem;\n}\n.gap-y-5 {\n row-gap: 1.25rem;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.overflow-x-hidden {\n overflow-x: hidden;\n}\n.truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n}\n.rounded-md {\n border-radius: 0.375rem;\n}\n.border-2 {\n border-width: 2px;\n}\n.border-solid {\n border-style: solid;\n}\n.border-black {\n --tw-border-opacity: 1;\n border-color: rgb(0 0 0 / var(--tw-border-opacity));\n}\n.border-gainsboro {\n --tw-border-opacity: 1;\n border-color: rgb(216 222 228 / var(--tw-border-opacity));\n}\n.border-light_pink {\n --tw-border-opacity: 1;\n border-color: rgb(255 178 184 / var(--tw-border-opacity));\n}\n.bg-\\[\\#9966FF\\] {\n --tw-bg-opacity: 1;\n background-color: rgb(153 102 255 / var(--tw-bg-opacity));\n}\n.bg-alice_blue {\n --tw-bg-opacity: 1;\n background-color: rgb(243 246 252 / var(--tw-bg-opacity));\n}\n.bg-gainsboro {\n --tw-bg-opacity: 1;\n background-color: rgb(216 222 228 / var(--tw-bg-opacity));\n}\n.bg-lavender_blush {\n --tw-bg-opacity: 1;\n background-color: rgb(254 242 243 / var(--tw-bg-opacity));\n}\n.bg-primary {\n --tw-bg-opacity: 1;\n background-color: rgb(17 51 154 / var(--tw-bg-opacity));\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.fill-black {\n fill: #000;\n}\n.fill-rose-500 {\n fill: #f43f5e;\n}\n.fill-white {\n fill: #FFF;\n}\n.p-0 {\n padding: 0px;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-1\\.5 {\n padding: 0.375rem;\n}\n.p-2 {\n padding: 0.5rem;\n}\n.p-4 {\n padding: 1rem;\n}\n.p-6 {\n padding: 1.5rem;\n}\n.px-10 {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-20 {\n padding-left: 5rem;\n padding-right: 5rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-\\[7\\.5rem\\] {\n padding-left: 7.5rem;\n padding-right: 7.5rem;\n}\n.py-10 {\n padding-top: 2.5rem;\n padding-bottom: 2.5rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.py-5 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n.py-8 {\n padding-top: 2rem;\n padding-bottom: 2rem;\n}\n.pl-7 {\n padding-left: 1.75rem;\n}\n.pl-\\[7\\.5rem\\] {\n padding-left: 7.5rem;\n}\n.pr-10 {\n padding-right: 2.5rem;\n}\n.pr-6 {\n padding-right: 1.5rem;\n}\n.pr-\\[8rem\\] {\n padding-right: 8rem;\n}\n.pt-\\[6px\\] {\n padding-top: 6px;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.align-middle {\n vertical-align: middle;\n}\n.text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n}\n.text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n}\n.text-4xl {\n font-size: 2.25rem;\n line-height: 2.5rem;\n}\n.text-\\[2rem\\] {\n font-size: 2rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xl {\n font-size: 1.25rem;\n line-height: 1.75rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.font-bold {\n font-weight: 700;\n}\n.font-medium {\n font-weight: 500;\n}\n.font-semibold {\n font-weight: 600;\n}\n.text-black {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n.text-red-500 {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity));\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.opacity-25 {\n opacity: 0.25;\n}\n.opacity-60 {\n opacity: 0.6;\n}\n.outline {\n outline-style: solid;\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n');var B=function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(t){var e=this,n=t||function(){};return this.listeners.push(n),this.onSubscribe(),function(){e.listeners=e.listeners.filter((function(t){return t!==n})),e.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t}();function C(){return C=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var A in n)Object.prototype.hasOwnProperty.call(n,A)&&(t[A]=n[A])}return t},C.apply(this,arguments)}var x='undefined'==typeof window;function F(){}function I(t){return'number'==typeof t&&t>=0&&t!==1/0}function Q(t){return Array.isArray(t)?t:[t]}function E(t,e){return Math.max(t+(e||0)-Date.now(),0)}function S(t,e,n){return D(t)?'function'==typeof e?C({},n,{queryKey:t,queryFn:e}):C({},e,{queryKey:t}):t}function U(t,e,n){return D(t)?[C({},e,{queryKey:t}),n]:[t||{},e]}function L(t,e){var n=t.active,A=t.exact,r=t.fetching,i=t.inactive,o=t.predicate,s=t.queryKey,a=t.stale;if(D(s))if(A){if(e.queryHash!==k(s,e.options))return!1}else if(!P(e.queryKey,s))return!1;var c=function(t,e){return!0===t&&!0===e||null==t&&null==e?'all':!1===t&&!1===e?'none':(null!=t?t:!e)?'active':'inactive'}(n,i);if('none'===c)return!1;if('all'!==c){var l=e.isActive();if('active'===c&&!l)return!1;if('inactive'===c&&l)return!1}return('boolean'!=typeof a||e.isStale()===a)&&(('boolean'!=typeof r||e.isFetching()===r)&&!(o&&!o(e)))}function N(t,e){var n=t.exact,A=t.fetching,r=t.predicate,i=t.mutationKey;if(D(i)){if(!e.options.mutationKey)return!1;if(n){if(_(e.options.mutationKey)!==_(i))return!1}else if(!P(e.options.mutationKey,i))return!1}return('boolean'!=typeof A||'loading'===e.state.status===A)&&!(r&&!r(e))}function k(t,e){return((null==e?void 0:e.queryKeyHashFn)||_)(t)}function _(t){var e,n=Q(t);return e=n,JSON.stringify(e,(function(t,e){return H(e)?Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t}),{}):e}))}function P(t,e){return O(Q(t),Q(e))}function O(t,e){return t===e||typeof t==typeof e&&(!(!t||!e||'object'!=typeof t||'object'!=typeof e)&&!Object.keys(e).some((function(n){return!O(t[n],e[n])})))}function M(t,e){if(t===e)return t;var n=Array.isArray(t)&&Array.isArray(e);if(n||H(t)&&H(e)){for(var A=n?t.length:Object.keys(t).length,r=n?e:Object.keys(e),i=r.length,o=n?[]:{},s=0,a=0;a<i;a++){var c=n?a:r[a];o[c]=M(t[c],e[c]),o[c]===t[c]&&s++}return A===i&&s===A?t:o}return e}function H(t){if(!T(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!T(n)&&!!n.hasOwnProperty('isPrototypeOf')}function T(t){return'[object Object]'===Object.prototype.toString.call(t)}function D(t){return'string'==typeof t||Array.isArray(t)}function R(t){Promise.resolve().then(t).catch((function(t){return setTimeout((function(){throw t}))}))}function V(){if('function'==typeof AbortController)return new AbortController}var G=new(function(t){function e(){var e;return(e=t.call(this)||this).setup=function(t){var e;if(!x&&(null==(e=window)?void 0:e.addEventListener)){var n=function(){return t()};return window.addEventListener('visibilitychange',n,!1),window.addEventListener('focus',n,!1),function(){window.removeEventListener('visibilitychange',n),window.removeEventListener('focus',n)}}},e}w(e,t);var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var t;this.hasListeners()||(null==(t=this.cleanup)||t.call(this),this.cleanup=void 0)},n.setEventListener=function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t((function(t){'boolean'==typeof t?n.setFocused(t):n.onFocus()}))},n.setFocused=function(t){this.focused=t,t&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(t){t()}))},n.isFocused=function(){return'boolean'==typeof this.focused?this.focused:'undefined'==typeof document||[void 0,'visible','prerender'].includes(document.visibilityState)},e}(B)),j=new(function(t){function e(){var e;return(e=t.call(this)||this).setup=function(t){var e;if(!x&&(null==(e=window)?void 0:e.addEventListener)){var n=function(){return t()};return window.addEventListener('online',n,!1),window.addEventListener('offline',n,!1),function(){window.removeEventListener('online',n),window.removeEventListener('offline',n)}}},e}w(e,t);var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var t;this.hasListeners()||(null==(t=this.cleanup)||t.call(this),this.cleanup=void 0)},n.setEventListener=function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t((function(t){'boolean'==typeof t?n.setOnline(t):n.onOnline()}))},n.setOnline=function(t){this.online=t,t&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(t){t()}))},n.isOnline=function(){return'boolean'==typeof this.online?this.online:'undefined'==typeof navigator||void 0===navigator.onLine||navigator.onLine},e}(B));function W(t){return Math.min(1e3*Math.pow(2,t),3e4)}function K(t){return'function'==typeof(null==t?void 0:t.cancel)}var X=function(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent};function z(t){return t instanceof X}var Z=function(t){var e,n,A,r,i=this,o=!1;this.abort=t.abort,this.cancel=function(t){return null==e?void 0:e(t)},this.cancelRetry=function(){o=!0},this.continueRetry=function(){o=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(t,e){A=t,r=e}));var s=function(e){i.isResolved||(i.isResolved=!0,null==t.onSuccess||t.onSuccess(e),null==n||n(),A(e))},a=function(e){i.isResolved||(i.isResolved=!0,null==t.onError||t.onError(e),null==n||n(),r(e))};!function A(){if(!i.isResolved){var r;try{r=t.fn()}catch(t){r=Promise.reject(t)}e=function(t){if(!i.isResolved&&(a(new X(t)),null==i.abort||i.abort(),K(r)))try{r.cancel()}catch(t){}},i.isTransportCancelable=K(r),Promise.resolve(r).then(s).catch((function(e){var r,s;if(!i.isResolved){var c,l=null!=(r=t.retry)?r:3,u=null!=(s=t.retryDelay)?s:W,h='function'==typeof u?u(i.failureCount,e):u,d=!0===l||'number'==typeof l&&i.failureCount<l||'function'==typeof l&&l(i.failureCount,e);if(!o&&d)i.failureCount++,null==t.onFail||t.onFail(i.failureCount,e),(c=h,new Promise((function(t){setTimeout(t,c)}))).then((function(){if(!G.isFocused()||!j.isOnline())return new Promise((function(e){n=e,i.isPaused=!0,null==t.onPause||t.onPause()})).then((function(){n=void 0,i.isPaused=!1,null==t.onContinue||t.onContinue()}))})).then((function(){o?a(e):A()}));else a(e)}}))}}()},Y=function(){function t(){this.queue=[],this.transactions=0,this.notifyFn=function(t){t()},this.batchNotifyFn=function(t){t()}}var e=t.prototype;return e.batch=function(t){var e;this.transactions++;try{e=t()}finally{this.transactions--,this.transactions||this.flush()}return e},e.schedule=function(t){var e=this;this.transactions?this.queue.push(t):R((function(){e.notifyFn(t)}))},e.batchCalls=function(t){var e=this;return function(){for(var n=arguments.length,A=new Array(n),r=0;r<n;r++)A[r]=arguments[r];e.schedule((function(){t.apply(void 0,A)}))}},e.flush=function(){var t=this,e=this.queue;this.queue=[],e.length&&R((function(){t.batchNotifyFn((function(){e.forEach((function(e){t.notifyFn(e)}))}))}))},e.setNotifyFunction=function(t){this.notifyFn=t},e.setBatchNotifyFunction=function(t){this.batchNotifyFn=t},t}(),q=new Y,J=console;function $(){return J}var tt=function(){function t(t){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=t.meta,this.scheduleGc()}var e=t.prototype;return e.setOptions=function(t){var e;this.options=C({},this.defaultOptions,t),this.meta=null==t?void 0:t.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(e=this.options.cacheTime)?e:3e5)},e.setDefaultOptions=function(t){this.defaultOptions=t},e.scheduleGc=function(){var t=this;this.clearGcTimeout(),I(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){t.optionalRemove()}),this.cacheTime))},e.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},e.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},e.setData=function(t,e){var n,A,r=this.state.data,i=function(t,e){return'function'==typeof t?t(e):t}(t,r);return(null==(n=(A=this.options).isDataEqual)?void 0:n.call(A,r,i))?i=r:!1!==this.options.structuralSharing&&(i=M(r,i)),this.dispatch({data:i,type:'success',dataUpdatedAt:null==e?void 0:e.updatedAt}),i},e.setState=function(t,e){this.dispatch({type:'setState',state:t,setStateOptions:e})},e.cancel=function(t){var e,n=this.promise;return null==(e=this.retryer)||e.cancel(t),n?n.then(F).catch(F):Promise.resolve()},e.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},e.reset=function(){this.destroy(),this.setState(this.initialState)},e.isActive=function(){return this.observers.some((function(t){return!1!==t.options.enabled}))},e.isFetching=function(){return this.state.isFetching},e.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(t){return t.getCurrentResult().isStale}))},e.isStaleByTime=function(t){return void 0===t&&(t=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!E(this.state.dataUpdatedAt,t)},e.onFocus=function(){var t,e=this.observers.find((function(t){return t.shouldFetchOnWindowFocus()}));e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.onOnline=function(){var t,e=this.observers.find((function(t){return t.shouldFetchOnReconnect()}));e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.addObserver=function(t){-1===this.observers.indexOf(t)&&(this.observers.push(t),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:'observerAdded',query:this,observer:t}))},e.removeObserver=function(t){-1!==this.observers.indexOf(t)&&(this.observers=this.observers.filter((function(e){return e!==t})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:'observerRemoved',query:this,observer:t}))},e.getObserversCount=function(){return this.observers.length},e.invalidate=function(){this.state.isInvalidated||this.dispatch({type:'invalidate'})},e.fetch=function(t,e){var n,A,r,i=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){var s=this.observers.find((function(t){return t.options.queryFn}));s&&this.setOptions(s.options)}var a=Q(this.queryKey),c=V(),l={queryKey:a,pageParam:void 0,meta:this.meta};Object.defineProperty(l,'signal',{enumerable:!0,get:function(){if(c)return i.abortSignalConsumed=!0,c.signal}});var u,h,d={fetchOptions:e,options:this.options,queryKey:a,state:this.state,fetchFn:function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(l)):Promise.reject('Missing queryFn')},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(u=this.options.behavior)||u.onFetch(d));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(A=d.fetchOptions)?void 0:A.meta))||this.dispatch({type:'fetch',meta:null==(h=d.fetchOptions)?void 0:h.meta});return this.retryer=new Z({fn:d.fetchFn,abort:null==c||null==(r=c.abort)?void 0:r.bind(c),onSuccess:function(t){i.setData(t),null==i.cache.config.onSuccess||i.cache.config.onSuccess(t,i),0===i.cacheTime&&i.optionalRemove()},onError:function(t){z(t)&&t.silent||i.dispatch({type:'error',error:t}),z(t)||(null==i.cache.config.onError||i.cache.config.onError(t,i),$().error(t)),0===i.cacheTime&&i.optionalRemove()},onFail:function(){i.dispatch({type:'failed'})},onPause:function(){i.dispatch({type:'pause'})},onContinue:function(){i.dispatch({type:'continue'})},retry:d.options.retry,retryDelay:d.options.retryDelay}),this.promise=this.retryer.promise,this.promise},e.dispatch=function(t){var e=this;this.state=this.reducer(this.state,t),q.batch((function(){e.observers.forEach((function(e){e.onQueryUpdate(t)})),e.cache.notify({query:e,type:'queryUpdated',action:t})}))},e.getDefaultState=function(t){var e='function'==typeof t.initialData?t.initialData():t.initialData,n=void 0!==t.initialData?'function'==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0,A=void 0!==e;return{data:e,dataUpdateCount:0,dataUpdatedAt:A?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:A?'success':'idle'}},e.reducer=function(t,e){var n,A;switch(e.type){case'failed':return C({},t,{fetchFailureCount:t.fetchFailureCount+1});case'pause':return C({},t,{isPaused:!0});case'continue':return C({},t,{isPaused:!1});case'fetch':return C({},t,{fetchFailureCount:0,fetchMeta:null!=(n=e.meta)?n:null,isFetching:!0,isPaused:!1},!t.dataUpdatedAt&&{error:null,status:'loading'});case'success':return C({},t,{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(A=e.dataUpdatedAt)?A:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:'success'});case'error':var r=e.error;return z(r)&&r.revert&&this.revertState?C({},this.revertState):C({},t,{error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:'error'});case'invalidate':return C({},t,{isInvalidated:!0});case'setState':return C({},t,e.state);default:return t}},t}(),et=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.queries=[],n.queriesMap={},n}w(e,t);var n=e.prototype;return n.build=function(t,e,n){var A,r=e.queryKey,i=null!=(A=e.queryHash)?A:k(r,e),o=this.get(i);return o||(o=new tt({cache:this,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r),meta:e.meta}),this.add(o)),o},n.add=function(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:'queryAdded',query:t}))},n.remove=function(t){var e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter((function(e){return e!==t})),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:'queryRemoved',query:t}))},n.clear=function(){var t=this;q.batch((function(){t.queries.forEach((function(e){t.remove(e)}))}))},n.get=function(t){return this.queriesMap[t]},n.getAll=function(){return this.queries},n.find=function(t,e){var n=U(t,e)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(t){return L(n,t)}))},n.findAll=function(t,e){var n=U(t,e)[0];return Object.keys(n).length>0?this.queries.filter((function(t){return L(n,t)})):this.queries},n.notify=function(t){var e=this;q.batch((function(){e.listeners.forEach((function(e){e(t)}))}))},n.onFocus=function(){var t=this;q.batch((function(){t.queries.forEach((function(t){t.onFocus()}))}))},n.onOnline=function(){var t=this;q.batch((function(){t.queries.forEach((function(t){t.onOnline()}))}))},e}(B),nt=function(){function t(t){this.options=C({},t.defaultOptions,t.options),this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.observers=[],this.state=t.state||At(),this.meta=t.meta}var e=t.prototype;return e.setState=function(t){this.dispatch({type:'setState',state:t})},e.addObserver=function(t){-1===this.observers.indexOf(t)&&this.observers.push(t)},e.removeObserver=function(t){this.observers=this.observers.filter((function(e){return e!==t}))},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(F).catch(F)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var t,e=this,n='loading'===this.state.status,A=Promise.resolve();return n||(this.dispatch({type:'loading',variables:this.options.variables}),A=A.then((function(){null==e.mutationCache.config.onMutate||e.mutationCache.config.onMutate(e.state.variables,e)})).then((function(){return null==e.options.onMutate?void 0:e.options.onMutate(e.state.variables)})).then((function(t){t!==e.state.context&&e.dispatch({type:'loading',context:t,variables:e.state.variables})}))),A.then((function(){return e.executeMutation()})).then((function(n){t=n,null==e.mutationCache.config.onSuccess||e.mutationCache.config.onSuccess(t,e.state.variables,e.state.context,e)})).then((function(){return null==e.options.onSuccess?void 0:e.options.onSuccess(t,e.state.variables,e.state.context)})).then((function(){return null==e.options.onSettled?void 0:e.options.onSettled(t,null,e.state.variables,e.state.context)})).then((function(){return e.dispatch({type:'success',data:t}),t})).catch((function(t){return null==e.mutationCache.config.onError||e.mutationCache.config.onError(t,e.state.variables,e.state.context,e),$().error(t),Promise.resolve().then((function(){return null==e.options.onError?void 0:e.options.onError(t,e.state.variables,e.state.context)})).then((function(){return null==e.options.onSettled?void 0:e.options.onSettled(void 0,t,e.state.variables,e.state.context)})).then((function(){throw e.dispatch({type:'error',error:t}),t}))}))},e.executeMutation=function(){var t,e=this;return this.retryer=new Z({fn:function(){return e.options.mutationFn?e.options.mutationFn(e.state.variables):Promise.reject('No mutationFn found')},onFail:function(){e.dispatch({type:'failed'})},onPause:function(){e.dispatch({type:'pause'})},onContinue:function(){e.dispatch({type:'continue'})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(t){var e=this;this.state=function(t,e){switch(e.type){case'failed':return C({},t,{failureCount:t.failureCount+1});case'pause':return C({},t,{isPaused:!0});case'continue':return C({},t,{isPaused:!1});case'loading':return C({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:'loading',variables:e.variables});case'success':return C({},t,{data:e.data,error:null,status:'success',isPaused:!1});case'error':return C({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:'error'});case'setState':return C({},t,e.state);default:return t}}(this.state,t),q.batch((function(){e.observers.forEach((function(e){e.onMutationUpdate(t)})),e.mutationCache.notify(e)}))},t}();function At(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:'idle',variables:void 0}}var rt=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.mutations=[],n.mutationId=0,n}w(e,t);var n=e.prototype;return n.build=function(t,e,n){var A=new nt({mutationCache:this,mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:n,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0,meta:e.meta});return this.add(A),A},n.add=function(t){this.mutations.push(t),this.notify(t)},n.remove=function(t){this.mutations=this.mutations.filter((function(e){return e!==t})),t.cancel(),this.notify(t)},n.clear=function(){var t=this;q.batch((function(){t.mutations.forEach((function(e){t.remove(e)}))}))},n.getAll=function(){return this.mutations},n.find=function(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find((function(e){return N(t,e)}))},n.findAll=function(t){return this.mutations.filter((function(e){return N(t,e)}))},n.notify=function(t){var e=this;q.batch((function(){e.listeners.forEach((function(e){e(t)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var t=this.mutations.filter((function(t){return t.state.isPaused}));return q.batch((function(){return t.reduce((function(t,e){return t.then((function(){return e.continue().catch(F)}))}),Promise.resolve())}))},e}(B);function it(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}var ot=function(){function t(t){void 0===t&&(t={}),this.queryCache=t.queryCache||new et,this.mutationCache=t.mutationCache||new rt,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var e=t.prototype;return e.mount=function(){var t=this;this.unsubscribeFocus=G.subscribe((function(){G.isFocused()&&j.isOnline()&&(t.mutationCache.onFocus(),t.queryCache.onFocus())})),this.unsubscribeOnline=j.subscribe((function(){G.isFocused()&&j.isOnline()&&(t.mutationCache.onOnline(),t.queryCache.onOnline())}))},e.unmount=function(){var t,e;null==(t=this.unsubscribeFocus)||t.call(this),null==(e=this.unsubscribeOnline)||e.call(this)},e.isFetching=function(t,e){var n=U(t,e)[0];return n.fetching=!0,this.queryCache.findAll(n).length},e.isMutating=function(t){return this.mutationCache.findAll(C({},t,{fetching:!0})).length},e.getQueryData=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state.data},e.getQueriesData=function(t){return this.getQueryCache().findAll(t).map((function(t){return[t.queryKey,t.state.data]}))},e.setQueryData=function(t,e,n){var A=S(t),r=this.defaultQueryOptions(A);return this.queryCache.build(this,r).setData(e,n)},e.setQueriesData=function(t,e,n){var A=this;return q.batch((function(){return A.getQueryCache().findAll(t).map((function(t){var r=t.queryKey;return[r,A.setQueryData(r,e,n)]}))}))},e.getQueryState=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state},e.removeQueries=function(t,e){var n=U(t,e)[0],A=this.queryCache;q.batch((function(){A.findAll(n).forEach((function(t){A.remove(t)}))}))},e.resetQueries=function(t,e,n){var A=this,r=U(t,e,n),i=r[0],o=r[1],s=this.queryCache,a=C({},i,{active:!0});return q.batch((function(){return s.findAll(i).forEach((function(t){t.reset()})),A.refetchQueries(a,o)}))},e.cancelQueries=function(t,e,n){var A=this,r=U(t,e,n),i=r[0],o=r[1],s=void 0===o?{}:o;void 0===s.revert&&(s.revert=!0);var a=q.batch((function(){return A.queryCache.findAll(i).map((function(t){return t.cancel(s)}))}));return Promise.all(a).then(F).catch(F)},e.invalidateQueries=function(t,e,n){var A,r,i,o=this,s=U(t,e,n),a=s[0],c=s[1],l=C({},a,{active:null==(A=null!=(r=a.refetchActive)?r:a.active)||A,inactive:null!=(i=a.refetchInactive)&&i});return q.batch((function(){return o.queryCache.findAll(a).forEach((function(t){t.invalidate()})),o.refetchQueries(l,c)}))},e.refetchQueries=function(t,e,n){var A=this,r=U(t,e,n),i=r[0],o=r[1],s=q.batch((function(){return A.queryCache.findAll(i).map((function(t){return t.fetch(void 0,C({},o,{meta:{refetchPage:null==i?void 0:i.refetchPage}}))}))})),a=Promise.all(s).then(F);return(null==o?void 0:o.throwOnError)||(a=a.catch(F)),a},e.fetchQuery=function(t,e,n){var A=S(t,e,n),r=this.defaultQueryOptions(A);void 0===r.retry&&(r.retry=!1);var i=this.queryCache.build(this,r);return i.isStaleByTime(r.staleTime)?i.fetch(r):Promise.resolve(i.state.data)},e.prefetchQuery=function(t,e,n){return this.fetchQuery(t,e,n).then(F).catch(F)},e.fetchInfiniteQuery=function(t,e,n){var A=S(t,e,n);return A.behavior={onFetch:function(t){t.fetchFn=function(){var e,n,A,r,i,o,s,a=null==(e=t.fetchOptions)||null==(n=e.meta)?void 0:n.refetchPage,c=null==(A=t.fetchOptions)||null==(r=A.meta)?void 0:r.fetchMore,l=null==c?void 0:c.pageParam,u='forward'===(null==c?void 0:c.direction),h='backward'===(null==c?void 0:c.direction),d=(null==(i=t.state.data)?void 0:i.pages)||[],f=(null==(o=t.state.data)?void 0:o.pageParams)||[],g=V(),p=null==g?void 0:g.signal,m=f,b=!1,v=t.options.queryFn||function(){return Promise.reject('Missing queryFn')},y=function(t,e,n,A){return m=A?[e].concat(m):[].concat(m,[e]),A?[n].concat(t):[].concat(t,[n])},w=function(e,n,A,r){if(b)return Promise.reject('Cancelled');if(void 0===A&&!n&&e.length)return Promise.resolve(e);var i={queryKey:t.queryKey,signal:p,pageParam:A,meta:t.meta},o=v(i),s=Promise.resolve(o).then((function(t){return y(e,A,t,r)}));return K(o)&&(s.cancel=o.cancel),s};if(d.length)if(u){var B=void 0!==l,C=B?l:it(t.options,d);s=w(d,B,C)}else if(h){var x=void 0!==l,F=x?l:function(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}(t.options,d);s=w(d,x,F,!0)}else!function(){m=[];var e=void 0===t.options.getNextPageParam,n=!a||!d[0]||a(d[0],0,d);s=n?w([],e,f[0]):Promise.resolve(y([],f[0],d[0]));for(var A=function(n){s=s.then((function(A){if(!a||!d[n]||a(d[n],n,d)){var r=e?f[n]:it(t.options,A);return w(A,e,r)}return Promise.resolve(y(A,f[n],d[n]))}))},r=1;r<d.length;r++)A(r)}();else s=w([]);var I=s.then((function(t){return{pages:t,pageParams:m}}));return I.cancel=function(){b=!0,null==g||g.abort(),K(s)&&s.cancel()},I}}},this.fetchQuery(A)},e.prefetchInfiniteQuery=function(t,e,n){return this.fetchInfiniteQuery(t,e,n).then(F).catch(F)},e.cancelMutations=function(){var t=this,e=q.batch((function(){return t.mutationCache.getAll().map((function(t){return t.cancel()}))}));return Promise.all(e).then(F).catch(F)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(t){return this.mutationCache.build(this,t).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(t){this.defaultOptions=t},e.setQueryDefaults=function(t,e){var n=this.queryDefaults.find((function(e){return _(t)===_(e.queryKey)}));n?n.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})},e.getQueryDefaults=function(t){var e;return t?null==(e=this.queryDefaults.find((function(e){return P(t,e.queryKey)})))?void 0:e.defaultOptions:void 0},e.setMutationDefaults=function(t,e){var n=this.mutationDefaults.find((function(e){return _(t)===_(e.mutationKey)}));n?n.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})},e.getMutationDefaults=function(t){var e;return t?null==(e=this.mutationDefaults.find((function(e){return P(t,e.mutationKey)})))?void 0:e.defaultOptions:void 0},e.defaultQueryOptions=function(t){if(null==t?void 0:t._defaulted)return t;var e=C({},this.defaultOptions.queries,this.getQueryDefaults(null==t?void 0:t.queryKey),t,{_defaulted:!0});return!e.queryHash&&e.queryKey&&(e.queryHash=k(e.queryKey,e)),e},e.defaultQueryObserverOptions=function(t){return this.defaultQueryOptions(t)},e.defaultMutationOptions=function(t){return(null==t?void 0:t._defaulted)?t:C({},this.defaultOptions.mutations,this.getMutationDefaults(null==t?void 0:t.mutationKey),t,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t}(),st=function(t){function e(e,n){var A;return(A=t.call(this)||this).client=e,A.options=n,A.trackedProps=[],A.selectError=null,A.bindMethods(),A.setOptions(n),A}w(e,t);var n=e.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),at(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return ct(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return ct(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(t,e){var n=this.options,A=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(t),void 0!==this.options.enabled&&'boolean'!=typeof this.options.enabled)throw new Error('Expected enabled to be a boolean');this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var r=this.hasListeners();r&&lt(this.currentQuery,A,this.options,n)&&this.executeFetch(),this.updateResult(e),!r||this.currentQuery===A&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var i=this.computeRefetchInterval();!r||this.currentQuery===A&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)},n.getOptimisticResult=function(t){var e=this.client.defaultQueryObserverOptions(t),n=this.client.getQueryCache().build(this.client,e);return this.createResult(n,e)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(t,e){var n=this,A={},r=function(t){n.trackedProps.includes(t)||n.trackedProps.push(t)};return Object.keys(t).forEach((function(e){Object.defineProperty(A,e,{configurable:!1,enumerable:!0,get:function(){return r(e),t[e]}})})),(e.useErrorBoundary||e.suspense)&&r('error'),A},n.getNextResult=function(t){var e=this;return new Promise((function(n,A){var r=e.subscribe((function(e){e.isFetching||(r(),e.isError&&(null==t?void 0:t.throwOnError)?A(e.error):n(e))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(t){return this.fetch(C({},t,{meta:{refetchPage:null==t?void 0:t.refetchPage}}))},n.fetchOptimistic=function(t){var e=this,n=this.client.defaultQueryObserverOptions(t),A=this.client.getQueryCache().build(this.client,n);return A.fetch().then((function(){return e.createResult(A,n)}))},n.fetch=function(t){var e=this;return this.executeFetch(t).then((function(){return e.updateResult(),e.currentResult}))},n.executeFetch=function(t){this.updateQuery();var e=this.currentQuery.fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(F)),e},n.updateStaleTimeout=function(){var t=this;if(this.clearStaleTimeout(),!x&&!this.currentResult.isStale&&I(this.options.staleTime)){var e=E(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){t.currentResult.isStale||t.updateResult()}),e)}},n.computeRefetchInterval=function(){var t;return'function'==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t},n.updateRefetchInterval=function(t){var e=this;this.clearRefetchInterval(),this.currentRefetchInterval=t,!x&&!1!==this.options.enabled&&I(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(e.options.refetchIntervalInBackground||G.isFocused())&&e.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(t,e){var n,A=this.currentQuery,r=this.options,i=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,a=t!==A,c=a?t.state:this.currentQueryInitialState,l=a?this.currentResult:this.previousQueryResult,u=t.state,h=u.dataUpdatedAt,d=u.error,f=u.errorUpdatedAt,g=u.isFetching,p=u.status,m=!1,b=!1;if(e.optimisticResults){var v=this.hasListeners(),y=!v&&at(t,e),w=v&&lt(t,A,e,r);(y||w)&&(g=!0,h||(p='loading'))}if(e.keepPreviousData&&!u.dataUpdateCount&&(null==l?void 0:l.isSuccess)&&'error'!==p)n=l.data,h=l.dataUpdatedAt,p=l.status,m=!0;else if(e.select&&void 0!==u.data)if(i&&u.data===(null==o?void 0:o.data)&&e.select===this.selectFn)n=this.selectResult;else try{this.selectFn=e.select,n=e.select(u.data),!1!==e.structuralSharing&&(n=M(null==i?void 0:i.data,n)),this.selectResult=n,this.selectError=null}catch(t){$().error(t),this.selectError=t}else n=u.data;if(void 0!==e.placeholderData&&void 0===n&&('loading'===p||'idle'===p)){var B;if((null==i?void 0:i.isPlaceholderData)&&e.placeholderData===(null==s?void 0:s.placeholderData))B=i.data;else if(B='function'==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==B)try{B=e.select(B),!1!==e.structuralSharing&&(B=M(null==i?void 0:i.data,B)),this.selectError=null}catch(t){$().error(t),this.selectError=t}void 0!==B&&(p='success',n=B,b=!0)}return this.selectError&&(d=this.selectError,n=this.selectResult,f=Date.now(),p='error'),{status:p,isLoading:'loading'===p,isSuccess:'success'===p,isError:'error'===p,isIdle:'idle'===p,data:n,dataUpdatedAt:h,error:d,errorUpdatedAt:f,failureCount:u.fetchFailureCount,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:g,isRefetching:g&&'loading'!==p,isLoadingError:'error'===p&&0===u.dataUpdatedAt,isPlaceholderData:b,isPreviousData:m,isRefetchError:'error'===p&&0!==u.dataUpdatedAt,isStale:ut(t,e),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(t,e){if(!e)return!0;var n=this.options,A=n.notifyOnChangeProps,r=n.notifyOnChangePropsExclusions;if(!A&&!r)return!0;if('tracked'===A&&!this.trackedProps.length)return!0;var i='tracked'===A?this.trackedProps:A;return Object.keys(t).some((function(n){var A=n,o=t[A]!==e[A],s=null==i?void 0:i.some((function(t){return t===n})),a=null==r?void 0:r.some((function(t){return t===n}));return o&&!a&&(!i||s)}))},n.updateResult=function(t){var e=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!function(t,e){if(t&&!e||e&&!t)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(this.currentResult,e)){var n={cache:!0};!1!==(null==t?void 0:t.listeners)&&this.shouldNotifyListeners(this.currentResult,e)&&(n.listeners=!0),this.notify(C({},n,t))}},n.updateQuery=function(){var t=this.client.getQueryCache().build(this.client,this.options);if(t!==this.currentQuery){var e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}},n.onQueryUpdate=function(t){var e={};'success'===t.type?e.onSuccess=!0:'error'!==t.type||z(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()},n.notify=function(t){var e=this;q.batch((function(){t.onSuccess?(null==e.options.onSuccess||e.options.onSuccess(e.currentResult.data),null==e.options.onSettled||e.options.onSettled(e.currentResult.data,null)):t.onError&&(null==e.options.onError||e.options.onError(e.currentResult.error),null==e.options.onSettled||e.options.onSettled(void 0,e.currentResult.error)),t.listeners&&e.listeners.forEach((function(t){t(e.currentResult)})),t.cache&&e.client.getQueryCache().notify({query:e.currentQuery,type:'observerResultsUpdated'})}))},e}(B);function at(t,e){return function(t,e){return!(!1===e.enabled||t.state.dataUpdatedAt||'error'===t.state.status&&!1===e.retryOnMount)}(t,e)||t.state.dataUpdatedAt>0&&ct(t,e,e.refetchOnMount)}function ct(t,e,n){if(!1!==e.enabled){var A='function'==typeof n?n(t):n;return'always'===A||!1!==A&&ut(t,e)}return!1}function lt(t,e,n,A){return!1!==n.enabled&&(t!==e||!1===A.enabled)&&(!n.suspense||'error'!==t.state.status)&&ut(t,n)}function ut(t,e){return t.isStaleByTime(e.staleTime)}var ht=function(t){function e(e,n){var A;return(A=t.call(this)||this).client=e,A.setOptions(n),A.bindMethods(),A.updateResult(),A}w(e,t);var n=e.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(t){this.options=this.client.defaultMutationOptions(t)},n.onUnsubscribe=function(){var t;this.listeners.length||(null==(t=this.currentMutation)||t.removeObserver(this))},n.onMutationUpdate=function(t){this.updateResult();var e={listeners:!0};'success'===t.type?e.onSuccess=!0:'error'===t.type&&(e.onError=!0),this.notify(e)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,C({},this.options,{variables:void 0!==t?t:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var t=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:'idle',variables:void 0},e=C({},t,{isLoading:'loading'===t.status,isSuccess:'success'===t.status,isError:'error'===t.status,isIdle:'idle'===t.status,mutate:this.mutate,reset:this.reset});this.currentResult=e},n.notify=function(t){var e=this;q.batch((function(){e.mutateOptions&&(t.onSuccess?(null==e.mutateOptions.onSuccess||e.mutateOptions.onSuccess(e.currentResult.data,e.currentResult.variables,e.currentResult.context),null==e.mutateOptions.onSettled||e.mutateOptions.onSettled(e.currentResult.data,null,e.currentResult.variables,e.currentResult.context)):t.onError&&(null==e.mutateOptions.onError||e.mutateOptions.onError(e.currentResult.error,e.currentResult.variables,e.currentResult.context),null==e.mutateOptions.onSettled||e.mutateOptions.onSettled(void 0,e.currentResult.error,e.currentResult.variables,e.currentResult.context))),t.listeners&&e.listeners.forEach((function(t){t(e.currentResult)}))}))},e}(B),dt=p.unstable_batchedUpdates;q.setBatchNotifyFunction(dt);var ft=console;J=ft;var gt=e.createContext(void 0),pt=e.createContext(!1);function mt(t){return t&&'undefined'!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=gt),window.ReactQueryClientContext):gt}var bt=function(){var t=e.useContext(mt(e.useContext(pt)));if(!t)throw new Error('No QueryClient set, use QueryClientProvider to set one');return t},vt=function(t){var n=t.client,A=t.contextSharing,r=void 0!==A&&A,i=t.children;e.useEffect((function(){return n.mount(),function(){n.unmount()}}),[n]);var o=mt(r);return e.createElement(pt.Provider,{value:r},e.createElement(o.Provider,{value:n},i))};var yt,wt=e.createContext((yt=!1,{clearReset:function(){yt=!1},reset:function(){yt=!0},isReset:function(){return yt}})),Bt=function(){return e.useContext(wt)};function Ct(t,e,n){return'function'==typeof e?e.apply(void 0,n):'boolean'==typeof e?e:!!t}function xt(t,n,A){var r=e.useRef(!1),i=e.useState(0)[1],o=function(t,e,n){return D(t)?'function'==typeof e?C({},n,{mutationKey:t,mutationFn:e}):C({},e,{mutationKey:t}):'function'==typeof t?C({},e,{mutationFn:t}):C({},t)}(t,n,A),s=bt(),a=e.useRef();a.current?a.current.setOptions(o):a.current=new ht(s,o);var c=a.current.getCurrentResult();e.useEffect((function(){r.current=!0;var t=a.current.subscribe(q.batchCalls((function(){r.current&&i((function(t){return t+1}))})));return function(){r.current=!1,t()}}),[]);var l=e.useCallback((function(t,e){a.current.mutate(t,e).catch(F)}),[]);if(c.error&&Ct(void 0,a.current.options.useErrorBoundary,[c.error]))throw c.error;return C({},c,{mutate:l,mutateAsync:c.mutate})}function Ft(t,n,A){return function(t,n){var A=e.useRef(!1),r=e.useState(0)[1],i=bt(),o=Bt(),s=i.defaultQueryObserverOptions(t);s.optimisticResults=!0,s.onError&&(s.onError=q.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=q.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=q.batchCalls(s.onSettled)),s.suspense&&('number'!=typeof s.staleTime&&(s.staleTime=1e3),0===s.cacheTime&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(o.isReset()||(s.retryOnMount=!1));var a=e.useState((function(){return new n(i,s)}))[0],c=a.getOptimisticResult(s);if(e.useEffect((function(){A.current=!0,o.clearReset();var t=a.subscribe(q.batchCalls((function(){A.current&&r((function(t){return t+1}))})));return a.updateResult(),function(){A.current=!1,t()}}),[o,a]),e.useEffect((function(){a.setOptions(s,{listeners:!1})}),[s,a]),s.suspense&&c.isLoading)throw a.fetchOptimistic(s).then((function(t){var e=t.data;null==s.onSuccess||s.onSuccess(e),null==s.onSettled||s.onSettled(e,null)})).catch((function(t){o.clearReset(),null==s.onError||s.onError(t),null==s.onSettled||s.onSettled(void 0,t)}));if(c.isError&&!o.isReset()&&!c.isFetching&&Ct(s.suspense,s.useErrorBoundary,[c.error,a.getCurrentQuery()]))throw c.error;return'tracked'===s.notifyOnChangeProps&&(c=a.trackResult(c,s)),c}(S(t,n,A),st)}var It=function(){return It=Object.assign||function(t){for(var e,n=1,A=arguments.length;n<A;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},It.apply(this,arguments)};function Qt(t,e){var n={};for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&e.indexOf(A)<0&&(n[A]=t[A]);if(null!=t&&'function'==typeof Object.getOwnPropertySymbols){var r=0;for(A=Object.getOwnPropertySymbols(t);r<A.length;r++)e.indexOf(A[r])<0&&Object.prototype.propertyIsEnumerable.call(t,A[r])&&(n[A[r]]=t[A[r]])}return n}function Et(t,e,n,A){return new(n||(n=Promise))((function(r,i){function o(t){try{a(A.next(t))}catch(t){i(t)}}function s(t){try{a(A.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}a((A=A.apply(t,e||[])).next())}))}function St(t,e){var n,A,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},'function'==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(a){return function(s){if(n)throw new TypeError('Generator is already executing.');for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,A&&(r=2&s[0]?A.return:s[0]?A.throw||((r=A.return)&&r.call(A),0):A.next)&&!(r=r.call(A,s[1])).done)return r;switch(A=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,A=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],A=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function Ut(t,e,n){if(n||2===arguments.length)for(var A,r=0,i=e.length;r<i;r++)!A&&r in e||(A||(A=Array.prototype.slice.call(e,0,r)),A[r]=e[r]);return t.concat(A||Array.prototype.slice.call(e))}function Lt(t,e){return Object.defineProperty?Object.defineProperty(t,'raw',{value:e}):t.raw=e,t}function Nt(){for(var t,e,n=0,A='';n<arguments.length;)(t=arguments[n++])&&(e=kt(t))&&(A&&(A+=' '),A+=e);return A}function kt(t){if('string'==typeof t)return t;for(var e,n='',A=0;A<t.length;A++)t[A]&&(e=kt(t[A]))&&(n&&(n+=' '),n+=e);return n}'function'==typeof SuppressedError&&SuppressedError;var _t='-';function Pt(t){var e=function(t){var e=t.theme,n=t.prefix,A={nextPart:new Map,validators:[]},r=function(t,e){if(!e)return t;return t.map((function(t){return[t[0],t[1].map((function(t){return'string'==typeof t?e+t:'object'==typeof t?Object.fromEntries(Object.entries(t).map((function(t){var n=t[0],A=t[1];return[e+n,A]}))):t}))]}))}(Object.entries(t.classGroups),n);return r.forEach((function(t){var n=t[0];Ht(t[1],A,n,e)})),A}(t),n=t.conflictingClassGroups,A=t.conflictingClassGroupModifiers,r=void 0===A?{}:A;return{getClassGroupId:function(t){var n=t.split(_t);return''===n[0]&&1!==n.length&&n.shift(),Ot(n,e)||function(t){if(Mt.test(t)){var e=Mt.exec(t)[1],n=e?.substring(0,e.indexOf(':'));if(n)return'arbitrary..'+n}}(t)},getConflictingClassGroupIds:function(t,e){var A=n[t]||[];return e&&r[t]?[].concat(A,r[t]):A}}}function Ot(t,e){if(0===t.length)return e.classGroupId;var n=t[0],A=e.nextPart.get(n),r=A?Ot(t.slice(1),A):void 0;if(r)return r;if(0!==e.validators.length){var i=t.join(_t);return e.validators.find((function(t){return(0,t.validator)(i)}))?.classGroupId}}var Mt=/^\[(.+)\]$/;function Ht(t,e,n,A){t.forEach((function(t){if('string'!=typeof t){if('function'==typeof t)return t.isThemeGetter?void Ht(t(A),e,n,A):void e.validators.push({validator:t,classGroupId:n});Object.entries(t).forEach((function(t){var r=t[0];Ht(t[1],Tt(e,r),n,A)}))}else{(''===t?e:Tt(e,t)).classGroupId=n}}))}function Tt(t,e){var n=t;return e.split(_t).forEach((function(t){n.nextPart.has(t)||n.nextPart.set(t,{nextPart:new Map,validators:[]}),n=n.nextPart.get(t)})),n}function Dt(t){if(t<1)return{get:function(){},set:function(){}};var e=0,n=new Map,A=new Map;function r(r,i){n.set(r,i),++e>t&&(e=0,A=n,n=new Map)}return{get:function(t){var e=n.get(t);return void 0!==e?e:void 0!==(e=A.get(t))?(r(t,e),e):void 0},set:function(t,e){n.has(t)?n.set(t,e):r(t,e)}}}var Rt='!';function Vt(t){var e=t.separator||':',n=1===e.length,A=e[0],r=e.length;return function(t){for(var i,o=[],s=0,a=0,c=0;c<t.length;c++){var l=t[c];if(0===s){if(l===A&&(n||t.slice(c,c+r)===e)){o.push(t.slice(a,c)),a=c+r;continue}if('/'===l){i=c;continue}}'['===l?s++:']'===l&&s--}var u=0===o.length?t:t.substring(a),h=u.startsWith(Rt);return{modifiers:o,hasImportantModifier:h,baseClassName:h?u.substring(1):u,maybePostfixModifierPosition:i&&i>a?i-a:void 0}}}var Gt=/\s+/;function jt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var A,r,i,o=function(t){var n=e[0],a=e.slice(1).reduce((function(t,e){return e(t)}),n());return A=function(t){return{cache:Dt(t.cacheSize),splitModifiers:Vt(t),...Pt(t)}}(a),r=A.cache.get,i=A.cache.set,o=s,s(t)};function s(t){var e=r(t);if(e)return e;var n=function(t,e){var n=e.splitModifiers,A=e.getClassGroupId,r=e.getConflictingClassGroupIds,i=new Set;return t.trim().split(Gt).map((function(t){var e=n(t),r=e.modifiers,i=e.hasImportantModifier,o=e.baseClassName,s=e.maybePostfixModifierPosition,a=A(s?o.substring(0,s):o),c=Boolean(s);if(!a){if(!s)return{isTailwindClass:!1,originalClassName:t};if(!(a=A(o)))return{isTailwindClass:!1,originalClassName:t};c=!1}var l=function(t){if(t.length<=1)return t;var e=[],n=[];return t.forEach((function(t){'['===t[0]?(e.push.apply(e,n.sort().concat([t])),n=[]):n.push(t)})),e.push.apply(e,n.sort()),e}(r).join(':');return{isTailwindClass:!0,modifierId:i?l+Rt:l,classGroupId:a,originalClassName:t,hasPostfixModifier:c}})).reverse().filter((function(t){if(!t.isTailwindClass)return!0;var e=t.modifierId,n=t.classGroupId,A=t.hasPostfixModifier,o=e+n;return!i.has(o)&&(i.add(o),r(n,A).forEach((function(t){return i.add(e+t)})),!0)})).reverse().map((function(t){return t.originalClassName})).join(' ')}(t,A);return i(t,n),n}return function(){return o(Nt.apply(null,arguments))}}function Wt(t){var e=function(e){return e[t]||[]};return e.isThemeGetter=!0,e}var Kt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xt=/^\d+\/\d+$/,zt=new Set(['px','full','screen']),Zt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Jt(t){return re(t)||zt.has(t)||Xt.test(t)||$t(t)}function $t(t){return ue(t,'length',he)}function te(t){return ue(t,'size',de)}function ee(t){return ue(t,'position',de)}function ne(t){return ue(t,'url',fe)}function Ae(t){return ue(t,'number',re)}function re(t){return!Number.isNaN(Number(t))}function ie(t){return t.endsWith('%')&&re(t.slice(0,-1))}function oe(t){return ge(t)||ue(t,'number',ge)}function se(t){return Kt.test(t)}function ae(){return!0}function ce(t){return Zt.test(t)}function le(t){return ue(t,'',pe)}function ue(t,e,n){var A=Kt.exec(t);return!!A&&(A[1]?A[1]===e:n(A[2]))}function he(t){return Yt.test(t)}function de(){return!1}function fe(t){return t.startsWith('url(')}function ge(t){return Number.isInteger(Number(t))}function pe(t){return qt.test(t)}function me(){var t=Wt('colors'),e=Wt('spacing'),n=Wt('blur'),A=Wt('brightness'),r=Wt('borderColor'),i=Wt('borderRadius'),o=Wt('borderSpacing'),s=Wt('borderWidth'),a=Wt('contrast'),c=Wt('grayscale'),l=Wt('hueRotate'),u=Wt('invert'),h=Wt('gap'),d=Wt('gradientColorStops'),f=Wt('gradientColorStopPositions'),g=Wt('inset'),p=Wt('margin'),m=Wt('opacity'),b=Wt('padding'),v=Wt('saturate'),y=Wt('scale'),w=Wt('sepia'),B=Wt('skew'),C=Wt('space'),x=Wt('translate'),F=function(){return['auto',se,e]},I=function(){return[se,e]},Q=function(){return['',Jt]},E=function(){return['auto',re,se]},S=function(){return['','0',se]},U=function(){return[re,Ae]},L=function(){return[re,se]};return{cacheSize:500,theme:{colors:[ae],spacing:[Jt],blur:['none','',ce,se],brightness:U(),borderColor:[t],borderRadius:['none','','full',ce,se],borderSpacing:I(),borderWidth:Q(),contrast:U(),grayscale:S(),hueRotate:L(),invert:S(),gap:I(),gradientColorStops:[t],gradientColorStopPositions:[ie,$t],inset:F(),margin:F(),opacity:U(),padding:I(),saturate:U(),scale:U(),sepia:S(),skew:L(),space:I(),translate:I()},classGroups:{aspect:[{aspect:['auto','square','video',se]}],container:['container'],columns:[{columns:[ce]}],'break-after':[{'break-after':['auto','avoid','all','avoid-page','page','left','right','column']}],'break-before':[{'break-before':['auto','avoid','all','avoid-page','page','left','right','column']}],'break-inside':[{'break-inside':['auto','avoid','avoid-page','avoid-column']}],'box-decoration':[{'box-decoration':['slice','clone']}],box:[{box:['border','content']}],display:['block','inline-block','inline','flex','inline-flex','table','inline-table','table-caption','table-cell','table-column','table-column-group','table-footer-group','table-header-group','table-row-group','table-row','flow-root','grid','inline-grid','contents','list-item','hidden'],float:[{float:['right','left','none']}],clear:[{clear:['left','right','both','none']}],isolation:['isolate','isolation-auto'],'object-fit':[{object:['contain','cover','fill','none','scale-down']}],'object-position':[{object:[].concat(['bottom','center','left','left-bottom','left-top','right','right-bottom','right-top','top'],[se])}],overflow:[{overflow:['auto','hidden','clip','visible','scroll']}],'overflow-x':[{'overflow-x':['auto','hidden','clip','visible','scroll']}],'overflow-y':[{'overflow-y':['auto','hidden','clip','visible','scroll']}],overscroll:[{overscroll:['auto','contain','none']}],'overscroll-x':[{'overscroll-x':['auto','contain','none']}],'overscroll-y':[{'overscroll-y':['auto','contain','none']}],position:['static','fixed','absolute','relative','sticky'],inset:[{inset:[g]}],'inset-x':[{'inset-x':[g]}],'inset-y':[{'inset-y':[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:['visible','invisible','collapse'],z:[{z:['auto',oe]}],basis:[{basis:F()}],'flex-direction':[{flex:['row','row-reverse','col','col-reverse']}],'flex-wrap':[{flex:['wrap','wrap-reverse','nowrap']}],flex:[{flex:['1','auto','initial','none',se]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:['first','last','none',oe]}],'grid-cols':[{'grid-cols':[ae]}],'col-start-end':[{col:['auto',{span:['full',oe]},se]}],'col-start':[{'col-start':E()}],'col-end':[{'col-end':E()}],'grid-rows':[{'grid-rows':[ae]}],'row-start-end':[{row:['auto',{span:[oe]},se]}],'row-start':[{'row-start':E()}],'row-end':[{'row-end':E()}],'grid-flow':[{'grid-flow':['row','col','dense','row-dense','col-dense']}],'auto-cols':[{'auto-cols':['auto','min','max','fr',se]}],'auto-rows':[{'auto-rows':['auto','min','max','fr',se]}],gap:[{gap:[h]}],'gap-x':[{'gap-x':[h]}],'gap-y':[{'gap-y':[h]}],'justify-content':[{justify:['normal'].concat(['start','end','center','between','around','evenly','stretch'])}],'justify-items':[{'justify-items':['start','end','center','stretch']}],'justify-self':[{'justify-self':['auto','start','end','center','stretch']}],'align-content':[{content:['normal'].concat(['start','end','center','between','around','evenly','stretch'],['baseline'])}],'align-items':[{items:['start','end','center','baseline','stretch']}],'align-self':[{self:['auto','start','end','center','stretch','baseline']}],'place-content':[{'place-content':[].concat(['start','end','center','between','around','evenly','stretch'],['baseline'])}],'place-items':[{'place-items':['start','end','center','baseline','stretch']}],'place-self':[{'place-self':['auto','start','end','center','stretch']}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],'space-x':[{'space-x':[C]}],'space-x-reverse':['space-x-reverse'],'space-y':[{'space-y':[C]}],'space-y-reverse':['space-y-reverse'],w:[{w:['auto','min','max','fit',se,e]}],'min-w':[{'min-w':['min','max','fit',se,Jt]}],'max-w':[{'max-w':['0','none','full','min','max','fit','prose',{screen:[ce]},ce,se]}],h:[{h:[se,e,'auto','min','max','fit']}],'min-h':[{'min-h':['min','max','fit',se,Jt]}],'max-h':[{'max-h':[se,e,'min','max','fit']}],'font-size':[{text:['base',ce,$t]}],'font-smoothing':['antialiased','subpixel-antialiased'],'font-style':['italic','not-italic'],'font-weight':[{font:['thin','extralight','light','normal','medium','semibold','bold','extrabold','black',Ae]}],'font-family':[{font:[ae]}],'fvn-normal':['normal-nums'],'fvn-ordinal':['ordinal'],'fvn-slashed-zero':['slashed-zero'],'fvn-figure':['lining-nums','oldstyle-nums'],'fvn-spacing':['proportional-nums','tabular-nums'],'fvn-fraction':['diagonal-fractions','stacked-fractons'],tracking:[{tracking:['tighter','tight','normal','wide','wider','widest',se]}],'line-clamp':[{'line-clamp':['none',re,Ae]}],leading:[{leading:['none','tight','snug','normal','relaxed','loose',se,Jt]}],'list-image':[{'list-image':['none',se]}],'list-style-type':[{list:['none','disc','decimal',se]}],'list-style-position':[{list:['inside','outside']}],'placeholder-color':[{placeholder:[t]}],'placeholder-opacity':[{'placeholder-opacity':[m]}],'text-alignment':[{text:['left','center','right','justify','start','end']}],'text-color':[{text:[t]}],'text-opacity':[{'text-opacity':[m]}],'text-decoration':['underline','overline','line-through','no-underline'],'text-decoration-style':[{decoration:[].concat(['solid','dashed','dotted','double','none'],['wavy'])}],'text-decoration-thickness':[{decoration:['auto','from-font',Jt]}],'underline-offset':[{'underline-offset':['auto',se,Jt]}],'text-decoration-color':[{decoration:[t]}],'text-transform':['uppercase','lowercase','capitalize','normal-case'],'text-overflow':['truncate','text-ellipsis','text-clip'],indent:[{indent:I()}],'vertical-align':[{align:['baseline','top','middle','bottom','text-top','text-bottom','sub','super',se]}],whitespace:[{whitespace:['normal','nowrap','pre','pre-line','pre-wrap','break-spaces']}],break:[{break:['normal','words','all','keep']}],hyphens:[{hyphens:['none','manual','auto']}],content:[{content:['none',se]}],'bg-attachment':[{bg:['fixed','local','scroll']}],'bg-clip':[{'bg-clip':['border','padding','content','text']}],'bg-opacity':[{'bg-opacity':[m]}],'bg-origin':[{'bg-origin':['border','padding','content']}],'bg-position':[{bg:[].concat(['bottom','center','left','left-bottom','left-top','right','right-bottom','right-top','top'],[ee])}],'bg-repeat':[{bg:['no-repeat',{repeat:['','x','y','round','space']}]}],'bg-size':[{bg:['auto','cover','contain',te]}],'bg-image':[{bg:['none',{'gradient-to':['t','tr','r','br','b','bl','l','tl']},ne]}],'bg-color':[{bg:[t]}],'gradient-from-pos':[{from:[f]}],'gradient-via-pos':[{via:[f]}],'gradient-to-pos':[{to:[f]}],'gradient-from':[{from:[d]}],'gradient-via':[{via:[d]}],'gradient-to':[{to:[d]}],rounded:[{rounded:[i]}],'rounded-s':[{'rounded-s':[i]}],'rounded-e':[{'rounded-e':[i]}],'rounded-t':[{'rounded-t':[i]}],'rounded-r':[{'rounded-r':[i]}],'rounded-b':[{'rounded-b':[i]}],'rounded-l':[{'rounded-l':[i]}],'rounded-ss':[{'rounded-ss':[i]}],'rounded-se':[{'rounded-se':[i]}],'rounded-ee':[{'rounded-ee':[i]}],'rounded-es':[{'rounded-es':[i]}],'rounded-tl':[{'rounded-tl':[i]}],'rounded-tr':[{'rounded-tr':[i]}],'rounded-br':[{'rounded-br':[i]}],'rounded-bl':[{'rounded-bl':[i]}],'border-w':[{border:[s]}],'border-w-x':[{'border-x':[s]}],'border-w-y':[{'border-y':[s]}],'border-w-s':[{'border-s':[s]}],'border-w-e':[{'border-e':[s]}],'border-w-t':[{'border-t':[s]}],'border-w-r':[{'border-r':[s]}],'border-w-b':[{'border-b':[s]}],'border-w-l':[{'border-l':[s]}],'border-opacity':[{'border-opacity':[m]}],'border-style':[{border:[].concat(['solid','dashed','dotted','double','none'],['hidden'])}],'divide-x':[{'divide-x':[s]}],'divide-x-reverse':['divide-x-reverse'],'divide-y':[{'divide-y':[s]}],'divide-y-reverse':['divide-y-reverse'],'divide-opacity':[{'divide-opacity':[m]}],'divide-style':[{divide:['solid','dashed','dotted','double','none']}],'border-color':[{border:[r]}],'border-color-x':[{'border-x':[r]}],'border-color-y':[{'border-y':[r]}],'border-color-t':[{'border-t':[r]}],'border-color-r':[{'border-r':[r]}],'border-color-b':[{'border-b':[r]}],'border-color-l':[{'border-l':[r]}],'divide-color':[{divide:[r]}],'outline-style':[{outline:[''].concat(['solid','dashed','dotted','double','none'])}],'outline-offset':[{'outline-offset':[se,Jt]}],'outline-w':[{outline:[Jt]}],'outline-color':[{outline:[t]}],'ring-w':[{ring:Q()}],'ring-w-inset':['ring-inset'],'ring-color':[{ring:[t]}],'ring-opacity':[{'ring-opacity':[m]}],'ring-offset-w':[{'ring-offset':[Jt]}],'ring-offset-color':[{'ring-offset':[t]}],shadow:[{shadow:['','inner','none',ce,le]}],'shadow-color':[{shadow:[ae]}],opacity:[{opacity:[m]}],'mix-blend':[{'mix-blend':['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity','plus-lighter']}],'bg-blend':[{'bg-blend':['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity','plus-lighter']}],filter:[{filter:['','none']}],blur:[{blur:[n]}],brightness:[{brightness:[A]}],contrast:[{contrast:[a]}],'drop-shadow':[{'drop-shadow':['','none',ce,se]}],grayscale:[{grayscale:[c]}],'hue-rotate':[{'hue-rotate':[l]}],invert:[{invert:[u]}],saturate:[{saturate:[v]}],sepia:[{sepia:[w]}],'backdrop-filter':[{'backdrop-filter':['','none']}],'backdrop-blur':[{'backdrop-blur':[n]}],'backdrop-brightness':[{'backdrop-brightness':[A]}],'backdrop-contrast':[{'backdrop-contrast':[a]}],'backdrop-grayscale':[{'backdrop-grayscale':[c]}],'backdrop-hue-rotate':[{'backdrop-hue-rotate':[l]}],'backdrop-invert':[{'backdrop-invert':[u]}],'backdrop-opacity':[{'backdrop-opacity':[m]}],'backdrop-saturate':[{'backdrop-saturate':[v]}],'backdrop-sepia':[{'backdrop-sepia':[w]}],'border-collapse':[{border:['collapse','separate']}],'border-spacing':[{'border-spacing':[o]}],'border-spacing-x':[{'border-spacing-x':[o]}],'border-spacing-y':[{'border-spacing-y':[o]}],'table-layout':[{table:['auto','fixed']}],caption:[{caption:['top','bottom']}],transition:[{transition:['none','all','','colors','opacity','shadow','transform',se]}],duration:[{duration:L()}],ease:[{ease:['linear','in','out','in-out',se]}],delay:[{delay:L()}],animate:[{animate:['none','spin','ping','pulse','bounce',se]}],transform:[{transform:['','gpu','none']}],scale:[{scale:[y]}],'scale-x':[{'scale-x':[y]}],'scale-y':[{'scale-y':[y]}],rotate:[{rotate:[oe,se]}],'translate-x':[{'translate-x':[x]}],'translate-y':[{'translate-y':[x]}],'skew-x':[{'skew-x':[B]}],'skew-y':[{'skew-y':[B]}],'transform-origin':[{origin:['center','top','top-right','right','bottom-right','bottom','bottom-left','left','top-left',se]}],accent:[{accent:['auto',t]}],appearance:['appearance-none'],cursor:[{cursor:['auto','default','pointer','wait','text','move','help','not-allowed','none','context-menu','progress','cell','crosshair','vertical-text','alias','copy','no-drop','grab','grabbing','all-scroll','col-resize','row-resize','n-resize','e-resize','s-resize','w-resize','ne-resize','nw-resize','se-resize','sw-resize','ew-resize','ns-resize','nesw-resize','nwse-resize','zoom-in','zoom-out',se]}],'caret-color':[{caret:[t]}],'pointer-events':[{'pointer-events':['none','auto']}],resize:[{resize:['none','y','x','']}],'scroll-behavior':[{scroll:['auto','smooth']}],'scroll-m':[{'scroll-m':I()}],'scroll-mx':[{'scroll-mx':I()}],'scroll-my':[{'scroll-my':I()}],'scroll-ms':[{'scroll-ms':I()}],'scroll-me':[{'scroll-me':I()}],'scroll-mt':[{'scroll-mt':I()}],'scroll-mr':[{'scroll-mr':I()}],'scroll-mb':[{'scroll-mb':I()}],'scroll-ml':[{'scroll-ml':I()}],'scroll-p':[{'scroll-p':I()}],'scroll-px':[{'scroll-px':I()}],'scroll-py':[{'scroll-py':I()}],'scroll-ps':[{'scroll-ps':I()}],'scroll-pe':[{'scroll-pe':I()}],'scroll-pt':[{'scroll-pt':I()}],'scroll-pr':[{'scroll-pr':I()}],'scroll-pb':[{'scroll-pb':I()}],'scroll-pl':[{'scroll-pl':I()}],'snap-align':[{snap:['start','end','center','align-none']}],'snap-stop':[{snap:['normal','always']}],'snap-type':[{snap:['none','x','y','both']}],'snap-strictness':[{snap:['mandatory','proximity']}],touch:[{touch:['auto','none','pinch-zoom','manipulation',{pan:['x','left','right','y','up','down']}]}],select:[{select:['none','text','all','auto']}],'will-change':[{'will-change':['auto','scroll','contents','transform',se]}],fill:[{fill:[t,'none']}],'stroke-w':[{stroke:[Jt,Ae]}],stroke:[{stroke:[t,'none']}],sr:['sr-only','not-sr-only']},conflictingClassGroups:{overflow:['overflow-x','overflow-y'],overscroll:['overscroll-x','overscroll-y'],inset:['inset-x','inset-y','start','end','top','right','bottom','left'],'inset-x':['right','left'],'inset-y':['top','bottom'],flex:['basis','grow','shrink'],gap:['gap-x','gap-y'],p:['px','py','ps','pe','pt','pr','pb','pl'],px:['pr','pl'],py:['pt','pb'],m:['mx','my','ms','me','mt','mr','mb','ml'],mx:['mr','ml'],my:['mt','mb'],'font-size':['leading'],'fvn-normal':['fvn-ordinal','fvn-slashed-zero','fvn-figure','fvn-spacing','fvn-fraction'],'fvn-ordinal':['fvn-normal'],'fvn-slashed-zero':['fvn-normal'],'fvn-figure':['fvn-normal'],'fvn-spacing':['fvn-normal'],'fvn-fraction':['fvn-normal'],rounded:['rounded-s','rounded-e','rounded-t','rounded-r','rounded-b','rounded-l','rounded-ss','rounded-se','rounded-ee','rounded-es','rounded-tl','rounded-tr','rounded-br','rounded-bl'],'rounded-s':['rounded-ss','rounded-es'],'rounded-e':['rounded-se','rounded-ee'],'rounded-t':['rounded-tl','rounded-tr'],'rounded-r':['rounded-tr','rounded-br'],'rounded-b':['rounded-br','rounded-bl'],'rounded-l':['rounded-tl','rounded-bl'],'border-spacing':['border-spacing-x','border-spacing-y'],'border-w':['border-w-s','border-w-e','border-w-t','border-w-r','border-w-b','border-w-l'],'border-w-x':['border-w-r','border-w-l'],'border-w-y':['border-w-t','border-w-b'],'border-color':['border-color-t','border-color-r','border-color-b','border-color-l'],'border-color-x':['border-color-r','border-color-l'],'border-color-y':['border-color-t','border-color-b'],'scroll-m':['scroll-mx','scroll-my','scroll-ms','scroll-me','scroll-mt','scroll-mr','scroll-mb','scroll-ml'],'scroll-mx':['scroll-mr','scroll-ml'],'scroll-my':['scroll-mt','scroll-mb'],'scroll-p':['scroll-px','scroll-py','scroll-ps','scroll-pe','scroll-pt','scroll-pr','scroll-pb','scroll-pl'],'scroll-px':['scroll-pr','scroll-pl'],'scroll-py':['scroll-pt','scroll-pb']},conflictingClassGroupModifiers:{'font-size':['leading']}}}var be,ve,ye,we=jt(me),Be=['a','abbr','address','area','article','aside','audio','b','base','bdi','bdo','big','blockquote','body','br','button','canvas','caption','cite','code','col','colgroup','data','datalist','dd','del','details','dfn','dialog','div','dl','dt','em','embed','fieldset','figcaption','figure','footer','form','h1','h2','h3','h4','h5','h6','head','header','hgroup','hr','html','i','iframe','img','input','ins','kbd','keygen','label','legend','li','link','main','map','mark','menu','menuitem','meta','meter','nav','noscript','object','ol','optgroup','option','output','p','param','picture','pre','progress','q','rp','rt','ruby','s','samp','script','section','select','small','source','span','strong','style','sub','summary','sup','table','tbody','td','textarea','tfoot','th','thead','time','title','tr','track','u','ul','var','video','wbr','circle','clipPath','defs','ellipse','foreignObject','g','image','line','linearGradient','marker','mask','path','pattern','polygon','polyline','radialGradient','rect','stop','svg','text','tspan'],Ce=Symbol('isTwElement?'),xe=(t,e)=>t.reduce(((t,n,A)=>t.concat(n||[],e[A]||[])),[]),Fe=(t,e='')=>{let n=t.join(' ').trim().replace(/\n/g,' ').replace(/\s{2,}/g,' ').split(' ').filter((t=>','!==t)),A=e?e.split(' '):[];return we(...n.concat(A).filter((t=>' '!==t)))},Ie=([t])=>'$'!==t.charAt(0),Qe=t=>!0===t[Ce],Ee=t=>(n,...A)=>{let r=(i=[])=>{let o=e.forwardRef(((r,o)=>{let{$as:s=t,style:a={},...c}=r,l=Qe(t)?t:s,u=i?i.reduce(((t,e)=>Object.assign(t,'function'==typeof e?e(r):e)),{}):{},h=Qe(l)?c:Object.fromEntries(Object.entries(c).filter(Ie));return e.createElement(l,{...h,style:{...u,...a},ref:o,className:Fe(xe(n,A.map((t=>t({...c,$as:s})))),c.className),...Qe(t)?{$as:s}:{}})}));return o[Ce]=!0,o.displayName='string'!=typeof t?t.displayName||t.name||'tw.Component':'tw.'+t,o.withStyle=t=>r(i.concat(t)),o};return r()},Se=Be.reduce(((t,e)=>({...t,[e]:Ee(e)})),{}),Ue=Object.assign(Ee,Se),Le=Ue.button(be||(be=Lt(['\n bg-primary\n h-fit\n rounded-lg\n text-white\n ','\n ','\n ','\n ','\n ','\n p-2\n flex\n items-center\n justify-center\n'],['\n bg-primary\n h-fit\n rounded-lg\n text-white\n ','\n ','\n ','\n ','\n ','\n p-2\n flex\n items-center\n justify-center\n'])),(function(t){return t.disabled?'cursor-not-allowed\n opacity-25 \n ':''}),(function(t){return t.$fullWidth?'grow':'grow-0'}),(function(t){return'outline'===t.$fill||'text'===t.$fill?'\n border-solid\n border-2\n text-black\n':''}),(function(t){return'outline'===t.$fill?'\n bg-transparent\n border-black\n':''}),(function(t){return'text'===t.$fill?'\n bg-lavender_blush\n border-light_pink\n ':''})),Ne=Ue.span(ve||(ve=Lt(['\n mr-2\n flex\n items-center\n'],['\n mr-2\n flex\n items-center\n']))),ke=Ue.button(ye||(ye=Lt(['\n bg-transparent\n p-0\n m-0\n inline-flex\n justify-center\n align-middle\n ','\n'],['\n bg-transparent\n p-0\n m-0\n inline-flex\n justify-center\n align-middle\n ','\n'])),(function(t){return t.disabled?'cursor-not-allowed\n opacity-25 \n ':''})),_e=function(t,e){var n='function'==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var A,r,i=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(A=i.next()).done;)o.push(A.value)}catch(t){r={error:t}}finally{try{A&&!A.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},Pe=function(t){return t.split(/ ?; ?/).reduce((function(t,e){var n=_e(e.split(/ ?: ?/),2),A=n[0],r=n[1];return A&&r&&(t[A.replace(/-(\w)/g,(function(t,e){return e.toUpperCase()}))]=Number.isNaN(Number(r))?r:Number(r)),t}),{})};var Oe=['br','col','colgroup','dl','hr','iframe','img','input','link','menuitem','meta','ol','param','select','table','tbody','tfoot','thead','tr','ul','wbr'],Me={'accept-charset':'acceptCharset',acceptcharset:'acceptCharset',accesskey:'accessKey',allowfullscreen:'allowFullScreen',autocapitalize:'autoCapitalize',autocomplete:'autoComplete',autocorrect:'autoCorrect',autofocus:'autoFocus',autoplay:'autoPlay',autosave:'autoSave',cellpadding:'cellPadding',cellspacing:'cellSpacing',charset:'charSet',class:'className',classid:'classID',classname:'className',colspan:'colSpan',contenteditable:'contentEditable',contextmenu:'contextMenu',controlslist:'controlsList',crossorigin:'crossOrigin',dangerouslysetinnerhtml:'dangerouslySetInnerHTML',datetime:'dateTime',defaultchecked:'defaultChecked',defaultvalue:'defaultValue',enctype:'encType',for:'htmlFor',formmethod:'formMethod',formaction:'formAction',formenctype:'formEncType',formnovalidate:'formNoValidate',formtarget:'formTarget',frameborder:'frameBorder',hreflang:'hrefLang',htmlfor:'htmlFor',httpequiv:'httpEquiv','http-equiv':'httpEquiv',icon:'icon',innerhtml:'innerHTML',inputmode:'inputMode',itemid:'itemID',itemprop:'itemProp',itemref:'itemRef',itemscope:'itemScope',itemtype:'itemType',keyparams:'keyParams',keytype:'keyType',marginwidth:'marginWidth',marginheight:'marginHeight',maxlength:'maxLength',mediagroup:'mediaGroup',minlength:'minLength',nomodule:'noModule',novalidate:'noValidate',playsinline:'playsInline',radiogroup:'radioGroup',readonly:'readOnly',referrerpolicy:'referrerPolicy',rowspan:'rowSpan',spellcheck:'spellCheck',srcdoc:'srcDoc',srclang:'srcLang',srcset:'srcSet',tabindex:'tabIndex',typemustmatch:'typeMustMatch',usemap:'useMap',accentheight:'accentHeight','accent-height':'accentHeight',alignmentbaseline:'alignmentBaseline','alignment-baseline':'alignmentBaseline',allowreorder:'allowReorder',arabicform:'arabicForm','arabic-form':'arabicForm',attributename:'attributeName',attributetype:'attributeType',autoreverse:'autoReverse',basefrequency:'baseFrequency',baselineshift:'baselineShift','baseline-shift':'baselineShift',baseprofile:'baseProfile',calcmode:'calcMode',capheight:'capHeight','cap-height':'capHeight',clippath:'clipPath','clip-path':'clipPath',clippathunits:'clipPathUnits',cliprule:'clipRule','clip-rule':'clipRule',colorinterpolation:'colorInterpolation','color-interpolation':'colorInterpolation',colorinterpolationfilters:'colorInterpolationFilters','color-interpolation-filters':'colorInterpolationFilters',colorprofile:'colorProfile','color-profile':'colorProfile',colorrendering:'colorRendering','color-rendering':'colorRendering',contentscripttype:'contentScriptType',contentstyletype:'contentStyleType',diffuseconstant:'diffuseConstant',dominantbaseline:'dominantBaseline','dominant-baseline':'dominantBaseline',edgemode:'edgeMode',enablebackground:'enableBackground','enable-background':'enableBackground',externalresourcesrequired:'externalResourcesRequired',fillopacity:'fillOpacity','fill-opacity':'fillOpacity',fillrule:'fillRule','fill-rule':'fillRule',filterres:'filterRes',filterunits:'filterUnits',floodopacity:'floodOpacity','flood-opacity':'floodOpacity',floodcolor:'floodColor','flood-color':'floodColor',fontfamily:'fontFamily','font-family':'fontFamily',fontsize:'fontSize','font-size':'fontSize',fontsizeadjust:'fontSizeAdjust','font-size-adjust':'fontSizeAdjust',fontstretch:'fontStretch','font-stretch':'fontStretch',fontstyle:'fontStyle','font-style':'fontStyle',fontvariant:'fontVariant','font-variant':'fontVariant',fontweight:'fontWeight','font-weight':'fontWeight',glyphname:'glyphName','glyph-name':'glyphName',glyphorientationhorizontal:'glyphOrientationHorizontal','glyph-orientation-horizontal':'glyphOrientationHorizontal',glyphorientationvertical:'glyphOrientationVertical','glyph-orientation-vertical':'glyphOrientationVertical',glyphref:'glyphRef',gradienttransform:'gradientTransform',gradientunits:'gradientUnits',horizadvx:'horizAdvX','horiz-adv-x':'horizAdvX',horizoriginx:'horizOriginX','horiz-origin-x':'horizOriginX',imagerendering:'imageRendering','image-rendering':'imageRendering',kernelmatrix:'kernelMatrix',kernelunitlength:'kernelUnitLength',keypoints:'keyPoints',keysplines:'keySplines',keytimes:'keyTimes',lengthadjust:'lengthAdjust',letterspacing:'letterSpacing','letter-spacing':'letterSpacing',lightingcolor:'lightingColor','lighting-color':'lightingColor',limitingconeangle:'limitingConeAngle',markerend:'markerEnd','marker-end':'markerEnd',markerheight:'markerHeight',markermid:'markerMid','marker-mid':'markerMid',markerstart:'markerStart','marker-start':'markerStart',markerunits:'markerUnits',markerwidth:'markerWidth',maskcontentunits:'maskContentUnits',maskunits:'maskUnits',numoctaves:'numOctaves',overlineposition:'overlinePosition','overline-position':'overlinePosition',overlinethickness:'overlineThickness','overline-thickness':'overlineThickness',paintorder:'paintOrder','paint-order':'paintOrder','panose-1':'panose1',pathlength:'pathLength',patterncontentunits:'patternContentUnits',patterntransform:'patternTransform',patternunits:'patternUnits',pointerevents:'pointerEvents','pointer-events':'pointerEvents',pointsatx:'pointsAtX',pointsaty:'pointsAtY',pointsatz:'pointsAtZ',preservealpha:'preserveAlpha',preserveaspectratio:'preserveAspectRatio',primitiveunits:'primitiveUnits',refx:'refX',refy:'refY',renderingintent:'renderingIntent','rendering-intent':'renderingIntent',repeatcount:'repeatCount',repeatdur:'repeatDur',requiredextensions:'requiredExtensions',requiredfeatures:'requiredFeatures',shaperendering:'shapeRendering','shape-rendering':'shapeRendering',specularconstant:'specularConstant',specularexponent:'specularExponent',spreadmethod:'spreadMethod',startoffset:'startOffset',stddeviation:'stdDeviation',stitchtiles:'stitchTiles',stopcolor:'stopColor','stop-color':'stopColor',stopopacity:'stopOpacity','stop-opacity':'stopOpacity',strikethroughposition:'strikethroughPosition','strikethrough-position':'strikethroughPosition',strikethroughthickness:'strikethroughThickness','strikethrough-thickness':'strikethroughThickness',strokedasharray:'strokeDasharray','stroke-dasharray':'strokeDasharray',strokedashoffset:'strokeDashoffset','stroke-dashoffset':'strokeDashoffset',strokelinecap:'strokeLinecap','stroke-linecap':'strokeLinecap',strokelinejoin:'strokeLinejoin','stroke-linejoin':'strokeLinejoin',strokemiterlimit:'strokeMiterlimit','stroke-miterlimit':'strokeMiterlimit',strokewidth:'strokeWidth','stroke-width':'strokeWidth',strokeopacity:'strokeOpacity','stroke-opacity':'strokeOpacity',suppresscontenteditablewarning:'suppressContentEditableWarning',suppresshydrationwarning:'suppressHydrationWarning',surfacescale:'surfaceScale',systemlanguage:'systemLanguage',tablevalues:'tableValues',targetx:'targetX',targety:'targetY',textanchor:'textAnchor','text-anchor':'textAnchor',textdecoration:'textDecoration','text-decoration':'textDecoration',textlength:'textLength',textrendering:'textRendering','text-rendering':'textRendering',underlineposition:'underlinePosition','underline-position':'underlinePosition',underlinethickness:'underlineThickness','underline-thickness':'underlineThickness',unicodebidi:'unicodeBidi','unicode-bidi':'unicodeBidi',unicoderange:'unicodeRange','unicode-range':'unicodeRange',unitsperem:'unitsPerEm','units-per-em':'unitsPerEm',unselectable:'unselectable',valphabetic:'vAlphabetic','v-alphabetic':'vAlphabetic',vectoreffect:'vectorEffect','vector-effect':'vectorEffect',vertadvy:'vertAdvY','vert-adv-y':'vertAdvY',vertoriginx:'vertOriginX','vert-origin-x':'vertOriginX',vertoriginy:'vertOriginY','vert-origin-y':'vertOriginY',vhanging:'vHanging','v-hanging':'vHanging',videographic:'vIdeographic','v-ideographic':'vIdeographic',viewbox:'viewBox',viewtarget:'viewTarget',vmathematical:'vMathematical','v-mathematical':'vMathematical',wordspacing:'wordSpacing','word-spacing':'wordSpacing',writingmode:'writingMode','writing-mode':'writingMode',xchannelselector:'xChannelSelector',xheight:'xHeight','x-height':'xHeight',xlinkactuate:'xlinkActuate','xlink:actuate':'xlinkActuate',xlinkarcrole:'xlinkArcrole','xlink:arcrole':'xlinkArcrole',xlinkhref:'xlinkHref','xlink:href':'xlinkHref',xlinkrole:'xlinkRole','xlink:role':'xlinkRole',xlinkshow:'xlinkShow','xlink:show':'xlinkShow',xlinktitle:'xlinkTitle','xlink:title':'xlinkTitle',xlinktype:'xlinkType','xlink:type':'xlinkType',xmlbase:'xmlBase','xml:base':'xmlBase',xmllang:'xmlLang','xml:lang':'xmlLang','xml:space':'xmlSpace',xmlnsxlink:'xmlnsXlink','xmlns:xlink':'xmlnsXlink',xmlspace:'xmlSpace',ychannelselector:'yChannelSelector',zoomandpan:'zoomAndPan',onblur:'onBlur',onchange:'onChange',onclick:'onClick',oncontextmenu:'onContextMenu',ondoubleclick:'onDoubleClick',ondrag:'onDrag',ondragend:'onDragEnd',ondragenter:'onDragEnter',ondragexit:'onDragExit',ondragleave:'onDragLeave',ondragover:'onDragOver',ondragstart:'onDragStart',ondrop:'onDrop',onerror:'onError',onfocus:'onFocus',oninput:'onInput',oninvalid:'onInvalid',onkeydown:'onKeyDown',onkeypress:'onKeyPress',onkeyup:'onKeyUp',onload:'onLoad',onmousedown:'onMouseDown',onmouseenter:'onMouseEnter',onmouseleave:'onMouseLeave',onmousemove:'onMouseMove',onmouseout:'onMouseOut',onmouseover:'onMouseOver',onmouseup:'onMouseUp',onscroll:'onScroll',onsubmit:'onSubmit',ontouchcancel:'onTouchCancel',ontouchend:'onTouchEnd',ontouchmove:'onTouchMove',ontouchstart:'onTouchStart',onwheel:'onWheel'},He=function(){return He=Object.assign||function(t){for(var e,n=1,A=arguments.length;n<A;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},He.apply(this,arguments)},Te=function(t,e){var n='function'==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var A,r,i=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(A=i.next()).done;)o.push(A.value)}catch(t){r={error:t}}finally{try{A&&!A.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},De=function(t,e,n){if(n||2===arguments.length)for(var A,r=0,i=e.length;r<i;r++)!A&&r in e||(A||(A=Array.prototype.slice.call(e,0,r)),A[r]=e[r]);return t.concat(A||Array.prototype.slice.call(e))};function Re(e,n){var A;if(void 0===n&&(n={}),!(e&&e instanceof Node))return null;var r,i=n.actions,o=void 0===i?[]:i,s=n.index,a=void 0===s?0:s,c=n.level,l=void 0===c?0:c,u=n.randomKey,h=e,d=''.concat(l,'-').concat(a),f=[];if(u&&0===l&&(d=''.concat(function(t){void 0===t&&(t=6);for(var e='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',n='',A=t;A>0;--A)n+=e[Math.round(61*Math.random())];return n}(),'-').concat(d)),Array.isArray(o)&&o.forEach((function(t){t.condition(h,d,l)&&('function'==typeof t.pre&&((h=t.pre(h,d,l))instanceof Node||(h=e,process.env.NODE_ENV)),'function'==typeof t.post&&f.push(t.post(h,d,l)))})),f.length)return f;switch(h.nodeType){case 1:return t.createElement((r=h.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(r)?r:r.toLowerCase()),function(t,e){var n={key:e};if(t instanceof Element){var A=t.getAttribute('class');A&&(n.className=A),De([],Te(t.attributes),!1).forEach((function(t){switch(t.name){case'class':break;case'style':n[t.name]=Pe(t.value);break;case'allowfullscreen':case'allowpaymentrequest':case'async':case'autofocus':case'autoplay':case'checked':case'controls':case'default':case'defer':case'disabled':case'formnovalidate':case'hidden':case'ismap':case'itemscope':case'loop':case'multiple':case'muted':case'nomodule':case'novalidate':case'open':case'readonly':case'required':case'reversed':case'selected':case'typemustmatch':n[Me[t.name]||t.name]=!0;break;default:n[Me[t.name]||t.name]=t.value}}))}return n}(h,d),function(t,e,n){var A=De([],Te(t),!1).map((function(t,A){return Re(t,He(He({},n),{index:A,level:e+1}))})).filter(Boolean);return A.length?A:null}(h.childNodes,l,n));case 3:var g=(null===(A=h.nodeValue)||void 0===A?void 0:A.toString())||'';if(/^\s+$/.test(g)&&!/[\u00A0\u202F]/.test(g))return null;if(!h.parentNode)return g;var p=h.parentNode.nodeName.toLowerCase();return Oe.includes(p)?(/\S/.test(g),null):g;default:return null}}function Ve(t,e){return void 0===e&&(e={}),'string'==typeof t?function(t,e){if(void 0===e&&(e={}),!t||'string'!=typeof t)return null;var n=e.nodeOnly,A=void 0!==n&&n,r=e.selector,i=void 0===r?'body > *':r,o=e.type,s=void 0===o?'text/html':o;try{var a=(new DOMParser).parseFromString(t,s).querySelector(i);if(!(a instanceof Node))throw new TypeError('Error parsing input');return A?a:Re(a,e)}catch(t){process.env.NODE_ENV}return null}(t,e):t instanceof Node?Re(t,e):null}var Ge=Object.defineProperty,je=(t,e,n)=>(((t,e,n)=>{e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,'symbol'!=typeof e?e+'':e,n),n),We='react-inlinesvg',Ke={IDLE:'idle',LOADING:'loading',LOADED:'loaded',FAILED:'failed',READY:'ready',UNSUPPORTED:'unsupported'};function Xe(){return!('undefined'==typeof window||!window.document||!window.document.createElement)}function ze(){return function(){if(!document)return!1;const t=document.createElement('div');t.innerHTML='<svg />';const e=t.firstChild;return!!e&&'http://www.w3.org/2000/svg'===e.namespaceURI}()&&'undefined'!=typeof window&&null!==window}async function Ze(t,e){const n=await fetch(t,e),A=n.headers.get('content-type'),[r]=(A??'').split(/ ?; ?/);if(n.status>299)throw new Error('Not found');if(!['image/svg+xml','text/plain'].some((t=>r.includes(t))))throw new Error(`Content type isn't valid: ${r}`);return n.text()}function Ye(t=1){return new Promise((e=>{setTimeout(e,1e3*t)}))}function qe(t){return t[Math.floor(Math.random()*t.length)]}var Je,$e=class{constructor(){je(this,'cacheApi'),je(this,'cacheStore'),je(this,'subscribers',[]),je(this,'isReady',!1),this.cacheStore=new Map;let t=We,e=!1;Xe()&&(t=window.REACT_INLINESVG_CACHE_NAME??We,e=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&'caches'in window),e?caches.open(t).then((t=>{this.cacheApi=t,this.isReady=!0,this.subscribers.forEach((t=>t()))})).catch((t=>{this.isReady=!0})):this.isReady=!0}onReady(t){this.isReady?t():this.subscribers.push(t)}async get(t,e){return await(this.cacheApi?this.fetchAndAddToPersistentCache(t,e):this.fetchAndAddToInternalCache(t,e)),this.cacheStore.get(t)?.content??''}set(t,e){this.cacheStore.set(t,e)}isCached(t){return this.cacheStore.get(t)?.status===Ke.LOADED}async fetchAndAddToInternalCache(t,e){const n=this.cacheStore.get(t);if(n?.status!==Ke.LOADING){if(!n?.content){this.cacheStore.set(t,{content:'',status:Ke.LOADING});try{const n=await Ze(t,e);this.cacheStore.set(t,{content:n,status:Ke.LOADED})}catch(e){throw this.cacheStore.set(t,{content:'',status:Ke.FAILED}),e}}}else await this.handleLoading(t,(async()=>{this.cacheStore.set(t,{content:'',status:Ke.IDLE}),await this.fetchAndAddToInternalCache(t,e)}))}async fetchAndAddToPersistentCache(t,e){const n=this.cacheStore.get(t);if(n?.status===Ke.LOADED)return;if(n?.status===Ke.LOADING)return void await this.handleLoading(t,(async()=>{this.cacheStore.set(t,{content:'',status:Ke.IDLE}),await this.fetchAndAddToPersistentCache(t,e)}));this.cacheStore.set(t,{content:'',status:Ke.LOADING});const A=await(this.cacheApi?.match(t));if(A){const e=await A.text();this.cacheStore.set(t,{content:e,status:Ke.LOADED})}else try{await(this.cacheApi?.add(new Request(t,e)));const n=await(this.cacheApi?.match(t)),A=await(n?.text())??'';this.cacheStore.set(t,{content:A,status:Ke.LOADED})}catch(e){throw this.cacheStore.set(t,{content:'',status:Ke.FAILED}),e}}async handleLoading(t,e){let n=0;for(;this.cacheStore.get(t)?.status===Ke.LOADING&&n<10;)await Ye(.1),n+=1;n>=10&&await e()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map((([t,e])=>({[t]:e})))}async delete(t){this.cacheApi&&await this.cacheApi.delete(t),this.cacheStore.delete(t)}async clear(){if(this.cacheApi){const t=await this.cacheApi.keys();for(const e of t)await this.cacheApi.delete(e)}this.cacheStore.clear()}};function tn(t){const e=n();return r((()=>{e.current=t})),e.current}function en(t){const{baseURL:e,content:n,description:A,handleError:r,hash:i,preProcessor:o,title:s,uniquifyIDs:a=!1}=t;try{const t=function(t,e){if(e)return e(t);return t}(n,o),r=Ve(t,{nodeOnly:!0});if(!(r&&r instanceof SVGSVGElement))throw new Error('Could not convert the src to a DOM Node');const c=nn(r,{baseURL:e,hash:i,uniquifyIDs:a});if(A){const t=c.querySelector('desc');t?.parentNode&&t.parentNode.removeChild(t);const e=document.createElementNS('http://www.w3.org/2000/svg','desc');e.innerHTML=A,c.prepend(e)}if(void 0!==s){const t=c.querySelector('title');if(t?.parentNode&&t.parentNode.removeChild(t),s){const t=document.createElementNS('http://www.w3.org/2000/svg','title');t.innerHTML=s,c.prepend(t)}}return c}catch(t){return r(t)}}function nn(t,e){const{baseURL:n='',hash:A,uniquifyIDs:r}=e,i=['id','href','xlink:href','xlink:role','xlink:arcrole'],o=['href','xlink:href'];return r?([...t.children].forEach((t=>{if(t.attributes?.length){const e=Object.values(t.attributes).map((t=>{const e=t,r=/url\((.*?)\)/.exec(t.value);return r?.[1]&&(e.value=t.value.replace(r[0],`url(${n}${r[1]}__${A})`)),e}));i.forEach((t=>{const n=e.find((e=>e.name===t));var r,i;n&&(r=t,i=n.value,!o.includes(r)||!i||i.includes('#'))&&(n.value=`${n.value}__${A}`)}))}return t.children.length?nn(t,e):t})),t):t}function An(t){const{cacheRequests:e=!0,children:A=null,description:c,fetchOptions:l,innerRef:u,loader:h=null,onError:d,onLoad:f,src:g,title:p,uniqueHash:m}=t,[b,v]=i(((t,e)=>({...t,...e})),{content:'',element:null,isCached:e&&Je.isCached(t.src),status:Ke.IDLE}),{content:y,element:w,isCached:B,status:C}=b,x=tn(t),F=tn(b),I=n(m??function(t){const e='abcdefghijklmnopqrstuvwxyz',n=`${e}${e.toUpperCase()}1234567890`;let A='';for(let e=0;e<t;e++)A+=qe(n);return A}(8)),Q=n(!1),E=n(!1),S=o((t=>{Q.current&&(v({status:'Browser does not support SVG'===t.message?Ke.UNSUPPORTED:Ke.FAILED}),d?.(t))}),[d]),U=o(((t,e=!1)=>{Q.current&&v({content:t,isCached:e,status:Ke.LOADED})}),[]),L=o((async()=>{const t=await Ze(g,l);U(t)}),[l,U,g]),N=o((()=>{try{const e=Ve(en({...t,handleError:S,hash:I.current,content:y}));if(!e||!s(e))throw new Error('Could not convert the src to a React element');v({element:e,status:Ke.READY})}catch(t){S(new Error(t.message))}}),[y,S,t]),k=o((async()=>{const t=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(g);let n;if(t?n=t[1]?window.atob(t[2]):decodeURIComponent(t[2]):g.includes('<svg')&&(n=g),n)U(n);else try{if(e){const t=await Je.get(g,l);U(t,!0)}else await L()}catch(t){S(t)}}),[e,L,l,S,U,g]),_=o((async()=>{Q.current&&v({content:'',element:null,isCached:!1,status:Ke.LOADING})}),[]);r((()=>{if(Q.current=!0,!Xe()||E.current)return()=>{};try{if(C===Ke.IDLE){if(!ze())throw new Error('Browser does not support SVG');if(!g)throw new Error('Missing src');_()}}catch(t){S(t)}return E.current=!0,()=>{Q.current=!1}}),[]),r((()=>{if(Xe()&&x)if(x.src!==g){if(!g)return void S(new Error('Missing src'));_()}else x.title===p&&x.description===c||N()}),[c,N,S,_,x,g,p]),r((()=>{F&&(F.status!==Ke.LOADING&&C===Ke.LOADING&&k(),F.status!==Ke.LOADED&&C===Ke.LOADED&&N(),F.status!==Ke.READY&&C===Ke.READY&&f?.(g,B))}),[k,N,B,f,F,g,C]);const P=function(t,...e){const n={};for(const A in t)({}).hasOwnProperty.call(t,A)&&(e.includes(A)||(n[A]=t[A]));return n}(t,'baseURL','cacheRequests','children','description','fetchOptions','innerRef','loader','onError','onLoad','preProcessor','src','title','uniqueHash','uniquifyIDs');return Xe()?w?a(w,{ref:u,...P}):[Ke.UNSUPPORTED,Ke.FAILED].includes(C)?A:h:h}function rn(t){Je||(Je=new $e);const{loader:e}=t,i=n(!1),[o,s]=A(Je.isReady);return r((()=>{i.current||(Je.onReady((()=>{s(!0)})),i.current=!0)}),[]),o?b(An,{...t}):e}var on,sn,an=function(t){var n=t.svg,A=t.size,r=void 0===A?24:A,i=t.title,o=t.iconColor,s=void 0===o?'fill-black':o;return e.createElement('div',{className:s},e.createElement(rn,{src:n,width:r,height:r,className:'inline-block align-middle',title:i,loader:e.createElement('span',null,'Loading...'),onError:function(t){}}))},cn=function(t){var n=t.icon,A=t.children,r=t.$fill,i=t.iconColor,o=Qt(t,['icon','children','$fill','iconColor']);return e.createElement(Le,It({$fill:r},o),n&&e.createElement(Ne,null,e.createElement(an,{svg:n,iconColor:i})),A)},ln=function(t){var n=t.name,A=t.ariaLabel,r=t.toolTip,i=t.icon,o=t.iconColor,s=Qt(t,['name','ariaLabel','toolTip','icon','iconColor']);return e.createElement(ke,It({'aria-label':A,title:null!=r?r:n},s),e.createElement(an,{svg:i,iconColor:o}))},un=Ue.div(on||(on=Lt(['\n flex\n border-solid\n border-2\n border-gainsboro\n rounded-md\n h-10\n flex\n items-center\n px-3\n gap-x-3\n'],['\n flex\n border-solid\n border-2\n border-gainsboro\n rounded-md\n h-10\n flex\n items-center\n px-3\n gap-x-3\n']))),hn=Ue.input(sn||(sn=Lt(['\n ','\n h-full\n bg-transparent\n focus:outline-none\n'],['\n ','\n h-full\n bg-transparent\n focus:outline-none\n'])),(function(t){return t.$fullWidth?'grow':'grow-0'})),dn=function(t){var n=Qt(t,[]);return e.createElement(un,null,e.createElement('div',null,e.createElement(an,{svg:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M21.71%2C20.29l-3.68-3.68c1.23-1.54%2C1.98-3.49%2C1.98-5.61%2C0-4.96-4.04-9-9-9S2%2C6.04%2C2%2C11s4.04%2C9%2C9%2C9c2.12%2C0%2C4.07-.74%2C5.61-1.98l3.68%2C3.68c.2%2C.2%2C.45%2C.29%2C.71%2C.29s.51-.1%2C.71-.29c.39-.39%2C.39-1.02%2C0-1.41ZM4%2C11c0-3.86%2C3.14-7%2C7-7s7%2C3.14%2C7%2C7c0%2C1.92-.78%2C3.66-2.04%2C4.93%2C0%2C0-.02%2C0-.02%2C.01s0%2C.02-.01%2C.02c-1.27%2C1.26-3.01%2C2.04-4.93%2C2.04-3.86%2C0-7-3.14-7-7Z%22%2F%3E%3C%2Fsvg%3E'})),e.createElement(hn,It({},n)))},fn=Ue.div(mn||(mn=Lt(['\n bg-white\n px-10\n py-5\n w-full\n'],['\n bg-white\n px-10\n py-5\n w-full\n']))),gn=Ue.div(bn||(bn=Lt(['\n flex\n gap-x-3\n'],['\n flex\n gap-x-3\n']))),pn=Ue.div(vn||(vn=Lt(['\n flex\n justify-center\n mt-4\n w-full\n'],['\n flex\n justify-center\n mt-4\n w-full\n'])));Ue.div(yn||(yn=Lt(['\n flex\n justify-end\n text-xs\n'],['\n flex\n justify-end\n text-xs\n'])));var mn,bn,vn,yn,wn,Bn,Cn,xn=Ue.div(wn||(wn=Lt(['\n text-sm\n text-left\n p-1\n w-full\n'],['\n text-sm\n text-left\n p-1\n w-full\n']))),Fn=Ue.div(Bn||(Bn=Lt(['\n flex \n flex-col \n pl-7 \n gap-2\n'],['\n flex \n flex-col \n pl-7 \n gap-2\n']))),In=Ue.div(Cn||(Cn=Lt(['\n text-red-500\n'],['\n text-red-500\n']))),Qn='data:image/svg+xml,%3Csvg%20width%3D%2247%22%20height%3D%2237%22%20viewBox%3D%220%200%2047%2037%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Group%206017%22%3E%3Cg%20id%3D%22Group%206015%22%3E%3Cg%20id%3D%22Group%206014%22%3E%3Cpath%20id%3D%22Rectangle%202127%22%20d%3D%22M40.6208%200.772125H6.76524C3.4659%200.772125%200.79126%203.30064%200.79126%206.41972V23.1422C0.79126%2026.2613%203.4659%2028.7898%206.76524%2028.7898H40.6208C43.9201%2028.7898%2046.5948%2026.2613%2046.5948%2023.1422V6.41972C46.5948%203.30064%2043.9201%200.772125%2040.6208%200.772125Z%22%20fill%3D%22url%28%23paint0_linear_51_5343%29%22%2F%3E%3Cg%20id%3D%22Group%206013%22%3E%3Cg%20id%3D%22%2326a5d0ff%22%3E%3Cpath%20id%3D%22Path%203232%22%20d%3D%22M16.3076%2013.2243C16.5434%2013.1485%2016.7928%2013.1174%2017.0414%2013.1327C17.29%2013.1481%2017.533%2013.2095%2017.7564%2013.3136C17.9799%2013.4177%2018.1795%2013.5624%2018.3438%2013.7394C18.5081%2013.9165%2018.6339%2014.1224%2018.7141%2014.3453C18.7942%2014.5683%2018.8271%2014.804%2018.8109%2015.0391C18.7947%2015.2741%2018.7297%2015.5038%2018.6196%2015.715C18.5095%2015.9263%2018.3564%2016.115%2018.1692%2016.2703C17.9819%2016.4256%2017.7641%2016.5446%2017.5282%2016.6204C17.0707%2016.7415%2016.5823%2016.7031%2016.1522%2016.5122C15.7222%2016.3213%2015.379%2015.9905%2015.1855%2015.5803C15.0875%2015.3567%2015.039%2015.1165%2015.0429%2014.8745C15.0469%2014.6325%2015.1031%2014.3938%2015.2082%2014.1731C15.3133%2013.9525%2015.4651%2013.7544%2015.6541%2013.5913C15.8432%2013.4281%2016.0656%2013.3032%2016.3076%2013.2243Z%22%20fill%3D%22%230E0E0E%22%2F%3E%3Cpath%20id%3D%22Path%203233%22%20d%3D%22M30.0207%2013.2232C30.2668%2013.1388%2030.5288%2013.1039%2030.7899%2013.1208C31.0511%2013.1376%2031.3056%2013.2058%2031.5373%2013.321C31.769%2013.4362%2031.9726%2013.5958%2032.1353%2013.7897C32.298%2013.9835%2032.4161%2014.2073%2032.482%2014.4468C32.5617%2014.6955%2032.5831%2014.9576%2032.5448%2015.215C32.5064%2015.4723%2032.4092%2015.7186%2032.2599%2015.9368C32.1106%2016.155%2031.9128%2016.3398%2031.6802%2016.4784C31.4476%2016.617%2031.186%2016.7059%2030.9133%2016.7391C30.6407%2016.7723%2030.3637%2016.749%2030.1016%2016.6707C29.8394%2016.5924%2029.5985%2016.4611%2029.3956%2016.2858C29.1926%2016.1105%2029.0325%2015.8955%2028.9264%2015.6558C28.8203%2015.4161%2028.7707%2015.1574%2028.7811%2014.8977C28.7821%2014.5323%2028.9014%2014.1759%2029.123%2013.8765C29.3446%2013.5771%2029.6579%2013.3491%2030.0207%2013.2232Z%22%20fill%3D%22%230E0E0E%22%2F%3E%3C%2Fg%3E%3Cg%20id%3D%22%23515151ff%22%3E%3Cpath%20id%3D%22Path%203234%22%20d%3D%22M13.4188%209.24141C13.9516%209.11666%2014.4988%209.05532%2015.0477%209.05881C20.7462%209.05881%2026.4444%209.05881%2032.1423%209.05881C33.4078%208.98165%2034.6684%209.268%2035.7587%209.88029C36.849%2010.4926%2037.718%2011.4022%2038.2516%2012.4897C38.6799%2013.3785%2038.8663%2014.3543%2038.7938%2015.3285C38.7212%2016.3027%2038.3921%2017.2443%2037.8364%2018.0675C37.2806%2018.8908%2036.5159%2019.5695%2035.6118%2020.042C34.7078%2020.5145%2033.693%2020.7658%2032.66%2020.7729C26.6721%2020.7663%2020.6842%2020.7776%2014.6962%2020.7663C13.2189%2020.6961%2011.8167%2020.129%2010.7428%2019.1674C9.66884%2018.2057%208.99381%2016.9129%208.83951%2015.5221C8.68521%2014.1314%209.0618%2012.7343%209.90132%2011.5829C10.7408%2010.4316%2011.988%209.60178%2013.4178%209.24331M16.3052%2013.2248C16.0636%2013.3038%2015.8415%2013.4286%2015.6527%2013.5916C15.4639%2013.7546%2015.3124%2013.9523%2015.2073%2014.1726C15.1022%2014.393%2015.0459%2014.6313%2015.0417%2014.873C15.0376%2015.1146%2015.0857%2015.3545%2015.1831%2015.578C15.3767%2015.9882%2015.7198%2016.319%2016.1499%2016.51C16.58%2016.7009%2017.0684%2016.7393%2017.5259%2016.6181C17.7618%2016.5423%2017.9796%2016.4234%2018.1668%2016.268C18.3541%2016.1127%2018.5071%2015.924%2018.6172%2015.7128C18.7274%2015.5015%2018.7924%2015.2718%2018.8086%2015.0368C18.8248%2014.8018%2018.7919%2014.5661%2018.7118%2014.3431C18.6316%2014.1201%2018.5058%2013.9142%2018.3415%2013.7372C18.1771%2013.5602%2017.9775%2013.4155%2017.7541%2013.3114C17.5306%2013.2073%2017.2877%2013.1458%2017.0391%2013.1305C16.7905%2013.1151%2016.5411%2013.1463%2016.3052%2013.222M30.0175%2013.222C29.655%2013.3479%2029.3419%2013.5756%2029.1203%2013.8746C28.8987%2014.1736%2028.7792%2014.5296%2028.7779%2014.8947C28.7675%2015.1543%2028.8171%2015.4131%2028.9232%2015.6528C29.0293%2015.8925%2029.1894%2016.1075%2029.3924%2016.2827C29.5953%2016.458%2029.8362%2016.5894%2030.0983%2016.6677C30.3604%2016.746%2030.6375%2016.7693%2030.9101%2016.7361C31.1827%2016.7029%2031.4444%2016.6139%2031.677%2016.4754C31.9095%2016.3368%2032.1074%2016.152%2032.2567%2015.9338C32.406%2015.7156%2032.5032%2015.4693%2032.5416%2015.212C32.5799%2014.9546%2032.5585%2014.6925%2032.4788%2014.4438C32.4125%2014.2048%2032.2942%2013.9815%2032.1315%2013.7881C31.9688%2013.5948%2031.7653%2013.4356%2031.5339%2013.3207C31.3025%2013.2058%2031.0484%2013.1378%2030.7876%2013.121C30.5269%2013.1042%2030.2653%2013.1389%2030.0195%2013.223L30.0175%2013.222Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3Cpath%20id%3D%22Path%203235%22%20d%3D%22M16.855%2012.3647C17.3351%2012.3576%2017.808%2012.4759%2018.2216%2012.7066C18.6351%2012.9373%2018.9733%2013.2714%2019.1988%2013.6722C19.3749%2013.9768%2019.4771%2014.3147%2019.498%2014.6613C19.5188%2015.0079%2019.4578%2015.3546%2019.3193%2015.6761C19.1817%2016.0211%2018.9657%2016.3332%2018.6865%2016.5905C18.4072%2016.8478%2018.0716%2017.044%2017.7033%2017.1652C17.4565%2017.2538%2017.1947%2017.2991%2016.9307%2017.2989C16.4147%2017.276%2015.9148%2017.1219%2015.4838%2016.8528C15.0527%2016.5838%2014.7064%2016.2098%2014.4814%2015.7703L14.4704%2015.7486C14.3291%2015.4326%2014.2602%2015.0918%2014.2685%2014.7488C14.2767%2014.4058%2014.3618%2014.0684%2014.5182%2013.7587C14.6608%2013.4579%2014.8691%2013.189%2015.1294%2012.9697C15.3897%2012.7504%2015.6962%2012.5856%2016.0286%2012.4862C16.2958%2012.4055%2016.5746%2012.3645%2016.855%2012.3647ZM16.9297%2016.4498C17.0873%2016.45%2017.2436%2016.4226%2017.3907%2016.3689L17.4156%2016.3604C17.6595%2016.2796%2017.8816%2016.1488%2018.0659%2015.9775C18.2503%2015.8062%2018.3923%2015.5985%2018.4819%2015.3692C18.5728%2015.1635%2018.6139%2014.9412%2018.602%2014.7185C18.5901%2014.4959%2018.5256%2014.2786%2018.4132%2014.0826L18.4003%2014.059C18.2509%2013.7966%2018.0275%2013.5786%2017.7549%2013.429C17.4823%2013.2795%2017.1711%2013.2043%2016.856%2013.2119C16.6671%2013.2116%2016.4793%2013.2392%2016.2994%2013.2938H16.2905C16.0788%2013.3584%2015.8839%2013.4647%2015.7188%2013.6057C15.5537%2013.7467%2015.4221%2013.9191%2015.3327%2014.1117C15.2307%2014.3106%2015.1741%2014.5274%2015.1664%2014.7482C15.1587%2014.9691%2015.2%2015.189%2015.2878%2015.3937C15.4392%2015.6908%2015.6708%2015.9449%2015.9592%2016.1304C16.2477%2016.3158%2016.5828%2016.426%2016.9307%2016.4498H16.9297Z%22%20fill%3D%22url%28%23paint1_linear_51_5343%29%22%2F%3E%3Cpath%20id%3D%22Path%203235_2%22%20d%3D%22M30.6392%2012.3875C31.1193%2012.3804%2031.5922%2012.4987%2032.0058%2012.7294C32.4193%2012.96%2032.7575%2013.2942%2032.983%2013.6949C33.1592%2013.9995%2033.2615%2014.3374%2033.2823%2014.684C33.3031%2015.0307%2033.242%2015.3773%2033.1035%2015.6989C32.9659%2016.0438%2032.7499%2016.3559%2032.4706%2016.6132C32.1914%2016.8705%2031.8558%2017.0667%2031.4875%2017.1879C31.2407%2017.2766%2030.9789%2017.3219%2030.7149%2017.3216C30.1989%2017.2986%2029.6991%2017.1445%2029.268%2016.8755C28.837%2016.6064%2028.4907%2016.2325%2028.2656%2015.793L28.2546%2015.7713C28.1133%2015.4553%2028.0444%2015.1146%2028.0527%2014.7716C28.0609%2014.4285%2028.146%2014.0911%2028.3024%2013.7815C28.445%2013.4807%2028.6533%2013.2118%2028.9136%2012.9924C29.1739%2012.7731%2029.4804%2012.6083%2029.8128%2012.5089C30.08%2012.4282%2030.3588%2012.3873%2030.6392%2012.3875ZM30.7139%2016.4726C30.8715%2016.4727%2031.0278%2016.4453%2031.1749%2016.3916L31.1988%2016.3831C31.4428%2016.3024%2031.6648%2016.1716%2031.8492%2016.0003C32.0335%2015.829%2032.1755%2015.6212%2032.2651%2015.392C32.356%2015.1863%2032.3971%2014.9639%2032.3852%2014.7413C32.3733%2014.5186%2032.3088%2014.3013%2032.1964%2014.1053L32.1835%2014.0817C32.0341%2013.8194%2031.8107%2013.6013%2031.5381%2013.4517C31.2654%2013.3022%2030.9543%2013.227%2030.6392%2013.2346C30.4503%2013.2343%2030.2625%2013.262%2030.0826%2013.3165H30.0737C29.8619%2013.3811%2029.6671%2013.4874%2029.502%2013.6284C29.3369%2013.7694%2029.2053%2013.9419%2029.1158%2014.1345C29.0139%2014.3333%2028.9573%2014.5501%2028.9496%2014.771C28.9419%2014.9918%2028.9832%2015.2117%2029.071%2015.4165C29.2216%2015.7136%2029.4524%2015.9679%2029.7402%2016.1538C30.0279%2016.3397%2030.3624%2016.4506%2030.7099%2016.4754L30.7139%2016.4726Z%22%20fill%3D%22url%28%23paint2_linear_51_5343%29%22%2F%3E%3C%2Fg%3E%3Cpath%20id%3D%22Path%203235_3%22%20d%3D%22M27.5925%2028.4044L36.1237%2036.9999V28.4044H27.5925Z%22%20fill%3D%22%23E94C44%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_51_5343%22%20x1%3D%2223.693%22%20y1%3D%220.772125%22%20x2%3D%2223.693%22%20y2%3D%2228.7898%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23D63254%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23E94C44%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_51_5343%22%20x1%3D%2216.8849%22%20y1%3D%2212.3644%22%20x2%3D%2216.8849%22%20y2%3D%2217.2989%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%2368BEF1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23006D9C%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint2_linear_51_5343%22%20x1%3D%2230.6691%22%20y1%3D%2212.3872%22%20x2%3D%2230.6691%22%20y2%3D%2217.3216%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%2368BEF1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23006D9C%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E';
2
+ /*!
3
+ * @kurkle/color v0.3.2
4
+ * https://github.com/kurkle/color#readme
5
+ * (c) 2023 Jukka Kurkela
6
+ * Released under the MIT License
7
+ */
8
+ function En(t){return t+.5|0}const Sn=(t,e,n)=>Math.max(Math.min(t,n),e);function Un(t){return Sn(En(2.55*t),0,255)}function Ln(t){return Sn(En(255*t),0,255)}function Nn(t){return Sn(En(t/2.55)/100,0,1)}function kn(t){return Sn(En(100*t),0,100)}const _n={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Pn=[...'0123456789ABCDEF'],On=t=>Pn[15&t],Mn=t=>Pn[(240&t)>>4]+Pn[15&t],Hn=t=>(240&t)>>4==(15&t);function Tn(t){var e=(t=>Hn(t.r)&&Hn(t.g)&&Hn(t.b)&&Hn(t.a))(t)?On:Mn;return t?'#'+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):'')(t.a,e):void 0}const Dn=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Rn(t,e,n){const A=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-A*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function Vn(t,e,n){const A=(A,r=(A+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[A(5),A(3),A(1)]}function Gn(t,e,n){const A=Rn(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)A[r]*=1-e-n,A[r]+=e;return A}function jn(t){const e=t.r/255,n=t.g/255,A=t.b/255,r=Math.max(e,n,A),i=Math.min(e,n,A),o=(r+i)/2;let s,a,c;return r!==i&&(c=r-i,a=o>.5?c/(2-r-i):c/(r+i),s=function(t,e,n,A,r){return t===r?(e-n)/A+(e<n?6:0):e===r?(n-t)/A+2:(t-e)/A+4}(e,n,A,c,r),s=60*s+.5),[0|s,a||0,o]}function Wn(t,e,n,A){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,A)).map(Ln)}function Kn(t,e,n){return Wn(Rn,t,e,n)}function Xn(t){return(t%360+360)%360}function zn(t){const e=Dn.exec(t);let n,A=255;if(!e)return;e[5]!==n&&(A=e[6]?Un(+e[5]):Ln(+e[5]));const r=Xn(+e[2]),i=+e[3]/100,o=+e[4]/100;return n='hwb'===e[1]?function(t,e,n){return Wn(Gn,t,e,n)}(r,i,o):'hsv'===e[1]?function(t,e,n){return Wn(Vn,t,e,n)}(r,i,o):Kn(r,i,o),{r:n[0],g:n[1],b:n[2],a:A}}const Zn={x:'dark',Z:'light',Y:'re',X:'blu',W:'gr',V:'medium',U:'slate',A:'ee',T:'ol',S:'or',B:'ra',C:'lateg',D:'ights',R:'in',Q:'turquois',E:'hi',P:'ro',O:'al',N:'le',M:'de',L:'yello',F:'en',K:'ch',G:'arks',H:'ea',I:'ightg',J:'wh'},Yn={OiceXe:'f0f8ff',antiquewEte:'faebd7',aqua:'ffff',aquamarRe:'7fffd4',azuY:'f0ffff',beige:'f5f5dc',bisque:'ffe4c4',black:'0',blanKedOmond:'ffebcd',Xe:'ff',XeviTet:'8a2be2',bPwn:'a52a2a',burlywood:'deb887',caMtXe:'5f9ea0',KartYuse:'7fff00',KocTate:'d2691e',cSO:'ff7f50',cSnflowerXe:'6495ed',cSnsilk:'fff8dc',crimson:'dc143c',cyan:'ffff',xXe:'8b',xcyan:'8b8b',xgTMnPd:'b8860b',xWay:'a9a9a9',xgYF:'6400',xgYy:'a9a9a9',xkhaki:'bdb76b',xmagFta:'8b008b',xTivegYF:'556b2f',xSange:'ff8c00',xScEd:'9932cc',xYd:'8b0000',xsOmon:'e9967a',xsHgYF:'8fbc8f',xUXe:'483d8b',xUWay:'2f4f4f',xUgYy:'2f4f4f',xQe:'ced1',xviTet:'9400d3',dAppRk:'ff1493',dApskyXe:'bfff',dimWay:'696969',dimgYy:'696969',dodgerXe:'1e90ff',fiYbrick:'b22222',flSOwEte:'fffaf0',foYstWAn:'228b22',fuKsia:'ff00ff',gaRsbSo:'dcdcdc',ghostwEte:'f8f8ff',gTd:'ffd700',gTMnPd:'daa520',Way:'808080',gYF:'8000',gYFLw:'adff2f',gYy:'808080',honeyMw:'f0fff0',hotpRk:'ff69b4',RdianYd:'cd5c5c',Rdigo:'4b0082',ivSy:'fffff0',khaki:'f0e68c',lavFMr:'e6e6fa',lavFMrXsh:'fff0f5',lawngYF:'7cfc00',NmoncEffon:'fffacd',ZXe:'add8e6',ZcSO:'f08080',Zcyan:'e0ffff',ZgTMnPdLw:'fafad2',ZWay:'d3d3d3',ZgYF:'90ee90',ZgYy:'d3d3d3',ZpRk:'ffb6c1',ZsOmon:'ffa07a',ZsHgYF:'20b2aa',ZskyXe:'87cefa',ZUWay:'778899',ZUgYy:'778899',ZstAlXe:'b0c4de',ZLw:'ffffe0',lime:'ff00',limegYF:'32cd32',lRF:'faf0e6',magFta:'ff00ff',maPon:'800000',VaquamarRe:'66cdaa',VXe:'cd',VScEd:'ba55d3',VpurpN:'9370db',VsHgYF:'3cb371',VUXe:'7b68ee',VsprRggYF:'fa9a',VQe:'48d1cc',VviTetYd:'c71585',midnightXe:'191970',mRtcYam:'f5fffa',mistyPse:'ffe4e1',moccasR:'ffe4b5',navajowEte:'ffdead',navy:'80',Tdlace:'fdf5e6',Tive:'808000',TivedBb:'6b8e23',Sange:'ffa500',SangeYd:'ff4500',ScEd:'da70d6',pOegTMnPd:'eee8aa',pOegYF:'98fb98',pOeQe:'afeeee',pOeviTetYd:'db7093',papayawEp:'ffefd5',pHKpuff:'ffdab9',peru:'cd853f',pRk:'ffc0cb',plum:'dda0dd',powMrXe:'b0e0e6',purpN:'800080',YbeccapurpN:'663399',Yd:'ff0000',Psybrown:'bc8f8f',PyOXe:'4169e1',saddNbPwn:'8b4513',sOmon:'fa8072',sandybPwn:'f4a460',sHgYF:'2e8b57',sHshell:'fff5ee',siFna:'a0522d',silver:'c0c0c0',skyXe:'87ceeb',UXe:'6a5acd',UWay:'708090',UgYy:'708090',snow:'fffafa',sprRggYF:'ff7f',stAlXe:'4682b4',tan:'d2b48c',teO:'8080',tEstN:'d8bfd8',tomato:'ff6347',Qe:'40e0d0',viTet:'ee82ee',JHt:'f5deb3',wEte:'ffffff',wEtesmoke:'f5f5f5',Lw:'ffff00',LwgYF:'9acd32'};let qn;function Jn(t){qn||(qn=function(){const t={},e=Object.keys(Yn),n=Object.keys(Zn);let A,r,i,o,s;for(A=0;A<e.length;A++){for(o=s=e[A],r=0;r<n.length;r++)i=n[r],s=s.replace(i,Zn[i]);i=parseInt(Yn[o],16),t[s]=[i>>16&255,i>>8&255,255&i]}return t}(),qn.transparent=[0,0,0,0]);const e=qn[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const $n=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const tA=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,eA=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function nA(t,e,n){if(t){let A=jn(t);A[e]=Math.max(0,Math.min(A[e]+A[e]*n,0===e?360:1)),A=Kn(A),t.r=A[0],t.g=A[1],t.b=A[2]}}function AA(t,e){return t?Object.assign(e||{},t):t}function rA(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Ln(t[3]))):(e=AA(t,{r:0,g:0,b:0,a:1})).a=Ln(e.a),e}function iA(t){return'r'===t.charAt(0)?function(t){const e=$n.exec(t);let n,A,r,i=255;if(e){if(e[7]!==n){const t=+e[7];i=e[8]?Un(t):Sn(255*t,0,255)}return n=+e[1],A=+e[3],r=+e[5],n=255&(e[2]?Un(n):Sn(n,0,255)),A=255&(e[4]?Un(A):Sn(A,0,255)),r=255&(e[6]?Un(r):Sn(r,0,255)),{r:n,g:A,b:r,a:i}}}(t):zn(t)}class oA{constructor(t){if(t instanceof oA)return t;const e=typeof t;let n;var A,r,i;'object'===e?n=rA(t):'string'===e&&(i=(A=t).length,'#'===A[0]&&(4===i||5===i?r={r:255&17*_n[A[1]],g:255&17*_n[A[2]],b:255&17*_n[A[3]],a:5===i?17*_n[A[4]]:255}:7!==i&&9!==i||(r={r:_n[A[1]]<<4|_n[A[2]],g:_n[A[3]]<<4|_n[A[4]],b:_n[A[5]]<<4|_n[A[6]],a:9===i?_n[A[7]]<<4|_n[A[8]]:255})),n=r||Jn(t)||iA(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=AA(this._rgb);return t&&(t.a=Nn(t.a)),t}set rgb(t){this._rgb=rA(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Nn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?Tn(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=jn(t),n=e[0],A=kn(e[1]),r=kn(e[2]);return t.a<255?`hsla(${n}, ${A}%, ${r}%, ${Nn(t.a)})`:`hsl(${n}, ${A}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,A=t.rgb;let r;const i=e===r?.5:e,o=2*i-1,s=n.a-A.a,a=((o*s==-1?o:(o+s)/(1+o*s))+1)/2;r=1-a,n.r=255&a*n.r+r*A.r+.5,n.g=255&a*n.g+r*A.g+.5,n.b=255&a*n.b+r*A.b+.5,n.a=i*n.a+(1-i)*A.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const A=eA(Nn(t.r)),r=eA(Nn(t.g)),i=eA(Nn(t.b));return{r:Ln(tA(A+n*(eA(Nn(e.r))-A))),g:Ln(tA(r+n*(eA(Nn(e.g))-r))),b:Ln(tA(i+n*(eA(Nn(e.b))-i))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new oA(this.rgb)}alpha(t){return this._rgb.a=Ln(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=En(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return nA(this._rgb,2,t),this}darken(t){return nA(this._rgb,2,-t),this}saturate(t){return nA(this._rgb,1,t),this}desaturate(t){return nA(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=jn(t);n[0]=Xn(n[0]+e),n=Kn(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}
9
+ /*!
10
+ * Chart.js v4.4.0
11
+ * https://www.chartjs.org
12
+ * (c) 2023 Chart.js Contributors
13
+ * Released under the MIT License
14
+ */function sA(){}const aA=(()=>{let t=0;return()=>t++})();function cA(t){return null==t}function lA(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return'[object'===e.slice(0,7)&&'Array]'===e.slice(-6)}function uA(t){return null!==t&&'[object Object]'===Object.prototype.toString.call(t)}function hA(t){return('number'==typeof t||t instanceof Number)&&isFinite(+t)}function dA(t,e){return hA(t)?t:e}function fA(t,e){return void 0===t?e:t}const gA=(t,e)=>'string'==typeof t&&t.endsWith('%')?parseFloat(t)/100*e:+t;function pA(t,e,n){if(t&&'function'==typeof t.call)return t.apply(n,e)}function mA(t,e,n,A){let r,i,o;if(lA(t))if(i=t.length,A)for(r=i-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<i;r++)e.call(n,t[r],r);else if(uA(t))for(o=Object.keys(t),i=o.length,r=0;r<i;r++)e.call(n,t[o[r]],o[r])}function bA(t,e){let n,A,r,i;if(!t||!e||t.length!==e.length)return!1;for(n=0,A=t.length;n<A;++n)if(r=t[n],i=e[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function vA(t){if(lA(t))return t.map(vA);if(uA(t)){const e=Object.create(null),n=Object.keys(t),A=n.length;let r=0;for(;r<A;++r)e[n[r]]=vA(t[n[r]]);return e}return t}function yA(t){return-1===['__proto__','prototype','constructor'].indexOf(t)}function wA(t,e,n,A){if(!yA(t))return;const r=e[t],i=n[t];uA(r)&&uA(i)?BA(r,i,A):e[t]=vA(i)}function BA(t,e,n){const A=lA(e)?e:[e],r=A.length;if(!uA(t))return t;const i=(n=n||{}).merger||wA;let o;for(let e=0;e<r;++e){if(o=A[e],!uA(o))continue;const r=Object.keys(o);for(let e=0,A=r.length;e<A;++e)i(r[e],t,o,n)}return t}function CA(t,e){return BA(t,e,{merger:xA})}function xA(t,e,n){if(!yA(t))return;const A=e[t],r=n[t];uA(A)&&uA(r)?CA(A,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=vA(r))}const FA={'':t=>t,x:t=>t.x,y:t=>t.y};function IA(t,e){const n=FA[e]||(FA[e]=function(t){const e=function(t){const e=t.split('.'),n=[];let A='';for(const t of e)A+=t,A.endsWith('\\')?A=A.slice(0,-1)+'.':(n.push(A),A='');return n}(t);return t=>{for(const n of e){if(''===n)break;t=t&&t[n]}return t}}(e));return n(t)}function QA(t){return t.charAt(0).toUpperCase()+t.slice(1)}const EA=t=>void 0!==t,SA=t=>'function'==typeof t,UA=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const LA=Math.PI,NA=2*LA,kA=NA+LA,_A=Number.POSITIVE_INFINITY,PA=LA/180,OA=LA/2,MA=LA/4,HA=2*LA/3,TA=Math.log10,DA=Math.sign;function RA(t,e,n){return Math.abs(t-e)<n}function VA(t){const e=Math.round(t);t=RA(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(TA(t))),A=t/n;return(A<=1?1:A<=2?2:A<=5?5:10)*n}function GA(t){return!isNaN(parseFloat(t))&&isFinite(t)}function jA(t,e,n){let A,r,i;for(A=0,r=t.length;A<r;A++)i=t[A][n],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function WA(t){return t*(LA/180)}function KA(t){return t*(180/LA)}function XA(t){if(!hA(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function zA(t,e){const n=e.x-t.x,A=e.y-t.y,r=Math.sqrt(n*n+A*A);let i=Math.atan2(A,n);return i<-.5*LA&&(i+=NA),{angle:i,distance:r}}function ZA(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function YA(t,e){return(t-e+kA)%NA-LA}function qA(t){return(t%NA+NA)%NA}function JA(t,e,n,A){const r=qA(t),i=qA(e),o=qA(n),s=qA(i-r),a=qA(o-r),c=qA(r-i),l=qA(r-o);return r===i||r===o||A&&i===o||s>a&&c<l}function $A(t,e,n){return Math.max(e,Math.min(n,t))}function tr(t,e,n,A=1e-6){return t>=Math.min(e,n)-A&&t<=Math.max(e,n)+A}function er(t,e,n){n=n||(n=>t[n]<e);let A,r=t.length-1,i=0;for(;r-i>1;)A=i+r>>1,n(A)?i=A:r=A;return{lo:i,hi:r}}const nr=(t,e,n,A)=>er(t,n,A?A=>{const r=t[A][e];return r<n||r===n&&t[A+1][e]===n}:A=>t[A][e]<n),Ar=(t,e,n)=>er(t,n,(A=>t[A][e]>=n));const rr=['push','pop','shift','splice','unshift'];function ir(t,e){const n=t._chartjs;if(!n)return;const A=n.listeners,r=A.indexOf(e);-1!==r&&A.splice(r,1),A.length>0||(rr.forEach((e=>{delete t[e]})),delete t._chartjs)}function or(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const sr='undefined'==typeof window?function(t){return t()}:window.requestAnimationFrame;function ar(t,e){let n=[],A=!1;return function(...r){n=r,A||(A=!0,sr.call(window,(()=>{A=!1,t.apply(e,n)})))}}const cr=t=>'start'===t?'left':'end'===t?'right':'center',lr=(t,e,n)=>'start'===t?e:'end'===t?n:(e+n)/2;const ur=t=>0===t||1===t,hr=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*NA/n),dr=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*NA/n)+1,fr={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*OA),easeOutSine:t=>Math.sin(t*OA),easeInOutSine:t=>-.5*(Math.cos(LA*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ur(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ur(t)?t:hr(t,.075,.3),easeOutElastic:t=>ur(t)?t:dr(t,.075,.3),easeInOutElastic(t){const e=.1125;return ur(t)?t:t<.5?.5*hr(2*t,e,.45):.5+.5*dr(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-fr.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*fr.easeInBounce(2*t):.5*fr.easeOutBounce(2*t-1)+.5};function gr(t){if(t&&'object'==typeof t){const e=t.toString();return'[object CanvasPattern]'===e||'[object CanvasGradient]'===e}return!1}function pr(t){return gr(t)?t:new oA(t)}function mr(t){return gr(t)?t:new oA(t).saturate(.5).darken(.1).hexString()}const br=['x','y','borderWidth','radius','tension'],vr=['color','borderColor','backgroundColor'];const yr=new Map;function wr(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let A=yr.get(n);return A||(A=new Intl.NumberFormat(t,e),yr.set(n,A)),A}(e,n).format(t)}const Br={values:t=>lA(t)?t:''+t,numeric(t,e,n){if(0===t)return'0';const A=this.chart.options.locale;let r,i=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r='scientific'),i=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const o=TA(Math.abs(i)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),a={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(a,this.options.ticks.format),wr(t,A,a)},logarithmic(t,e,n){if(0===t)return'0';const A=n[e].significand||t/Math.pow(10,Math.floor(TA(t)));return[1,2,3,5,10,15].includes(A)||e>.8*n.length?Br.numeric.call(this,t,e,n):''}};var Cr={formatters:Br};const xr=Object.create(null),Fr=Object.create(null);function Ir(t,e){if(!e)return t;const n=e.split('.');for(let e=0,A=n.length;e<A;++e){const A=n[e];t=t[A]||(t[A]=Object.create(null))}return t}function Qr(t,e,n){return'string'==typeof e?BA(Ir(t,e),n):BA(Ir(t,''),e)}class Er{constructor(t,e){this.animation=void 0,this.backgroundColor='rgba(0,0,0,0.1)',this.borderColor='rgba(0,0,0,0.1)',this.color='#666',this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=['mousemove','mouseout','click','touchstart','touchmove'],this.font={family:'\'Helvetica Neue\', \'Helvetica\', \'Arial\', sans-serif',size:12,style:'normal',lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>mr(e.backgroundColor),this.hoverBorderColor=(t,e)=>mr(e.borderColor),this.hoverColor=(t,e)=>mr(e.color),this.indexAxis='x',this.interaction={mode:'nearest',intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Qr(this,t,e)}get(t){return Ir(this,t)}describe(t,e){return Qr(Fr,t,e)}override(t,e){return Qr(xr,t,e)}route(t,e,n,A){const r=Ir(this,t),i=Ir(this,n),o='_'+e;Object.defineProperties(r,{[o]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=i[A];return uA(t)?Object.assign({},e,t):fA(t,e)},set(t){this[o]=t}}})}apply(t){t.forEach((t=>t(this)))}}var Sr=new Er({_scriptable:t=>!t.startsWith('on'),_indexable:t=>'events'!==t,hover:{_fallback:'interaction'},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set('animation',{delay:void 0,duration:1e3,easing:'easeOutQuart',fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe('animation',{_fallback:!1,_indexable:!1,_scriptable:t=>'onProgress'!==t&&'onComplete'!==t&&'fn'!==t}),t.set('animations',{colors:{type:'color',properties:vr},numbers:{type:'number',properties:br}}),t.describe('animations',{_fallback:'animation'}),t.set('transitions',{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:'transparent'},visible:{type:'boolean',duration:0}}},hide:{animations:{colors:{to:'transparent'},visible:{type:'boolean',easing:'linear',fn:t=>0|t}}}})},function(t){t.set('layout',{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set('scale',{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:'ticks',clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:'',padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:'',padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Cr.formatters.values,minor:{},major:{},align:'center',crossAlign:'near',showLabelBackdrop:!1,backdropColor:'rgba(255, 255, 255, 0.75)',backdropPadding:2}}),t.route('scale.ticks','color','','color'),t.route('scale.grid','color','','borderColor'),t.route('scale.border','color','','borderColor'),t.route('scale.title','color','','color'),t.describe('scale',{_fallback:!1,_scriptable:t=>!t.startsWith('before')&&!t.startsWith('after')&&'callback'!==t&&'parser'!==t,_indexable:t=>'borderDash'!==t&&'tickBorderDash'!==t&&'dash'!==t}),t.describe('scales',{_fallback:'scale'}),t.describe('scale.ticks',{_scriptable:t=>'backdropPadding'!==t&&'callback'!==t,_indexable:t=>'backdropPadding'!==t})}]);function Ur(t,e,n,A,r){let i=e[r];return i||(i=e[r]=t.measureText(r).width,n.push(r)),i>A&&(A=i),A}function Lr(t,e,n){const A=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*A)/A+r}function Nr(t,e){(e=e||t.getContext('2d')).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function kr(t,e,n,A){_r(t,e,n,A,null)}function _r(t,e,n,A,r){let i,o,s,a,c,l,u,h;const d=e.pointStyle,f=e.rotation,g=e.radius;let p=(f||0)*PA;if(d&&'object'==typeof d&&(i=d.toString(),'[object HTMLImageElement]'===i||'[object HTMLCanvasElement]'===i))return t.save(),t.translate(n,A),t.rotate(p),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),d){default:r?t.ellipse(n,A,r/2,g,0,0,NA):t.arc(n,A,g,0,NA),t.closePath();break;case'triangle':l=r?r/2:g,t.moveTo(n+Math.sin(p)*l,A-Math.cos(p)*g),p+=HA,t.lineTo(n+Math.sin(p)*l,A-Math.cos(p)*g),p+=HA,t.lineTo(n+Math.sin(p)*l,A-Math.cos(p)*g),t.closePath();break;case'rectRounded':c=.516*g,a=g-c,o=Math.cos(p+MA)*a,u=Math.cos(p+MA)*(r?r/2-c:a),s=Math.sin(p+MA)*a,h=Math.sin(p+MA)*(r?r/2-c:a),t.arc(n-u,A-s,c,p-LA,p-OA),t.arc(n+h,A-o,c,p-OA,p),t.arc(n+u,A+s,c,p,p+OA),t.arc(n-h,A+o,c,p+OA,p+LA),t.closePath();break;case'rect':if(!f){a=Math.SQRT1_2*g,l=r?r/2:a,t.rect(n-l,A-a,2*l,2*a);break}p+=MA;case'rectRot':u=Math.cos(p)*(r?r/2:g),o=Math.cos(p)*g,s=Math.sin(p)*g,h=Math.sin(p)*(r?r/2:g),t.moveTo(n-u,A-s),t.lineTo(n+h,A-o),t.lineTo(n+u,A+s),t.lineTo(n-h,A+o),t.closePath();break;case'crossRot':p+=MA;case'cross':u=Math.cos(p)*(r?r/2:g),o=Math.cos(p)*g,s=Math.sin(p)*g,h=Math.sin(p)*(r?r/2:g),t.moveTo(n-u,A-s),t.lineTo(n+u,A+s),t.moveTo(n+h,A-o),t.lineTo(n-h,A+o);break;case'star':u=Math.cos(p)*(r?r/2:g),o=Math.cos(p)*g,s=Math.sin(p)*g,h=Math.sin(p)*(r?r/2:g),t.moveTo(n-u,A-s),t.lineTo(n+u,A+s),t.moveTo(n+h,A-o),t.lineTo(n-h,A+o),p+=MA,u=Math.cos(p)*(r?r/2:g),o=Math.cos(p)*g,s=Math.sin(p)*g,h=Math.sin(p)*(r?r/2:g),t.moveTo(n-u,A-s),t.lineTo(n+u,A+s),t.moveTo(n+h,A-o),t.lineTo(n-h,A+o);break;case'line':o=r?r/2:Math.cos(p)*g,s=Math.sin(p)*g,t.moveTo(n-o,A-s),t.lineTo(n+o,A+s);break;case'dash':t.moveTo(n,A),t.lineTo(n+Math.cos(p)*(r?r/2:g),A+Math.sin(p)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Pr(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Or(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Mr(t){t.restore()}function Hr(t,e,n,A,r){if(!e)return t.lineTo(n.x,n.y);if('middle'===r){const A=(e.x+n.x)/2;t.lineTo(A,e.y),t.lineTo(A,n.y)}else'after'===r!=!!A?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Tr(t,e,n,A){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(A?e.cp1x:e.cp2x,A?e.cp1y:e.cp2y,A?n.cp2x:n.cp1x,A?n.cp2y:n.cp1y,n.x,n.y)}function Dr(t,e,n,A,r){if(r.strikethrough||r.underline){const i=t.measureText(A),o=e-i.actualBoundingBoxLeft,s=e+i.actualBoundingBoxRight,a=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,l=r.strikethrough?(a+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(o,l),t.lineTo(s,l),t.stroke()}}function Rr(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Vr(t,e,n,A,r,i={}){const o=lA(e)?e:[e],s=i.strokeWidth>0&&''!==i.strokeColor;let a,c;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),cA(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,i),a=0;a<o.length;++a)c=o[a],i.backdrop&&Rr(t,i.backdrop),s&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),cA(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,n,A,i.maxWidth)),t.fillText(c,n,A,i.maxWidth),Dr(t,n,A,c,i),A+=Number(r.lineHeight);t.restore()}function Gr(t,e){const{x:n,y:A,w:r,h:i,radius:o}=e;t.arc(n+o.topLeft,A+o.topLeft,o.topLeft,1.5*LA,LA,!0),t.lineTo(n,A+i-o.bottomLeft),t.arc(n+o.bottomLeft,A+i-o.bottomLeft,o.bottomLeft,LA,OA,!0),t.lineTo(n+r-o.bottomRight,A+i),t.arc(n+r-o.bottomRight,A+i-o.bottomRight,o.bottomRight,OA,0,!0),t.lineTo(n+r,A+o.topRight),t.arc(n+r-o.topRight,A+o.topRight,o.topRight,0,-OA,!0),t.lineTo(n+o.topLeft,A)}const jr=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Wr=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Kr(t,e){const n=(''+t).match(jr);if(!n||'normal'===n[1])return 1.2*e;switch(t=+n[2],n[3]){case'px':return t;case'%':t/=100}return e*t}const Xr=t=>+t||0;function zr(t,e){const n={},A=uA(e),r=A?Object.keys(e):e,i=uA(t)?A?n=>fA(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=Xr(i(t));return n}function Zr(t){return zr(t,{top:'y',right:'x',bottom:'y',left:'x'})}function Yr(t){return zr(t,['topLeft','topRight','bottomLeft','bottomRight'])}function qr(t){const e=Zr(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Jr(t,e){t=t||{},e=e||Sr.font;let n=fA(t.size,e.size);'string'==typeof n&&(n=parseInt(n,10));let A=fA(t.style,e.style);A&&!(''+A).match(Wr)&&(A=void 0);const r={family:fA(t.family,e.family),lineHeight:Kr(fA(t.lineHeight,e.lineHeight),n),size:n,style:A,weight:fA(t.weight,e.weight),string:''};return r.string=function(t){return!t||cA(t.size)||cA(t.family)?null:(t.style?t.style+' ':'')+(t.weight?t.weight+' ':'')+t.size+'px '+t.family}(r),r}function $r(t,e,n,A){let r,i,o,s=!0;for(r=0,i=t.length;r<i;++r)if(o=t[r],void 0!==o&&(void 0!==e&&'function'==typeof o&&(o=o(e),s=!1),void 0!==n&&lA(o)&&(o=o[n%o.length],s=!1),void 0!==o))return A&&!s&&(A.cacheable=!1),o}function ti(t,e){return Object.assign(Object.create(t),e)}function ei(t,e=[''],n,A,r=(()=>t[0])){const i=n||t;void 0===A&&(A=hi('_fallback',t));const o={[Symbol.toStringTag]:'Object',_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:A,_getTarget:r,override:n=>ei([n,...t],e,i,A)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,A)=>oi(n,A,(()=>function(t,e,n,A){let r;for(const i of e)if(r=hi(ri(i,t),n),void 0!==r)return ii(t,r)?li(n,A,t,r):r}(A,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>di(t).includes(e),ownKeys:t=>di(t),set(t,e,n){const A=t._storage||(t._storage=r());return t[e]=A[e]=n,delete t._keys,!0}})}function ni(t,e,n,A){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ai(t,A),setContext:e=>ni(t,e,n,A),override:r=>ni(t.override(r),e,n,A)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>oi(t,e,(()=>function(t,e,n){const{_proxy:A,_context:r,_subProxy:i,_descriptors:o}=t;let s=A[e];SA(s)&&o.isScriptable(e)&&(s=function(t,e,n,A){const{_proxy:r,_context:i,_subProxy:o,_stack:s}=n;if(s.has(t))throw new Error('Recursion detected: '+Array.from(s).join('->')+'->'+t);s.add(t);let a=e(i,o||A);s.delete(t),ii(t,a)&&(a=li(r._scopes,r,t,a));return a}(e,s,t,n));lA(s)&&s.length&&(s=function(t,e,n,A){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=n;if(void 0!==i.index&&A(t))return e[i.index%e.length];if(uA(e[0])){const n=e,A=r._scopes.filter((t=>t!==n));e=[];for(const a of n){const n=li(A,r,t,a);e.push(ni(n,i,o&&o[t],s))}}return e}(e,s,t,o.isIndexable));ii(e,s)&&(s=ni(s,r,i&&i[e],o));return s}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,A)=>(t[n]=A,delete e[n],!0)})}function Ai(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:A=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:A,isScriptable:SA(n)?n:()=>n,isIndexable:SA(A)?A:()=>A}}const ri=(t,e)=>t?t+QA(e):e,ii=(t,e)=>uA(e)&&'adapters'!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function oi(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const A=n();return t[e]=A,A}function si(t,e,n){return SA(t)?t(e,n):t}const ai=(t,e)=>!0===t?e:'string'==typeof t?IA(e,t):void 0;function ci(t,e,n,A,r){for(const i of e){const e=ai(n,i);if(e){t.add(e);const i=si(e._fallback,n,r);if(void 0!==i&&i!==n&&i!==A)return i}else if(!1===e&&void 0!==A&&n!==A)return null}return!1}function li(t,e,n,A){const r=e._rootScopes,i=si(e._fallback,n,A),o=[...t,...r],s=new Set;s.add(A);let a=ui(s,o,n,i||n,A);return null!==a&&((void 0===i||i===n||(a=ui(s,o,i,a,A),null!==a))&&ei(Array.from(s),[''],r,i,(()=>function(t,e,n){const A=t._getTarget();e in A||(A[e]={});const r=A[e];if(lA(r)&&uA(n))return n;return r||{}}(e,n,A))))}function ui(t,e,n,A,r){for(;n;)n=ci(t,e,n,A,r);return n}function hi(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function di(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith('_'))))e.add(t);return Array.from(e)}(t._scopes)),e}function fi(t,e,n,A){const{iScale:r}=t,{key:i='r'}=this._parsing,o=new Array(A);let s,a,c,l;for(s=0,a=A;s<a;++s)c=s+n,l=e[c],o[s]={r:r.parse(IA(l,i),c)};return o}const gi=Number.EPSILON||1e-14,pi=(t,e)=>e<t.length&&!t[e].skip&&t[e],mi=t=>'x'===t?'y':'x';function bi(t,e,n,A){const r=t.skip?e:t,i=e,o=n.skip?e:n,s=ZA(i,r),a=ZA(o,i);let c=s/(s+a),l=a/(s+a);c=isNaN(c)?0:c,l=isNaN(l)?0:l;const u=A*c,h=A*l;return{previous:{x:i.x-u*(o.x-r.x),y:i.y-u*(o.y-r.y)},next:{x:i.x+h*(o.x-r.x),y:i.y+h*(o.y-r.y)}}}function yi(t,e='x'){const n=mi(e),A=t.length,r=Array(A).fill(0),i=Array(A);let o,s,a,c=pi(t,0);for(o=0;o<A;++o)if(s=a,a=c,c=pi(t,o+1),a){if(c){const t=c[e]-a[e];r[o]=0!==t?(c[n]-a[n])/t:0}i[o]=s?c?DA(r[o-1])!==DA(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}!function(t,e,n){const A=t.length;let r,i,o,s,a,c=pi(t,0);for(let l=0;l<A-1;++l)a=c,c=pi(t,l+1),a&&c&&(RA(e[l],0,gi)?n[l]=n[l+1]=0:(r=n[l]/e[l],i=n[l+1]/e[l],s=Math.pow(r,2)+Math.pow(i,2),s<=9||(o=3/Math.sqrt(s),n[l]=r*o*e[l],n[l+1]=i*o*e[l])))}(t,r,i),function(t,e,n='x'){const A=mi(n),r=t.length;let i,o,s,a=pi(t,0);for(let c=0;c<r;++c){if(o=s,s=a,a=pi(t,c+1),!s)continue;const r=s[n],l=s[A];o&&(i=(r-o[n])/3,s[`cp1${n}`]=r-i,s[`cp1${A}`]=l-i*e[c]),a&&(i=(a[n]-r)/3,s[`cp2${n}`]=r+i,s[`cp2${A}`]=l+i*e[c])}}(t,i,e)}function wi(t,e,n){return Math.max(Math.min(t,n),e)}function Bi(t,e,n,A,r){let i,o,s,a;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),'monotone'===e.cubicInterpolationMode)yi(t,r);else{let n=A?t[t.length-1]:t[0];for(i=0,o=t.length;i<o;++i)s=t[i],a=bi(n,s,t[Math.min(i+1,o-(A?0:1))%o],e.tension),s.cp1x=a.previous.x,s.cp1y=a.previous.y,s.cp2x=a.next.x,s.cp2y=a.next.y,n=s}e.capBezierPoints&&function(t,e){let n,A,r,i,o,s=Pr(t[0],e);for(n=0,A=t.length;n<A;++n)o=i,i=s,s=n<A-1&&Pr(t[n+1],e),i&&(r=t[n],o&&(r.cp1x=wi(r.cp1x,e.left,e.right),r.cp1y=wi(r.cp1y,e.top,e.bottom)),s&&(r.cp2x=wi(r.cp2x,e.left,e.right),r.cp2y=wi(r.cp2y,e.top,e.bottom)))}(t,n)}function Ci(){return'undefined'!=typeof window&&'undefined'!=typeof document}function xi(t){let e=t.parentNode;return e&&'[object ShadowRoot]'===e.toString()&&(e=e.host),e}function Fi(t,e,n){let A;return'string'==typeof t?(A=parseInt(t,10),-1!==t.indexOf('%')&&(A=A/100*e.parentNode[n])):A=t,A}const Ii=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const Qi=['top','right','bottom','left'];function Ei(t,e,n){const A={};n=n?'-'+n:'';for(let r=0;r<4;r++){const i=Qi[r];A[i]=parseFloat(t[e+'-'+i+n])||0}return A.width=A.left+A.right,A.height=A.top+A.bottom,A}const Si=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function Ui(t,e){if('native'in t)return t;const{canvas:n,currentDevicePixelRatio:A}=e,r=Ii(n),i='border-box'===r.boxSizing,o=Ei(r,'padding'),s=Ei(r,'border','width'),{x:a,y:c,box:l}=function(t,e){const n=t.touches,A=n&&n.length?n[0]:t,{offsetX:r,offsetY:i}=A;let o,s,a=!1;if(Si(r,i,t.target))o=r,s=i;else{const t=e.getBoundingClientRect();o=A.clientX-t.left,s=A.clientY-t.top,a=!0}return{x:o,y:s,box:a}}(t,n),u=o.left+(l&&s.left),h=o.top+(l&&s.top);let{width:d,height:f}=e;return i&&(d-=o.width+s.width,f-=o.height+s.height),{x:Math.round((a-u)/d*n.width/A),y:Math.round((c-h)/f*n.height/A)}}const Li=t=>Math.round(10*t)/10;function Ni(t,e,n,A){const r=Ii(t),i=Ei(r,'margin'),o=Fi(r.maxWidth,t,'clientWidth')||_A,s=Fi(r.maxHeight,t,'clientHeight')||_A,a=function(t,e,n){let A,r;if(void 0===e||void 0===n){const i=xi(t);if(i){const t=i.getBoundingClientRect(),o=Ii(i),s=Ei(o,'border','width'),a=Ei(o,'padding');e=t.width-a.width-s.width,n=t.height-a.height-s.height,A=Fi(o.maxWidth,i,'clientWidth'),r=Fi(o.maxHeight,i,'clientHeight')}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:A||_A,maxHeight:r||_A}}(t,e,n);let{width:c,height:l}=a;if('content-box'===r.boxSizing){const t=Ei(r,'border','width'),e=Ei(r,'padding');c-=e.width+t.width,l-=e.height+t.height}c=Math.max(0,c-i.width),l=Math.max(0,A?c/A:l-i.height),c=Li(Math.min(c,o,a.maxWidth)),l=Li(Math.min(l,s,a.maxHeight)),c&&!l&&(l=Li(c/2));return(void 0!==e||void 0!==n)&&A&&a.height&&l>a.height&&(l=a.height,c=Li(Math.floor(l*A))),{width:c,height:l}}function ki(t,e,n){const A=e||1,r=Math.floor(t.height*A),i=Math.floor(t.width*A);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==A||o.height!==r||o.width!==i)&&(t.currentDevicePixelRatio=A,o.height=r,o.width=i,t.ctx.setTransform(A,0,0,A,0,0),!0)}const _i=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener('test',null,e),window.removeEventListener('test',null,e)}catch(t){}return t}();function Pi(t,e){const n=function(t,e){return Ii(t).getPropertyValue(e)}(t,e),A=n&&n.match(/^(\d+)(\.\d+)?px$/);return A?+A[1]:void 0}function Oi(t,e,n,A){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Mi(t,e,n,A){return{x:t.x+n*(e.x-t.x),y:'middle'===A?n<.5?t.y:e.y:'after'===A?n<1?t.y:e.y:n>0?e.y:t.y}}function Hi(t,e,n,A){const r={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},o=Oi(t,r,n),s=Oi(r,i,n),a=Oi(i,e,n),c=Oi(o,s,n),l=Oi(s,a,n);return Oi(c,l,n)}function Ti(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>'center'===t?t:'right'===t?'left':'right',xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Di(t,e){let n,A;'ltr'!==e&&'rtl'!==e||(n=t.canvas.style,A=[n.getPropertyValue('direction'),n.getPropertyPriority('direction')],n.setProperty('direction',e,'important'),t.prevTextDirection=A)}function Ri(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty('direction',e[0],e[1]))}function Vi(t){return'angle'===t?{between:JA,compare:YA,normalize:qA}:{between:tr,compare:(t,e)=>t-e,normalize:t=>t}}function Gi({start:t,end:e,count:n,loop:A,style:r}){return{start:t%n,end:e%n,loop:A&&(e-t+1)%n==0,style:r}}function ji(t,e,n){if(!n)return[t];const{property:A,start:r,end:i}=n,o=e.length,{compare:s,between:a,normalize:c}=Vi(A),{start:l,end:u,loop:h,style:d}=function(t,e,n){const{property:A,start:r,end:i}=n,{between:o,normalize:s}=Vi(A),a=e.length;let c,l,{start:u,end:h,loop:d}=t;if(d){for(u+=a,h+=a,c=0,l=a;c<l&&o(s(e[u%a][A]),r,i);++c)u--,h--;u%=a,h%=a}return h<u&&(h+=a),{start:u,end:h,loop:d,style:t.style}}(t,e,n),f=[];let g,p,m,b=!1,v=null;const y=()=>b||a(r,m,g)&&0!==s(r,m),w=()=>!b||0===s(i,g)||a(i,m,g);for(let t=l,n=l;t<=u;++t)p=e[t%o],p.skip||(g=c(p[A]),g!==m&&(b=a(g,r,i),null===v&&y()&&(v=0===s(g,r)?t:n),null!==v&&w()&&(f.push(Gi({start:v,end:t,loop:h,count:o,style:d})),v=null),n=t,m=g));return null!==v&&f.push(Gi({start:v,end:u,loop:h,count:o,style:d})),f}function Wi(t,e,n,A){return A&&A.setContext&&n?function(t,e,n,A){const r=t._chart.getContext(),i=Ki(t.options),{_datasetIndex:o,options:{spanGaps:s}}=t,a=n.length,c=[];let l=i,u=e[0].start,h=u;function d(t,e,A,r){const i=s?-1:1;if(t!==e){for(t+=a;n[t%a].skip;)t-=i;for(;n[e%a].skip;)e+=i;t%a!=e%a&&(c.push({start:t%a,end:e%a,loop:A,style:r}),l=r,u=e%a)}}for(const t of e){u=s?u:t.start;let e,i=n[u%a];for(h=u+1;h<=t.end;h++){const s=n[h%a];e=Ki(A.setContext(ti(r,{type:'segment',p0:i,p1:s,p0DataIndex:(h-1)%a,p1DataIndex:h%a,datasetIndex:o}))),Xi(e,l)&&d(u,h-1,t.loop,l),i=s,l=e}u<h-1&&d(u,h-1,t.loop,l)}return c}(t,e,n,A):e}function Ki(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Xi(t,e){if(!e)return!1;const n=[],A=function(t,e){return gr(e)?(n.includes(e)||n.push(e),n.indexOf(e)):e};return JSON.stringify(t,A)!==JSON.stringify(e,A)}
15
+ /*!
16
+ * Chart.js v4.4.0
17
+ * https://www.chartjs.org
18
+ * (c) 2023 Chart.js Contributors
19
+ * Released under the MIT License
20
+ */class zi{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,A){const r=e.listeners[A],i=e.duration;r.forEach((A=>A({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=sr.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,A)=>{if(!n.running||!n.items.length)return;const r=n.items;let i,o=r.length-1,s=!1;for(;o>=0;--o)i=r[o],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),s=!0):(r[o]=r[r.length-1],r.pop());s&&(A.draw(),this._notify(A,n,t,'progress')),r.length||(n.running=!1,this._notify(A,n,t,'complete'),n.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let A=n.length-1;for(;A>=0;--A)n[A].cancel();e.items=[],this._notify(t,e,Date.now(),'complete')}remove(t){return this._charts.delete(t)}}var Zi=new zi;const Yi='transparent',qi={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const A=pr(t||Yi),r=A.valid&&pr(e||Yi);return r&&r.valid?r.mix(A,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Ji{constructor(t,e,n,A){const r=e[n];A=$r([t.to,A,r,t.from]);const i=$r([t.from,r,A]);this._active=!0,this._fn=t.fn||qi[t.type||typeof i],this._easing=fr[t.easing]||fr.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=A,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const A=this._target[this._prop],r=n-this._start,i=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=$r([t.to,e,A,t.from]),this._from=$r([t.from,A,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,A=this._prop,r=this._from,i=this._loop,o=this._to;let s;if(this._active=r!==o&&(i||e<n),!this._active)return this._target[A]=o,void this._notify(!0);e<0?this._target[A]=r:(s=e/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[A]=this._fn(r,o,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?'res':'rej',n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class $i{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!uA(t))return;const e=Object.keys(Sr.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((A=>{const r=t[A];if(!uA(r))return;const i={};for(const t of e)i[t]=r[t];(lA(r.properties)&&r.properties||[A]).forEach((t=>{t!==A&&n.has(t)||n.set(t,i)}))}))}_animateOptions(t,e){const n=e.options,A=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!A)return[];const r=this._createAnimations(A,n);return n.$shared&&function(t,e){const n=[],A=Object.keys(e);for(let e=0;e<A.length;e++){const r=t[A[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),r}_createAnimations(t,e){const n=this._properties,A=[],r=t.$animations||(t.$animations={}),i=Object.keys(e),o=Date.now();let s;for(s=i.length-1;s>=0;--s){const a=i[s];if('$'===a.charAt(0))continue;if('options'===a){A.push(...this._animateOptions(t,e));continue}const c=e[a];let l=r[a];const u=n.get(a);if(l){if(u&&l.active()){l.update(u,c,o);continue}l.cancel()}u&&u.duration?(r[a]=l=new Ji(u,t,a,c),A.push(l)):t[a]=c}return A}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Zi.add(this._chart,n),!0):void 0}}function to(t,e){const n=t&&t.options||{},A=n.reverse,r=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:A?i:r,end:A?r:i}}function eo(t,e){const n=[],A=t._getSortedDatasetMetas(e);let r,i;for(r=0,i=A.length;r<i;++r)n.push(A[r].index);return n}function no(t,e,n,A={}){const r=t.keys,i='single'===A.mode;let o,s,a,c;if(null!==e){for(o=0,s=r.length;o<s;++o){if(a=+r[o],a===n){if(A.all)continue;break}c=t.values[a],hA(c)&&(i||0===e||DA(e)===DA(c))&&(e+=c)}return e}}function Ao(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function ro(t,e,n){const A=t[e]||(t[e]={});return A[n]||(A[n]={})}function io(t,e,n,A){for(const r of e.getMatchingVisibleMetas(A).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function oo(t,e){const{chart:n,_cachedMeta:A}=t,r=n._stacks||(n._stacks={}),{iScale:i,vScale:o,index:s}=A,a=i.axis,c=o.axis,l=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(i,o,A),u=e.length;let h;for(let t=0;t<u;++t){const n=e[t],{[a]:i,[c]:u}=n;h=(n._stacks||(n._stacks={}))[c]=ro(r,l,i),h[s]=u,h._top=io(h,o,!0,A.type),h._bottom=io(h,o,!1,A.type);(h._visualValues||(h._visualValues={}))[s]=u}}function so(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function ao(t,e){const n=t.controller.index,A=t.vScale&&t.vScale.axis;if(A){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[A]||void 0===e[A][n])return;delete e[A][n],void 0!==e[A]._visualValues&&void 0!==e[A]._visualValues[n]&&delete e[A]._visualValues[n]}}}const co=t=>'reset'===t||'none'===t,lo=(t,e)=>e?t:Object.assign({},t);class uo{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ao(t.vScale,t),this.addElements(),this.options.fill&&this.chart.isPluginEnabled('filler')}updateIndex(t){this.index!==t&&ao(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),A=(t,e,n,A)=>'x'===t?e:'r'===t?A:n,r=e.xAxisID=fA(n.xAxisID,so(t,'x')),i=e.yAxisID=fA(n.yAxisID,so(t,'y')),o=e.rAxisID=fA(n.rAxisID,so(t,'r')),s=e.indexAxis,a=e.iAxisID=A(s,r,i,o),c=e.vAxisID=A(s,i,r,o);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(i),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(a),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update('reset')}_destroy(){const t=this._cachedMeta;this._data&&ir(this._data,this),t._stacked&&ao(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(uA(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let A,r,i;for(A=0,r=e.length;A<r;++A)i=e[A],n[A]={x:i,y:t[i]};return n}(e);else if(n!==e){if(n){ir(n,this);const t=this._cachedMeta;ao(t),t._parsed=[]}e&&Object.isExtensible(e)&&(r=this,(A=e)._chartjs?A._chartjs.listeners.push(r):(Object.defineProperty(A,'_chartjs',{configurable:!0,enumerable:!1,value:{listeners:[r]}}),rr.forEach((t=>{const e='_onData'+QA(t),n=A[t];Object.defineProperty(A,t,{configurable:!0,enumerable:!1,value(...t){const r=n.apply(this,t);return A._chartjs.listeners.forEach((n=>{'function'==typeof n[e]&&n[e](...t)})),r}})})))),this._syncList=[],this._data=e}var A,r}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let A=!1;this._dataCheck();const r=e._stacked;e._stacked=Ao(e.vScale,e),e.stack!==n.stack&&(A=!0,ao(e),e.stack=n.stack),this._resyncElements(t),(A||r!==e._stacked)&&oo(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:A}=this,{iScale:r,_stacked:i}=n,o=r.axis;let s,a,c,l=0===t&&e===A.length||n._sorted,u=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=A,n._sorted=!0,c=A;else{c=lA(A[t])?this.parseArrayData(n,A,t,e):uA(A[t])?this.parseObjectData(n,A,t,e):this.parsePrimitiveData(n,A,t,e);const r=()=>null===a[o]||u&&a[o]<u[o];for(s=0;s<e;++s)n._parsed[s+t]=a=c[s],l&&(r()&&(l=!1),u=a);n._sorted=l}i&&oo(this,c)}parsePrimitiveData(t,e,n,A){const{iScale:r,vScale:i}=t,o=r.axis,s=i.axis,a=r.getLabels(),c=r===i,l=new Array(A);let u,h,d;for(u=0,h=A;u<h;++u)d=u+n,l[u]={[o]:c||r.parse(a[d],d),[s]:i.parse(e[d],d)};return l}parseArrayData(t,e,n,A){const{xScale:r,yScale:i}=t,o=new Array(A);let s,a,c,l;for(s=0,a=A;s<a;++s)c=s+n,l=e[c],o[s]={x:r.parse(l[0],c),y:i.parse(l[1],c)};return o}parseObjectData(t,e,n,A){const{xScale:r,yScale:i}=t,{xAxisKey:o='x',yAxisKey:s='y'}=this._parsing,a=new Array(A);let c,l,u,h;for(c=0,l=A;c<l;++c)u=c+n,h=e[u],a[c]={x:r.parse(IA(h,o),u),y:i.parse(IA(h,s),u)};return a}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const A=this.chart,r=this._cachedMeta,i=e[t.axis];return no({keys:eo(A,!0),values:e._stacks[t.axis]._visualValues},i,r.index,{mode:n})}updateRangeFromParsed(t,e,n,A){const r=n[e.axis];let i=null===r?NaN:r;const o=A&&n._stacks[e.axis];A&&o&&(A.values=o,i=no(A,r,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,e){const n=this._cachedMeta,A=n._parsed,r=n._sorted&&t===n.iScale,i=A.length,o=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:eo(n,!0),values:null})(e,n,this.chart),a={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:l}=function(t){const{min:e,max:n,minDefined:A,maxDefined:r}=t.getUserBounds();return{min:A?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(o);let u,h;function d(){h=A[u];const e=h[o.axis];return!hA(h[t.axis])||c>e||l<e}for(u=0;u<i&&(d()||(this.updateRangeFromParsed(a,t,h,s),!r));++u);if(r)for(u=i-1;u>=0;--u)if(!d()){this.updateRangeFromParsed(a,t,h,s);break}return a}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let A,r,i;for(A=0,r=e.length;A<r;++A)i=e[A][t.axis],hA(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,A=e.vScale,r=this.getParsed(t);return{label:n?''+n.getLabelForValue(r[n.axis]):'',value:A?''+A.getLabelForValue(r[A.axis]):''}}_update(t){const e=this._cachedMeta;this.update(t||'default'),e._clip=function(t){let e,n,A,r;return uA(t)?(e=t.top,n=t.right,A=t.bottom,r=t.left):e=n=A=r=t,{top:e,right:n,bottom:A,left:r,disabled:!1===t}}(fA(this.options.clip,function(t,e,n){if(!1===n)return!1;const A=to(t,n),r=to(e,n);return{top:r.end,right:A.end,bottom:r.start,left:A.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,A=n.data||[],r=e.chartArea,i=[],o=this._drawStart||0,s=this._drawCount||A.length-o,a=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,r,o,s),c=o;c<o+s;++c){const e=A[c];e.hidden||(e.active&&a?i.push(e):e.draw(t,r))}for(c=0;c<i.length;++c)i[c].draw(t,r)}getStyle(t,e){const n=e?'active':'default';return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const A=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return ti(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:'default',type:'data'})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=A.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return ti(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:'default',type:'dataset'})}(this.chart.getContext(),this.index)),r.dataset=A,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e='default',n){const A='active'===e,r=this._cachedDataOpts,i=t+'-'+e,o=r[i],s=this.enableOptionSharing&&EA(n);if(o)return lo(o,s);const a=this.chart.config,c=a.datasetElementScopeKeys(this._type,t),l=A?[`${t}Hover`,'hover',t,'']:[t,''],u=a.getOptionScopes(this.getDataset(),c),h=Object.keys(Sr.elements[t]),d=a.resolveNamedOptions(u,h,(()=>this.getContext(n,A,e)),l);return d.$shared&&(d.$shared=s,r[i]=Object.freeze(lo(d,s))),d}_resolveAnimations(t,e,n){const A=this.chart,r=this._cachedDataOpts,i=`animation-${e}`,o=r[i];if(o)return o;let s;if(!1!==A.options.animation){const A=this.chart.config,r=A.datasetAnimationScopeKeys(this._type,e),i=A.getOptionScopes(this.getDataset(),r);s=A.createResolver(i,this.getContext(t,n,e))}const a=new $i(A,s&&s.animations);return s&&s._cacheable&&(r[i]=Object.freeze(a)),a}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||co(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),A=this._sharedOptions,r=this.getSharedOptions(n),i=this.includeOptions(e,r)||r!==A;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:i}}updateElement(t,e,n,A){co(A)?Object.assign(t,n):this._resolveAnimations(e,A).update(t,n)}updateSharedOptions(t,e,n){t&&!co(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,A){t.active=A;const r=this.getStyle(e,A);this._resolveAnimations(e,n,A).update(t,{options:!A&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,'active',!1)}setHoverStyle(t,e,n){this._setStyle(t,n,'active',!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,'active',!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,'active',!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const A=n.length,r=e.length,i=Math.min(r,A);i&&this.parse(0,i),r>A?this._insertElements(A,r-A,t):r<A&&this._removeElements(r,A-r)}_insertElements(t,e,n=!0){const A=this._cachedMeta,r=A.data,i=t+e;let o;const s=t=>{for(t.length+=e,o=t.length-1;o>=i;o--)t[o]=t[o-e]};for(s(r),o=t;o<i;++o)r[o]=new this.dataElementType;this._parsing&&s(A._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,'reset')}updateElements(t,e,n,A){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const A=n._parsed.splice(t,e);n._stacked&&ao(n,A)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,A]=t;this[e](n,A)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(['_insertElements',this.getDataset().data.length-t,t])}_onDataPop(){this._sync(['_removeElements',this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(['_removeElements',0,1])}_onDataSplice(t,e){e&&this._sync(['_removeElements',t,e]);const n=arguments.length-2;n&&this._sync(['_insertElements',t,n])}_onDataUnshift(){this._sync(['_insertElements',0,arguments.length])}}function ho(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let A=[];for(let e=0,r=n.length;e<r;e++)A=A.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=or(A.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let A,r,i,o,s=e._length;const a=()=>{32767!==i&&-32768!==i&&(EA(o)&&(s=Math.min(s,Math.abs(i-o)||s)),o=i)};for(A=0,r=n.length;A<r;++A)i=e.getPixelForValue(n[A]),a();for(o=void 0,A=0,r=e.ticks.length;A<r;++A)i=e.getPixelForTick(A),a();return s}function fo(t,e,n,A){return lA(t)?function(t,e,n,A){const r=n.parse(t[0],A),i=n.parse(t[1],A),o=Math.min(r,i),s=Math.max(r,i);let a=o,c=s;Math.abs(o)>Math.abs(s)&&(a=s,c=o),e[n.axis]=c,e._custom={barStart:a,barEnd:c,start:r,end:i,min:o,max:s}}(t,e,n,A):e[n.axis]=n.parse(t,A),e}function go(t,e,n,A){const r=t.iScale,i=t.vScale,o=r.getLabels(),s=r===i,a=[];let c,l,u,h;for(c=n,l=n+A;c<l;++c)h=e[c],u={},u[r.axis]=s||r.parse(o[c],c),a.push(fo(h,u,i,c));return a}function po(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function mo(t,e,n,A){let r=e.borderSkipped;const i={};if(!r)return void(t.borderSkipped=i);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:s,reverse:a,top:c,bottom:l}=function(t){let e,n,A,r,i;return t.horizontal?(e=t.base>t.x,n='left',A='right'):(e=t.base<t.y,n='bottom',A='top'),e?(r='end',i='start'):(r='start',i='end'),{start:n,end:A,reverse:e,top:r,bottom:i}}(t);'middle'===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===A?r=c:(n._bottom||0)===A?r=l:(i[bo(l,o,s,a)]=!0,r=c)),i[bo(r,o,s,a)]=!0,t.borderSkipped=i}function bo(t,e,n,A){var r,i,o;return A?(o=n,t=vo(t=(r=t)===(i=e)?o:r===o?i:r,n,e)):t=vo(t,e,n),t}function vo(t,e,n){return'start'===t?e:'end'===t?n:t}function yo(t,{inflateAmount:e},n){t.inflateAmount='auto'===e?1===n?.33:0:e}class wo extends uo{static id='bar';static defaults={datasetElementType:!1,dataElementType:'bar',categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:'number',properties:['x','y','base','width','height']}}};static overrides={scales:{_index_:{type:'category',offset:!0,grid:{offset:!0}},_value_:{type:'linear',beginAtZero:!0}}};parsePrimitiveData(t,e,n,A){return go(t,e,n,A)}parseArrayData(t,e,n,A){return go(t,e,n,A)}parseObjectData(t,e,n,A){const{iScale:r,vScale:i}=t,{xAxisKey:o='x',yAxisKey:s='y'}=this._parsing,a='x'===r.axis?o:s,c='x'===i.axis?o:s,l=[];let u,h,d,f;for(u=n,h=n+A;u<h;++u)f=e[u],d={},d[r.axis]=r.parse(IA(f,a),u),l.push(fo(IA(f,c),d,i,u));return l}updateRangeFromParsed(t,e,n,A){super.updateRangeFromParsed(t,e,n,A);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:A}=e,r=this.getParsed(t),i=r._custom,o=po(i)?'['+i.start+', '+i.end+']':''+A.getLabelForValue(r[A.axis]);return{label:''+n.getLabelForValue(r[n.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,A){const r='reset'===A,{index:i,_cachedMeta:{vScale:o}}=this,s=o.getBasePixel(),a=o.isHorizontal(),c=this._getRuler(),{sharedOptions:l,includeOptions:u}=this._getSharedOptions(e,A);for(let h=e;h<e+n;h++){const e=this.getParsed(h),n=r||cA(e[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),d=this._calculateBarIndexPixels(h,c),f=(e._stacks||{})[o.axis],g={horizontal:a,base:n.base,enableBorderRadius:!f||po(e._custom)||i===f._top||i===f._bottom,x:a?n.head:d.center,y:a?d.center:n.head,height:a?d.size:Math.abs(n.size),width:a?Math.abs(n.size):d.size};u&&(g.options=l||this.resolveDataElementOptions(h,t[h].active?'active':A));const p=g.options||t[h].options;mo(g,p,f,i),yo(g,p,c.ratio),this.updateElement(t[h],h,g,A)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,A=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),r=n.options.stacked,i=[],o=t=>{const n=t.controller.getParsed(e),A=n&&n[t.vScale.axis];if(cA(A)||isNaN(A))return!0};for(const n of A)if((void 0===e||!o(n))&&((!1===r||-1===i.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&i.push(n.stack),n.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const A=this._getStacks(t,n),r=void 0!==e?A.indexOf(e):-1;return-1===r?A.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,A=[];let r,i;for(r=0,i=e.data.length;r<i;++r)A.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const o=t.barThickness;return{min:o||ho(e),pixels:A,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:A},options:{base:r,minBarLength:i}}=this,o=r||0,s=this.getParsed(t),a=s._custom,c=po(a);let l,u,h=s[e.axis],d=0,f=n?this.applyStack(e,s,n):h;f!==h&&(d=f-h,f=h),c&&(h=a.barStart,f=a.barEnd-a.barStart,0!==h&&DA(h)!==DA(a.barEnd)&&(d=0),d+=h);const g=cA(r)||c?d:r;let p=e.getPixelForValue(g);if(l=this.chart.getDataVisibility(t)?e.getPixelForValue(d+f):p,u=l-p,Math.abs(u)<i){u=function(t,e,n){return 0!==t?DA(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(u,e,o)*i,h===o&&(p-=u/2);const t=e.getPixelForDecimal(0),r=e.getPixelForDecimal(1),a=Math.min(t,r),d=Math.max(t,r);p=Math.max(Math.min(p,d),a),l=p+u,n&&!c&&(s._stacks[e.axis]._visualValues[A]=e.getValueForPixel(l)-e.getValueForPixel(p))}if(p===e.getPixelForValue(o)){const t=DA(u)*e.getLineWidthForValue(o)/2;p+=t,u-=t}return{size:u,base:p,head:l,center:l+u/2}}_calculateBarIndexPixels(t,e){const n=e.scale,A=this.options,r=A.skipNull,i=fA(A.maxBarThickness,1/0);let o,s;if(e.grouped){const n=r?this._getStackCount(t):e.stackCount,a='flex'===A.barThickness?function(t,e,n,A){const r=e.pixels,i=r[t];let o=t>0?r[t-1]:null,s=t<r.length-1?r[t+1]:null;const a=n.categoryPercentage;null===o&&(o=i-(null===s?e.end-e.start:s-i)),null===s&&(s=i+i-o);const c=i-(i-Math.min(o,s))/2*a;return{chunk:Math.abs(s-o)/2*a/A,ratio:n.barPercentage,start:c}}(t,e,A,n):function(t,e,n,A){const r=n.barThickness;let i,o;return cA(r)?(i=e.min*n.categoryPercentage,o=n.barPercentage):(i=r*A,o=1),{chunk:i/A,ratio:o,start:e.pixels[t]-i/2}}(t,e,A,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);o=a.start+a.chunk*c+a.chunk/2,s=Math.min(i,a.chunk*a.ratio)}else o=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(i,e.min*e.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,A=n.length;let r=0;for(;r<A;++r)null!==this.getParsed(r)[e.axis]&&n[r].draw(this._ctx)}}class Bo extends uo{static id='doughnut';static defaults={datasetElementType:!1,dataElementType:'arc',animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:'number',properties:['circumference','endAngle','innerRadius','outerRadius','startAngle','x','y','offset','borderWidth','spacing']}},cutout:'50%',rotation:0,circumference:360,radius:'100%',spacing:0,indexAxis:'r'};static descriptors={_scriptable:t=>'spacing'!==t,_indexable:t=>'spacing'!==t&&!t.startsWith('borderDash')&&!t.startsWith('hoverBorderDash')};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:A}}=t.legend.options;return e.labels.map(((e,r)=>{const i=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:A,lineWidth:i.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,A=this._cachedMeta;if(!1===this._parsing)A._parsed=n;else{let r,i,o=t=>+n[t];if(uA(n[t])){const{key:t='value'}=this._parsing;o=e=>+IA(n[e],t)}for(r=t,i=t+e;r<i;++r)A._parsed[r]=o(r)}}_getRotation(){return WA(this.options.rotation-90)}_getCircumference(){return WA(this.options.circumference)}_getRotationExtents(){let t=NA,e=-NA;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const A=this.chart.getDatasetMeta(n).controller,r=A._getRotation(),i=A._getCircumference();t=Math.min(t,r),e=Math.max(e,r+i)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,A=this._cachedMeta,r=A.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,o=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min((a=this.options.cutout,c=o,'string'==typeof a&&a.endsWith('%')?parseFloat(a)/100:+a/c),1);var a,c;const l=this._getRingWeight(this.index),{circumference:u,rotation:h}=this._getRotationExtents(),{ratioX:d,ratioY:f,offsetX:g,offsetY:p}=function(t,e,n){let A=1,r=1,i=0,o=0;if(e<NA){const s=t,a=s+e,c=Math.cos(s),l=Math.sin(s),u=Math.cos(a),h=Math.sin(a),d=(t,e,A)=>JA(t,s,a,!0)?1:Math.max(e,e*n,A,A*n),f=(t,e,A)=>JA(t,s,a,!0)?-1:Math.min(e,e*n,A,A*n),g=d(0,c,u),p=d(OA,l,h),m=f(LA,c,u),b=f(LA+OA,l,h);A=(g-m)/2,r=(p-b)/2,i=-(g+m)/2,o=-(p+b)/2}return{ratioX:A,ratioY:r,offsetX:i,offsetY:o}}(h,u,s),m=(n.width-i)/d,b=(n.height-i)/f,v=Math.max(Math.min(m,b)/2,0),y=gA(this.options.radius,v),w=(y-Math.max(y*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=p*y,A.total=this.calculateTotal(),this.outerRadius=y-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*l,0),this.updateElements(r,0,r.length,t)}_circumference(t,e){const n=this.options,A=this._cachedMeta,r=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===A._parsed[t]||A.data[t].hidden?0:this.calculateCircumference(A._parsed[t]*r/NA)}updateElements(t,e,n,A){const r='reset'===A,i=this.chart,o=i.chartArea,s=i.options.animation,a=(o.left+o.right)/2,c=(o.top+o.bottom)/2,l=r&&s.animateScale,u=l?0:this.innerRadius,h=l?0:this.outerRadius,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(e,A);let g,p=this._getRotation();for(g=0;g<e;++g)p+=this._circumference(g,r);for(g=e;g<e+n;++g){const e=this._circumference(g,r),n=t[g],i={x:a+this.offsetX,y:c+this.offsetY,startAngle:p,endAngle:p+e,circumference:e,outerRadius:h,innerRadius:u};f&&(i.options=d||this.resolveDataElementOptions(g,n.active?'active':A)),p+=e,this.updateElement(n,g,i,A)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,A=0;for(n=0;n<e.length;n++){const r=t._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||e[n].hidden||(A+=Math.abs(r))}return A}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?NA*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,A=n.data.labels||[],r=wr(e._parsed[t],n.options.locale);return{label:A[t]||'',value:r}}getMaxBorderWidth(t){let e=0;const n=this.chart;let A,r,i,o,s;if(!t)for(A=0,r=n.data.datasets.length;A<r;++A)if(n.isDatasetVisible(A)){i=n.getDatasetMeta(A),t=i.data,o=i.controller;break}if(!t)return 0;for(A=0,r=t.length;A<r;++A)s=o.resolveDataElementOptions(A),'inner'!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,A=t.length;n<A;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(fA(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Co extends uo{static id='line';static defaults={datasetElementType:'line',dataElementType:'point',showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:'category'},_value_:{type:'linear'}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:A=[],_dataset:r}=e,i=this.chart._animationsDisabled;let{start:o,count:s}=function(t,e,n){const A=e.length;let r=0,i=A;if(t._sorted){const{iScale:o,_parsed:s}=t,a=o.axis,{min:c,max:l,minDefined:u,maxDefined:h}=o.getUserBounds();u&&(r=$A(Math.min(nr(s,a,c).lo,n?A:nr(e,a,o.getPixelForValue(c)).lo),0,A-1)),i=h?$A(Math.max(nr(s,o.axis,l,!0).hi+1,n?0:nr(e,a,o.getPixelForValue(l),!0).hi+1),r,A)-r:A-r}return{start:r,count:i}}(e,A,i);this._drawStart=o,this._drawCount=s,function(t){const{xScale:e,yScale:n,_scaleRanges:A}=t,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!A)return t._scaleRanges=r,!0;const i=A.xmin!==e.min||A.xmax!==e.max||A.ymin!==n.min||A.ymax!==n.max;return Object.assign(A,r),i}(e)&&(o=0,s=A.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=A;const a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0),a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:a},t),this.updateElements(A,o,s,t)}updateElements(t,e,n,A){const r='reset'===A,{iScale:i,vScale:o,_stacked:s,_dataset:a}=this._cachedMeta,{sharedOptions:c,includeOptions:l}=this._getSharedOptions(e,A),u=i.axis,h=o.axis,{spanGaps:d,segment:f}=this.options,g=GA(d)?d:Number.POSITIVE_INFINITY,p=this.chart._animationsDisabled||r||'none'===A,m=e+n,b=t.length;let v=e>0&&this.getParsed(e-1);for(let n=0;n<b;++n){const d=t[n],b=p?d:{};if(n<e||n>=m){b.skip=!0;continue}const y=this.getParsed(n),w=cA(y[h]),B=b[u]=i.getPixelForValue(y[u],n),C=b[h]=r||w?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,y,s):y[h],n);b.skip=isNaN(B)||isNaN(C)||w,b.stop=n>0&&Math.abs(y[u]-v[u])>g,f&&(b.parsed=y,b.raw=a.data[n]),l&&(b.options=c||this.resolveDataElementOptions(n,d.active?'active':A)),p||this.updateElement(d,n,b,A),v=y}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,A=t.data||[];if(!A.length)return n;const r=A[0].size(this.resolveDataElementOptions(0)),i=A[A.length-1].size(this.resolveDataElementOptions(A.length-1));return Math.max(n,r,i)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class xo extends uo{static id='polarArea';static defaults={dataElementType:'arc',animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:'number',properties:['x','y','startAngle','endAngle','innerRadius','outerRadius']}},indexAxis:'r',startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:A}}=t.legend.options;return e.labels.map(((e,r)=>{const i=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:A,lineWidth:i.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}},scales:{r:{type:'radialLinear',angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,A=n.data.labels||[],r=wr(e._parsed[t].r,n.options.locale);return{label:A[t]||'',value:r}}parseObjectData(t,e,n,A){return fi.bind(this)(t,e,n,A)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,n)=>{const A=this.getParsed(n).r;!isNaN(A)&&this.chart.getDataVisibility(n)&&(A<e.min&&(e.min=A),A>e.max&&(e.max=A))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,A=Math.min(e.right-e.left,e.bottom-e.top),r=Math.max(A/2,0),i=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=r-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(t,e,n,A){const r='reset'===A,i=this.chart,o=i.options.animation,s=this._cachedMeta.rScale,a=s.xCenter,c=s.yCenter,l=s.getIndexAngle(0)-.5*LA;let u,h=l;const d=360/this.countVisibleElements();for(u=0;u<e;++u)h+=this._computeAngle(u,A,d);for(u=e;u<e+n;u++){const e=t[u];let n=h,f=h+this._computeAngle(u,A,d),g=i.getDataVisibility(u)?s.getDistanceFromCenterForValue(this.getParsed(u).r):0;h=f,r&&(o.animateScale&&(g=0),o.animateRotate&&(n=f=l));const p={x:a,y:c,innerRadius:0,outerRadius:g,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(u,e.active?'active':A)};this.updateElement(e,u,p,A)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?WA(this.resolveDataElementOptions(t,e).angle||n):0}}class Fo extends Bo{static id='pie';static defaults={cutout:0,rotation:0,circumference:360,radius:'100%'}}function Io(t,e,n,A){const{controller:r,data:i,_sorted:o}=t,s=r._cachedMeta.iScale;if(s&&e===s.axis&&'r'!==e&&o&&i.length){const t=s._reversePixels?Ar:nr;if(!A)return t(i,e,n);if(r._sharedOptions){const A=i[0],r='function'==typeof A.getRange&&A.getRange(e);if(r){const A=t(i,e,n-r),o=t(i,e,n+r);return{lo:A.lo,hi:o.hi}}}}return{lo:0,hi:i.length-1}}function Qo(t,e,n,A,r){const i=t.getSortedVisibleDatasetMetas(),o=n[e];for(let t=0,n=i.length;t<n;++t){const{index:n,data:s}=i[t],{lo:a,hi:c}=Io(i[t],e,o,r);for(let t=a;t<=c;++t){const e=s[t];e.skip||A(e,n,t)}}}function Eo(t,e,n,A,r){const i=[];if(!r&&!t.isPointInArea(e))return i;return Qo(t,n,e,(function(n,o,s){(r||Pr(n,t.chartArea,0))&&n.inRange(e.x,e.y,A)&&i.push({element:n,datasetIndex:o,index:s})}),!0),i}function So(t,e,n,A,r,i){let o=[];const s=function(t){const e=-1!==t.indexOf('x'),n=-1!==t.indexOf('y');return function(t,A){const r=e?Math.abs(t.x-A.x):0,i=n?Math.abs(t.y-A.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}(n);let a=Number.POSITIVE_INFINITY;return Qo(t,n,e,(function(n,c,l){const u=n.inRange(e.x,e.y,r);if(A&&!u)return;const h=n.getCenterPoint(r);if(!(!!i||t.isPointInArea(h))&&!u)return;const d=s(e,h);d<a?(o=[{element:n,datasetIndex:c,index:l}],a=d):d===a&&o.push({element:n,datasetIndex:c,index:l})})),o}function Uo(t,e,n,A,r,i){return i||t.isPointInArea(e)?'r'!==n||A?So(t,e,n,A,r,i):function(t,e,n,A){let r=[];return Qo(t,n,e,(function(t,n,i){const{startAngle:o,endAngle:s}=t.getProps(['startAngle','endAngle'],A),{angle:a}=zA(t,{x:e.x,y:e.y});JA(a,o,s)&&r.push({element:t,datasetIndex:n,index:i})})),r}(t,e,n,r):[]}function Lo(t,e,n,A,r){const i=[],o='x'===n?'inXRange':'inYRange';let s=!1;return Qo(t,n,e,((t,A,a)=>{t[o](e[n],r)&&(i.push({element:t,datasetIndex:A,index:a}),s=s||t.inRange(e.x,e.y,r))})),A&&!s?[]:i}var No={evaluateInteractionItems:Qo,modes:{index(t,e,n,A){const r=Ui(e,t),i=n.axis||'x',o=n.includeInvisible||!1,s=n.intersect?Eo(t,r,i,A,o):Uo(t,r,i,!1,A,o),a=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&a.push({element:n,datasetIndex:t.index,index:e})})),a):[]},dataset(t,e,n,A){const r=Ui(e,t),i=n.axis||'xy',o=n.includeInvisible||!1;let s=n.intersect?Eo(t,r,i,A,o):Uo(t,r,i,!1,A,o);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,A)=>Eo(t,Ui(e,t),n.axis||'xy',A,n.includeInvisible||!1),nearest(t,e,n,A){const r=Ui(e,t),i=n.axis||'xy',o=n.includeInvisible||!1;return Uo(t,r,i,n.intersect,A,o)},x:(t,e,n,A)=>Lo(t,Ui(e,t),'x',n.intersect,A),y:(t,e,n,A)=>Lo(t,Ui(e,t),'y',n.intersect,A)}};const ko=['left','top','right','bottom'];function _o(t,e){return t.filter((t=>t.pos===e))}function Po(t,e){return t.filter((t=>-1===ko.indexOf(t.pos)&&t.box.axis===e))}function Oo(t,e){return t.sort(((t,n)=>{const A=e?n:t,r=e?t:n;return A.weight===r.weight?A.index-r.index:A.weight-r.weight}))}function Mo(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:A,stackWeight:r}=n;if(!t||!ko.includes(A))continue;const i=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=r}return e}(t),{vBoxMaxWidth:A,hBoxMaxHeight:r}=e;let i,o,s;for(i=0,o=t.length;i<o;++i){s=t[i];const{fullSize:o}=s.box,a=n[s.stack],c=a&&s.stackWeight/a.weight;s.horizontal?(s.width=c?c*A:o&&e.availableWidth,s.height=r):(s.width=A,s.height=c?c*r:o&&e.availableHeight)}return n}function Ho(t,e,n,A){return Math.max(t[n],e[n])+Math.max(t[A],e[A])}function To(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Do(t,e,n,A){const{pos:r,box:i}=n,o=t.maxPadding;if(!uA(r)){n.size&&(t[r]-=n.size);const e=A[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?i.height:i.width),n.size=e.size/e.count,t[r]+=n.size}i.getPadding&&To(o,i.getPadding());const s=Math.max(0,e.outerWidth-Ho(o,t,'left','right')),a=Math.max(0,e.outerHeight-Ho(o,t,'top','bottom')),c=s!==t.w,l=a!==t.h;return t.w=s,t.h=a,n.horizontal?{same:c,other:l}:{same:l,other:c}}function Ro(t,e){const n=e.maxPadding;function A(t){const A={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{A[t]=Math.max(e[t],n[t])})),A}return A(t?['left','right']:['top','bottom'])}function Vo(t,e,n,A){const r=[];let i,o,s,a,c,l;for(i=0,o=t.length,c=0;i<o;++i){s=t[i],a=s.box,a.update(s.width||e.w,s.height||e.h,Ro(s.horizontal,e));const{same:o,other:u}=Do(e,n,s,A);c|=o&&r.length,l=l||u,a.fullSize||r.push(s)}return c&&Vo(r,e,n,A)||l}function Go(t,e,n,A,r){t.top=n,t.left=e,t.right=e+A,t.bottom=n+r,t.width=A,t.height=r}function jo(t,e,n,A){const r=n.padding;let{x:i,y:o}=e;for(const s of t){const t=s.box,a=A[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/a.weight||1;if(s.horizontal){const A=e.w*c,i=a.size||t.height;EA(a.start)&&(o=a.start),t.fullSize?Go(t,r.left,o,n.outerWidth-r.right-r.left,i):Go(t,e.left+a.placed,o,A,i),a.start=o,a.placed+=A,o=t.bottom}else{const A=e.h*c,o=a.size||t.width;EA(a.start)&&(i=a.start),t.fullSize?Go(t,i,r.top,o,n.outerHeight-r.bottom-r.top):Go(t,i,e.top+a.placed,o,A),a.start=i,a.placed+=A,i=t.right}}e.x=i,e.y=o}var Wo={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||'top',e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,A){if(!t)return;const r=qr(t.options.layout.padding),i=Math.max(e-r.width,0),o=Math.max(n-r.height,0),s=function(t){const e=function(t){const e=[];let n,A,r,i,o,s;for(n=0,A=(t||[]).length;n<A;++n)r=t[n],({position:i,options:{stack:o,stackWeight:s=1}}=r),e.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&i+o,stackWeight:s});return e}(t),n=Oo(e.filter((t=>t.box.fullSize)),!0),A=Oo(_o(e,'left'),!0),r=Oo(_o(e,'right')),i=Oo(_o(e,'top'),!0),o=Oo(_o(e,'bottom')),s=Po(e,'x'),a=Po(e,'y');return{fullSize:n,leftAndTop:A.concat(i),rightAndBottom:r.concat(a).concat(o).concat(s),chartArea:_o(e,'chartArea'),vertical:A.concat(r).concat(a),horizontal:i.concat(o).concat(s)}}(t.boxes),a=s.vertical,c=s.horizontal;mA(t.boxes,(t=>{'function'==typeof t.beforeLayout&&t.beforeLayout()}));const l=a.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:i,availableHeight:o,vBoxMaxWidth:i/2/l,hBoxMaxHeight:o/2}),h=Object.assign({},r);To(h,qr(A));const d=Object.assign({maxPadding:h,w:i,h:o,x:r.left,y:r.top},r),f=Mo(a.concat(c),u);Vo(s.fullSize,d,u,f),Vo(a,d,u,f),Vo(c,d,u,f)&&Vo(a,d,u,f),function(t){const e=t.maxPadding;function n(n){const A=Math.max(e[n]-t[n],0);return t[n]+=A,A}t.y+=n('top'),t.x+=n('left'),n('right'),n('bottom')}(d),jo(s.leftAndTop,d,u,f),d.x+=d.w,d.y+=d.h,jo(s.rightAndBottom,d,u,f),t.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},mA(s.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})}))}};class Ko{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,A){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,A?Math.floor(e/A):n)}}isAttached(t){return!0}updateConfig(t){}}class Xo extends Ko{acquireContext(t){return t&&t.getContext&&t.getContext('2d')||null}updateConfig(t){t.options.animation=!1}}const zo='$chartjs',Zo={touchstart:'mousedown',touchmove:'mousemove',touchend:'mouseup',pointerenter:'mouseenter',pointerdown:'mousedown',pointermove:'mousemove',pointerup:'mouseup',pointerleave:'mouseout',pointerout:'mouseout'},Yo=t=>null===t||''===t;const qo=!!_i&&{passive:!0};function Jo(t,e,n){t.canvas.removeEventListener(e,n,qo)}function $o(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function ts(t,e,n){const A=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||$o(n.addedNodes,A),e=e&&!$o(n.removedNodes,A);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function es(t,e,n){const A=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||$o(n.removedNodes,A),e=e&&!$o(n.addedNodes,A);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const ns=new Map;let As=0;function rs(){const t=window.devicePixelRatio;t!==As&&(As=t,ns.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function is(t,e,n){const A=t.canvas,r=A&&xi(A);if(!r)return;const i=ar(((t,e)=>{const A=r.clientWidth;n(t,e),A<r.clientWidth&&n()}),window),o=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,A=e.contentRect.height;0===n&&0===A||i(n,A)}));return o.observe(r),function(t,e){ns.size||window.addEventListener('resize',rs),ns.set(t,e)}(t,i),o}function os(t,e,n){n&&n.disconnect(),'resize'===e&&function(t){ns.delete(t),ns.size||window.removeEventListener('resize',rs)}(t)}function ss(t,e,n){const A=t.canvas,r=ar((e=>{null!==t.ctx&&n(function(t,e){const n=Zo[t.type]||t.type,{x:A,y:r}=Ui(t,e);return{type:n,chart:e,native:t,x:void 0!==A?A:null,y:void 0!==r?r:null}}(e,t))}),t);return function(t,e,n){t.addEventListener(e,n,qo)}(A,e,r),r}class as extends Ko{acquireContext(t,e){const n=t&&t.getContext&&t.getContext('2d');return n&&n.canvas===t?(function(t,e){const n=t.style,A=t.getAttribute('height'),r=t.getAttribute('width');if(t[zo]={initial:{height:A,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||'block',n.boxSizing=n.boxSizing||'border-box',Yo(r)){const e=Pi(t,'width');void 0!==e&&(t.width=e)}if(Yo(A))if(''===t.style.height)t.height=t.width/(e||2);else{const e=Pi(t,'height');void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[zo])return!1;const n=e[zo].initial;['height','width'].forEach((t=>{const A=n[t];cA(A)?e.removeAttribute(t):e.setAttribute(t,A)}));const A=n.style||{};return Object.keys(A).forEach((t=>{e.style[t]=A[t]})),e.width=e.width,delete e[zo],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const A=t.$proxies||(t.$proxies={}),r={attach:ts,detach:es,resize:is}[e]||ss;A[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),A=n[e];if(!A)return;({attach:os,detach:os,resize:os}[e]||Jo)(t,e,A),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,A){return Ni(t,e,n,A)}isAttached(t){const e=xi(t);return!(!e||!e.isConnected)}}let cs=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(['x','y'],t);return{x:e,y:n}}hasValue(){return GA(this.x)&&GA(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const A={};return t.forEach((t=>{A[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),A}};function ls(t,e){const n=t.options.ticks,A=function(t){const e=t.options.offset,n=t._tickSize(),A=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(A,r))}(t),r=Math.min(n.maxTicksLimit||A,A),i=n.major.enabled?function(t){const e=[];let n,A;for(n=0,A=t.length;n<A;n++)t[n].major&&e.push(n);return e}(e):[],o=i.length,s=i[0],a=i[o-1],c=[];if(o>r)return function(t,e,n,A){let r,i=0,o=n[0];for(A=Math.ceil(A),r=0;r<t.length;r++)r===o&&(e.push(t[r]),i++,o=n[i*A])}(e,c,i,o/r),c;const l=function(t,e,n){const A=function(t){const e=t.length;let n,A;if(e<2)return!1;for(A=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==A)return!1;return A}(t),r=e.length/n;if(!A)return Math.max(r,1);const i=function(t){const e=[],n=Math.sqrt(t);let A;for(A=1;A<n;A++)t%A==0&&(e.push(A),e.push(t/A));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(A);for(let t=0,e=i.length-1;t<e;t++){const e=i[t];if(e>r)return e}return Math.max(r,1)}(i,e,r);if(o>0){let t,n;const A=o>1?Math.round((a-s)/(o-1)):null;for(us(e,c,l,cA(A)?0:s-A,s),t=0,n=o-1;t<n;t++)us(e,c,l,i[t],i[t+1]);return us(e,c,l,a,cA(A)?e.length:a+A),c}return us(e,c,l),c}function us(t,e,n,A,r){const i=fA(A,0),o=Math.min(fA(r,t.length),t.length);let s,a,c,l=0;for(n=Math.ceil(n),r&&(s=r-A,n=s/Math.floor(s/n)),c=i;c<0;)l++,c=Math.round(i+l*n);for(a=Math.max(i,0);a<o;a++)a===c&&(e.push(t[a]),l++,c=Math.round(i+l*n))}const hs=(t,e,n)=>'top'===e||'left'===e?t[e]+n:t[e]-n,ds=(t,e)=>Math.min(e||t,t);function fs(t,e){const n=[],A=t.length/e,r=t.length;let i=0;for(;i<r;i+=A)n.push(t[Math.floor(i)]);return n}function gs(t,e,n){const A=t.ticks.length,r=Math.min(e,A-1),i=t._startPixel,o=t._endPixel,s=1e-6;let a,c=t.getPixelForTick(r);if(!(n&&(a=1===A?Math.max(c-i,o-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?a:-a,c<i-s||c>o+s)))return c}function ps(t){return t.drawTicks?t.tickLength:0}function ms(t,e){if(!t.display)return 0;const n=Jr(t.font,e),A=qr(t.padding);return(lA(t.text)?t.text.length:1)*n.lineHeight+A.height}function bs(t,e,n){let A=cr(t);return(n&&'right'!==e||!n&&'right'===e)&&(A=(t=>'left'===t?'right':'right'===t?'left':t)(A)),A}let vs=class t extends cs{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:A}=this;return t=dA(t,Number.POSITIVE_INFINITY),e=dA(e,Number.NEGATIVE_INFINITY),n=dA(n,Number.POSITIVE_INFINITY),A=dA(A,Number.NEGATIVE_INFINITY),{min:dA(t,n),max:dA(e,A),minDefined:hA(t),maxDefined:hA(e)}}getMinMax(t){let e,{min:n,max:A,minDefined:r,maxDefined:i}=this.getUserBounds();if(r&&i)return{min:n,max:A};const o=this.getMatchingVisibleMetas();for(let s=0,a=o.length;s<a;++s)e=o[s].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),i||(A=Math.max(A,e.max));return n=i&&n>A?A:n,A=r&&n>A?n:A,{min:dA(n,dA(A,n)),max:dA(A,dA(n,A))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){pA(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:A,grace:r,ticks:i}=this.options,o=i.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:A,max:r}=t,i=gA(e,(r-A)/2),o=(t,e)=>n&&0===t?0:t+e;return{min:o(A,-Math.abs(i)),max:o(r,i)}}(this,r,A),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=o<this.ticks.length;this._convertTicksToLabels(s?fs(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||'auto'===i.source)&&(this.ticks=ls(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){pA(this.options.afterUpdate,[this])}beforeSetDimensions(){pA(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){pA(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),pA(this.options[t],[this])}beforeDataLimits(){this._callHooks('beforeDataLimits')}determineDataLimits(){}afterDataLimits(){this._callHooks('afterDataLimits')}beforeBuildTicks(){this._callHooks('beforeBuildTicks')}buildTicks(){return[]}afterBuildTicks(){this._callHooks('afterBuildTicks')}beforeTickToLabelConversion(){pA(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,A,r;for(n=0,A=t.length;n<A;n++)r=t[n],r.label=pA(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){pA(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){pA(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=ds(this.ticks.length,t.ticks.maxTicksLimit),A=e.minRotation||0,r=e.maxRotation;let i,o,s,a=A;if(!this._isVisible()||!e.display||A>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=A);const c=this._getLabelSizes(),l=c.widest.width,u=c.highest.height,h=$A(this.chart.width-l,0,this.maxWidth);i=t.offset?this.maxWidth/n:h/(n-1),l+6>i&&(i=h/(n-(t.offset?.5:1)),o=this.maxHeight-ps(t.grid)-e.padding-ms(t.title,this.chart.options.font),s=Math.sqrt(l*l+u*u),a=KA(Math.min(Math.asin($A((c.highest.height+6)/i,-1,1)),Math.asin($A(o/s,-1,1))-Math.asin($A(u/s,-1,1)))),a=Math.max(A,Math.min(r,a))),this.labelRotation=a}afterCalculateLabelRotation(){pA(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){pA(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:A,grid:r}}=this,i=this._isVisible(),o=this.isHorizontal();if(i){const i=ms(A,e.options.font);if(o?(t.width=this.maxWidth,t.height=ps(r)+i):(t.height=this.maxHeight,t.width=ps(r)+i),n.display&&this.ticks.length){const{first:e,last:A,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,a=WA(this.labelRotation),c=Math.cos(a),l=Math.sin(a);if(o){const e=n.mirror?0:l*r.width+c*i.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*r.width+l*i.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,A,l,c)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,A){const{ticks:{align:r,padding:i},position:o}=this.options,s=0!==this.labelRotation,a='top'!==o&&'x'===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let l=0,u=0;s?a?(l=A*t.width,u=n*e.height):(l=n*t.height,u=A*e.width):'start'===r?u=e.width:'end'===r?l=t.width:'inner'!==r&&(l=t.width/2,u=e.width/2),this.paddingLeft=Math.max((l-o+i)*this.width/(this.width-o),0),this.paddingRight=Math.max((u-c+i)*this.width/(this.width-c),0)}else{let n=e.height/2,A=t.height/2;'start'===r?(n=0,A=t.height):'end'===r&&(n=e.height,A=0),this.paddingTop=n+i,this.paddingBottom=A+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){pA(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return'top'===e||'bottom'===e||'x'===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)cA(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=fs(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:A,_longestTextCache:r}=this,i=[],o=[],s=Math.floor(e/ds(e,n));let a,c,l,u,h,d,f,g,p,m,b,v=0,y=0;for(a=0;a<e;a+=s){if(u=t[a].label,h=this._resolveTickFontOptions(a),A.font=d=h.string,f=r[d]=r[d]||{data:{},gc:[]},g=h.lineHeight,p=m=0,cA(u)||lA(u)){if(lA(u))for(c=0,l=u.length;c<l;++c)b=u[c],cA(b)||lA(b)||(p=Ur(A,f.data,f.gc,p,b),m+=g)}else p=Ur(A,f.data,f.gc,p,u),m=g;i.push(p),o.push(m),v=Math.max(p,v),y=Math.max(m,y)}!function(t,e){mA(t,(t=>{const n=t.gc,A=n.length/2;let r;if(A>e){for(r=0;r<A;++r)delete t.data[n[r]];n.splice(0,A)}}))}(r,e);const w=i.indexOf(v),B=o.indexOf(y),C=t=>({width:i[t]||0,height:o[t]||0});return{first:C(0),last:C(e-1),widest:C(w),highest:C(B),widths:i,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return $A(this._alignToPixels?Lr(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return ti(t,{tick:n,index:e,type:'tick'})}(this.getContext(),t,n))}return this.$context||(this.$context=ti(this.chart.getContext(),{scale:this,type:'scale'}))}_tickSize(){const t=this.options.ticks,e=WA(this.labelRotation),n=Math.abs(Math.cos(e)),A=Math.abs(Math.sin(e)),r=this._getLabelSizes(),i=t.autoSkipPadding||0,o=r?r.widest.width+i:0,s=r?r.highest.height+i:0;return this.isHorizontal()?s*n>o*A?o/n:s/A:s*A<o*n?s/n:o/A}_isVisible(){const t=this.options.display;return'auto'!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,A=this.options,{grid:r,position:i,border:o}=A,s=r.offset,a=this.isHorizontal(),c=this.ticks.length+(s?1:0),l=ps(r),u=[],h=o.setContext(this.getContext()),d=h.display?h.width:0,f=d/2,g=function(t){return Lr(n,t,d)};let p,m,b,v,y,w,B,C,x,F,I,Q;if('top'===i)p=g(this.bottom),w=this.bottom-l,C=p-f,F=g(t.top)+f,Q=t.bottom;else if('bottom'===i)p=g(this.top),F=t.top,Q=g(t.bottom)-f,w=p+f,C=this.top+l;else if('left'===i)p=g(this.right),y=this.right-l,B=p-f,x=g(t.left)+f,I=t.right;else if('right'===i)p=g(this.left),x=t.left,I=g(t.right)-f,y=p+f,B=this.left+l;else if('x'===e){if('center'===i)p=g((t.top+t.bottom)/2+.5);else if(uA(i)){const t=Object.keys(i)[0],e=i[t];p=g(this.chart.scales[t].getPixelForValue(e))}F=t.top,Q=t.bottom,w=p+f,C=w+l}else if('y'===e){if('center'===i)p=g((t.left+t.right)/2);else if(uA(i)){const t=Object.keys(i)[0],e=i[t];p=g(this.chart.scales[t].getPixelForValue(e))}y=p-f,B=y-l,x=t.left,I=t.right}const E=fA(A.ticks.maxTicksLimit,c),S=Math.max(1,Math.ceil(c/E));for(m=0;m<c;m+=S){const t=this.getContext(m),e=r.setContext(t),A=o.setContext(t),i=e.lineWidth,c=e.color,l=A.dash||[],h=A.dashOffset,d=e.tickWidth,f=e.tickColor,g=e.tickBorderDash||[],p=e.tickBorderDashOffset;b=gs(this,m,s),void 0!==b&&(v=Lr(n,b,i),a?y=B=x=I=v:w=C=F=Q=v,u.push({tx1:y,ty1:w,tx2:B,ty2:C,x1:x,y1:F,x2:I,y2:Q,width:i,color:c,borderDash:l,borderDashOffset:h,tickWidth:d,tickColor:f,tickBorderDash:g,tickBorderDashOffset:p}))}return this._ticksLength=c,this._borderValue=p,u}_computeLabelItems(t){const e=this.axis,n=this.options,{position:A,ticks:r}=n,i=this.isHorizontal(),o=this.ticks,{align:s,crossAlign:a,padding:c,mirror:l}=r,u=ps(n.grid),h=u+c,d=l?-c:h,f=-WA(this.labelRotation),g=[];let p,m,b,v,y,w,B,C,x,F,I,Q,E='middle';if('top'===A)w=this.bottom-d,B=this._getXAxisLabelAlignment();else if('bottom'===A)w=this.top+d,B=this._getXAxisLabelAlignment();else if('left'===A){const t=this._getYAxisLabelAlignment(u);B=t.textAlign,y=t.x}else if('right'===A){const t=this._getYAxisLabelAlignment(u);B=t.textAlign,y=t.x}else if('x'===e){if('center'===A)w=(t.top+t.bottom)/2+h;else if(uA(A)){const t=Object.keys(A)[0],e=A[t];w=this.chart.scales[t].getPixelForValue(e)+h}B=this._getXAxisLabelAlignment()}else if('y'===e){if('center'===A)y=(t.left+t.right)/2-h;else if(uA(A)){const t=Object.keys(A)[0],e=A[t];y=this.chart.scales[t].getPixelForValue(e)}B=this._getYAxisLabelAlignment(u).textAlign}'y'===e&&('start'===s?E='top':'end'===s&&(E='bottom'));const S=this._getLabelSizes();for(p=0,m=o.length;p<m;++p){b=o[p],v=b.label;const t=r.setContext(this.getContext(p));C=this.getPixelForTick(p)+r.labelOffset,x=this._resolveTickFontOptions(p),F=x.lineHeight,I=lA(v)?v.length:1;const e=I/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let u,h=B;if(i?(y=C,'inner'===B&&(h=p===m-1?this.options.reverse?'left':'right':0===p?this.options.reverse?'right':'left':'center'),Q='top'===A?'near'===a||0!==f?-I*F+F/2:'center'===a?-S.highest.height/2-e*F+F:-S.highest.height+F/2:'near'===a||0!==f?F/2:'center'===a?S.highest.height/2-e*F:S.highest.height-I*F,l&&(Q*=-1),0===f||t.showLabelBackdrop||(y+=F/2*Math.sin(f))):(w=C,Q=(1-I)*F/2),t.showLabelBackdrop){const e=qr(t.backdropPadding),n=S.heights[p],A=S.widths[p];let r=Q-e.top,i=0-e.left;switch(E){case'middle':r-=n/2;break;case'bottom':r-=n}switch(B){case'center':i-=A/2;break;case'right':i-=A}u={left:i,top:r,width:A+e.width,height:n+e.height,color:t.backdropColor}}g.push({label:v,font:x,textOffset:Q,options:{rotation:f,color:n,strokeColor:s,strokeWidth:c,textAlign:h,textBaseline:E,translation:[y,w],backdrop:u}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-WA(this.labelRotation))return'top'===t?'left':'right';let n='center';return'start'===e.align?n='left':'end'===e.align?n='right':'inner'===e.align&&(n='inner'),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:A,padding:r}}=this.options,i=t+r,o=this._getLabelSizes().widest.width;let s,a;return'left'===e?A?(a=this.right+r,'near'===n?s='left':'center'===n?(s='center',a+=o/2):(s='right',a+=o)):(a=this.right-i,'near'===n?s='right':'center'===n?(s='center',a-=o/2):(s='left',a=this.left)):'right'===e?A?(a=this.left+r,'near'===n?s='right':'center'===n?(s='center',a-=o/2):(s='left',a-=o)):(a=this.left+i,'near'===n?s='left':'center'===n?(s='center',a+=o/2):(s='right',a=this.right)):s='right',{textAlign:s,x:a}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return'left'===e||'right'===e?{top:0,left:this.left,bottom:t.height,right:this.right}:'top'===e||'bottom'===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:A,width:r,height:i}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,A,r,i),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,A=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,i;const o=(t,e,A)=>{A.width&&A.color&&(n.save(),n.lineWidth=A.width,n.strokeStyle=A.color,n.setLineDash(A.borderDash||[]),n.lineDashOffset=A.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,i=A.length;r<i;++r){const t=A[r];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:A}}=this,r=n.setContext(this.getContext()),i=n.display?r.width:0;if(!i)return;const o=A.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let a,c,l,u;this.isHorizontal()?(a=Lr(t,this.left,i)-i/2,c=Lr(t,this.right,o)+o/2,l=u=s):(l=Lr(t,this.top,i)-i/2,u=Lr(t,this.bottom,o)+o/2,a=c=s),e.save(),e.lineWidth=r.width,e.strokeStyle=r.color,e.beginPath(),e.moveTo(a,l),e.lineTo(c,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&Or(e,n);const A=this.getLabelItems(t);for(const t of A){const n=t.options,A=t.font;Vr(e,t.label,0,t.textOffset,A,n)}n&&Mr(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:A}}=this;if(!n.display)return;const r=Jr(n.font),i=qr(n.padding),o=n.align;let s=r.lineHeight/2;'bottom'===e||'center'===e||uA(e)?(s+=i.bottom,lA(n.text)&&(s+=r.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:a,titleY:c,maxWidth:l,rotation:u}=function(t,e,n,A){const{top:r,left:i,bottom:o,right:s,chart:a}=t,{chartArea:c,scales:l}=a;let u,h,d,f=0;const g=o-r,p=s-i;if(t.isHorizontal()){if(h=lr(A,i,s),uA(n)){const t=Object.keys(n)[0],A=n[t];d=l[t].getPixelForValue(A)+g-e}else d='center'===n?(c.bottom+c.top)/2+g-e:hs(t,n,e);u=s-i}else{if(uA(n)){const t=Object.keys(n)[0],A=n[t];h=l[t].getPixelForValue(A)-p+e}else h='center'===n?(c.left+c.right)/2-p+e:hs(t,n,e);d=lr(A,o,r),f='left'===n?-OA:OA}return{titleX:h,titleY:d,maxWidth:u,rotation:f}}(this,s,e,o);Vr(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:bs(o,e,A),textBaseline:'middle',translation:[a,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,A=fA(e.grid&&e.grid.z,-1),r=fA(e.border&&e.border.z,0);return this._isVisible()&&this.draw===t.prototype.draw?[{z:A,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:t=>{this.drawLabels(t)}}]:[{z:n,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+'AxisID',A=[];let r,i;for(r=0,i=e.length;r<i;++r){const i=e[r];i[n]!==this.id||t&&i.type!==t||A.push(i)}return A}_resolveTickFontOptions(t){return Jr(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}};class ys{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return'id'in t&&'defaults'in t})(e)&&(n=this.register(e));const A=this.items,r=t.id,i=this.scope+'.'+r;if(!r)throw new Error('class does not have id: '+t);return r in A||(A[r]=t,function(t,e,n){const A=BA(Object.create(null),[n?Sr.get(n):{},Sr.get(e),t.defaults]);Sr.set(e,A),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const A=n.split('.'),r=A.pop(),i=[t].concat(A).join('.'),o=e[n].split('.'),s=o.pop(),a=o.join('.');Sr.route(i,r,a,s)}))}(e,t.defaultRoutes);t.descriptors&&Sr.describe(e,t.descriptors)}(t,i,n),this.override&&Sr.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,A=this.scope;n in e&&delete e[n],A&&n in Sr[A]&&(delete Sr[A][n],this.override&&delete xr[n])}}class ws{constructor(){this.controllers=new ys(uo,'datasets',!0),this.elements=new ys(cs,'elements'),this.plugins=new ys(Object,'plugins'),this.scales=new ys(vs,'scales'),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each('register',t)}remove(...t){this._each('unregister',t)}addControllers(...t){this._each('register',t,this.controllers)}addElements(...t){this._each('register',t,this.elements)}addPlugins(...t){this._each('register',t,this.plugins)}addScales(...t){this._each('register',t,this.scales)}getController(t){return this._get(t,this.controllers,'controller')}getElement(t){return this._get(t,this.elements,'element')}getPlugin(t){return this._get(t,this.plugins,'plugin')}getScale(t){return this._get(t,this.scales,'scale')}removeControllers(...t){this._each('unregister',t,this.controllers)}removeElements(...t){this._each('unregister',t,this.elements)}removePlugins(...t){this._each('unregister',t,this.plugins)}removeScales(...t){this._each('unregister',t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const A=n||this._getRegistryForType(e);n||A.isForType(e)||A===this.plugins&&e.id?this._exec(t,A,e):mA(e,(e=>{const A=n||this._getRegistryForType(e);this._exec(t,A,e)}))}))}_exec(t,e,n){const A=QA(t);pA(n['before'+A],[],n),e[t](n),pA(n['after'+A],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const A=e.get(t);if(void 0===A)throw new Error('"'+t+'" is not a registered '+n+'.');return A}}var Bs=new ws;class Cs{constructor(){this._init=[]}notify(t,e,n,A){'beforeInit'===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,'install'));const r=A?this._descriptors(t).filter(A):this._descriptors(t),i=this._notify(r,t,e,n);return'afterDestroy'===e&&(this._notify(r,t,'stop'),this._notify(this._init,t,'uninstall')),i}_notify(t,e,n,A){A=A||{};for(const r of t){const t=r.plugin;if(!1===pA(t[n],[e,A,r.options],t)&&A.cancelable)return!1}return!0}invalidate(){cA(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,A=fA(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],A=Object.keys(Bs.plugins.items);for(let t=0;t<A.length;t++)n.push(Bs.getPlugin(A[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const A=r[t];-1===n.indexOf(A)&&(n.push(A),e[A.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==A||e?function(t,{plugins:e,localIds:n},A,r){const i=[],o=t.getContext();for(const s of e){const e=s.id,a=xs(A[e],r);null!==a&&i.push({plugin:s,options:Fs(t.config,{plugin:s,local:n[e]},a,o)})}return i}(t,r,A,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,A=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(A(e,n),t,'stop'),this._notify(A(n,e),t,'start')}}function xs(t,e){return e||!1!==t?!0===t?{}:t:null}function Fs(t,{plugin:e,local:n},A,r){const i=t.pluginScopeKeys(e),o=t.getOptionScopes(A,i);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,r,[''],{scriptable:!1,indexable:!1,allKeys:!0})}function Is(t,e){const n=Sr.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||'x'}function Qs(t){if('x'===t||'y'===t||'r'===t)return t}function Es(t){return'top'===t||'bottom'===t?'x':'left'===t||'right'===t?'y':void 0}function Ss(t,...e){if(Qs(t))return t;for(const n of e){const e=n.axis||Es(n.position)||t.length>1&&Qs(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Us(t,e,n){if(n[e+'AxisID']===t)return{axis:e}}function Ls(t,e){const n=xr[t.type]||{scales:{}},A=e.scales||{},r=Is(t.type,e),i=Object.create(null);return Object.keys(A).forEach((e=>{const o=A[e];if(!uA(o))return;if(o._proxy)return;const s=Ss(e,o,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return Us(t,'x',n[0])||Us(t,'y',n[0])}return{}}(e,t),Sr.scales[o.type]),a=function(t,e){return t===e?'_index_':'_value_'}(s,r),c=n.scales||{};i[e]=CA(Object.create(null),[{axis:s},o,c[s],c[a]])})),t.data.datasets.forEach((n=>{const r=n.type||t.type,o=n.indexAxis||Is(r,e),s=(xr[r]||{}).scales||{};Object.keys(s).forEach((t=>{const e=function(t,e){let n=t;return'_index_'===t?n=e:'_value_'===t&&(n='x'===e?'y':'x'),n}(t,o),r=n[e+'AxisID']||e;i[r]=i[r]||Object.create(null),CA(i[r],[{axis:e},A[r],s[t]])}))})),Object.keys(i).forEach((t=>{const e=i[t];CA(e,[Sr.scales[e.type],Sr.scale])})),i}function Ns(t){const e=t.options||(t.options={});e.plugins=fA(e.plugins,{}),e.scales=Ls(t,e)}function ks(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const _s=new Map,Ps=new Set;function Os(t,e){let n=_s.get(t);return n||(n=e(),_s.set(t,n),Ps.add(n)),n}const Ms=(t,e,n)=>{const A=IA(e,n);void 0!==A&&t.add(A)};class Hs{constructor(t){this._config=function(t){return(t=t||{}).data=ks(t.data),Ns(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=ks(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Ns(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Os(t,(()=>[[`datasets.${t}`,'']]))}datasetAnimationScopeKeys(t,e){return Os(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,'']]))}datasetElementScopeKeys(t,e){return Os(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,'']]))}pluginScopeKeys(t){const e=t.id;return Os(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let A=n.get(t);return A&&!e||(A=new Map,n.set(t,A)),A}getOptionScopes(t,e,n){const{options:A,type:r}=this,i=this._cachedScopes(t,n),o=i.get(e);if(o)return o;const s=new Set;e.forEach((e=>{t&&(s.add(t),e.forEach((e=>Ms(s,t,e)))),e.forEach((t=>Ms(s,A,t))),e.forEach((t=>Ms(s,xr[r]||{},t))),e.forEach((t=>Ms(s,Sr,t))),e.forEach((t=>Ms(s,Fr,t)))}));const a=Array.from(s);return 0===a.length&&a.push(Object.create(null)),Ps.has(e)&&i.set(e,a),a}chartOptionScopes(){const{options:t,type:e}=this;return[t,xr[e]||{},Sr.datasets[e]||{},{type:e},Sr,Fr]}resolveNamedOptions(t,e,n,A=['']){const r={$shared:!0},{resolver:i,subPrefixes:o}=Ts(this._resolverCache,t,A);let s=i;if(function(t,e){const{isScriptable:n,isIndexable:A}=Ai(t);for(const r of e){const e=n(r),i=A(r),o=(i||e)&&t[r];if(e&&(SA(o)||Ds(o))||i&&lA(o))return!0}return!1}(i,e)){r.$shared=!1;s=ni(i,n=SA(n)?n():n,this.createResolver(t,n,o))}for(const t of e)r[t]=s[t];return r}createResolver(t,e,n=[''],A){const{resolver:r}=Ts(this._resolverCache,t,n);return uA(e)?ni(r,e,void 0,A):r}}function Ts(t,e,n){let A=t.get(e);A||(A=new Map,t.set(e,A));const r=n.join();let i=A.get(r);if(!i){i={resolver:ei(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes('hover')))},A.set(r,i)}return i}const Ds=t=>uA(t)&&Object.getOwnPropertyNames(t).reduce(((e,n)=>e||SA(t[n])),!1);const Rs=['top','bottom','left','right','chartArea'];function Vs(t,e){return'top'===t||'bottom'===t||-1===Rs.indexOf(t)&&'x'===e}function Gs(t,e){return function(n,A){return n[t]===A[t]?n[e]-A[e]:n[t]-A[t]}}function js(t){const e=t.chart,n=e.options.animation;e.notifyPlugins('afterRender'),pA(n&&n.onComplete,[t],e)}function Ws(t){const e=t.chart,n=e.options.animation;pA(n&&n.onProgress,[t],e)}function Ks(t){return Ci()&&'string'==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Xs={},zs=t=>{const e=Ks(t);return Object.values(Xs).filter((t=>t.canvas===e)).pop()};function Zs(t,e,n){const A=Object.keys(t);for(const r of A){const A=+r;if(A>=e){const i=t[r];delete t[r],(n>0||A>e)&&(t[A+n]=i)}}}function Ys(t,e,n){return t.options.clip?t[n]:e[n]}let qs=class{static defaults=Sr;static instances=Xs;static overrides=xr;static registry=Bs;static version='4.4.0';static getChart=zs;static register(...t){Bs.add(...t),Js()}static unregister(...t){Bs.remove(...t),Js()}constructor(t,e){const n=this.config=new Hs(e),A=Ks(t),r=zs(A);if(r)throw new Error('Canvas is already in use. Chart with ID \''+r.id+'\' must be destroyed before the canvas with ID \''+r.canvas.id+'\' can be reused.');const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Ci()||'undefined'!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Xo:as}(A)),this.platform.updateConfig(n);const o=this.platform.acquireContext(A,i.aspectRatio),s=o&&o.canvas,a=s&&s.height,c=s&&s.width;this.id=aA(),this.ctx=o,this.canvas=s,this.width=c,this.height=a,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Cs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...A){return e?(clearTimeout(n),n=setTimeout(t,e,A)):t.apply(this,A),e}}((t=>this.update(t)),i.resizeDelay||0),this._dataChanges=[],Xs[this.id]=this,o&&s&&(Zi.listen(this,'complete',js),Zi.listen(this,'progress',Ws),this._initialize(),this.attached&&this.update())}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:A,_aspectRatio:r}=this;return cA(t)?e&&r?r:A?n/A:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Bs}_initialize(){return this.notifyPlugins('beforeInit'),this.options.responsive?this.resize():ki(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins('afterInit'),this}clear(){return Nr(this.canvas,this.ctx),this}stop(){return Zi.stop(this),this}resize(t,e){Zi.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,A=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(A,t,e,r),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?'resize':'attach';this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,ki(this,o,!0)&&(this.notifyPlugins('resize',{size:i}),pA(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){mA(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,A=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const n=e[t],A=Ss(t,n),r='r'===A,i='x'===A;return{options:n,dposition:r?'chartArea':i?'bottom':'left',dtype:r?'radialLinear':i?'category':'linear'}})))),mA(r,(e=>{const r=e.options,i=r.id,o=Ss(i,r),s=fA(r.type,e.dtype);void 0!==r.position&&Vs(r.position,o)===Vs(e.dposition)||(r.position=e.dposition),A[i]=!0;let a=null;if(i in n&&n[i].type===s)a=n[i];else{a=new(Bs.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[a.id]=a}a.init(r,t)})),mA(A,((t,e)=>{t||delete n[e]})),mA(n,(t=>{Wo.configure(this,t,t.options),Wo.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(Gs('order','index'))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,A;for(this._removeUnreferencedMetasets(),n=0,A=e.length;n<A;n++){const A=e[n];let r=this.getDatasetMeta(n);const i=A.type||this.config.type;if(r.type&&r.type!==i&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=i,r.indexAxis=A.indexAxis||Is(i,this.options),r.order=A.order||0,r.index=n,r.label=''+A.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=Bs.getController(i),{datasetElementType:A,dataElementType:o}=Sr.datasets[i];Object.assign(e,{dataElementType:Bs.getElement(o),datasetElementType:A&&Bs.getElement(A)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){mA(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins('reset')}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),A=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins('beforeUpdate',{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins('beforeElementsUpdate');let i=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!A&&-1===r.indexOf(e);e.buildOrUpdateElements(n),i=Math.max(+e.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),A||mA(r,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins('afterUpdate',{mode:t}),this._layers.sort(Gs('z','_idx'));const{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){mA(this.scales,(t=>{Wo.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);UA(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:A,count:r}of e){Zs(t,A,'_removeElements'===n?-r:r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+','+t.splice(1).join(',')))),A=n(0);for(let t=1;t<e;t++)if(!UA(A,n(t)))return;return Array.from(A).map((t=>t.split(','))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins('beforeLayout',{cancelable:!0}))return;Wo.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],mA(this.boxes,(t=>{n&&'chartArea'===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins('afterLayout')}_updateDatasets(t){if(!1!==this.notifyPlugins('beforeDatasetsUpdate',{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,SA(t)?t({datasetIndex:e}):t);this.notifyPlugins('afterDatasetsUpdate',{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),A={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins('beforeDatasetUpdate',A)&&(n.controller._update(e),A.cancelable=!1,this.notifyPlugins('afterDatasetUpdate',A))}render(){!1!==this.notifyPlugins('beforeRender',{cancelable:!0})&&(Zi.has(this)?this.attached&&!Zi.running(this)&&Zi.start(this):(this.draw(),js({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins('beforeDraw',{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins('afterDraw')}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let A,r;for(A=0,r=e.length;A<r;++A){const r=e[A];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins('beforeDatasetsDraw',{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins('afterDatasetsDraw')}_drawDataset(t){const e=this.ctx,n=t._clip,A=!n.disabled,r=function(t,e){const{xScale:n,yScale:A}=t;return n&&A?{left:Ys(n,e,'left'),right:Ys(n,e,'right'),top:Ys(A,e,'top'),bottom:Ys(A,e,'bottom')}:e}(t,this.chartArea),i={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins('beforeDatasetDraw',i)&&(A&&Or(e,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),t.controller.draw(),A&&Mr(e),i.cancelable=!1,this.notifyPlugins('afterDatasetDraw',i))}isPointInArea(t){return Pr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,A){const r=No.modes[e];return'function'==typeof r?r(this,t,n,A):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let A=n.filter((t=>t&&t._dataset===e)).pop();return A||(A={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(A)),A}getContext(){return this.$context||(this.$context=ti(null,{chart:this,type:'chart'}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return'boolean'==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const A=n?'show':'hide',r=this.getDatasetMeta(t),i=r.controller._resolveAnimations(void 0,A);EA(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),i.update(r,{visible:n}),this.update((e=>e.datasetIndex===t?A:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Zi.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins('beforeDestroy');const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Nr(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Xs[this.id],this.notifyPlugins('afterDestroy')}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,A)=>{e.addEventListener(this,n,A),t[n]=A},A=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};mA(this.options.events,(t=>n(t,A)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,A)=>{e.addEventListener(this,n,A),t[n]=A},A=(n,A)=>{t[n]&&(e.removeEventListener(this,n,A),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let i;const o=()=>{A('attach',o),this.attached=!0,this.resize(),n('resize',r),n('detach',i)};i=()=>{this.attached=!1,A('resize',r),this._stop(),this._resize(0,0),n('attach',o)},e.isAttached(this.canvas)?o():i()}unbindEvents(){mA(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},mA(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const A=n?'set':'remove';let r,i,o,s;for('dataset'===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller['_'+A+'DatasetHoverStyle']()),o=0,s=t.length;o<s;++o){i=t[o];const e=i&&this.getDatasetMeta(i.datasetIndex).controller;e&&e[A+'HoverStyle'](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error('No dataset found at index '+t);return{datasetIndex:t,element:n.data[e],index:e}}));!bA(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const A=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),i=r(e,t),o=n?t:r(t,e);i.length&&this.updateHoverStyle(i,A.mode,!1),o.length&&A.mode&&this.updateHoverStyle(o,A.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},A=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins('beforeEvent',n,A))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins('afterEvent',n,A),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:A=[],options:r}=this,i=e,o=this._getActiveElements(t,A,n,i),s=function(t){return'mouseup'===t.type||'click'===t.type||'contextmenu'===t.type}(t),a=function(t,e,n,A){return n&&'mouseout'!==t.type?A?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,pA(r.onHover,[t,o,this],this),s&&pA(r.onClick,[t,o,this],this));const c=!bA(o,A);return(c||e)&&(this._active=o,this._updateHoverStyles(o,A,e)),this._lastEvent=a,c}_getActiveElements(t,e,n,A){if('mouseout'===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,A)}};function Js(){return mA(qs.instances,(t=>t._plugins.invalidate()))}function $s(t,e,n,A){const r=zr(t.options.borderRadius,['outerStart','outerEnd','innerStart','innerEnd']);const i=(n-e)/2,o=Math.min(i,A*e/2),s=t=>{const e=(n-Math.min(i,t))*A/2;return $A(t,0,Math.min(i,e))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:$A(r.innerStart,0,o),innerEnd:$A(r.innerEnd,0,o)}}function ta(t,e,n,A){return{x:n+t*Math.cos(e),y:A+t*Math.sin(e)}}function ea(t,e,n,A,r,i){const{x:o,y:s,startAngle:a,pixelMargin:c,innerRadius:l}=e,u=Math.max(e.outerRadius+A+n-c,0),h=l>0?l+A+n+c:0;let d=0;const f=r-a;if(A){const t=((l>0?l-A:0)+(u>0?u-A:0))/2;d=(f-(0!==t?f*t/(t+A):f))/2}const g=(f-Math.max(.001,f*u-n/LA)/u)/2,p=a+g+d,m=r-g-d,{outerStart:b,outerEnd:v,innerStart:y,innerEnd:w}=$s(e,h,u,m-p),B=u-b,C=u-v,x=p+b/B,F=m-v/C,I=h+y,Q=h+w,E=p+y/I,S=m-w/Q;if(t.beginPath(),i){const e=(x+F)/2;if(t.arc(o,s,u,x,e),t.arc(o,s,u,e,F),v>0){const e=ta(C,F,o,s);t.arc(e.x,e.y,v,F,m+OA)}const n=ta(Q,m,o,s);if(t.lineTo(n.x,n.y),w>0){const e=ta(Q,S,o,s);t.arc(e.x,e.y,w,m+OA,S+Math.PI)}const A=(m-w/h+(p+y/h))/2;if(t.arc(o,s,h,m-w/h,A,!0),t.arc(o,s,h,A,p+y/h,!0),y>0){const e=ta(I,E,o,s);t.arc(e.x,e.y,y,E+Math.PI,p-OA)}const r=ta(B,p,o,s);if(t.lineTo(r.x,r.y),b>0){const e=ta(B,x,o,s);t.arc(e.x,e.y,b,p-OA,x)}}else{t.moveTo(o,s);const e=Math.cos(x)*u+o,n=Math.sin(x)*u+s;t.lineTo(e,n);const A=Math.cos(F)*u+o,r=Math.sin(F)*u+s;t.lineTo(A,r)}t.closePath()}function na(t,e,n,A,r){const{fullCircles:i,startAngle:o,circumference:s,options:a}=e,{borderWidth:c,borderJoinStyle:l,borderDash:u,borderDashOffset:h}=a,d='inner'===a.borderAlign;if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=h,d?(t.lineWidth=2*c,t.lineJoin=l||'round'):(t.lineWidth=c,t.lineJoin=l||'bevel');let f=e.endAngle;if(i){ea(t,e,n,A,f,r);for(let e=0;e<i;++e)t.stroke();isNaN(s)||(f=o+(s%NA||NA))}d&&function(t,e,n){const{startAngle:A,pixelMargin:r,x:i,y:o,outerRadius:s,innerRadius:a}=e;let c=r/s;t.beginPath(),t.arc(i,o,s,A-c,n+c),a>r?(c=r/a,t.arc(i,o,a,n+c,A-c,!0)):t.arc(i,o,r,n+OA,A-OA),t.closePath(),t.clip()}(t,e,f),i||(ea(t,e,n,A,f,r),t.stroke())}function Aa(t,e,n=e){t.lineCap=fA(n.borderCapStyle,e.borderCapStyle),t.setLineDash(fA(n.borderDash,e.borderDash)),t.lineDashOffset=fA(n.borderDashOffset,e.borderDashOffset),t.lineJoin=fA(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=fA(n.borderWidth,e.borderWidth),t.strokeStyle=fA(n.borderColor,e.borderColor)}function ra(t,e,n){t.lineTo(n.x,n.y)}function ia(t,e,n={}){const A=t.length,{start:r=0,end:i=A-1}=n,{start:o,end:s}=e,a=Math.max(r,o),c=Math.min(i,s),l=r<o&&i<o||r>s&&i>s;return{count:A,start:a,loop:e.loop,ilen:c<a&&!l?A+c-a:c-a}}function oa(t,e,n,A){const{points:r,options:i}=e,{count:o,start:s,loop:a,ilen:c}=ia(r,n,A),l=function(t){return t.stepped?Hr:t.tension||'monotone'===t.cubicInterpolationMode?Tr:ra}(i);let u,h,d,{move:f=!0,reverse:g}=A||{};for(u=0;u<=c;++u)h=r[(s+(g?c-u:u))%o],h.skip||(f?(t.moveTo(h.x,h.y),f=!1):l(t,d,h,g,i.stepped),d=h);return a&&(h=r[(s+(g?c:0))%o],l(t,d,h,g,i.stepped)),!!a}function sa(t,e,n,A){const r=e.points,{count:i,start:o,ilen:s}=ia(r,n,A),{move:a=!0,reverse:c}=A||{};let l,u,h,d,f,g,p=0,m=0;const b=t=>(o+(c?s-t:t))%i,v=()=>{d!==f&&(t.lineTo(p,f),t.lineTo(p,d),t.lineTo(p,g))};for(a&&(u=r[b(0)],t.moveTo(u.x,u.y)),l=0;l<=s;++l){if(u=r[b(l)],u.skip)continue;const e=u.x,n=u.y,A=0|e;A===h?(n<d?d=n:n>f&&(f=n),p=(m*p+e)/++m):(v(),t.lineTo(e,n),h=A,m=0,d=f=n),g=n}v()}function aa(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||'monotone'===e.cubicInterpolationMode||e.stepped||n)?sa:oa}const ca='function'==typeof Path2D;function la(t,e,n,A){ca&&!e.options.segment?function(t,e,n,A){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,A)&&r.closePath()),Aa(t,e.options),t.stroke(r)}(t,e,n,A):function(t,e,n,A){const{segments:r,options:i}=e,o=aa(e);for(const s of r)Aa(t,i,s.style),t.beginPath(),o(t,e,s,{start:n,end:n+A-1})&&t.closePath(),t.stroke()}(t,e,n,A)}function ua(t,e,n,A){const r=t.options,{[n]:i}=t.getProps([n],A);return Math.abs(e-i)<r.radius+r.hitRadius}function ha(t,e){const{x:n,y:A,base:r,width:i,height:o}=t.getProps(['x','y','base','width','height'],e);let s,a,c,l,u;return t.horizontal?(u=o/2,s=Math.min(n,r),a=Math.max(n,r),c=A-u,l=A+u):(u=i/2,s=n-u,a=n+u,c=Math.min(A,r),l=Math.max(A,r)),{left:s,top:c,right:a,bottom:l}}function da(t,e,n,A){return t?0:$A(e,n,A)}function fa(t){const e=ha(t),n=e.right-e.left,A=e.bottom-e.top,r=function(t,e,n){const A=t.options.borderWidth,r=t.borderSkipped,i=Zr(A);return{t:da(r.top,i.top,0,n),r:da(r.right,i.right,0,e),b:da(r.bottom,i.bottom,0,n),l:da(r.left,i.left,0,e)}}(t,n/2,A/2),i=function(t,e,n){const{enableBorderRadius:A}=t.getProps(['enableBorderRadius']),r=t.options.borderRadius,i=Yr(r),o=Math.min(e,n),s=t.borderSkipped,a=A||uA(r);return{topLeft:da(!a||s.top||s.left,i.topLeft,0,o),topRight:da(!a||s.top||s.right,i.topRight,0,o),bottomLeft:da(!a||s.bottom||s.left,i.bottomLeft,0,o),bottomRight:da(!a||s.bottom||s.right,i.bottomRight,0,o)}}(t,n/2,A/2);return{outer:{x:e.left,y:e.top,w:n,h:A,radius:i},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:A-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function ga(t,e,n,A){const r=null===e,i=null===n,o=t&&!(r&&i)&&ha(t,A);return o&&(r||tr(e,o.left,o.right))&&(i||tr(n,o.top,o.bottom))}function pa(t,e){t.rect(e.x,e.y,e.w,e.h)}function ma(t,e,n={}){const A=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,i=(t.x+t.w!==n.x+n.w?e:0)-A,o=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+A,y:t.y+r,w:t.w+i,h:t.h+o,radius:t.radius}}const ba=['rgb(54, 162, 235)','rgb(255, 99, 132)','rgb(255, 159, 64)','rgb(255, 205, 86)','rgb(75, 192, 192)','rgb(153, 102, 255)','rgb(201, 203, 207)'],va=ba.map((t=>t.replace('rgb(','rgba(').replace(')',', 0.5)')));function ya(t){return ba[t%ba.length]}function wa(t){return va[t%va.length]}function Ba(t){let e=0;return(n,A)=>{const r=t.getDatasetMeta(A).controller;r instanceof Bo?e=function(t,e){return t.backgroundColor=t.data.map((()=>ya(e++))),e}(n,e):r instanceof xo?e=function(t,e){return t.backgroundColor=t.data.map((()=>wa(e++))),e}(n,e):r&&(e=function(t,e){return t.borderColor=ya(e),t.backgroundColor=wa(e),++e}(n,e))}}function Ca(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var xa={id:'colors',defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:A},options:r}=t.config,{elements:i}=r;if(!n.forceOverride&&(Ca(A)||(o=r)&&(o.borderColor||o.backgroundColor)||i&&Ca(i)))return;var o;const s=Ba(t);A.forEach(s)}};const Fa=(t,e)=>{let{boxHeight:n=e,boxWidth:A=e}=t;return t.usePointStyle&&(n=Math.min(n,e),A=t.pointStyleWidth||Math.min(A,e)),{boxWidth:A,boxHeight:n,itemHeight:Math.max(e,n)}};class Ia extends cs{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=pA(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,A=Jr(n.font),r=A.size,i=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=Fa(n,r);let a,c;e.font=A.string,this.isHorizontal()?(a=this.maxWidth,c=this._fitRows(i,r,o,s)+10):(c=this.maxHeight,a=this._fitCols(i,A,o,s)+10),this.width=Math.min(a,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,A){const{ctx:r,maxWidth:i,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],a=this.lineWidths=[0],c=A+o;let l=t;r.textAlign='left',r.textBaseline='middle';let u=-1,h=-c;return this.legendItems.forEach(((t,d)=>{const f=n+e/2+r.measureText(t.text).width;(0===d||a[a.length-1]+f+2*o>i)&&(l+=c,a[a.length-(d>0?0:1)]=0,h+=c,u++),s[d]={left:0,top:h,row:u,width:f,height:A},a[a.length-1]+=f+o})),l}_fitCols(t,e,n,A){const{ctx:r,maxHeight:i,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],a=this.columnSizes=[],c=i-t;let l=o,u=0,h=0,d=0,f=0;return this.legendItems.forEach(((t,i)=>{const{itemWidth:g,itemHeight:p}=function(t,e,n,A,r){const i=function(t,e,n,A){let r=t.text;r&&'string'!=typeof r&&(r=r.reduce(((t,e)=>t.length>e.length?t:e)));return e+n.size/2+A.measureText(r).width}(A,t,e,n),o=function(t,e,n){let A=t;'string'!=typeof e.text&&(A=Qa(e,n));return A}(r,A,e.lineHeight);return{itemWidth:i,itemHeight:o}}(n,e,r,t,A);i>0&&h+p+2*o>c&&(l+=u+o,a.push({width:u,height:h}),d+=u+o,f++,u=h=0),s[i]={left:d,top:h,col:f,width:g,height:p},u=Math.max(u,g),h+=p+o})),l+=u,a.push({width:u,height:h}),l}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:A},rtl:r}}=this,i=Ti(r,this.left,this.width);if(this.isHorizontal()){let r=0,o=lr(n,this.left+A,this.right-this.lineWidths[r]);for(const s of e)r!==s.row&&(r=s.row,o=lr(n,this.left+A,this.right-this.lineWidths[r])),s.top+=this.top+t+A,s.left=i.leftForLtr(i.x(o),s.width),o+=s.width+A}else{let r=0,o=lr(n,this.top+t+A,this.bottom-this.columnSizes[r].height);for(const s of e)s.col!==r&&(r=s.col,o=lr(n,this.top+t+A,this.bottom-this.columnSizes[r].height)),s.top=o,s.left+=this.left+A,s.left=i.leftForLtr(i.x(s.left),s.width),o+=s.height+A}}isHorizontal(){return'top'===this.options.position||'bottom'===this.options.position}draw(){if(this.options.display){const t=this.ctx;Or(t,this),this._draw(),Mr(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:A}=this,{align:r,labels:i}=t,o=Sr.color,s=Ti(t.rtl,this.left,this.width),a=Jr(i.font),{padding:c}=i,l=a.size,u=l/2;let h;this.drawTitle(),A.textAlign=s.textAlign('left'),A.textBaseline='middle',A.lineWidth=.5,A.font=a.string;const{boxWidth:d,boxHeight:f,itemHeight:g}=Fa(i,l),p=this.isHorizontal(),m=this._computeTitleHeight();h=p?{x:lr(r,this.left+c,this.right-n[0]),y:this.top+c+m,line:0}:{x:this.left+c,y:lr(r,this.top+m+c,this.bottom-e[0].height),line:0},Di(this.ctx,t.textDirection);const b=g+c;this.legendItems.forEach(((v,y)=>{A.strokeStyle=v.fontColor,A.fillStyle=v.fontColor;const w=A.measureText(v.text).width,B=s.textAlign(v.textAlign||(v.textAlign=i.textAlign)),C=d+u+w;let x=h.x,F=h.y;s.setWidth(this.width),p?y>0&&x+C+c>this.right&&(F=h.y+=b,h.line++,x=h.x=lr(r,this.left+c,this.right-n[h.line])):y>0&&F+b>this.bottom&&(x=h.x=x+e[h.line].width+c,h.line++,F=h.y=lr(r,this.top+m+c,this.bottom-e[h.line].height));if(function(t,e,n){if(isNaN(d)||d<=0||isNaN(f)||f<0)return;A.save();const r=fA(n.lineWidth,1);if(A.fillStyle=fA(n.fillStyle,o),A.lineCap=fA(n.lineCap,'butt'),A.lineDashOffset=fA(n.lineDashOffset,0),A.lineJoin=fA(n.lineJoin,'miter'),A.lineWidth=r,A.strokeStyle=fA(n.strokeStyle,o),A.setLineDash(fA(n.lineDash,[])),i.usePointStyle){const o={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},a=s.xPlus(t,d/2);_r(A,o,a,e+u,i.pointStyleWidth&&d)}else{const i=e+Math.max((l-f)/2,0),o=s.leftForLtr(t,d),a=Yr(n.borderRadius);A.beginPath(),Object.values(a).some((t=>0!==t))?Gr(A,{x:o,y:i,w:d,h:f,radius:a}):A.rect(o,i,d,f),A.fill(),0!==r&&A.stroke()}A.restore()}(s.x(x),F,v),x=((t,e,n,A)=>t===(A?'left':'right')?n:'center'===t?(e+n)/2:e)(B,x+d+u,p?x+C:this.right,t.rtl),function(t,e,n){Vr(A,n.text,t,e+g/2,a,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(x),F,v),p)h.x+=C+c;else if('string'!=typeof v.text){const t=a.lineHeight;h.y+=Qa(v,t)+c}else h.y+=b})),Ri(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=Jr(e.font),A=qr(e.padding);if(!e.display)return;const r=Ti(t.rtl,this.left,this.width),i=this.ctx,o=e.position,s=n.size/2,a=A.top+s;let c,l=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+a,l=lr(t.align,l,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=a+lr(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const h=lr(o,l,l+u);i.textAlign=r.textAlign(cr(o)),i.textBaseline='middle',i.strokeStyle=e.color,i.fillStyle=e.color,i.font=n.string,Vr(i,e.text,h,c,n)}_computeTitleHeight(){const t=this.options.title,e=Jr(t.font),n=qr(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,A,r;if(tr(t,this.left,this.right)&&tr(e,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(A=r[n],tr(t,A.left,A.left+A.width)&&tr(e,A.top,A.top+A.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(('mousemove'===t||'mouseout'===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&('click'===t||'mouseup'===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if('mousemove'===t.type||'mouseout'===t.type){const A=this._hoveredItem,r=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(A,n);A&&!r&&pA(e.onLeave,[t,A,this],this),this._hoveredItem=n,n&&!r&&pA(e.onHover,[t,n,this],this)}else n&&pA(e.onClick,[t,n,this],this)}}function Qa(t,e){return e*(t.text?t.text.length:0)}var Ea={id:'legend',_element:Ia,start(t,e,n){const A=t.legend=new Ia({ctx:t.ctx,options:n,chart:t});Wo.configure(t,A,n),Wo.addBox(t,A)},stop(t){Wo.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const A=t.legend;Wo.configure(t,A,n),A.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:'top',align:'center',fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const A=e.datasetIndex,r=n.chart;r.isDatasetVisible(A)?(r.hide(A),e.hidden=!0):(r.show(A),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:A,textAlign:r,color:i,useBorderRadius:o,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const a=t.controller.getStyle(n?0:void 0),c=qr(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:i,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:a.borderColor,pointStyle:A||a.pointStyle,rotation:a.rotation,textAlign:r||a.textAlign,borderRadius:o&&(s||a.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:'center',text:''}},descriptors:{_scriptable:t=>!t.startsWith('on'),labels:{_scriptable:t=>!['generateLabels','filter','sort'].includes(t)}}};let Sa=class extends cs{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const A=lA(n.text)?n.text.length:1;this._padding=qr(n.padding);const r=A*Jr(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return'top'===t||'bottom'===t}_drawArgs(t){const{top:e,left:n,bottom:A,right:r,options:i}=this,o=i.align;let s,a,c,l=0;return this.isHorizontal()?(a=lr(o,n,r),c=e+t,s=r-n):('left'===i.position?(a=n+t,c=lr(o,A,e),l=-.5*LA):(a=r-t,c=lr(o,e,A),l=.5*LA),s=A-e),{titleX:a,titleY:c,maxWidth:s,rotation:l}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=Jr(e.font),A=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:o,rotation:s}=this._drawArgs(A);Vr(t,e.text,0,0,n,{color:e.color,maxWidth:o,rotation:s,textAlign:cr(e.align),textBaseline:'middle',translation:[r,i]})}};var Ua={id:'title',_element:Sa,start(t,e,n){!function(t,e){const n=new Sa({ctx:t.ctx,options:e,chart:t});Wo.configure(t,n,e),Wo.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;Wo.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const A=t.titleBlock;Wo.configure(t,A,n),A.options=n},defaults:{align:'center',display:!1,font:{weight:'bold'},fullSize:!0,padding:10,position:'top',text:'',weight:2e3},defaultRoutes:{color:'color'},descriptors:{_scriptable:!0,_indexable:!1}};const La={average(t){if(!t.length)return!1;let e,n,A=0,r=0,i=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();A+=t.x,r+=t.y,++i}}return{x:A/i,y:r/i}},nearest(t,e){if(!t.length)return!1;let n,A,r,i=e.x,o=e.y,s=Number.POSITIVE_INFINITY;for(n=0,A=t.length;n<A;++n){const A=t[n].element;if(A&&A.hasValue()){const t=ZA(e,A.getCenterPoint());t<s&&(s=t,r=A)}}if(r){const t=r.tooltipPosition();i=t.x,o=t.y}return{x:i,y:o}}};function Na(t,e){return e&&(lA(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function ka(t){return('string'==typeof t||t instanceof String)&&t.indexOf('\n')>-1?t.split('\n'):t}function _a(t,e){const{element:n,datasetIndex:A,index:r}=e,i=t.getDatasetMeta(A).controller,{label:o,value:s}=i.getLabelAndValue(r);return{chart:t,label:o,parsed:i.getParsed(r),raw:t.data.datasets[A].data[r],formattedValue:s,dataset:i.getDataset(),dataIndex:r,datasetIndex:A,element:n}}function Pa(t,e){const n=t.chart.ctx,{body:A,footer:r,title:i}=t,{boxWidth:o,boxHeight:s}=e,a=Jr(e.bodyFont),c=Jr(e.titleFont),l=Jr(e.footerFont),u=i.length,h=r.length,d=A.length,f=qr(e.padding);let g=f.height,p=0,m=A.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(m+=t.beforeBody.length+t.afterBody.length,u&&(g+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),m){g+=d*(e.displayColors?Math.max(s,a.lineHeight):a.lineHeight)+(m-d)*a.lineHeight+(m-1)*e.bodySpacing}h&&(g+=e.footerMarginTop+h*l.lineHeight+(h-1)*e.footerSpacing);let b=0;const v=function(t){p=Math.max(p,n.measureText(t).width+b)};return n.save(),n.font=c.string,mA(t.title,v),n.font=a.string,mA(t.beforeBody.concat(t.afterBody),v),b=e.displayColors?o+2+e.boxPadding:0,mA(A,(t=>{mA(t.before,v),mA(t.lines,v),mA(t.after,v)})),b=0,n.font=l.string,mA(t.footer,v),n.restore(),p+=f.width,{width:p,height:g}}function Oa(t,e,n,A){const{x:r,width:i}=n,{width:o,chartArea:{left:s,right:a}}=t;let c='center';return'center'===A?c=r<=(s+a)/2?'left':'right':r<=i/2?c='left':r>=o-i/2&&(c='right'),function(t,e,n,A){const{x:r,width:i}=A,o=n.caretSize+n.caretPadding;return'left'===t&&r+i+o>e.width||'right'===t&&r-i-o<0||void 0}(c,t,e,n)&&(c='center'),c}function Ma(t,e,n){const A=n.yAlign||e.yAlign||function(t,e){const{y:n,height:A}=e;return n<A/2?'top':n>t.height-A/2?'bottom':'center'}(t,n);return{xAlign:n.xAlign||e.xAlign||Oa(t,e,n,A),yAlign:A}}function Ha(t,e,n,A){const{caretSize:r,caretPadding:i,cornerRadius:o}=t,{xAlign:s,yAlign:a}=n,c=r+i,{topLeft:l,topRight:u,bottomLeft:h,bottomRight:d}=Yr(o);let f=function(t,e){let{x:n,width:A}=t;return'right'===e?n-=A:'center'===e&&(n-=A/2),n}(e,s);const g=function(t,e,n){let{y:A,height:r}=t;return'top'===e?A+=n:A-='bottom'===e?r+n:r/2,A}(e,a,c);return'center'===a?'left'===s?f+=c:'right'===s&&(f-=c):'left'===s?f-=Math.max(l,h)+r:'right'===s&&(f+=Math.max(u,d)+r),{x:$A(f,0,A.width-e.width),y:$A(g,0,A.height-e.height)}}function Ta(t,e,n){const A=qr(n.padding);return'center'===e?t.x+t.width/2:'right'===e?t.x+t.width-A.right:t.x+A.left}function Da(t){return Na([],ka(t))}function Ra(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const Va={beforeTitle:sA,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,A=n?n.length:0;if(this&&this.options&&'dataset'===this.options.mode)return e.dataset.label||'';if(e.label)return e.label;if(A>0&&e.dataIndex<A)return n[e.dataIndex]}return''},afterTitle:sA,beforeBody:sA,beforeLabel:sA,label(t){if(this&&this.options&&'dataset'===this.options.mode)return t.label+': '+t.formattedValue||t.formattedValue;let e=t.dataset.label||'';e&&(e+=': ');const n=t.formattedValue;return cA(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:sA,afterBody:sA,beforeFooter:sA,footer:sA,afterFooter:sA};function Ga(t,e,n,A){const r=t[e].call(n,A);return void 0===r?Va[e].call(n,A):r}class ja extends cs{static positioners=La;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),A=n.enabled&&e.options.animation&&n.animations,r=new $i(this.chart,A);return A._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,ti(t,{tooltip:e,tooltipItems:n,type:'tooltip'})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,A=Ga(n,'beforeTitle',this,t),r=Ga(n,'title',this,t),i=Ga(n,'afterTitle',this,t);let o=[];return o=Na(o,ka(A)),o=Na(o,ka(r)),o=Na(o,ka(i)),o}getBeforeBody(t,e){return Da(Ga(e.callbacks,'beforeBody',this,t))}getBody(t,e){const{callbacks:n}=e,A=[];return mA(t,(t=>{const e={before:[],lines:[],after:[]},r=Ra(n,t);Na(e.before,ka(Ga(r,'beforeLabel',this,t))),Na(e.lines,Ga(r,'label',this,t)),Na(e.after,ka(Ga(r,'afterLabel',this,t))),A.push(e)})),A}getAfterBody(t,e){return Da(Ga(e.callbacks,'afterBody',this,t))}getFooter(t,e){const{callbacks:n}=e,A=Ga(n,'beforeFooter',this,t),r=Ga(n,'footer',this,t),i=Ga(n,'afterFooter',this,t);let o=[];return o=Na(o,ka(A)),o=Na(o,ka(r)),o=Na(o,ka(i)),o}_createItems(t){const e=this._active,n=this.chart.data,A=[],r=[],i=[];let o,s,a=[];for(o=0,s=e.length;o<s;++o)a.push(_a(this.chart,e[o]));return t.filter&&(a=a.filter(((e,A,r)=>t.filter(e,A,r,n)))),t.itemSort&&(a=a.sort(((e,A)=>t.itemSort(e,A,n)))),mA(a,(e=>{const n=Ra(t.callbacks,e);A.push(Ga(n,'labelColor',this,e)),r.push(Ga(n,'labelPointStyle',this,e)),i.push(Ga(n,'labelTextColor',this,e))})),this.labelColors=A,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=a,a}update(t,e){const n=this.options.setContext(this.getContext()),A=this._active;let r,i=[];if(A.length){const t=La[n.position].call(this,A,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const e=this._size=Pa(this,n),o=Object.assign({},t,e),s=Ma(this.chart,n,o),a=Ha(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:a.x,y:a.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,A){const r=this.getCaretPosition(t,n,A);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,n){const{xAlign:A,yAlign:r}=this,{caretSize:i,cornerRadius:o}=n,{topLeft:s,topRight:a,bottomLeft:c,bottomRight:l}=Yr(o),{x:u,y:h}=t,{width:d,height:f}=e;let g,p,m,b,v,y;return'center'===r?(v=h+f/2,'left'===A?(g=u,p=g-i,b=v+i,y=v-i):(g=u+d,p=g+i,b=v-i,y=v+i),m=g):(p='left'===A?u+Math.max(s,c)+i:'right'===A?u+d-Math.max(a,l)-i:this.caretX,'top'===r?(b=h,v=b-i,g=p-i,m=p+i):(b=h+f,v=b+i,g=p+i,m=p-i),y=b),{x1:g,x2:p,x3:m,y1:b,y2:v,y3:y}}drawTitle(t,e,n){const A=this.title,r=A.length;let i,o,s;if(r){const a=Ti(n.rtl,this.x,this.width);for(t.x=Ta(this,n.titleAlign,n),e.textAlign=a.textAlign(n.titleAlign),e.textBaseline='middle',i=Jr(n.titleFont),o=n.titleSpacing,e.fillStyle=n.titleColor,e.font=i.string,s=0;s<r;++s)e.fillText(A[s],a.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+o,s+1===r&&(t.y+=n.titleMarginBottom-o)}}_drawColorBox(t,e,n,A,r){const i=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:s,boxWidth:a}=r,c=Jr(r.bodyFont),l=Ta(this,'left',r),u=A.x(l),h=s<c.lineHeight?(c.lineHeight-s)/2:0,d=e.y+h;if(r.usePointStyle){const e={radius:Math.min(a,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=A.leftForLtr(u,a)+a/2,c=d+s/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,kr(t,e,n,c),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,kr(t,e,n,c)}else{t.lineWidth=uA(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const e=A.leftForLtr(u,a),n=A.leftForLtr(A.xPlus(u,1),a-2),o=Yr(i.borderRadius);Object.values(o).some((t=>0!==t))?(t.beginPath(),t.fillStyle=r.multiKeyBackground,Gr(t,{x:e,y:d,w:a,h:s,radius:o}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),Gr(t,{x:n,y:d+1,w:a-2,h:s-2,radius:o}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(e,d,a,s),t.strokeRect(e,d,a,s),t.fillStyle=i.backgroundColor,t.fillRect(n,d+1,a-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:A}=this,{bodySpacing:r,bodyAlign:i,displayColors:o,boxHeight:s,boxWidth:a,boxPadding:c}=n,l=Jr(n.bodyFont);let u=l.lineHeight,h=0;const d=Ti(n.rtl,this.x,this.width),f=function(n){e.fillText(n,d.x(t.x+h),t.y+u/2),t.y+=u+r},g=d.textAlign(i);let p,m,b,v,y,w,B;for(e.textAlign=i,e.textBaseline='middle',e.font=l.string,t.x=Ta(this,g,n),e.fillStyle=n.bodyColor,mA(this.beforeBody,f),h=o&&'right'!==g?'center'===i?a/2+c:a+2+c:0,v=0,w=A.length;v<w;++v){for(p=A[v],m=this.labelTextColors[v],e.fillStyle=m,mA(p.before,f),b=p.lines,o&&b.length&&(this._drawColorBox(e,t,v,d,n),u=Math.max(l.lineHeight,s)),y=0,B=b.length;y<B;++y)f(b[y]),u=l.lineHeight;mA(p.after,f)}h=0,u=l.lineHeight,mA(this.afterBody,f),t.y-=r}drawFooter(t,e,n){const A=this.footer,r=A.length;let i,o;if(r){const s=Ti(n.rtl,this.x,this.width);for(t.x=Ta(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline='middle',i=Jr(n.footerFont),e.fillStyle=n.footerColor,e.font=i.string,o=0;o<r;++o)e.fillText(A[o],s.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+n.footerSpacing}}drawBackground(t,e,n,A){const{xAlign:r,yAlign:i}=this,{x:o,y:s}=t,{width:a,height:c}=n,{topLeft:l,topRight:u,bottomLeft:h,bottomRight:d}=Yr(A.cornerRadius);e.fillStyle=A.backgroundColor,e.strokeStyle=A.borderColor,e.lineWidth=A.borderWidth,e.beginPath(),e.moveTo(o+l,s),'top'===i&&this.drawCaret(t,e,n,A),e.lineTo(o+a-u,s),e.quadraticCurveTo(o+a,s,o+a,s+u),'center'===i&&'right'===r&&this.drawCaret(t,e,n,A),e.lineTo(o+a,s+c-d),e.quadraticCurveTo(o+a,s+c,o+a-d,s+c),'bottom'===i&&this.drawCaret(t,e,n,A),e.lineTo(o+h,s+c),e.quadraticCurveTo(o,s+c,o,s+c-h),'center'===i&&'left'===r&&this.drawCaret(t,e,n,A),e.lineTo(o,s+l),e.quadraticCurveTo(o,s,o+l,s),e.closePath(),e.fill(),A.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,A=n&&n.x,r=n&&n.y;if(A||r){const n=La[t.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=Pa(this,t),o=Object.assign({},n,this._size),s=Ma(e,t,o),a=Ha(t,o,s,e);A._to===a.x&&r._to===a.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,a))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const A={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=qr(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=n,this.drawBackground(r,t,A,e),Di(t,e.textDirection),r.y+=i.top,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),Ri(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,A=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error('Cannot find a dataset at index '+t);return{datasetIndex:t,element:n.data[e],index:e}})),r=!bA(n,A),i=this._positionChanged(A,e);(r||i)&&(this._active=A,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const A=this.options,r=this._active||[],i=this._getActiveElements(t,r,e,n),o=this._positionChanged(i,t),s=e||!bA(i,r)||o;return s&&(this._active=i,(A.enabled||A.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,A){const r=this.options;if('mouseout'===t.type)return[];if(!A)return e;const i=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&i.reverse(),i}_positionChanged(t,e){const{caretX:n,caretY:A,options:r}=this,i=La[r.position].call(this,t,e);return!1!==i&&(n!==i.x||A!==i.y)}}var Wa={id:'tooltip',_element:ja,positioners:La,afterInit(t,e,n){n&&(t.tooltip=new ja({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins('beforeTooltipDraw',{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins('afterTooltipDraw',n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:'average',backgroundColor:'rgba(0,0,0,0.8)',titleColor:'#fff',titleFont:{weight:'bold'},titleSpacing:2,titleMarginBottom:6,titleAlign:'left',bodyColor:'#fff',bodySpacing:2,bodyFont:{},bodyAlign:'left',footerColor:'#fff',footerSpacing:2,footerMarginTop:6,footerFont:{weight:'bold'},footerAlign:'left',padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:'#fff',displayColors:!0,boxPadding:0,borderColor:'rgba(0,0,0,0)',borderWidth:0,animation:{duration:400,easing:'easeOutQuart'},animations:{numbers:{type:'number',properties:['x','y','width','height','caretX','caretY']},opacity:{easing:'linear',duration:200}},callbacks:Va},defaultRoutes:{bodyFont:'font',footerFont:'font',titleFont:'font'},descriptors:{_scriptable:t=>'filter'!==t&&'itemSort'!==t&&'external'!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:'animation'}},additionalOptionScopes:['interaction']};function Ka(t,e,n,A){const r=t.indexOf(e);if(-1===r)return((t,e,n,A)=>('string'==typeof e?(n=t.push(e)-1,A.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,A);return r!==t.lastIndexOf(e)?n:r}function Xa(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function za(t,e){const n=[],{bounds:A,step:r,min:i,max:o,precision:s,count:a,maxTicks:c,maxDigits:l,includeBounds:u}=t,h=r||1,d=c-1,{min:f,max:g}=e,p=!cA(i),m=!cA(o),b=!cA(a),v=(g-f)/(l+1);let y,w,B,C,x=VA((g-f)/d/h)*h;if(x<1e-14&&!p&&!m)return[{value:f},{value:g}];C=Math.ceil(g/x)-Math.floor(f/x),C>d&&(x=VA(C*x/d/h)*h),cA(s)||(y=Math.pow(10,s),x=Math.ceil(x*y)/y),'ticks'===A?(w=Math.floor(f/x)*x,B=Math.ceil(g/x)*x):(w=f,B=g),p&&m&&r&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((o-i)/r,x/1e3)?(C=Math.round(Math.min((o-i)/x,c)),x=(o-i)/C,w=i,B=o):b?(w=p?i:w,B=m?o:B,C=a-1,x=(B-w)/C):(C=(B-w)/x,C=RA(C,Math.round(C),x/1e3)?Math.round(C):Math.ceil(C));const F=Math.max(XA(x),XA(w));y=Math.pow(10,cA(s)?F:s),w=Math.round(w*y)/y,B=Math.round(B*y)/y;let I=0;for(p&&(u&&w!==i?(n.push({value:i}),w<i&&I++,RA(Math.round((w+I*x)*y)/y,i,Za(i,v,t))&&I++):w<i&&I++);I<C;++I){const t=Math.round((w+I*x)*y)/y;if(m&&t>o)break;n.push({value:t})}return m&&u&&B!==o?n.length&&RA(n[n.length-1].value,o,Za(o,v,t))?n[n.length-1].value=o:n.push({value:o}):m&&B!==o||n.push({value:B}),n}function Za(t,e,{horizontal:n,minRotation:A}){const r=WA(A),i=(n?Math.sin(r):Math.cos(r))||.001,o=.75*e*(''+t).length;return Math.min(e/i,o)}class Ya extends vs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return cA(t)||('number'==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:A,max:r}=this;const i=t=>A=e?A:t,o=t=>r=n?r:t;if(t){const t=DA(A),e=DA(r);t<0&&e<0?o(0):t>0&&e>0&&i(0)}if(A===r){let e=0===r?1:Math.abs(.05*r);o(r+e),t||i(A-e)}this.min=A,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:A}=t;return A?(e=Math.ceil(this.max/A)-Math.floor(this.min/A)+1,e>1e3&&(e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const A=za({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return'ticks'===t.bounds&&jA(A,this,'value'),t.reverse?(A.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),A}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const A=(n-e)/Math.max(t.length-1,1)/2;e-=A,n+=A}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return wr(t,this.chart.options.locale,this.options.ticks.format)}}class qa extends Ya{static id='linear';static defaults={ticks:{callback:Cr.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=hA(t)?t:0,this.max=hA(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=WA(this.options.ticks.minRotation),A=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/A))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Cr.formatters.logarithmic;Cr.formatters.numeric;const Ja='label';function $a(t,e){'function'==typeof t?t(e):t&&(t.current=e)}function tc(t,e){t.labels=e}function ec(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ja;const A=[];t.datasets=e.map((e=>{const r=t.datasets.find((t=>t[n]===e[n]));return r&&e.data&&!A.includes(r)?(A.push(r),Object.assign(r,e),r):{...e}}))}function nc(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ja;const n={labels:[],datasets:[]};return tc(n,t.labels),ec(n,t.datasets,e),n}function Ac(t,A){const{height:i=150,width:o=300,redraw:s=!1,datasetIdKey:a,type:c,data:l,options:u,plugins:h=[],fallbackContent:d,updateMode:f,...g}=t,p=n(null),m=n(),b=()=>{p.current&&(m.current=new qs(p.current,{type:c,data:nc(l,a),options:u&&{...u},plugins:h}),$a(A,m.current))},v=()=>{$a(A,null),m.current&&(m.current.destroy(),m.current=null)};return r((()=>{!s&&m.current&&u&&function(t,e){const n=t.options;n&&e&&Object.assign(n,e)}(m.current,u)}),[s,u]),r((()=>{!s&&m.current&&tc(m.current.config.data,l.labels)}),[s,l.labels]),r((()=>{!s&&m.current&&l.datasets&&ec(m.current.config.data,l.datasets,a)}),[s,l.datasets]),r((()=>{m.current&&(s?(v(),setTimeout(b)):m.current.update(f))}),[s,u,l.labels,l.datasets,f]),r((()=>{m.current&&(v(),setTimeout(b))}),[c]),r((()=>(b(),()=>v())),[]),e.createElement('canvas',Object.assign({ref:p,role:'img',height:i,width:o},g),d)}const rc=c(Ac);function ic(t,n){return qs.register(n),c(((n,A)=>e.createElement(rc,Object.assign({},n,{ref:A,type:t}))))}const oc=ic('line',Co),sc=ic('bar',wo),ac=ic('pie',Fo);var cc,lc,uc,hc=Ue.div(cc||(cc=Lt(['\n flex\n flex-col\n items-center\n justify-center\n px-10\n py-5\n bg-[#9966FF]\n gap-1\n'],['\n flex\n flex-col\n items-center\n justify-center\n px-10\n py-5\n bg-[#9966FF]\n gap-1\n']))),dc=Ue.p(lc||(lc=Lt(['\n text-center\n font-bold\n text-white\n'],['\n text-center\n font-bold\n text-white\n']))),fc=Ue.p(uc||(uc=Lt(['\n text-center\n text-2xl\n font-bold\n text-white\n'],['\n text-center\n text-2xl\n font-bold\n text-white\n'])));qs.register(class extends cs{static id='arc';static defaults={borderAlign:'center',borderColor:'#fff',borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:'backgroundColor'};static descriptors={_scriptable:!0,_indexable:t=>'borderDash'!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const A=this.getProps(['x','y'],n),{angle:r,distance:i}=zA(A,{x:t,y:e}),{startAngle:o,endAngle:s,innerRadius:a,outerRadius:c,circumference:l}=this.getProps(['startAngle','endAngle','innerRadius','outerRadius','circumference'],n),u=(this.options.spacing+this.options.borderWidth)/2,h=fA(l,s-o)>=NA||JA(r,o,s),d=tr(i,a+u,c+u);return h&&d}getCenterPoint(t){const{x:e,y:n,startAngle:A,endAngle:r,innerRadius:i,outerRadius:o}=this.getProps(['x','y','startAngle','endAngle','innerRadius','outerRadius'],t),{offset:s,spacing:a}=this.options,c=(A+r)/2,l=(i+o+a+s)/2;return{x:e+Math.cos(c)*l,y:n+Math.sin(c)*l}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,A=(e.offset||0)/4,r=(e.spacing||0)/2,i=e.circular;if(this.pixelMargin='inner'===e.borderAlign?.33:0,this.fullCircles=n>NA?Math.floor(n/NA):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const o=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(o)*A,Math.sin(o)*A);const s=A*(1-Math.sin(Math.min(LA,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,n,A,r){const{fullCircles:i,startAngle:o,circumference:s}=e;let a=e.endAngle;if(i){ea(t,e,n,A,a,r);for(let e=0;e<i;++e)t.fill();isNaN(s)||(a=o+(s%NA||NA))}ea(t,e,n,A,a,r),t.fill()}(t,this,s,r,i),na(t,this,s,r,i),t.restore()}},class extends vs{static id='category';static defaults={ticks:{callback:Xa}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:A}of e)t[n]===A&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(cA(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:$A(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Ka(n,t,fA(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:A}=this.getMinMax(!0);'ticks'===this.options.bounds&&(t||(n=0),e||(A=this.getLabels().length-1)),this.min=n,this.max=A}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,A=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)A.push({value:n});return A}getLabelForValue(t){return Xa.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return'number'!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},qa,class extends cs{static id='point';parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:'circle',radius:3,rotation:0};static defaultRoutes={backgroundColor:'backgroundColor',borderColor:'borderColor'};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const A=this.options,{x:r,y:i}=this.getProps(['x','y'],n);return Math.pow(t-r,2)+Math.pow(e-i,2)<Math.pow(A.hitRadius+A.radius,2)}inXRange(t,e){return ua(this,t,'x',e)}inYRange(t,e){return ua(this,t,'y',e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(['x','y'],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!Pr(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,kr(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}},class extends cs{static id='line';static defaults={borderCapStyle:'butt',borderDash:[],borderDashOffset:0,borderJoinStyle:'miter',borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:'default',fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:'backgroundColor',borderColor:'borderColor'};static descriptors={_scriptable:!0,_indexable:t=>'borderDash'!==t&&'fill'!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||'monotone'===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const A=n.spanGaps?this._loop:this._fullLoop;Bi(this._points,n,t,A,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,A=t.options.spanGaps,r=n.length;if(!r)return[];const i=!!t._loop,{start:o,end:s}=function(t,e,n,A){let r=0,i=e-1;if(n&&!A)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,n&&(i+=r);i>r&&t[i%e].skip;)i--;return i%=e,{start:r,end:i}}(n,r,i,A);return Wi(t,!0===A?[{start:o,end:s,loop:i}]:function(t,e,n,A){const r=t.length,i=[];let o,s=e,a=t[e];for(o=e+1;o<=n;++o){const n=t[o%r];n.skip||n.stop?a.skip||(A=!1,i.push({start:e%r,end:(o-1)%r,loop:A}),e=s=n.stop?o:null):(s=o,a.skip&&(e=o)),a=n}return null!==s&&i.push({start:e%r,end:s%r,loop:A}),i}(n,o,s<o?s+r:s,!!t._fullLoop&&0===o&&s===r-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,A=t[e],r=this.points,i=function(t,e){const n=[],A=t.segments;for(let r=0;r<A.length;r++){const i=ji(A[r],t.points,e);i.length&&n.push(...i)}return n}(this,{property:e,start:A,end:A});if(!i.length)return;const o=[],s=function(t){return t.stepped?Mi:t.tension||'monotone'===t.cubicInterpolationMode?Hi:Oi}(n);let a,c;for(a=0,c=i.length;a<c;++a){const{start:c,end:l}=i[a],u=r[c],h=r[l];if(u===h){o.push(u);continue}const d=s(u,h,Math.abs((A-u[e])/(h[e]-u[e])),n.stepped);d[e]=t[e],o.push(d)}return 1===o.length?o[0]:o}pathSegment(t,e,n){return aa(this)(t,this,e,n)}path(t,e,n){const A=this.segments,r=aa(this);let i=this._loop;e=e||0,n=n||this.points.length-e;for(const o of A)i&=r(t,this,o,{start:e,end:e+n-1});return!!i}draw(t,e,n,A){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),la(t,this,n,A),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},Ua,Wa,Ea,class extends cs{static id='bar';static defaults={borderSkipped:'start',borderWidth:0,borderRadius:0,inflateAmount:'auto',pointStyle:void 0};static defaultRoutes={backgroundColor:'backgroundColor',borderColor:'borderColor'};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:A}}=this,{inner:r,outer:i}=fa(this),o=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?Gr:pa;var s;t.save(),i.w===r.w&&i.h===r.h||(t.beginPath(),o(t,ma(i,e,r)),t.clip(),o(t,ma(r,-e,i)),t.fillStyle=n,t.fill('evenodd')),t.beginPath(),o(t,ma(r,e)),t.fillStyle=A,t.fill(),t.restore()}inRange(t,e,n){return ga(this,t,e,n)}inXRange(t,e){return ga(this,t,null,e)}inYRange(t,e){return ga(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:A,horizontal:r}=this.getProps(['x','y','base','horizontal'],t);return{x:r?(e+A)/2:e,y:r?n:(n+A)/2}}getRange(t){return'x'===t?this.width/2:this.height/2}},xa);var gc={responsive:!1,maintainAspectRatio:!0},pc=function(t){var n=t.title,A=t.value;return e.createElement(hc,null,e.createElement(fc,null,A),e.createElement(dc,null,n))},mc=function(t){var n,A,r,i,o=t.type,s=t.data;switch(o){case'line':return e.createElement(oc,{width:500,data:s,options:gc});case'bar':return e.createElement(sc,{width:500,data:s,options:gc});case'pie':return e.createElement(ac,{data:s,options:gc});case'single_stat':var a=null===(n=s.labels)||void 0===n?void 0:n[0],c=null===(r=null===(A=s.datasets)||void 0===A?void 0:A[0].data)||void 0===r?void 0:r[0];return e.createElement(pc,{title:null!=a?a:'',value:null!==(i=null==c?void 0:c.toString())&&void 0!==i?i:''});default:return e.createElement('div',null,'Chart Type Not Found.')}};const bc=Math.min,vc=Math.max,yc=Math.round,wc=Math.floor,Bc=t=>({x:t,y:t}),Cc={left:'right',right:'left',bottom:'top',top:'bottom'},xc={start:'end',end:'start'};function Fc(t,e,n){return vc(t,bc(e,n))}function Ic(t,e){return'function'==typeof t?t(e):t}function Qc(t){return t.split('-')[0]}function Ec(t){return t.split('-')[1]}function Sc(t){return'x'===t?'y':'x'}function Uc(t){return'y'===t?'height':'width'}function Lc(t){return['top','bottom'].includes(Qc(t))?'y':'x'}function Nc(t){return Sc(Lc(t))}function kc(t){return t.replace(/start|end/g,(t=>xc[t]))}function _c(t){return t.replace(/left|right|bottom|top/g,(t=>Cc[t]))}function Pc(t){return'number'!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function Oc(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Mc(t,e,n){let{reference:A,floating:r}=t;const i=Lc(e),o=Nc(e),s=Uc(o),a=Qc(e),c='y'===i,l=A.x+A.width/2-r.width/2,u=A.y+A.height/2-r.height/2,h=A[s]/2-r[s]/2;let d;switch(a){case'top':d={x:l,y:A.y-r.height};break;case'bottom':d={x:l,y:A.y+A.height};break;case'right':d={x:A.x+A.width,y:u};break;case'left':d={x:A.x-r.width,y:u};break;default:d={x:A.x,y:A.y}}switch(Ec(e)){case'start':d[o]-=h*(n&&c?-1:1);break;case'end':d[o]+=h*(n&&c?-1:1)}return d}async function Hc(t,e){var n;void 0===e&&(e={});const{x:A,y:r,platform:i,rects:o,elements:s,strategy:a}=t,{boundary:c='clippingAncestors',rootBoundary:l='viewport',elementContext:u='floating',altBoundary:h=!1,padding:d=0}=Ic(e,t),f=Pc(d),g=s[h?'floating'===u?'reference':'floating':u],p=Oc(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:a})),m='floating'===u?{...o.floating,x:A,y:r}:o.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=Oc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:m,offsetParent:b,strategy:a}):m);return{top:(p.top-y.top+f.top)/v.y,bottom:(y.bottom-p.bottom+f.bottom)/v.y,left:(p.left-y.left+f.left)/v.x,right:(y.right-p.right+f.right)/v.x}}const Tc=function(t){return void 0===t&&(t={}),{name:'flip',options:t,async fn(e){var n,A;const{placement:r,middlewareData:i,rects:o,initialPlacement:s,platform:a,elements:c}=e,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d='bestFit',fallbackAxisSideDirection:f='none',flipAlignment:g=!0,...p}=Ic(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=Qc(r),b=Qc(s)===s,v=await(null==a.isRTL?void 0:a.isRTL(c.floating)),y=h||(b||!g?[_c(s)]:function(t){const e=_c(t);return[kc(t),e,kc(e)]}(s));h||'none'===f||y.push(...function(t,e,n,A){const r=Ec(t);let i=function(t,e,n){const A=['left','right'],r=['right','left'],i=['top','bottom'],o=['bottom','top'];switch(t){case'top':case'bottom':return n?e?r:A:e?A:r;case'left':case'right':return e?i:o;default:return[]}}(Qc(t),'start'===n,A);return r&&(i=i.map((t=>t+'-'+r)),e&&(i=i.concat(i.map(kc)))),i}(s,g,f,v));const w=[s,...y],B=await Hc(e,p),C=[];let x=(null==(A=i.flip)?void 0:A.overflows)||[];if(l&&C.push(B[m]),u){const t=function(t,e,n){void 0===n&&(n=!1);const A=Ec(t),r=Nc(t),i=Uc(r);let o='x'===r?A===(n?'end':'start')?'right':'left':'start'===A?'bottom':'top';return e.reference[i]>e.floating[i]&&(o=_c(o)),[o,_c(o)]}(r,o,v);C.push(B[t[0]],B[t[1]])}if(x=[...x,{placement:r,overflows:C}],!C.every((t=>t<=0))){var F,I;const t=((null==(F=i.flip)?void 0:F.index)||0)+1,e=w[t];if(e)return{data:{index:t,overflows:x},reset:{placement:e}};let n=null==(I=x.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:I.placement;if(!n)switch(d){case'bestFit':{var Q;const t=null==(Q=x.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:Q[0];t&&(n=t);break}case'initialPlacement':n=s}if(r!==n)return{reset:{placement:n}}}return{}}}};const Dc=function(t){return void 0===t&&(t=0),{name:'offset',options:t,async fn(e){const{x:n,y:A}=e,r=await async function(t,e){const{placement:n,platform:A,elements:r}=t,i=await(null==A.isRTL?void 0:A.isRTL(r.floating)),o=Qc(n),s=Ec(n),a='y'===Lc(n),c=['left','top'].includes(o)?-1:1,l=i&&a?-1:1,u=Ic(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:f}='number'==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return s&&'number'==typeof f&&(d='end'===s?-1*f:f),a?{x:d*l,y:h*c}:{x:h*c,y:d*l}}(e,t);return{x:n+r.x,y:A+r.y,data:r}}}},Rc=function(t){return void 0===t&&(t={}),{name:'shift',options:t,async fn(e){const{x:n,y:A,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...a}=Ic(t,e),c={x:n,y:A},l=await Hc(e,a),u=Lc(Qc(r)),h=Sc(u);let d=c[h],f=c[u];if(i){const t='y'===h?'bottom':'right';d=Fc(d+l['y'===h?'top':'left'],d,d-l[t])}if(o){const t='y'===u?'bottom':'right';f=Fc(f+l['y'===u?'top':'left'],f,f-l[t])}const g=s.fn({...e,[h]:d,[u]:f});return{...g,data:{x:g.x-n,y:g.y-A}}}}};function Vc(t){return Wc(t)?(t.nodeName||'').toLowerCase():'#document'}function Gc(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function jc(t){var e;return null==(e=(Wc(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Wc(t){return t instanceof Node||t instanceof Gc(t).Node}function Kc(t){return t instanceof Element||t instanceof Gc(t).Element}function Xc(t){return t instanceof HTMLElement||t instanceof Gc(t).HTMLElement}function zc(t){return'undefined'!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Gc(t).ShadowRoot)}function Zc(t){const{overflow:e,overflowX:n,overflowY:A,display:r}=tl(t);return/auto|scroll|overlay|hidden|clip/.test(e+A+n)&&!['inline','contents'].includes(r)}function Yc(t){return['table','td','th'].includes(Vc(t))}function qc(t){const e=Jc(),n=tl(t);return'none'!==n.transform||'none'!==n.perspective||!!n.containerType&&'normal'!==n.containerType||!e&&!!n.backdropFilter&&'none'!==n.backdropFilter||!e&&!!n.filter&&'none'!==n.filter||['transform','perspective','filter'].some((t=>(n.willChange||'').includes(t)))||['paint','layout','strict','content'].some((t=>(n.contain||'').includes(t)))}function Jc(){return!('undefined'==typeof CSS||!CSS.supports)&&CSS.supports('-webkit-backdrop-filter','none')}function $c(t){return['html','body','#document'].includes(Vc(t))}function tl(t){return Gc(t).getComputedStyle(t)}function el(t){return Kc(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function nl(t){if('html'===Vc(t))return t;const e=t.assignedSlot||t.parentNode||zc(t)&&t.host||jc(t);return zc(e)?e.host:e}function Al(t){const e=nl(t);return $c(e)?t.ownerDocument?t.ownerDocument.body:t.body:Xc(e)&&Zc(e)?e:Al(e)}function rl(t,e,n){var A;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=Al(t),i=r===(null==(A=t.ownerDocument)?void 0:A.body),o=Gc(r);return i?e.concat(o,o.visualViewport||[],Zc(r)?r:[],o.frameElement&&n?rl(o.frameElement):[]):e.concat(r,rl(r,[],n))}function il(t){const e=tl(t);let n=parseFloat(e.width)||0,A=parseFloat(e.height)||0;const r=Xc(t),i=r?t.offsetWidth:n,o=r?t.offsetHeight:A,s=yc(n)!==i||yc(A)!==o;return s&&(n=i,A=o),{width:n,height:A,$:s}}function ol(t){return Kc(t)?t:t.contextElement}function sl(t){const e=ol(t);if(!Xc(e))return Bc(1);const n=e.getBoundingClientRect(),{width:A,height:r,$:i}=il(e);let o=(i?yc(n.width):n.width)/A,s=(i?yc(n.height):n.height)/r;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}const al=Bc(0);function cl(t){const e=Gc(t);return Jc()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:al}function ll(t,e,n,A){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=ol(t);let o=Bc(1);e&&(A?Kc(A)&&(o=sl(A)):o=sl(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==Gc(t))&&e}(i,n,A)?cl(i):Bc(0);let a=(r.left+s.x)/o.x,c=(r.top+s.y)/o.y,l=r.width/o.x,u=r.height/o.y;if(i){const t=Gc(i),e=A&&Kc(A)?Gc(A):A;let n=t.frameElement;for(;n&&A&&e!==t;){const t=sl(n),e=n.getBoundingClientRect(),A=tl(n),r=e.left+(n.clientLeft+parseFloat(A.paddingLeft))*t.x,i=e.top+(n.clientTop+parseFloat(A.paddingTop))*t.y;a*=t.x,c*=t.y,l*=t.x,u*=t.y,a+=r,c+=i,n=Gc(n).frameElement}}return Oc({width:l,height:u,x:a,y:c})}function ul(t){return ll(jc(t)).left+el(t).scrollLeft}function hl(t,e,n){let A;if('viewport'===e)A=function(t,e){const n=Gc(t),A=jc(t),r=n.visualViewport;let i=A.clientWidth,o=A.clientHeight,s=0,a=0;if(r){i=r.width,o=r.height;const t=Jc();(!t||t&&'fixed'===e)&&(s=r.offsetLeft,a=r.offsetTop)}return{width:i,height:o,x:s,y:a}}(t,n);else if('document'===e)A=function(t){const e=jc(t),n=el(t),A=t.ownerDocument.body,r=vc(e.scrollWidth,e.clientWidth,A.scrollWidth,A.clientWidth),i=vc(e.scrollHeight,e.clientHeight,A.scrollHeight,A.clientHeight);let o=-n.scrollLeft+ul(t);const s=-n.scrollTop;return'rtl'===tl(A).direction&&(o+=vc(e.clientWidth,A.clientWidth)-r),{width:r,height:i,x:o,y:s}}(jc(t));else if(Kc(e))A=function(t,e){const n=ll(t,!0,'fixed'===e),A=n.top+t.clientTop,r=n.left+t.clientLeft,i=Xc(t)?sl(t):Bc(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:A*i.y}}(e,n);else{const n=cl(t);A={...e,x:e.x-n.x,y:e.y-n.y}}return Oc(A)}function dl(t,e){const n=nl(t);return!(n===e||!Kc(n)||$c(n))&&('fixed'===tl(n).position||dl(n,e))}function fl(t,e,n){const A=Xc(e),r=jc(e),i='fixed'===n,o=ll(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const a=Bc(0);if(A||!A&&!i)if(('body'!==Vc(e)||Zc(r))&&(s=el(e)),A){const t=ll(e,!0,i,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else r&&(a.x=ul(r));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}function gl(t,e){return Xc(t)&&'fixed'!==tl(t).position?e?e(t):t.offsetParent:null}function pl(t,e){const n=Gc(t);if(!Xc(t))return n;let A=gl(t,e);for(;A&&Yc(A)&&'static'===tl(A).position;)A=gl(A,e);return A&&('html'===Vc(A)||'body'===Vc(A)&&'static'===tl(A).position&&!qc(A))?n:A||function(t){let e=nl(t);for(;Xc(e)&&!$c(e);){if(qc(e))return e;e=nl(e)}return null}(t)||n}const ml={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:A}=t;const r=Xc(n),i=jc(n);if(n===i)return e;let o={scrollLeft:0,scrollTop:0},s=Bc(1);const a=Bc(0);if((r||!r&&'fixed'!==A)&&(('body'!==Vc(n)||Zc(i))&&(o=el(n)),Xc(n))){const t=ll(n);s=sl(n),a.x=t.x+n.clientLeft,a.y=t.y+n.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-o.scrollLeft*s.x+a.x,y:e.y*s.y-o.scrollTop*s.y+a.y}},getDocumentElement:jc,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:A,strategy:r}=t;const i=[...'clippingAncestors'===n?function(t,e){const n=e.get(t);if(n)return n;let A=rl(t,[],!1).filter((t=>Kc(t)&&'body'!==Vc(t))),r=null;const i='fixed'===tl(t).position;let o=i?nl(t):t;for(;Kc(o)&&!$c(o);){const e=tl(o),n=qc(o);n||'fixed'!==e.position||(r=null),(i?!n&&!r:!n&&'static'===e.position&&r&&['absolute','fixed'].includes(r.position)||Zc(o)&&!n&&dl(t,o))?A=A.filter((t=>t!==o)):r=e,o=nl(o)}return e.set(t,A),A}(e,this._c):[].concat(n),A],o=i[0],s=i.reduce(((t,n)=>{const A=hl(e,n,r);return t.top=vc(A.top,t.top),t.right=bc(A.right,t.right),t.bottom=bc(A.bottom,t.bottom),t.left=vc(A.left,t.left),t}),hl(e,o,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:pl,getElementRects:async function(t){let{reference:e,floating:n,strategy:A}=t;const r=this.getOffsetParent||pl,i=this.getDimensions;return{reference:fl(e,await r(n),A),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return il(t)},getScale:sl,isElement:Kc,isRTL:function(t){return'rtl'===tl(t).direction}};function bl(t,e,n,A){void 0===A&&(A={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o='function'==typeof ResizeObserver,layoutShift:s='function'==typeof IntersectionObserver,animationFrame:a=!1}=A,c=ol(t),l=r||i?[...c?rl(c):[],...rl(e)]:[];l.forEach((t=>{r&&t.addEventListener('scroll',n,{passive:!0}),i&&t.addEventListener('resize',n)}));const u=c&&s?function(t,e){let n,A=null;const r=jc(t);function i(){clearTimeout(n),A&&A.disconnect(),A=null}return function o(s,a){void 0===s&&(s=!1),void 0===a&&(a=1),i();const{left:c,top:l,width:u,height:h}=t.getBoundingClientRect();if(s||e(),!u||!h)return;const d={rootMargin:-wc(l)+'px '+-wc(r.clientWidth-(c+u))+'px '+-wc(r.clientHeight-(l+h))+'px '+-wc(c)+'px',threshold:vc(0,bc(1,a))||1};let f=!0;function g(t){const e=t[0].intersectionRatio;if(e!==a){if(!f)return o();e?o(!1,e):n=setTimeout((()=>{o(!1,1e-7)}),100)}f=!1}try{A=new IntersectionObserver(g,{...d,root:r.ownerDocument})}catch(t){A=new IntersectionObserver(g,d)}A.observe(t)}(!0),i}(c,n):null;let h,d=-1,f=null;o&&(f=new ResizeObserver((t=>{let[A]=t;A&&A.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{f&&f.observe(e)}))),n()})),c&&!a&&f.observe(c),f.observe(e));let g=a?ll(t):null;return a&&function e(){const A=ll(t);!g||A.x===g.x&&A.y===g.y&&A.width===g.width&&A.height===g.height||n();g=A,h=requestAnimationFrame(e)}(),n(),()=>{l.forEach((t=>{r&&t.removeEventListener('scroll',n),i&&t.removeEventListener('resize',n)})),u&&u(),f&&f.disconnect(),f=null,a&&cancelAnimationFrame(h)}}const vl=(t,e,n)=>{const A=new Map,r={platform:ml,...n},i={...r.platform,_c:A};return(async(t,e,n)=>{const{placement:A='bottom',strategy:r='absolute',middleware:i=[],platform:o}=n,s=i.filter(Boolean),a=await(null==o.isRTL?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:r}),{x:l,y:u}=Mc(c,A,a),h=A,d={},f=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[n],{x:p,y:m,data:b,reset:v}=await g({x:l,y:u,initialPlacement:A,placement:h,strategy:r,middlewareData:d,rects:c,platform:o,elements:{reference:t,floating:e}});l=null!=p?p:l,u=null!=m?m:u,d={...d,[i]:{...d[i],...b}},v&&f<=50&&(f++,'object'==typeof v&&(v.placement&&(h=v.placement),v.rects&&(c=!0===v.rects?await o.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:l,y:u}=Mc(c,h,a))),n=-1)}return{x:l,y:u,placement:h,strategy:r,middlewareData:d}})(t,e,{...r,platform:i})};var yl='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:'undefined'!=typeof global?global:'undefined'!=typeof self?self:{};function wl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,'default')?t.default:t}var Bl,Cl={exports:{}};
21
+ /*!
22
+ Copyright (c) 2018 Jed Watson.
23
+ Licensed under the MIT License (MIT), see
24
+ http://jedwatson.github.io/classnames
25
+ */Bl=Cl,function(){var t={}.hasOwnProperty;function e(){for(var n=[],A=0;A<arguments.length;A++){var r=arguments[A];if(r){var i=typeof r;if('string'===i||'number'===i)n.push(r);else if(Array.isArray(r)){if(r.length){var o=e.apply(null,r);o&&n.push(o)}}else if('object'===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes('[native code]')){n.push(r.toString());continue}for(var s in r)t.call(r,s)&&r[s]&&n.push(s)}}}return n.join(' ')}Bl.exports?(e.default=e,Bl.exports=e):window.classNames=e}();var xl=wl(Cl.exports);
26
+ /*
27
+ * React Tooltip
28
+ * {@link https://github.com/ReactTooltip/react-tooltip}
29
+ * @copyright ReactTooltip Team
30
+ * @license MIT
31
+ */
32
+ const Fl={core:!1,base:!1};function Il({css:t,id:e='react-tooltip-base-styles',type:n='base',ref:A}){var r,i;if(!t||'undefined'==typeof document||Fl[n])return;if('core'===n&&'undefined'!=typeof process&&(null===(r=null===process||void 0===process?void 0:process.env)||void 0===r?void 0:r.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if('base'!==n&&'undefined'!=typeof process&&(null===(i=null===process||void 0===process?void 0:process.env)||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;'core'===n&&(e='react-tooltip-core-styles'),A||(A={});const{insertAt:o}=A;if(document.getElementById(e))return;const s=document.head||document.getElementsByTagName('head')[0],a=document.createElement('style');a.id=e,a.type='text/css','top'===o&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t)),Fl[n]=!0}const Ql=(t,e,n)=>{let A=null;return function(...r){const i=()=>{A=null,n||t.apply(this,r)};n&&!A&&(t.apply(this,r),A=setTimeout(i,e)),n||(A&&clearTimeout(A),A=setTimeout(i,e))}},El={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Sl=l({getTooltipData:()=>El});function Ul(t='DEFAULT_TOOLTIP_ID'){return u(Sl).getTooltipData(t)}const Ll='undefined'!=typeof window?h:r,Nl=t=>{if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return['overflow','overflow-x','overflow-y'].some((t=>{const n=e.getPropertyValue(t);return'auto'===n||'scroll'===n}))},kl=t=>{if(!t)return null;let e=t.parentElement;for(;e;){if(Nl(e))return e;e=e.parentElement}return document.scrollingElement||document.documentElement},_l=async({elementReference:t=null,tooltipReference:e=null,tooltipArrowReference:n=null,place:A='top',offset:r=10,strategy:i='absolute',middlewares:o=[Dc(Number(r)),Tc(),Rc({padding:5})],border:s})=>{if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:A};if(null===e)return{tooltipStyles:{},tooltipArrowStyles:{},place:A};const a=o;return n?(a.push((t=>({name:'arrow',options:t,async fn(e){const{x:n,y:A,placement:r,rects:i,platform:o,elements:s,middlewareData:a}=e,{element:c,padding:l=0}=Ic(t,e)||{};if(null==c)return{};const u=Pc(l),h={x:n,y:A},d=Nc(r),f=Uc(d),g=await o.getDimensions(c),p='y'===d,m=p?'top':'left',b=p?'bottom':'right',v=p?'clientHeight':'clientWidth',y=i.reference[f]+i.reference[d]-h[d]-i.floating[f],w=h[d]-i.reference[d],B=await(null==o.getOffsetParent?void 0:o.getOffsetParent(c));let C=B?B[v]:0;C&&await(null==o.isElement?void 0:o.isElement(B))||(C=s.floating[v]||i.floating[f]);const x=y/2-w/2,F=C/2-g[f]/2-1,I=bc(u[m],F),Q=bc(u[b],F),E=I,S=C-g[f]-Q,U=C/2-g[f]/2+x,L=Fc(E,U,S),N=!a.arrow&&null!=Ec(r)&&U!=L&&i.reference[f]/2-(U<E?I:Q)-g[f]/2<0,k=N?U<E?U-E:U-S:0;return{[d]:h[d]+k,data:{[d]:L,centerOffset:U-L-k,...N&&{alignmentOffset:k}},reset:N}}}))({element:n,padding:5})),vl(t,e,{placement:A,strategy:i,middleware:a}).then((({x:t,y:e,placement:n,middlewareData:A})=>{var r,i;const o={left:`${t}px`,top:`${e}px`,border:s},{x:a,y:c}=null!==(r=A.arrow)&&void 0!==r?r:{x:0,y:0},l=null!==(i={top:'bottom',right:'left',bottom:'top',left:'right'}[n.split('-')[0]])&&void 0!==i?i:'bottom',u=s&&{borderBottom:s,borderRight:s};let h=0;if(s){const t=`${s}`.match(/(\d+)px/);h=(null==t?void 0:t[1])?Number(t[1]):1}return{tooltipStyles:o,tooltipArrowStyles:{left:null!=a?`${a}px`:'',top:null!=c?`${c}px`:'',right:'',bottom:'',...u,[l]:`-${4+h}px`},place:n}}))):vl(t,e,{placement:'bottom',strategy:i,middleware:a}).then((({x:t,y:e,placement:n})=>({tooltipStyles:{left:`${t}px`,top:`${e}px`},tooltipArrowStyles:{},place:n})))};var Pl={tooltip:'core-styles-module_tooltip__3vRRp',fixed:'core-styles-module_fixed__pcSol',arrow:'core-styles-module_arrow__cvMwQ',noArrow:'core-styles-module_noArrow__xock6',clickable:'core-styles-module_clickable__ZuTTB',show:'core-styles-module_show__Nt9eE',closing:'core-styles-module_closing__sGnxF'},Ol={tooltip:'styles-module_tooltip__mnnfp',arrow:'styles-module_arrow__K0L3T',dark:'styles-module_dark__xNqje',light:'styles-module_light__Z6W-X',success:'styles-module_success__A2AKt',warning:'styles-module_warning__SCK0X',error:'styles-module_error__JvumD',info:'styles-module_info__BWdHW'};const Ml=({id:t,className:i,classNameArrow:s,variant:a='dark',anchorId:c,anchorSelect:l,place:u='top',offset:h=10,events:d=['hover'],openOnClick:f=!1,positionStrategy:g='absolute',middlewares:p,wrapper:m,delayShow:b=0,delayHide:v=0,float:y=!1,hidden:w=!1,noArrow:B=!1,clickable:C=!1,closeOnEsc:x=!1,closeOnScroll:F=!1,closeOnResize:I=!1,openEvents:Q,closeEvents:E,globalCloseEvents:S,style:U,position:L,afterShow:N,afterHide:k,content:_,contentWrapperRef:P,isOpen:O,setIsOpen:M,activeAnchor:H,setActiveAnchor:T,border:D,opacity:R,arrowColor:V})=>{const G=n(null),j=n(null),W=n(null),K=n(null),[X,z]=A(u),[Z,Y]=A({}),[q,J]=A({}),[$,tt]=A(!1),[et,nt]=A(!1),At=n(!1),rt=n(null),{anchorRefs:it,setActiveAnchor:ot}=Ul(t),st=n(!1),[at,ct]=A([]),lt=n(!1),ut=f||d.includes('click'),ht=ut||(null==Q?void 0:Q.click)||(null==Q?void 0:Q.dblclick)||(null==Q?void 0:Q.mousedown),dt=Q?{...Q}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!Q&&ut&&Object.assign(dt,{mouseenter:!1,focus:!1,click:!0});const ft=E?{...E}:{mouseleave:!0,blur:!0,click:!1};!E&&ut&&Object.assign(ft,{mouseleave:!1,blur:!1});const gt=S?{...S}:{escape:x||!1,scroll:F||!1,resize:I||!1,clickOutsideAnchor:ht||!1};Ll((()=>(lt.current=!0,()=>{lt.current=!1})),[]);const pt=t=>{lt.current&&(t&&nt(!0),setTimeout((()=>{lt.current&&(null==M||M(t),void 0===O&&tt(t))}),10))};r((()=>{if(void 0===O)return()=>null;O&&nt(!0);const t=setTimeout((()=>{tt(O)}),10);return()=>{clearTimeout(t)}}),[O]),r((()=>{$!==At.current&&(At.current=$,$?null==N||N():null==k||k())}),[$]);const mt=(t=v)=>{K.current&&clearTimeout(K.current),K.current=setTimeout((()=>{st.current||pt(!1)}),t)},bt=t=>{var e;if(!t)return;const n=null!==(e=t.currentTarget)&&void 0!==e?e:t.target;if(!(null==n?void 0:n.isConnected))return T(null),void ot({current:null});b?(W.current&&clearTimeout(W.current),W.current=setTimeout((()=>{pt(!0)}),b)):pt(!0),T(n),ot({current:n}),K.current&&clearTimeout(K.current)},vt=()=>{C?mt(v||100):v?mt():pt(!1),W.current&&clearTimeout(W.current)},yt=({x:t,y:e})=>{_l({place:u,offset:h,elementReference:{getBoundingClientRect:()=>({x:t,y:e,width:0,height:0,top:e,left:t,right:t,bottom:e})},tooltipReference:G.current,tooltipArrowReference:j.current,strategy:g,middlewares:p,border:D}).then((t=>{Object.keys(t.tooltipStyles).length&&Y(t.tooltipStyles),Object.keys(t.tooltipArrowStyles).length&&J(t.tooltipArrowStyles),z(t.place)}))},wt=t=>{if(!t)return;const e=t,n={x:e.clientX,y:e.clientY};yt(n),rt.current=n},Bt=t=>{var e;[document.querySelector(`[id='${c}']`),...at].some((e=>null==e?void 0:e.contains(t.target)))||(null===(e=G.current)||void 0===e?void 0:e.contains(t.target))||(pt(!1),W.current&&clearTimeout(W.current))},Ct=Ql(bt,50,!0),xt=Ql(vt,50,!0),Ft=o((()=>{L?yt(L):y?rt.current&&yt(rt.current):(null==H?void 0:H.isConnected)&&_l({place:u,offset:h,elementReference:H,tooltipReference:G.current,tooltipArrowReference:j.current,strategy:g,middlewares:p,border:D}).then((t=>{lt.current&&(Object.keys(t.tooltipStyles).length&&Y(t.tooltipStyles),Object.keys(t.tooltipArrowStyles).length&&J(t.tooltipArrowStyles),z(t.place))}))}),[$,H,_,U,u,h,g,L,y]);r((()=>{var t,e;const n=new Set(it);at.forEach((t=>{n.add({current:t})}));const A=document.querySelector(`[id='${c}']`);A&&n.add({current:A});const r=()=>{pt(!1)},i=kl(H),o=kl(G.current);gt.scroll&&(window.addEventListener('scroll',r),null==i||i.addEventListener('scroll',r),null==o||o.addEventListener('scroll',r));let s=null;gt.resize?window.addEventListener('resize',r):H&&G.current&&(s=bl(H,G.current,Ft,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const a=t=>{'Escape'===t.key&&pt(!1)};gt.escape&&window.addEventListener('keydown',a),gt.clickOutsideAnchor&&window.addEventListener('click',Bt);const l=[],u=t=>{$||bt(t)},h=()=>{$&&vt()},d=['mouseenter','mouseleave','focus','blur'],f=['click','dblclick','mousedown','mouseup'];Object.entries(dt).forEach((([t,e])=>{e&&(d.includes(t)?l.push({event:t,listener:Ct}):f.includes(t)&&l.push({event:t,listener:u}))})),Object.entries(ft).forEach((([t,e])=>{e&&(d.includes(t)?l.push({event:t,listener:xt}):f.includes(t)&&l.push({event:t,listener:h}))})),y&&l.push({event:'mousemove',listener:wt});const g=()=>{st.current=!0},p=()=>{st.current=!1,vt()};return C&&!ht&&(null===(t=G.current)||void 0===t||t.addEventListener('mouseenter',g),null===(e=G.current)||void 0===e||e.addEventListener('mouseleave',p)),l.forEach((({event:t,listener:e})=>{n.forEach((n=>{var A;null===(A=n.current)||void 0===A||A.addEventListener(t,e)}))})),()=>{var t,e;gt.scroll&&(window.removeEventListener('scroll',r),null==i||i.removeEventListener('scroll',r),null==o||o.removeEventListener('scroll',r)),gt.resize?window.removeEventListener('resize',r):null==s||s(),gt.clickOutsideAnchor&&window.removeEventListener('click',Bt),gt.escape&&window.removeEventListener('keydown',a),C&&!ht&&(null===(t=G.current)||void 0===t||t.removeEventListener('mouseenter',g),null===(e=G.current)||void 0===e||e.removeEventListener('mouseleave',p)),l.forEach((({event:t,listener:e})=>{n.forEach((n=>{var A;null===(A=n.current)||void 0===A||A.removeEventListener(t,e)}))}))}}),[H,Ft,et,it,at,Q,E,S,ut]),r((()=>{let e=null!=l?l:'';!e&&t&&(e=`[data-tooltip-id='${t}']`);const n=new MutationObserver((n=>{const A=[],r=[];n.forEach((n=>{if('attributes'===n.type&&'data-tooltip-id'===n.attributeName&&n.target.getAttribute('data-tooltip-id')===t&&A.push(n.target),'childList'===n.type){if(H){const t=[...n.removedNodes].filter((t=>1===t.nodeType));if(e)try{r.push(...t.filter((t=>t.matches(e)))),r.push(...t.flatMap((t=>[...t.querySelectorAll(e)])))}catch(t){}t.some((t=>{var e;return!!(null===(e=null==t?void 0:t.contains)||void 0===e?void 0:e.call(t,H))&&(nt(!1),pt(!1),T(null),W.current&&clearTimeout(W.current),K.current&&clearTimeout(K.current),!0)}))}if(e)try{const t=[...n.addedNodes].filter((t=>1===t.nodeType));A.push(...t.filter((t=>t.matches(e)))),A.push(...t.flatMap((t=>[...t.querySelectorAll(e)])))}catch(t){}}})),(A.length||r.length)&&ct((t=>[...t.filter((t=>!r.includes(t))),...A]))}));return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:['data-tooltip-id']}),()=>{n.disconnect()}}),[t,l,H]),r((()=>{Ft()}),[Ft]),r((()=>{if(!(null==P?void 0:P.current))return()=>null;const t=new ResizeObserver((()=>{Ft()}));return t.observe(P.current),()=>{t.disconnect()}}),[_,null==P?void 0:P.current]),r((()=>{var t;const e=document.querySelector(`[id='${c}']`),n=[...at,e];H&&n.includes(H)||T(null!==(t=at[0])&&void 0!==t?t:e)}),[c,at,H]),r((()=>()=>{W.current&&clearTimeout(W.current),K.current&&clearTimeout(K.current)}),[]),r((()=>{let e=l;if(!e&&t&&(e=`[data-tooltip-id='${t}']`),e)try{const t=Array.from(document.querySelectorAll(e));ct(t)}catch(e){ct([])}}),[t,l]);const It=!w&&_&&$&&Object.keys(Z).length>0;return et?e.createElement(m,{id:t,role:'tooltip',className:xl('react-tooltip',Pl.tooltip,Ol.tooltip,Ol[a],i,`react-tooltip__place-${X}`,Pl[It?'show':'closing'],It?'react-tooltip__show':'react-tooltip__closing','fixed'===g&&Pl.fixed,C&&Pl.clickable),onTransitionEnd:t=>{$||'opacity'!==t.propertyName||nt(!1)},style:{...U,...Z,opacity:void 0!==R&&It?R:void 0},ref:G},_,e.createElement(m,{className:xl('react-tooltip-arrow',Pl.arrow,Ol.arrow,s,B&&Pl.noArrow),style:{...q,background:V?`linear-gradient(to right bottom, transparent 50%, ${V} 50%)`:void 0},ref:j})):null},Hl=({content:t})=>e.createElement('span',{dangerouslySetInnerHTML:{__html:t}}),Tl=({id:t,anchorId:i,anchorSelect:o,content:s,html:a,render:c,className:l,classNameArrow:u,variant:h='dark',place:d='top',offset:f=10,wrapper:g='div',children:p=null,events:m=['hover'],openOnClick:b=!1,positionStrategy:v='absolute',middlewares:y,delayShow:w=0,delayHide:B=0,float:C=!1,hidden:x=!1,noArrow:F=!1,clickable:I=!1,closeOnEsc:Q=!1,closeOnScroll:E=!1,closeOnResize:S=!1,openEvents:U,closeEvents:L,globalCloseEvents:N,style:k,position:_,isOpen:P,disableStyleInjection:O=!1,border:M,opacity:H,arrowColor:T,setIsOpen:D,afterShow:R,afterHide:V})=>{const[G,j]=A(s),[W,K]=A(a),[X,z]=A(d),[Z,Y]=A(h),[q,J]=A(f),[$,tt]=A(w),[et,nt]=A(B),[At,rt]=A(C),[it,ot]=A(x),[st,at]=A(g),[ct,lt]=A(m),[ut,ht]=A(v),[dt,ft]=A(null),gt=n(O),{anchorRefs:pt,activeAnchor:mt}=Ul(t),bt=t=>null==t?void 0:t.getAttributeNames().reduce(((e,n)=>{var A;return n.startsWith('data-tooltip-')&&(e[n.replace(/^data-tooltip-/,'')]=null!==(A=null==t?void 0:t.getAttribute(n))&&void 0!==A?A:null),e}),{}),vt=t=>{const e={place:t=>{var e;z(null!==(e=t)&&void 0!==e?e:d)},content:t=>{j(null!=t?t:s)},html:t=>{K(null!=t?t:a)},variant:t=>{var e;Y(null!==(e=t)&&void 0!==e?e:h)},offset:t=>{J(null===t?f:Number(t))},wrapper:t=>{var e;at(null!==(e=t)&&void 0!==e?e:g)},events:t=>{const e=null==t?void 0:t.split(' ');lt(null!=e?e:m)},'position-strategy':t=>{var e;ht(null!==(e=t)&&void 0!==e?e:v)},'delay-show':t=>{tt(null===t?w:Number(t))},'delay-hide':t=>{nt(null===t?B:Number(t))},float:t=>{rt(null===t?C:'true'===t)},hidden:t=>{ot(null===t?x:'true'===t)}};Object.values(e).forEach((t=>t(null))),Object.entries(t).forEach((([t,n])=>{var A;null===(A=e[t])||void 0===A||A.call(e,n)}))};r((()=>{j(s)}),[s]),r((()=>{K(a)}),[a]),r((()=>{z(d)}),[d]),r((()=>{Y(h)}),[h]),r((()=>{J(f)}),[f]),r((()=>{tt(w)}),[w]),r((()=>{nt(B)}),[B]),r((()=>{rt(C)}),[C]),r((()=>{ot(x)}),[x]),r((()=>{ht(v)}),[v]),r((()=>{gt.current}),[O]),r((()=>{'undefined'!=typeof window&&window.dispatchEvent(new CustomEvent('react-tooltip-inject-styles',{detail:{disableCore:'core'===O,disableBase:O}}))}),[]),r((()=>{var e;const n=new Set(pt);let A=o;if(!A&&t&&(A=`[data-tooltip-id='${t}']`),A)try{document.querySelectorAll(A).forEach((t=>{n.add({current:t})}))}catch(e){}const r=document.querySelector(`[id='${i}']`);if(r&&n.add({current:r}),!n.size)return()=>null;const s=null!==(e=null!=dt?dt:r)&&void 0!==e?e:mt.current,a=new MutationObserver((t=>{t.forEach((t=>{var e;if(!s||'attributes'!==t.type||!(null===(e=t.attributeName)||void 0===e?void 0:e.startsWith('data-tooltip-')))return;const n=bt(s);vt(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(s){const t=bt(s);vt(t),a.observe(s,c)}return()=>{a.disconnect()}}),[pt,mt,dt,i,o]),r((()=>{null==k||k.border,M&&CSS.supports('border',`${M}`),null==k||k.opacity,H&&CSS.supports('opacity',`${H}`)}),[]);let yt=p;const wt=n(null);if(c){const t=c({content:null!=G?G:null,activeAnchor:dt});yt=t?e.createElement('div',{ref:wt,className:'react-tooltip-content-wrapper'},t):null}else G&&(yt=G);W&&(yt=e.createElement(Hl,{content:W}));const Bt={id:t,anchorId:i,anchorSelect:o,className:l,classNameArrow:u,content:yt,contentWrapperRef:wt,place:X,variant:Z,offset:q,wrapper:st,events:ct,openOnClick:b,positionStrategy:ut,middlewares:y,delayShow:$,delayHide:et,float:At,hidden:it,noArrow:F,clickable:I,closeOnEsc:Q,closeOnScroll:E,closeOnResize:S,openEvents:U,closeEvents:L,globalCloseEvents:N,style:k,position:_,isOpen:P,border:M,opacity:H,arrowColor:T,setIsOpen:D,afterShow:R,afterHide:V,activeAnchor:dt,setActiveAnchor:t=>ft(t)};return e.createElement(Ml,{...Bt})};'undefined'!=typeof window&&window.addEventListener('react-tooltip-inject-styles',(t=>{t.detail.disableCore||Il({css:':root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}',type:'core'}),t.detail.disableBase||Il({css:'\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*=\'react-tooltip__place-top\']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*=\'react-tooltip__place-right\']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*=\'react-tooltip__place-bottom\']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*=\'react-tooltip__place-left\']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}',type:'base'})}));var Dl,Rl,Vl,Gl,jl,Wl,Kl,Xl,zl,Zl,Yl,ql,Jl,$l,tu,eu,nu,Au,ru,iu,ou=function t(e){function n(t,e,A){var r,i={};if(Array.isArray(t))return t.concat(e);for(r in t)i[A?r.toLowerCase():r]=t[r];for(r in e){var o=A?r.toLowerCase():r,s=e[r];i[o]=o in i&&'object'==typeof s?n(i[o],s,'headers'==o):s}return i}function A(t,A,r,i,o){var s='string'!=typeof t?(A=t).url:t,a={config:A},c=n(e,A),l={};i=i||c.data,(c.transformRequest||[]).map((function(t){i=t(i,c.headers)||i})),c.auth&&(l.authorization=c.auth),i&&'object'==typeof i&&'function'!=typeof i.append&&'function'!=typeof i.text&&(i=JSON.stringify(i),l['content-type']='application/json');try{l[c.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp('(^|; )'+c.xsrfCookieName+'=([^;]*)'))[2])}catch(t){}return c.baseURL&&(s=s.replace(/^(?!.*\/\/)\/?/,c.baseURL+'/')),c.params&&(s+=(~s.indexOf('?')?'&':'?')+(c.paramsSerializer?c.paramsSerializer(c.params):new URLSearchParams(c.params))),(c.fetch||fetch)(s,{method:(r||c.method||'get').toUpperCase(),body:i,headers:n(c.headers,l,!0),credentials:c.withCredentials?'include':o}).then((function(t){for(var e in t)'function'!=typeof t[e]&&(a[e]=t[e]);return'stream'==c.responseType?(a.data=t.body,a):t[c.responseType||'text']().then((function(t){a.data=t,a.data=JSON.parse(t)})).catch(Object).then((function(){return(c.validateStatus?c.validateStatus(t.status):t.ok)?a:Promise.reject(a)}))}))}return e=e||{},A.request=A,A.get=function(t,e){return A(t,e,'get')},A.delete=function(t,e){return A(t,e,'delete')},A.head=function(t,e){return A(t,e,'head')},A.options=function(t,e){return A(t,e,'options')},A.post=function(t,e,n){return A(t,n,'post',e)},A.put=function(t,e,n){return A(t,n,'put',e)},A.patch=function(t,e,n){return A(t,n,'patch',e)},A.all=Promise.all.bind(Promise),A.spread=function(t){return t.apply.bind(t,t)},A.CancelToken='function'==typeof AbortController?AbortController:Object,A.defaults=e,A.create=t,A}(),su=ou.create(),au=function(){return Et(void 0,void 0,void 0,(function(){return St(this,(function(t){switch(t.label){case 0:return[4,su.post('/chat/conversation/')];case 1:return[2,t.sent().data]}}))}))},cu=function(t){return Et(void 0,void 0,void 0,(function(){return St(this,(function(e){switch(e.label){case 0:return[4,su.post('/chat/conversation/'.concat(t.conversationID,'/query/'),{question:t.question,category:t.category})];case 1:return[2,e.sent().data]}}))}))},lu=function(t){return Et(void 0,void 0,void 0,(function(){return St(this,(function(e){switch(e.label){case 0:return[4,su.delete('/chat/conversation/'.concat(t,'/'))];case 1:return[2,e.sent().data]}}))}))},uu=function(t){return Et(void 0,void 0,void 0,(function(){return St(this,(function(e){switch(e.label){case 0:return[4,su.put('/chat/entry/'.concat(t.chatID),{like:t.like,dislike:t.dislike})];case 1:return[2,e.sent().data]}}))}))},hu=function(t){var r=t.answer,i=t.chartData,o=t.onError,s=void 0!==o&&o,a=t.chatID,c=t.like,l=t.dislike,u=n(null),h=A({like:!!c,dislike:!!l}),d=h[0],f=h[1],g=xt({mutationFn:uu,onSuccess:function(t){f({like:t.like,dislike:t.dislike})}}),p=function(t,e){a&&g.mutate({chatID:a,like:t,dislike:e})};return e.createElement(fn,null,e.createElement(gn,null,e.createElement('div',null,e.createElement(an,{svg:Qn,size:32})),e.createElement(xn,{ref:u},s?e.createElement(In,null,r):r),!s&&e.createElement(Fn,null,e.createElement(ln,{onClick:function(){return Et(void 0,void 0,void 0,(function(){var t;return St(this,(function(e){switch(e.label){case 0:if(!u.current)return[3,4];t=u.current.textContent||'',e.label=1;case 1:return e.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(t)];case 2:return e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}}))}))},icon:'data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M18.4%2C20.82H11.2A2.42%2C2.42%2C0%2C0%2C1%2C8.78%2C18.4V11.2A2.42%2C2.42%2C0%2C0%2C1%2C11.2%2C8.78h7.2a2.42%2C2.42%2C0%2C0%2C1%2C2.42%2C2.42v7.2A2.42%2C2.42%2C0%2C0%2C1%2C18.4%2C20.82Zm-7.2-10.4a.78.78%2C0%2C0%2C0-.78.78v7.2a.78.78%2C0%2C0%2C0%2C.78.78h7.2a.78.78%2C0%2C0%2C0%2C.78-.78V11.2a.78.78%2C0%2C0%2C0-.78-.78Z%22%2F%3E%3Cpath%20d%3D%22M6.4%2C15.22H5.6A2.42%2C2.42%2C0%2C0%2C1%2C3.18%2C12.8V5.6A2.42%2C2.42%2C0%2C0%2C1%2C5.6%2C3.18h7.2A2.42%2C2.42%2C0%2C0%2C1%2C15.22%2C5.6v.8a.82.82%2C0%2C1%2C1-1.64%2C0V5.6a.78.78%2C0%2C0%2C0-.78-.78H5.6a.78.78%2C0%2C0%2C0-.78.78v7.2a.78.78%2C0%2C0%2C0%2C.78.78h.8a.82.82%2C0%2C0%2C1%2C0%2C1.64Z%22%2F%3E%3C%2Fsvg%3E'}),e.createElement(ln,{icon:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M18.66%2C20.18H3.56c-.98%2C0-1.78-.8-1.78-1.78v-7.82c0-.98%2C.8-1.78%2C1.78-1.78h3.61l3.26-6.52c.18-.36%2C.55-.59%2C.95-.59%2C2.16%2C0%2C3.91%2C1.75%2C3.91%2C3.91v1.07h4.43c1.37%2C0%2C2.49%2C1.12%2C2.49%2C2.49%2C0%2C.1%2C0%2C.21-.02%2C.31l-1.07%2C8.54c-.15%2C1.24-1.22%2C2.18-2.47%2C2.18Zm-9.77-2.13h9.77c.18%2C0%2C.33-.13%2C.35-.31l1.07-8.54c0-.24-.16-.4-.35-.4h-5.5c-.59%2C0-1.07-.48-1.07-1.07v-2.13c0-.77-.49-1.42-1.17-1.67l-3.1%2C6.19v7.93Zm-4.98%2C0h2.85v-7.11H3.91v7.11Z%22%2F%3E%3C%2Fsvg%3E','data-tooltip-id':'tooltip-btns','data-tooltip-content':'Like',iconColor:d.like?'fill-rose-500':void 0,onClick:function(){return p(1,0)}}),e.createElement(ln,{icon:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M11.38%2C22.31c-.4%2C0-.77-.23-.95-.59l-3.26-6.52H3.56c-.98%2C0-1.78-.8-1.78-1.78V5.6c0-.98%2C.8-1.78%2C1.78-1.78h15.1c1.25%2C0%2C2.32%2C.94%2C2.47%2C2.18l1.07%2C8.54c.01%2C.1%2C.02%2C.21%2C.02%2C.31%2C0%2C1.37-1.12%2C2.49-2.49%2C2.49h-4.43v1.07c0%2C2.16-1.75%2C3.91-3.91%2C3.91Zm-2.49-8.43l3.1%2C6.19c.68-.25%2C1.17-.9%2C1.17-1.67v-2.13c0-.59%2C.48-1.07%2C1.07-1.07h5.5c.2%2C0%2C.36-.16%2C.36-.36l-1.07-8.58c-.02-.18-.17-.31-.35-.31H8.89v7.93Zm-4.98-.81h2.85V5.95H3.91v7.11Z%22%2F%3E%3C%2Fsvg%3E','data-tooltip-id':'tooltip-btns','data-tooltip-content':'Dislike',iconColor:d.dislike?'fill-rose-500':void 0,onClick:function(){return p(0,1)}}))),i&&i.chart_possible&&e.createElement(pn,null,!i.error&&e.createElement(mc,{type:i.chart_type,data:function(){var t=i.chart_labels,e=i.chart_values;return{labels:t,datasets:[{label:i.chart_title,data:e}]}}()})),e.createElement(Tl,{id:'tooltip-btns',place:'right'}))},du=Ue.div(Dl||(Dl=Lt(['\n flex\n flex-col\n items-center\n justify-center\n px-[7.5rem]\n py-5\n'],['\n flex\n flex-col\n items-center\n justify-center\n px-[7.5rem]\n py-5\n']))),fu=Ue.div(Rl||(Rl=Lt(['\n grow \n overflow-y-auto\n'],['\n grow \n overflow-y-auto\n']))),gu=Ue.div(Vl||(Vl=Lt(['\n bg-alice_blue\n p-2\n w-full \n pl-[7.5rem]\n pr-[8rem]'],['\n bg-alice_blue\n p-2\n w-full \n pl-[7.5rem]\n pr-[8rem]']))),pu=Ue.div(Gl||(Gl=Lt(['\n w-full\n'],['\n w-full\n']))),mu=Ue.div(jl||(jl=Lt(['\n bg-transparent\n px-10\n py-5\n w-full\n'],['\n bg-transparent\n px-10\n py-5\n w-full\n']))),bu=Ue.div(Wl||(Wl=Lt(['\n flex\n gap-x-3\n'],['\n flex\n gap-x-3\n']))),vu=Ue.div(Kl||(Kl=Lt(['\n text-sm\n text-left\n p-1\n pt-[6px]\n'],['\n text-sm\n text-left\n p-1\n pt-[6px]\n']))),yu=function(t){var n=t.question;return e.createElement(mu,null,e.createElement(bu,null,e.createElement('div',null,e.createElement(an,{svg:'data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Group%206054%22%3E%3Cg%20id%3D%22Group%206038%22%3E%3Cg%20id%3D%22Group%206016%22%3E%3Cg%20id%3D%22Group%205999%22%3E%3Cpath%20id%3D%22Path%203219%22%20d%3D%22M16%203C18.5712%203%2021.0846%203.76244%2023.2224%205.19089C25.3602%206.61935%2027.0265%208.64967%2028.0104%2011.0251C28.9944%2013.4006%2029.2518%2016.0144%2028.7502%2018.5362C28.2486%2021.0579%2027.0105%2023.3743%2025.1924%2025.1924C23.3743%2027.0105%2021.0579%2028.2486%2018.5362%2028.7502C16.0144%2029.2518%2013.4006%2028.9944%2011.0251%2028.0104C8.64967%2027.0265%206.61935%2025.3602%205.19089%2023.2224C3.76244%2021.0846%203%2018.5712%203%2016C3%2012.5522%204.36964%209.24558%206.80761%206.80761C9.24558%204.36964%2012.5522%203%2016%203Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20id%3D%22Path%203220%22%20d%3D%22M15.7617%2015.4619C15.4452%2015.473%2015.1296%2015.4204%2014.8338%2015.3071C14.538%2015.1938%2014.268%2015.0222%2014.0399%2014.8025C13.6064%2014.3494%2013.3645%2013.7465%2013.3645%2013.1195C13.3645%2012.4924%2013.6064%2011.8896%2014.0399%2011.4365C14.5139%2011.014%2015.1268%2010.7806%2015.7617%2010.7806C16.3967%2010.7806%2017.0095%2011.014%2017.4836%2011.4365C17.9171%2011.8896%2018.159%2012.4924%2018.159%2013.1195C18.159%2013.7465%2017.9171%2014.3494%2017.4836%2014.8025C17.2555%2015.0222%2016.9855%2015.1938%2016.6897%2015.3071C16.3939%2015.4204%2016.0783%2015.473%2015.7617%2015.4619ZM11.1749%2020.847C11.0656%2020.8491%2010.9569%2020.8291%2010.8555%2020.7882C10.754%2020.7473%2010.6618%2020.6864%2010.5845%2020.6091C10.5062%2020.535%2010.4442%2020.4455%2010.4024%2020.3462C10.3606%2020.2469%2010.3399%2020.14%2010.3417%2020.0322V19.5068C10.3342%2019.1518%2010.4426%2018.8041%2010.6505%2018.5162C10.8571%2018.2341%2011.1336%2018.0105%2011.4527%2017.8675C12.1625%2017.5543%2012.8986%2017.3044%2013.6524%2017.1207C14.3433%2016.9553%2015.0513%2016.8712%2015.7617%2016.8701C16.471%2016.8711%2017.1775%2016.9572%2017.8663%2017.1265C18.6167%2017.3136%2019.3508%2017.5615%2020.0611%2017.8675C20.3845%2018.0083%2020.6649%2018.2321%2020.8739%2018.5162C21.0819%2018.8041%2021.1903%2019.1518%2021.1828%2019.5068V20.0322C21.1845%2020.14%2021.1638%2020.2469%2021.122%2020.3462C21.0802%2020.4455%2021.0182%2020.535%2020.94%2020.6091C20.8626%2020.6864%2020.7704%2020.7473%2020.669%2020.7882C20.5675%2020.8291%2020.4589%2020.8491%2020.3495%2020.847H11.1749Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E',size:32})),e.createElement(vu,null,n)))},wu=Ue.div(Xl||(Xl=Lt(['\n bg-transparent\n px-20\n py-4\n my-5\n flex\n gap-4\n'],['\n bg-transparent\n px-20\n py-4\n my-5\n flex\n gap-4\n']))),Bu=Ue.div(zl||(zl=Lt(['\n relative\n ','\n w-full\n'],['\n relative\n ','\n w-full\n'])),(function(t){return t.$fullWidth?'grow':'grow-0'})),Cu=Ue.textarea(Zl||(Zl=Lt(['\nw-full\np-4\npr-10\nbg-white\nborder-solid\nborder-2\nborder-gainsboro\nrounded-lg\nfocus:outline-none\nresize-none\n'],['\nw-full\np-4\npr-10\nbg-white\nborder-solid\nborder-2\nborder-gainsboro\nrounded-lg\nfocus:outline-none\nresize-none\n']))),xu=Ue.button(Yl||(Yl=Lt(['\nabsolute\nrounded-lg\nbottom-2\nright-2\npx-2\npy-2 \n','\n'],['\nabsolute\nrounded-lg\nbottom-2\nright-2\npx-2\npy-2 \n','\n'])),(function(t){return t.disabled?'cursor-not-allowed\n opacity-25 \n':''})),Fu=function(t){var n=t.$fullWidth,A=t.onClickTextAreaButton,r=t.disableTextAreaButton,i=Qt(t,['$fullWidth','onClickTextAreaButton','disableTextAreaButton']);return e.createElement(Bu,{$fullWidth:n},e.createElement(Cu,It({rows:2},i,{onKeyDown:function(t){'Enter'===t.key&&(t.preventDefault(),A())}})),e.createElement(xu,{onClick:A,disabled:r},e.createElement(an,{svg:'data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Group%206090%22%3E%3Cg%20id%3D%22Group%206056%22%3E%3Cg%20id%3D%22Group%206049%22%3E%3Cg%20id%3D%22send-4008%22%3E%3Cpath%20id%3D%22Path%203201%22%20d%3D%22M28.9963%207.63073C29.0005%207.61678%2029.0045%207.60376%2029.0088%207.58981C29.018%207.55618%2029.025%207.52199%2029.0298%207.48745C29.0329%207.47722%2029.0361%207.46699%2029.0392%207.45676C29.0432%207.41287%2029.0434%207.36871%2029.0399%207.32478C29.0433%207.31362%2029.0365%207.29933%2029.0352%207.28675C29.0311%207.25288%2029.0247%207.21933%2029.0162%207.18633L29.0001%207.14581C28.9865%207.10098%2028.9689%207.05746%2028.9475%207.01578C28.9248%206.97429%2028.8984%206.9349%2028.8688%206.89809L28.8426%206.86768C28.8183%206.84056%2028.7921%206.81521%2028.7643%206.79182L28.7416%206.76963C28.7065%206.74169%2028.6689%206.7169%2028.6294%206.69554L28.6062%206.68843C28.5732%206.67038%2028.539%206.65479%2028.5038%206.64178L28.4686%206.63098C28.4335%206.62118%2028.3977%206.61395%2028.3616%206.60937L28.3356%206.6014C28.2947%206.59743%2028.2536%206.59671%2028.2126%206.59927L4.925%208.0561C4.771%208.0631%204.62259%208.11595%204.49868%208.20791C4.37477%208.29987%204.28098%208.42677%204.22929%208.57241C4.1776%208.71805%204.17035%208.87584%204.20846%209.02563C4.24657%209.17542%204.32832%209.31043%204.44327%209.41343L11.7466%2016.1872L13.2622%2026.0472C13.2846%2026.1927%2013.3475%2026.3289%2013.4436%2026.4402C13.5397%2026.5515%2013.6651%2026.6334%2013.8055%2026.6764L13.8398%2026.687C13.9878%2026.7251%2014.1437%2026.7188%2014.2881%2026.6689C14.4326%2026.619%2014.5592%2026.5277%2014.6524%2026.4063L28.8768%207.85952C28.9015%207.82705%2028.9235%207.79265%2028.9427%207.75666C28.9458%207.74643%2028.9489%207.7362%2028.952%207.72597C28.9689%207.69527%2028.9837%207.66344%2028.9963%207.63073ZM24.7095%208.38781L12.6011%2014.8445L6.84032%209.50672L24.7095%208.38781ZM14.5249%2024.0008L13.3326%2016.227L25.4409%209.77035L14.5249%2024.0008Z%22%20fill%3D%22%2311339A%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E',size:n?48:40})))},Iu=Ue.div(ql||(ql=Lt(['\n flex\n justify-between\n mb-10\n'],['\n flex\n justify-between\n mb-10\n']))),Qu=Ue.div(Jl||(Jl=Lt(['\n flex\n items-center\n'],['\n flex\n items-center\n']))),Eu=function(t){var n=t.handleClickBackBtn;return e.createElement(Iu,null,e.createElement(Qu,null,e.createElement(Ne,null,e.createElement(ln,{name:'back',icon:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%2C11.03H7.36l3.37-3.37c.39-.39%2C.39-1.02%2C0-1.41s-1.02-.39-1.41%2C0l-5.02%2C5.02c-.39%2C.39-.39%2C1.02%2C0%2C1.41%2C.01%2C.01%2C.02%2C.01%2C.03%2C.02%2C0%2C.01%2C.01%2C.02%2C.02%2C.03l5.02%2C5.02c.2%2C.2%2C.45%2C.29%2C.71%2C.29s.51-.1%2C.71-.29c.39-.39%2C.39-1.02%2C0-1.41l-3.32-3.32h11.53c.55%2C0%2C1-.45%2C1-1s-.45-1-1-1Z%22%2F%3E%3C%2Fsvg%3E',onClick:n}))),e.createElement(Qu,null,e.createElement(Ne,null,e.createElement(an,{svg:Qn,size:48})),e.createElement('h1',null,'GenBot')))},Su=Ue.div($l||($l=Lt(['\n w-full\n flex\n flex-col\n justify-center\n items-center\n grow\n gap-20\n'],['\n w-full\n flex\n flex-col\n justify-center\n items-center\n grow\n gap-20\n']))),Uu=Ue.div(tu||(tu=Lt(['\n flex\n flex-col\n items-center\n gap-2\n'],['\n flex\n flex-col\n items-center\n gap-2\n']))),Lu=Ue.h1(eu||(eu=Lt(['\n text-[2rem]\n font-medium\n'],['\n text-[2rem]\n font-medium\n']))),Nu=Ue.p(nu||(nu=Lt(['\n text-xl\n font-medium\n'],['\n text-xl\n font-medium\n']))),ku=function(t){var n=t.errorHeading,A=t.errorInfo;return e.createElement(Su,null,e.createElement(an,{svg:'data:image/svg+xml,%3Csvg%20width%3D%22205%22%20height%3D%22226%22%20viewBox%3D%220%200%20205%20226%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M95.9012%2025.7055C98.999%2021.7344%20105.647%2021.7344%20108.72%2025.7247C112.672%2030.1675%20109.918%2038.3456%20103.914%2039.1806C103.754%2043.1326%20103.888%2047.091%20103.856%2051.043C108.025%2051.1004%20112.2%2050.9155%20116.362%2051.145C112.328%2051.8461%20108.216%2051.3107%20104.149%2051.5338C108.235%2051.7314%20112.321%2051.5912%20116.407%2051.5019C118.103%2051.8971%20118.243%2054.0389%20119.53%2054.8803C121.8%2055.5241%20124.203%2055.301%20126.516%2055.728C136.989%2057.5383%20147.781%2060.5979%20155.902%2067.8008C163.251%2073.9264%20167.783%2082.812%20170.244%2091.9271C172.506%20100.061%20173.195%20108.532%20173.316%20116.94C173.622%20129.548%20167.732%20142.302%20157.476%20149.779C150.917%20155%20142.528%20157.722%20134.185%20157.964C113.985%20157.977%2093.7849%20157.958%2073.5787%20157.97C67.2428%20158.149%2060.7921%20157.129%2055.0043%20154.471C45.2964%20150.206%2037.4943%20141.907%2033.8483%20131.951C31.1966%20125.175%2030.9353%20117.73%2031.611%20110.565C32.0571%2099.0599%2034.4347%2087.3058%2040.5221%2077.3812C42.8104%2073.8308%2045.494%2070.4843%2048.7448%2067.7689C55.8202%2061.6242%2064.9034%2058.316%2073.9739%2056.4866C77.8749%2055.6324%2081.9034%2055.5432%2085.8044%2054.6508C85.9765%2052.4899%2088.0609%2050.9346%2090.1516%2051.0239C93.7021%2051.0175%2097.2589%2051.0239%20100.816%2051.0621C100.714%2047.0974%20100.809%2043.1262%20100.746%2039.1615C94.7283%2038.3966%2091.7834%2030.1292%2095.9012%2025.7055ZM72.5461%2085.247C65.3879%2085.5338%2058.0257%2087.3377%2052.2315%2091.7232C47.3425%2095.2672%2044.0789%20101.265%2044.5378%20107.385C44.5315%20112.401%2046.9664%20117.5%2051.3136%20120.158C56.7891%20123.632%2063.5011%20124.225%2069.8371%20124.263C92.134%20124.257%20114.437%20124.276%20136.741%20124.251C143.115%20124.2%20149.929%20123.448%20155.29%20119.687C159.452%20116.831%20161.492%20111.694%20161.415%20106.76C161.657%20100.666%20158.235%2094.8274%20153.295%2091.4236C146.876%2086.7704%20138.761%2085.1896%20130.966%2085.1896C111.492%2085.2279%2092.0193%2085.1067%2072.5461%2085.247ZM84.5806%20135.45C83.2611%20136.145%2082.8277%20138.083%2083.8731%20139.205C88.0992%20144.425%2095.1426%20146.541%20101.657%20146.611C108.471%20146.796%20115.865%20144.833%20120.493%20139.549C121.717%20138.472%20121.583%20136.266%20120.085%20135.501C118.95%20134.698%20117.535%20135.654%20116.796%20136.566C113.15%20140.575%20107.496%20141.856%20102.282%20142.003C97.0932%20141.869%2091.4775%20140.569%2087.8506%20136.585C87.092%20135.648%2085.7917%20134.781%2084.5806%20135.45Z%22%20fill%3D%22%23FDFDFD%22%2F%3E%3Cpath%20d%3D%22M74.5412%2099.8821C76.1348%2098.4288%2079.0988%20100.092%2078.6781%20102.234C78.8502%20104.784%2074.6751%20105.81%2073.6998%20103.407C72.8138%20102.241%2073.413%20100.634%2074.5412%2099.8821Z%22%20fill%3D%22%23FDFDFD%22%2F%3E%3Cpath%20d%3D%22M125.956%20103.299C125.968%20102.017%20125.764%20100.347%20127.218%2099.7483C129.353%2098.1547%20132.515%20101.284%20130.908%20103.433C129.952%20105.491%20127.065%20104.931%20125.956%20103.299Z%22%20fill%3D%22%23FDFDFD%22%2F%3E%3Cpath%20d%3D%22M84.0651%201.6684C110.193%20-3.20149%20138.137%202.7074%20160.001%2017.8525C184.268%2034.2406%20200.923%2061.5349%20203.913%2090.7097C206.475%20111.77%20202.052%20133.589%20191.7%20152.093C181.119%20171.248%20164.189%20186.737%20144.244%20195.706C142.287%20196.521%20140.381%20197.643%20138.214%20197.733C139.164%20194.82%20139.897%20191.836%20140.311%20188.796C144.671%20188.158%20148.285%20185.469%20151.931%20183.193C159.344%20177.96%20165.782%20171.35%20170.965%20163.905C173.208%20160.89%20171.64%20156.077%20168.141%20154.821C165.47%20153.381%20162.073%20154.834%20160.473%20157.199C154.749%20165.128%20147.482%20172.191%20138.641%20176.538C136.665%20172.319%20133.542%20168.596%20129.5%20166.225C125.007%20163.433%20119.601%20162.643%20114.4%20162.611C106.113%20162.649%2097.827%20162.592%2089.5405%20162.636C84.0842%20162.7%2078.4558%20163.809%2073.9173%20167.003C67.7981%20171.076%2064.0819%20178.425%2064.305%20185.762C64.0182%20190.6%2065.65%20195.234%2066.893%20199.83C58.0137%20206.752%2048.4333%20212.776%2038.4321%20217.945C29.3744%20222.184%2019.6537%20226.225%209.44225%20225.486C9.83745%20224.09%2010.7171%20222.936%2011.482%20221.731C21.515%20204.974%2025.8558%20184.175%2020.4951%20165.122C20.0298%20162.866%2018.5829%20161.062%2017.2825%20159.239C4.60422%20140.416%20-1.53414%20117.226%200.32713%2094.6107C2.25214%2066.0925%2016.9638%2038.7344%2039.7133%2021.4284C52.5829%2011.3444%2067.9766%204.52405%2084.0651%201.6684ZM95.902%2025.7055C91.7842%2030.1292%2094.7291%2038.3966%20100.746%2039.1615C100.81%2043.1262%20100.714%2047.0974%20100.816%2051.0621C97.2597%2051.0239%2093.7029%2051.0175%2090.1524%2051.0239C88.0617%2050.9346%2085.9773%2052.4899%2085.8052%2054.6508C81.9042%2055.5432%2077.8757%2055.6324%2073.9747%2056.4866C64.9042%2058.316%2055.821%2061.6242%2048.7456%2067.7689C45.4947%2070.4843%2042.8112%2073.8308%2040.5229%2077.3812C34.4355%2087.3058%2032.0579%2099.0599%2031.6117%20110.565C30.9361%20117.73%2031.1974%20125.175%2033.8491%20131.951C37.4951%20141.907%2045.2971%20150.206%2055.0051%20154.471C60.7928%20157.129%2067.2435%20158.149%2073.5795%20157.97C93.7857%20157.958%20113.986%20157.977%20134.185%20157.964C142.529%20157.722%20150.918%20155%20157.477%20149.779C167.733%20142.302%20173.623%20129.548%20173.317%20116.94C173.196%20108.532%20172.507%20100.061%20170.244%2091.9271C167.784%2082.812%20163.252%2073.9264%20155.902%2067.8008C147.782%2060.5979%20136.99%2057.5383%20126.517%2055.728C124.203%2055.301%20121.8%2055.5241%20119.531%2054.8803C118.244%2054.0389%20118.103%2051.8971%20116.408%2051.5019C112.322%2051.5912%20108.236%2051.7314%20104.15%2051.5338C108.217%2051.3107%20112.328%2051.8461%20116.363%2051.145C112.201%2050.9155%20108.026%2051.1004%20103.857%2051.043C103.889%2047.091%20103.755%2043.1326%20103.914%2039.1806C109.919%2038.3456%20112.672%2030.1675%20108.72%2025.7246C105.648%2021.7344%2098.9998%2021.7344%2095.902%2025.7055Z%22%20fill%3D%22%2343D0CA%22%2F%3E%3Cpath%20d%3D%22M76.4992%2091.8124C81.5348%2091.0602%2086.8382%2093.7247%2089.3624%2098.1292C91.6571%20102.011%2091.7272%20107.079%2089.3879%20110.967C86.2262%20116.755%2078.3286%20119.241%2072.4771%20116.092C67.0144%20113.44%2064.1269%20106.773%2065.8607%20100.959C67.1993%2096.1596%2071.5911%2092.4944%2076.4992%2091.8124ZM76.3654%2095.4584C71.8269%2096.2871%2068.404%20100.87%2068.9585%20105.466C69.2135%20110.527%2074.3511%20114.619%2079.3357%20113.861C84.3459%20113.491%2088.2086%20108.43%2087.4373%20103.509C87.0804%2098.2376%2081.452%2094.2728%2076.3654%2095.4584Z%22%20fill%3D%22%2343D0CA%22%2F%3E%3Cpath%20d%3D%22M122.246%2092.3988C128.626%2089.9894%20136.295%2093.8139%20138.5%20100.188C140.355%20105.217%20138.691%20111.343%20134.395%20114.613C130.36%20118.042%20124.113%20118.386%20119.671%20115.556C116.171%20113.408%20113.794%20109.558%20113.507%20105.453C113.092%2099.7865%20116.847%2094.1708%20122.246%2092.3988ZM124.19%2095.5349C120.072%2096.4974%20116.789%20100.532%20117.095%20104.822C117.006%20109.571%20121.137%20113.784%20125.854%20113.924C131.144%20114.396%20136.205%20109.501%20135.676%20104.159C135.676%2098.4798%20129.614%2094.0242%20124.19%2095.5349Z%22%20fill%3D%22%2343D0CA%22%2F%3E%3Cpath%20d%3D%22M72.5463%2085.247C92.0195%2085.1067%20111.493%2085.2279%20130.966%2085.1896C138.762%2085.1896%20146.876%2086.7704%20153.295%2091.4236C158.235%2094.8274%20161.658%20100.666%20161.415%20106.76C161.492%20111.694%20159.452%20116.831%20155.29%20119.687C149.929%20123.448%20143.115%20124.2%20136.741%20124.251C114.438%20124.276%2092.1342%20124.257%2069.8373%20124.263C63.5013%20124.225%2056.7893%20123.632%2051.3138%20120.158C46.9666%20117.5%2044.5317%20112.401%2044.5381%20107.385C44.0791%20101.265%2047.3427%2095.2672%2052.2317%2091.7232C58.0259%2087.3377%2065.3881%2085.5338%2072.5463%2085.247ZM76.4983%2091.8124C71.5902%2092.4945%2067.1984%2096.1596%2065.8598%20100.959C64.126%20106.773%2067.0135%20113.44%2072.4762%20116.092C78.3277%20119.241%2086.2253%20116.755%2089.387%20110.967C91.7263%20107.079%2091.6562%20102.011%2089.3615%2098.1292C86.8373%2093.7247%2081.5339%2091.0603%2076.4983%2091.8124ZM122.246%2092.3988C116.847%2094.1709%20113.093%2099.7865%20113.507%20105.453C113.794%20109.558%20116.171%20113.408%20119.671%20115.556C124.114%20118.386%20130.36%20118.042%20134.395%20114.613C138.691%20111.343%20140.355%20105.217%20138.5%20100.188C136.295%2093.8139%20128.627%2089.9894%20122.246%2092.3988Z%22%20fill%3D%22%23131314%22%2F%3E%3Cpath%20d%3D%22M76.3643%2095.4584C81.4509%2094.2728%2087.0793%2098.2376%2087.4363%20103.509C88.2075%20108.43%2084.3448%20113.491%2079.3346%20113.861C74.35%20114.619%2069.2124%20110.527%2068.9574%20105.466C68.4029%20100.87%2071.8258%2096.2871%2076.3643%2095.4584ZM74.5412%2099.8821C73.413%20100.634%2072.8138%20102.241%2073.6998%20103.407C74.6751%20105.81%2078.8502%20104.784%2078.6781%20102.234C79.0988%20100.092%2076.1348%2098.4288%2074.5412%2099.8821Z%22%20fill%3D%22%23131314%22%2F%3E%3Cpath%20d%3D%22M124.19%2095.5349C129.615%2094.0242%20135.677%2098.4798%20135.677%20104.159C136.206%20109.501%20131.145%20114.396%20125.854%20113.924C121.137%20113.784%20117.007%20109.571%20117.096%20104.822C116.79%20100.532%20120.073%2096.4974%20124.19%2095.5349ZM125.956%20103.299C127.065%20104.931%20129.953%20105.491%20130.909%20103.433C132.515%20101.284%20129.354%2098.1547%20127.218%2099.7483C125.765%20100.347%20125.969%20102.017%20125.956%20103.299Z%22%20fill%3D%22%23131314%22%2F%3E%3Cpath%20d%3D%22M84.5812%20135.45C85.7923%20134.781%2087.0927%20135.648%2087.8512%20136.585C91.4781%20140.569%2097.0938%20141.869%20102.282%20142.003C107.496%20141.856%20113.15%20140.575%20116.796%20136.566C117.536%20135.654%20118.951%20134.698%20120.086%20135.501C121.583%20136.266%20121.717%20138.472%20120.493%20139.549C115.866%20144.833%20108.472%20146.796%20101.658%20146.611C95.1433%20146.541%2088.0998%20144.425%2083.8737%20139.205C82.8283%20138.083%2083.2618%20136.145%2084.5812%20135.45Z%22%20fill%3D%22%23131314%22%2F%3E%3C%2Fsvg%3E',size:200}),e.createElement(Uu,null,e.createElement(Lu,null,n),A&&e.createElement(Nu,null,A)))},_u=function(t){var n=t.handleClickDownloadConversation;return e.createElement(wu,null,e.createElement(cn,{$fill:'outline',icon:'data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Group%206102%22%3E%3Cg%20id%3D%22import%22%3E%3Cpath%20id%3D%22Path%203248%22%20d%3D%22M18.787%2013.0128C18.5809%2013.0136%2018.3835%2013.0958%2018.2377%2013.2415C18.092%2013.3873%2018.0098%2013.5847%2018.009%2013.7908V17.2328C18.0082%2017.4389%2017.926%2017.6363%2017.7803%2017.782C17.6345%2017.9278%2017.4371%2018.01%2017.231%2018.0108H6.335C6.1289%2018.01%205.93148%2017.9278%205.78574%2017.782C5.64001%2017.6363%205.55779%2017.4389%205.557%2017.2328V13.7928C5.557%2013.5863%205.47498%2013.3883%205.32898%2013.2423C5.18299%2013.0963%204.98497%2013.0143%204.7785%2013.0143C4.57203%2013.0143%204.37401%2013.0963%204.22802%2013.2423C4.08202%2013.3883%204%2013.5863%204%2013.7928V17.2328C4.00185%2017.8515%204.24845%2018.4443%204.68595%2018.8818C5.12344%2019.3193%205.71629%2019.5659%206.335%2019.5678H17.235C17.8528%2019.5646%2018.4444%2019.3174%2018.8808%2018.8801C19.3172%2018.4427%2019.5632%2017.8506%2019.565%2017.2328V13.7928C19.5647%2013.5863%2019.4827%2013.3884%2019.337%2013.2422C19.1912%2013.0961%2018.9934%2013.0136%2018.787%2013.0128Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20id%3D%22Path%203249%22%20d%3D%22M11.2302%2015.4485C11.3029%2015.5229%2011.3905%2015.5811%2011.4872%2015.6195C11.6296%2015.6779%2011.7861%2015.6928%2011.937%2015.6623C12.0879%2015.6319%2012.2265%2015.5575%2012.3352%2015.4485L15.4482%2012.3355C15.594%2012.1896%2015.676%2011.9918%2015.676%2011.7855C15.676%2011.5792%2015.594%2011.3814%2015.4482%2011.2355C15.3023%2011.0896%2015.1045%2011.0077%2014.8982%2011.0077C14.6919%2011.0077%2014.494%2011.0896%2014.3482%2011.2355L12.5682%2013.0205V4.7785C12.5682%204.57203%2012.4861%204.37401%2012.3401%204.22802C12.1941%204.08202%2011.9961%204%2011.7897%204C11.5832%204%2011.3852%204.08202%2011.2392%204.22802C11.0932%204.37401%2011.0112%204.57203%2011.0112%204.7785V13.0205L9.23016%2011.2385C9.08429%2011.0926%208.88645%2011.0107%208.68016%2011.0107C8.47387%2011.0107%208.27603%2011.0926%208.13016%2011.2385C7.98429%2011.3844%207.90234%2011.5822%207.90234%2011.7885C7.90234%2011.9948%207.98429%2012.1926%208.13016%2012.3385L11.2432%2015.4515L11.2302%2015.4485Z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E',onClick:n},'Download Conversation'))},Pu=Ue.div(Au||(Au=Lt(['\n bg-white\n px-10\n py-4\n my-5\n w-full\n'],['\n bg-white\n px-10\n py-4\n my-5\n w-full\n']))),Ou=Ue.div(ru||(ru=Lt(['\n flex\n gap-x-3\n'],['\n flex\n gap-x-3\n']))),Mu=Ue.div(iu||(iu=Lt(['\n flex\n flex-col\n text-sm\n text-left\n w-full\n gap-2\n'],['\n flex\n flex-col\n text-sm\n text-left\n w-full\n gap-2\n']))),Hu={},Tu={};Object.defineProperty(Tu,'__esModule',{value:!0}),Tu.createAnimation=void 0;Tu.createAnimation=function(t,e,n){var A='react-spinners-'.concat(t,'-').concat(n);if('undefined'==typeof window||!window.document)return A;var r=document.createElement('style');document.head.appendChild(r);var i=r.sheet,o='\n @keyframes '.concat(A,' {\n ').concat(e,'\n }\n ');return i&&i.insertRule(o,0),A};var Du={};Object.defineProperty(Du,'__esModule',{value:!0}),Du.cssValue=Du.parseLengthAndUnit=void 0;var Ru={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,'%':!0};function Vu(t){if('number'==typeof t)return{value:t,unit:'px'};var e,n=(t.match(/^[0-9.]*/)||'').toString();e=n.includes('.')?parseFloat(n):parseInt(n,10);var A=(t.match(/[^0-9]*$/)||'').toString();return Ru[A]?{value:e,unit:A}:{value:e,unit:'px'}}Du.parseLengthAndUnit=Vu,Du.cssValue=function(t){var e=Vu(t);return''.concat(e.value).concat(e.unit)};var Gu=yl&&yl.__assign||function(){return Gu=Object.assign||function(t){for(var e,n=1,A=arguments.length;n<A;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Gu.apply(this,arguments)},ju=yl&&yl.__createBinding||(Object.create?function(t,e,n,A){void 0===A&&(A=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!('get'in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,A,r)}:function(t,e,n,A){void 0===A&&(A=n),t[A]=e[n]}),Wu=yl&&yl.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,'default',{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ku=yl&&yl.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)'default'!==n&&Object.prototype.hasOwnProperty.call(t,n)&&ju(e,t,n);return Wu(e,t),e},Xu=yl&&yl.__rest||function(t,e){var n={};for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&e.indexOf(A)<0&&(n[A]=t[A]);if(null!=t&&'function'==typeof Object.getOwnPropertySymbols){var r=0;for(A=Object.getOwnPropertySymbols(t);r<A.length;r++)e.indexOf(A[r])<0&&Object.prototype.propertyIsEnumerable.call(t,A[r])&&(n[A[r]]=t[A[r]])}return n};Object.defineProperty(Hu,'__esModule',{value:!0});var zu=Ku(e),Zu=Du,Yu=(0,Tu.createAnimation)('SyncLoader','33% {transform: translateY(10px)}\n 66% {transform: translateY(-10px)}\n 100% {transform: translateY(0)}','sync');var qu=Hu.default=function(t){var e=t.loading,n=void 0===e||e,A=t.color,r=void 0===A?'#000000':A,i=t.speedMultiplier,o=void 0===i?1:i,s=t.cssOverride,a=void 0===s?{}:s,c=t.size,l=void 0===c?15:c,u=t.margin,h=void 0===u?2:u,d=Xu(t,['loading','color','speedMultiplier','cssOverride','size','margin']),f=Gu({display:'inherit'},a),g=function(t){return{backgroundColor:r,width:(0,Zu.cssValue)(l),height:(0,Zu.cssValue)(l),margin:(0,Zu.cssValue)(h),borderRadius:'100%',display:'inline-block',animation:''.concat(Yu,' ').concat(.6/o,'s ').concat(.07*t,'s infinite ease-in-out'),animationFillMode:'both'}};return n?zu.createElement('span',Gu({style:f},d),zu.createElement('span',{style:g(1)}),zu.createElement('span',{style:g(2)}),zu.createElement('span',{style:g(3)})):null};const Ju=e.createContext({}),$u=!0;function th({baseColor:t,highlightColor:e,width:n,height:A,borderRadius:r,circle:i,direction:o,duration:s,enableAnimation:a=$u}){const c={};return'rtl'===o&&(c['--animation-direction']='reverse'),'number'==typeof s&&(c['--animation-duration']=`${s}s`),a||(c['--pseudo-element-display']='none'),'string'!=typeof n&&'number'!=typeof n||(c.width=n),'string'!=typeof A&&'number'!=typeof A||(c.height=A),'string'!=typeof r&&'number'!=typeof r||(c.borderRadius=r),i&&(c.borderRadius='50%'),void 0!==t&&(c['--base-color']=t),void 0!==e&&(c['--highlight-color']=e),c}function eh({count:t=1,wrapper:n,className:A,containerClassName:r,containerTestId:i,circle:o=!1,style:s,...a}){var c,l,u;const h=e.useContext(Ju),d={...a};for(const[t,e]of Object.entries(a))void 0===e&&delete d[t];const f={...h,...d,circle:o},g={...s,...th(f)};let p='react-loading-skeleton';A&&(p+=` ${A}`);const m=null!==(c=f.inline)&&void 0!==c&&c,b=[],v=Math.ceil(t);for(let n=0;n<v;n++){let A=g;if(v>t&&n===v-1){const e=null!==(l=A.width)&&void 0!==l?l:'100%',n=t%1,r='number'==typeof e?e*n:`calc(${e} * ${n})`;A={...A,width:r}}const r=e.createElement('span',{className:p,style:A,key:n},'‌');m?b.push(r):b.push(e.createElement(e.Fragment,{key:n},r,e.createElement('br',null)))}return e.createElement('span',{className:r,'data-testid':i,'aria-live':'polite','aria-busy':null!==(u=f.enableAnimation)&&void 0!==u?u:$u},n?b.map(((t,A)=>e.createElement(n,{key:A},t))):b)}v('@keyframes react-loading-skeleton {\n 100% {\n transform: translateX(100%);\n }\n}\n\n.react-loading-skeleton {\n --base-color: #ebebeb;\n --highlight-color: #f5f5f5;\n --animation-duration: 1.5s;\n --animation-direction: normal;\n --pseudo-element-display: block; /* Enable animation */\n\n background-color: var(--base-color);\n\n width: 100%;\n border-radius: 0.25rem;\n display: inline-flex;\n line-height: 1;\n\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n overflow: hidden;\n z-index: 1; /* Necessary for overflow: hidden to work correctly in Safari */\n}\n\n.react-loading-skeleton::after {\n content: \' \';\n display: var(--pseudo-element-display);\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n background-repeat: no-repeat;\n background-image: linear-gradient(\n 90deg,\n var(--base-color),\n var(--highlight-color),\n var(--base-color)\n );\n transform: translateX(-100%);\n\n animation-name: react-loading-skeleton;\n animation-direction: var(--animation-direction);\n animation-duration: var(--animation-duration);\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n}\n\n@media (prefers-reduced-motion) {\n .react-loading-skeleton {\n --pseudo-element-display: none; /* Disable animation */\n }\n}\n');var nh=function(){return e.createElement(Pu,null,e.createElement(Ou,null,e.createElement(qu,{color:'#000',size:4,'aria-label':'Loading Spinner'}),e.createElement(Mu,null,e.createElement('p',null,'Generating Response'),e.createElement(eh,{width:'60%'}),e.createElement(eh,{width:'55%'}),e.createElement(eh,{width:'50%'}),e.createElement(eh,{width:'45%'}))))},Ah={},rh=yl&&yl.__assign||function(){return rh=Object.assign||function(t){for(var e,n=1,A=arguments.length;n<A;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},rh.apply(this,arguments)},ih=yl&&yl.__createBinding||(Object.create?function(t,e,n,A){void 0===A&&(A=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!('get'in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,A,r)}:function(t,e,n,A){void 0===A&&(A=n),t[A]=e[n]}),oh=yl&&yl.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,'default',{enumerable:!0,value:e})}:function(t,e){t.default=e}),sh=yl&&yl.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)'default'!==n&&Object.prototype.hasOwnProperty.call(t,n)&&ih(e,t,n);return oh(e,t),e},ah=yl&&yl.__rest||function(t,e){var n={};for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&e.indexOf(A)<0&&(n[A]=t[A]);if(null!=t&&'function'==typeof Object.getOwnPropertySymbols){var r=0;for(A=Object.getOwnPropertySymbols(t);r<A.length;r++)e.indexOf(A[r])<0&&Object.prototype.propertyIsEnumerable.call(t,A[r])&&(n[A[r]]=t[A[r]])}return n};Object.defineProperty(Ah,'__esModule',{value:!0});var ch=sh(e),lh=Du,uh=(0,Tu.createAnimation)('ClipLoader','0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}','clip');var hh,dh,fh,gh=Ah.default=function(t){var e=t.loading,n=void 0===e||e,A=t.color,r=void 0===A?'#000000':A,i=t.speedMultiplier,o=void 0===i?1:i,s=t.cssOverride,a=void 0===s?{}:s,c=t.size,l=void 0===c?35:c,u=ah(t,['loading','color','speedMultiplier','cssOverride','size']),h=rh({background:'transparent !important',width:(0,lh.cssValue)(l),height:(0,lh.cssValue)(l),borderRadius:'100%',border:'2px solid',borderTopColor:r,borderBottomColor:'transparent',borderLeftColor:r,borderRightColor:r,display:'inline-block',animation:''.concat(uh,' ').concat(.75/o,'s 0s infinite linear'),animationFillMode:'both'},a);return n?ch.createElement('span',rh({style:h},u)):null},ph=Ue.div(hh||(hh=Lt(['\n flex\n flex-col\n items-center\n justify-center\n text-center\n opacity-60\n py-8\n gap-8\n h-full\n justify-evenly\n'],['\n flex\n flex-col\n items-center\n justify-center\n text-center\n opacity-60\n py-8\n gap-8\n h-full\n justify-evenly\n']))),mh=Ue.div(dh||(dh=Lt(['\n py-8\n flex\n gap-4\n items-center\n'],['\n py-8\n flex\n gap-4\n items-center\n']))),bh=Ue.p(fh||(fh=Lt(['\n text-4xl\n font-semibold\n text-gray-700\n'],['\n text-4xl\n font-semibold\n text-gray-700\n']))),vh=function(){return e.createElement(ph,null,e.createElement(mh,null,e.createElement(an,{svg:Qn,size:64}),e.createElement(bh,null,'GenBot')),e.createElement('div',{className:'flex flex-col gap-2'},e.createElement('p',{className:'text-3xl font-semibold'},'Hello, I\'m GenBot'),e.createElement('p',{className:'text-xl font-semibold'},'Tell me what’s on your mind. I\'m here to help you with whatever you need today.')))},yh=function(t,e){return yh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},yh(t,e)};function wh(t,e){if('function'!=typeof e&&null!==e)throw new TypeError('Class extends value '+String(e)+' is not a constructor or null');function n(){this.constructor=t}yh(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Bh=function(){return Bh=Object.assign||function(t){for(var e,n=1,A=arguments.length;n<A;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Bh.apply(this,arguments)};function Ch(t,e,n,A){return new(n||(n=Promise))((function(r,i){function o(t){try{a(A.next(t))}catch(t){i(t)}}function s(t){try{a(A.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}a((A=A.apply(t,e||[])).next())}))}function xh(t,e){var n,A,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},'function'==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError('Generator is already executing.');for(;o;)try{if(n=1,A&&(r=2&i[0]?A.return:i[0]?A.throw||((r=A.return)&&r.call(A),0):A.next)&&!(r=r.call(A,i[1])).done)return r;switch(A=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,A=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=e.call(t,o)}catch(t){i=[6,t],A=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}for(var Fh=function(){function t(t,e,n,A){this.left=t,this.top=e,this.width=n,this.height=A}return t.prototype.add=function(e,n,A,r){return new t(this.left+e,this.top+n,this.width+A,this.height+r)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var A=Array.from(n).find((function(t){return 0!==t.width}));return A?new t(A.left+e.windowBounds.left,A.top+e.windowBounds.top,A.width,A.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),Ih=function(t,e){return Fh.fromClientRect(t,e.getBoundingClientRect())},Qh=function(t){for(var e=[],n=0,A=t.length;n<A;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<A){var i=t.charCodeAt(n++);56320==(64512&i)?e.push(((1023&r)<<10)+(1023&i)+65536):(e.push(r),n--)}else e.push(r)}return e},Eh=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return'';for(var A=[],r=-1,i='';++r<n;){var o=t[r];o<=65535?A.push(o):(o-=65536,A.push(55296+(o>>10),o%1024+56320)),(r+1===n||A.length>16384)&&(i+=String.fromCharCode.apply(String,A),A.length=0)}return i},Sh='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',Uh='undefined'==typeof Uint8Array?[]:new Uint8Array(256),Lh=0;Lh<64;Lh++)Uh[Sh.charCodeAt(Lh)]=Lh;for(var Nh='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',kh='undefined'==typeof Uint8Array?[]:new Uint8Array(256),_h=0;_h<64;_h++)kh[Nh.charCodeAt(_h)]=_h;for(var Ph=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},Oh=function(){function t(t,e,n,A,r,i){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=A,this.index=r,this.data=i}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Mh='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',Hh='undefined'==typeof Uint8Array?[]:new Uint8Array(256),Th=0;Th<64;Th++)Hh[Mh.charCodeAt(Th)]=Th;var Dh=10,Rh=13,Vh=15,Gh=17,jh=18,Wh=19,Kh=20,Xh=21,zh=22,Zh=24,Yh=25,qh=26,Jh=27,$h=28,td=30,ed=32,nd=33,Ad=34,rd=35,id=37,od=38,sd=39,ad=40,cd=42,ld=[9001,65288],ud='×',hd='÷',dd=function(t,e){var n,A,r,i=function(t){var e,n,A,r,i,o=.75*t.length,s=t.length,a=0;'='===t[t.length-1]&&(o--,'='===t[t.length-2]&&o--);var c='undefined'!=typeof ArrayBuffer&&'undefined'!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),l=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<s;e+=4)n=kh[t.charCodeAt(e)],A=kh[t.charCodeAt(e+1)],r=kh[t.charCodeAt(e+2)],i=kh[t.charCodeAt(e+3)],l[a++]=n<<2|A>>4,l[a++]=(15&A)<<4|r>>2,l[a++]=(3&r)<<6|63&i;return c}(t),o=Array.isArray(i)?function(t){for(var e=t.length,n=[],A=0;A<e;A+=4)n.push(t[A+3]<<24|t[A+2]<<16|t[A+1]<<8|t[A]);return n}(i):new Uint32Array(i),s=Array.isArray(i)?function(t){for(var e=t.length,n=[],A=0;A<e;A+=2)n.push(t[A+1]<<8|t[A]);return n}(i):new Uint16Array(i),a=Ph(s,12,o[4]/2),c=2===o[5]?Ph(s,(24+o[4])/2):(n=o,A=Math.ceil((24+o[4])/4),n.slice?n.slice(A,r):new Uint32Array(Array.prototype.slice.call(n,A,r)));return new Oh(o[0],o[1],o[2],o[3],a,c)}('KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=='),fd=[td,36],gd=[1,2,3,5],pd=[Dh,8],md=[Jh,qh],bd=gd.concat(pd),vd=[od,sd,ad,Ad,rd],yd=[Vh,Rh],wd=function(t,e,n,A){var r=A[n];if(Array.isArray(t)?-1!==t.indexOf(r):t===r)for(var i=n;i<=A.length;){if((a=A[++i])===e)return!0;if(a!==Dh)break}if(r===Dh)for(i=n;i>0;){var o=A[--i];if(Array.isArray(t)?-1!==t.indexOf(o):t===o)for(var s=n;s<=A.length;){var a;if((a=A[++s])===e)return!0;if(a!==Dh)break}if(o!==Dh)break}return!1},Bd=function(t,e){for(var n=t;n>=0;){var A=e[n];if(A!==Dh)return A;n--}return 0},Cd=function(t,e,n,A,r){if(0===n[A])return ud;var i=A-1;if(Array.isArray(r)&&!0===r[i])return ud;var o=i-1,s=i+1,a=e[i],c=o>=0?e[o]:0,l=e[s];if(2===a&&3===l)return ud;if(-1!==gd.indexOf(a))return'!';if(-1!==gd.indexOf(l))return ud;if(-1!==pd.indexOf(l))return ud;if(8===Bd(i,e))return hd;if(11===dd.get(t[i]))return ud;if((a===ed||a===nd)&&11===dd.get(t[s]))return ud;if(7===a||7===l)return ud;if(9===a)return ud;if(-1===[Dh,Rh,Vh].indexOf(a)&&9===l)return ud;if(-1!==[Gh,jh,Wh,Zh,$h].indexOf(l))return ud;if(Bd(i,e)===zh)return ud;if(wd(23,zh,i,e))return ud;if(wd([Gh,jh],Xh,i,e))return ud;if(wd(12,12,i,e))return ud;if(a===Dh)return hd;if(23===a||23===l)return ud;if(16===l||16===a)return hd;if(-1!==[Rh,Vh,Xh].indexOf(l)||14===a)return ud;if(36===c&&-1!==yd.indexOf(a))return ud;if(a===$h&&36===l)return ud;if(l===Kh)return ud;if(-1!==fd.indexOf(l)&&a===Yh||-1!==fd.indexOf(a)&&l===Yh)return ud;if(a===Jh&&-1!==[id,ed,nd].indexOf(l)||-1!==[id,ed,nd].indexOf(a)&&l===qh)return ud;if(-1!==fd.indexOf(a)&&-1!==md.indexOf(l)||-1!==md.indexOf(a)&&-1!==fd.indexOf(l))return ud;if(-1!==[Jh,qh].indexOf(a)&&(l===Yh||-1!==[zh,Vh].indexOf(l)&&e[s+1]===Yh)||-1!==[zh,Vh].indexOf(a)&&l===Yh||a===Yh&&-1!==[Yh,$h,Zh].indexOf(l))return ud;if(-1!==[Yh,$h,Zh,Gh,jh].indexOf(l))for(var u=i;u>=0;){if((h=e[u])===Yh)return ud;if(-1===[$h,Zh].indexOf(h))break;u--}if(-1!==[Jh,qh].indexOf(l))for(u=-1!==[Gh,jh].indexOf(a)?o:i;u>=0;){var h;if((h=e[u])===Yh)return ud;if(-1===[$h,Zh].indexOf(h))break;u--}if(od===a&&-1!==[od,sd,Ad,rd].indexOf(l)||-1!==[sd,Ad].indexOf(a)&&-1!==[sd,ad].indexOf(l)||-1!==[ad,rd].indexOf(a)&&l===ad)return ud;if(-1!==vd.indexOf(a)&&-1!==[Kh,qh].indexOf(l)||-1!==vd.indexOf(l)&&a===Jh)return ud;if(-1!==fd.indexOf(a)&&-1!==fd.indexOf(l))return ud;if(a===Zh&&-1!==fd.indexOf(l))return ud;if(-1!==fd.concat(Yh).indexOf(a)&&l===zh&&-1===ld.indexOf(t[s])||-1!==fd.concat(Yh).indexOf(l)&&a===jh)return ud;if(41===a&&41===l){for(var d=n[i],f=1;d>0&&41===e[--d];)f++;if(f%2!=0)return ud}return a===ed&&l===nd?ud:hd},xd=function(t,e){e||(e={lineBreak:'normal',wordBreak:'normal'});var n=function(t,e){void 0===e&&(e='strict');var n=[],A=[],r=[];return t.forEach((function(t,i){var o=dd.get(t);if(o>50?(r.push(!0),o-=50):r.push(!1),-1!==['normal','auto','loose'].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return A.push(i),n.push(16);if(4===o||11===o){if(0===i)return A.push(i),n.push(td);var s=n[i-1];return-1===bd.indexOf(s)?(A.push(A[i-1]),n.push(s)):(A.push(i),n.push(td))}return A.push(i),31===o?n.push('strict'===e?Xh:id):o===cd||29===o?n.push(td):43===o?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(id):n.push(td):void n.push(o)})),[A,n,r]}(t,e.lineBreak),A=n[0],r=n[1],i=n[2];'break-all'!==e.wordBreak&&'break-word'!==e.wordBreak||(r=r.map((function(t){return-1!==[Yh,td,cd].indexOf(t)?id:t})));var o='keep-all'===e.wordBreak?i.map((function(e,n){return e&&t[n]>=19968&&t[n]<=40959})):void 0;return[A,r,o]},Fd=function(){function t(t,e,n,A){this.codePoints=t,this.required='!'===e,this.start=n,this.end=A}return t.prototype.slice=function(){return Eh.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),Id=45,Qd=43,Ed=-1,Sd=function(t){return t>=48&&t<=57},Ud=function(t){return Sd(t)||t>=65&&t<=70||t>=97&&t<=102},Ld=function(t){return 10===t||9===t||32===t},Nd=function(t){return function(t){return function(t){return t>=97&&t<=122}(t)||function(t){return t>=65&&t<=90}(t)}(t)||function(t){return t>=128}(t)||95===t},kd=function(t){return Nd(t)||Sd(t)||t===Id},_d=function(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t},Pd=function(t,e){return 92===t&&10!==e},Od=function(t,e,n){return t===Id?Nd(e)||Pd(e,n):!!Nd(t)||!(92!==t||!Pd(t,e))},Md=function(t,e,n){return t===Qd||t===Id?!!Sd(e)||46===e&&Sd(n):Sd(46===t?e:t)},Hd=function(t){var e=0,n=1;t[e]!==Qd&&t[e]!==Id||(t[e]===Id&&(n=-1),e++);for(var A=[];Sd(t[e]);)A.push(t[e++]);var r=A.length?parseInt(Eh.apply(void 0,A),10):0;46===t[e]&&e++;for(var i=[];Sd(t[e]);)i.push(t[e++]);var o=i.length,s=o?parseInt(Eh.apply(void 0,i),10):0;69!==t[e]&&101!==t[e]||e++;var a=1;t[e]!==Qd&&t[e]!==Id||(t[e]===Id&&(a=-1),e++);for(var c=[];Sd(t[e]);)c.push(t[e++]);var l=c.length?parseInt(Eh.apply(void 0,c),10):0;return n*(r+s*Math.pow(10,-o))*Math.pow(10,a*l)},Td={type:2},Dd={type:3},Rd={type:4},Vd={type:13},Gd={type:8},jd={type:21},Wd={type:9},Kd={type:10},Xd={type:11},zd={type:12},Zd={type:14},Yd={type:23},qd={type:1},Jd={type:25},$d={type:24},tf={type:26},ef={type:27},nf={type:28},Af={type:29},rf={type:31},of={type:32},sf=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(Qh(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==of;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),A=this.peekCodePoint(2);if(kd(e)||Pd(n,A)){var r=Od(e,n,A)?2:1;return{type:5,value:this.consumeName(),flags:r}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Vd;break;case 39:return this.consumeStringToken(39);case 40:return Td;case 41:return Dd;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Zd;break;case Qd:if(Md(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return Rd;case Id:var i=t,o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(Md(i,o,s))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Od(i,o,s))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(o===Id&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),$d;break;case 46:if(Md(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(42===a&&47===(a=this.consumeCodePoint()))return this.consumeToken();if(a===Ed)return this.consumeToken()}break;case 58:return tf;case 59:return ef;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===Id&&this.peekCodePoint(2)===Id)return this.consumeCodePoint(),this.consumeCodePoint(),Jd;break;case 64:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),u=this.peekCodePoint(2);if(Od(c,l,u))return{type:7,value:this.consumeName()};break;case 91:return nf;case 92:if(Pd(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return Af;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Gd;break;case 123:return Xd;case 125:return zd;case 117:case 85:var h=this.peekCodePoint(0),d=this.peekCodePoint(1);return h!==Qd||!Ud(d)&&63!==d||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Wd;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),jd;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Kd;break;case Ed:return of}return Ld(t)?(this.consumeWhiteSpace(),rf):Sd(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Nd(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Eh(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();Ud(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(Eh.apply(void 0,t.map((function(t){return 63===t?48:t}))),16),end:parseInt(Eh.apply(void 0,t.map((function(t){return 63===t?70:t}))),16)};var A=parseInt(Eh.apply(void 0,t),16);if(this.peekCodePoint(0)===Id&&Ud(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var r=[];Ud(e)&&r.length<6;)r.push(e),e=this.consumeCodePoint();return{type:30,start:A,end:parseInt(Eh.apply(void 0,r),16)}}return{type:30,start:A,end:A}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return'url'===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ed)return{type:22,value:''};var e=this.peekCodePoint(0);if(39===e||34===e){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ed||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Yd)}for(;;){var A=this.consumeCodePoint();if(A===Ed||41===A)return{type:22,value:Eh.apply(void 0,t)};if(Ld(A))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ed||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:Eh.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Yd);if(34===A||39===A||40===A||_d(A))return this.consumeBadUrlRemnants(),Yd;if(92===A){if(!Pd(A,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Yd;t.push(this.consumeEscapedCodePoint())}else t.push(A)}},t.prototype.consumeWhiteSpace=function(){for(;Ld(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(41===t||t===Ed)return;Pd(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e='';t>0;){var n=Math.min(5e4,t);e+=Eh.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),e},t.prototype.consumeStringToken=function(t){for(var e='',n=0;;){var A=this._value[n];if(A===Ed||void 0===A||A===t)return{type:0,value:e+=this.consumeStringSlice(n)};if(10===A)return this._value.splice(0,n),qd;if(92===A){var r=this._value[n+1];r!==Ed&&void 0!==r&&(10===r?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Pd(A,r)&&(e+=this.consumeStringSlice(n),e+=Eh(this.consumeEscapedCodePoint()),n=-1))}n++}},t.prototype.consumeNumber=function(){var t=[],e=4,n=this.peekCodePoint(0);for(n!==Qd&&n!==Id||t.push(this.consumeCodePoint());Sd(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var A=this.peekCodePoint(1);if(46===n&&Sd(A))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;Sd(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),A=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((69===n||101===n)&&((A===Qd||A===Id)&&Sd(r)||Sd(A)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;Sd(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[Hd(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],A=this.peekCodePoint(0),r=this.peekCodePoint(1),i=this.peekCodePoint(2);return Od(A,r,i)?{type:15,number:e,flags:n,unit:this.consumeName()}:37===A?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Ud(t)){for(var e=Eh(t);Ud(this.peekCodePoint(0))&&e.length<6;)e+=Eh(this.consumeCodePoint());Ld(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||function(t){return t>=55296&&t<=57343}(n)||n>1114111?65533:n}return t===Ed?65533:t},t.prototype.consumeName=function(){for(var t='';;){var e=this.consumeCodePoint();if(kd(e))t+=Eh(e);else{if(!Pd(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=Eh(this.consumeEscapedCodePoint())}}},t}(),af=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new sf;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError('Error parsing CSS component value, unexpected EOF');this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError('Error parsing CSS component value, multiple values found when expecting only one')},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(32===n.type||mf(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?of:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),cf=function(t){return 15===t.type},lf=function(t){return 17===t.type},uf=function(t){return 20===t.type},hf=function(t){return 0===t.type},df=function(t,e){return uf(t)&&t.value===e},ff=function(t){return 31!==t.type},gf=function(t){return 31!==t.type&&4!==t.type},pf=function(t){var e=[],n=[];return t.forEach((function(t){if(4===t.type){if(0===n.length)throw new Error('Error parsing function args, zero tokens for arg');return e.push(n),void(n=[])}31!==t.type&&n.push(t)})),n.length&&e.push(n),e},mf=function(t,e){return 11===e&&12===t.type||(28===e&&29===t.type||2===e&&3===t.type)},bf=function(t){return 17===t.type||15===t.type},vf=function(t){return 16===t.type||bf(t)},yf=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},wf={type:17,number:0,flags:4},Bf={type:16,number:50,flags:4},Cf={type:16,number:100,flags:4},xf=function(t,e,n){var A=t[0],r=t[1];return[Ff(A,e),Ff(void 0!==r?r:A,n)]},Ff=function(t,e){if(16===t.type)return t.number/100*e;if(cf(t))switch(t.unit){case'rem':case'em':return 16*t.number;default:return t.number}return t.number},If='grad',Qf='turn',Ef=function(t,e){if(15===e.type)switch(e.unit){case'deg':return Math.PI*e.number/180;case If:return Math.PI/200*e.number;case'rad':return e.number;case Qf:return 2*Math.PI*e.number}throw new Error('Unsupported angle type')},Sf=function(t){return 15===t.type&&('deg'===t.unit||t.unit===If||'rad'===t.unit||t.unit===Qf)},Uf=function(t){switch(t.filter(uf).map((function(t){return t.value})).join(' ')){case'to bottom right':case'to right bottom':case'left top':case'top left':return[wf,wf];case'to top':case'bottom':return Lf(0);case'to bottom left':case'to left bottom':case'right top':case'top right':return[wf,Cf];case'to right':case'left':return Lf(90);case'to top left':case'to left top':case'right bottom':case'bottom right':return[Cf,Cf];case'to bottom':case'top':return Lf(180);case'to top right':case'to right top':case'left bottom':case'bottom left':return[Cf,wf];case'to left':case'right':return Lf(270)}return 0},Lf=function(t){return Math.PI*t/180},Nf=function(t,e){if(18===e.type){var n=Df[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(5===e.type){if(3===e.value.length){var A=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);return Pf(parseInt(A+A,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(4===e.value.length){A=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);var o=e.value.substring(3,4);return Pf(parseInt(A+A,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===e.value.length){A=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6);return Pf(parseInt(A,16),parseInt(r,16),parseInt(i,16),1)}if(8===e.value.length){A=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),o=e.value.substring(6,8);return Pf(parseInt(A,16),parseInt(r,16),parseInt(i,16),parseInt(o,16)/255)}}if(20===e.type){var s=Vf[e.value.toUpperCase()];if(void 0!==s)return s}return Vf.TRANSPARENT},kf=function(t){return 0==(255&t)},_f=function(t){var e=255&t,n=255&t>>8,A=255&t>>16,r=255&t>>24;return e<255?'rgba('+r+','+A+','+n+','+e/255+')':'rgb('+r+','+A+','+n+')'},Pf=function(t,e,n,A){return(t<<24|e<<16|n<<8|Math.round(255*A)<<0)>>>0},Of=function(t,e){if(17===t.type)return t.number;if(16===t.type){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},Mf=function(t,e){var n=e.filter(gf);if(3===n.length){var A=n.map(Of),r=A[0],i=A[1],o=A[2];return Pf(r,i,o,1)}if(4===n.length){var s=n.map(Of),a=(r=s[0],i=s[1],o=s[2],s[3]);return Pf(r,i,o,a)}return 0};function Hf(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t}var Tf=function(t,e){var n=e.filter(gf),A=n[0],r=n[1],i=n[2],o=n[3],s=(17===A.type?Lf(A.number):Ef(t,A))/(2*Math.PI),a=vf(r)?r.number/100:0,c=vf(i)?i.number/100:0,l=void 0!==o&&vf(o)?Ff(o,1):1;if(0===a)return Pf(255*c,255*c,255*c,1);var u=c<=.5?c*(a+1):c+a-c*a,h=2*c-u,d=Hf(h,u,s+1/3),f=Hf(h,u,s),g=Hf(h,u,s-1/3);return Pf(255*d,255*f,255*g,l)},Df={hsl:Tf,hsla:Tf,rgb:Mf,rgba:Mf},Rf=function(t,e){return Nf(t,af.create(e).parseComponentValue())},Vf={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Gf={name:'background-clip',initialValue:'border-box',prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(uf(t))switch(t.value){case'padding-box':return 1;case'content-box':return 2}return 0}))}},jf={name:'background-color',initialValue:'transparent',prefix:!1,type:3,format:'color'},Wf=function(t,e){var n=Nf(t,e[0]),A=e[1];return A&&vf(A)?{color:n,stop:A}:{color:n,stop:null}},Kf=function(t,e){var n=t[0],A=t[t.length-1];null===n.stop&&(n.stop=wf),null===A.stop&&(A.stop=Cf);for(var r=[],i=0,o=0;o<t.length;o++){var s=t[o].stop;if(null!==s){var a=Ff(s,e);a>i?r.push(a):r.push(i),i=a}else r.push(null)}var c=null;for(o=0;o<r.length;o++){var l=r[o];if(null===l)null===c&&(c=o);else if(null!==c){for(var u=o-c,h=(l-r[c-1])/(u+1),d=1;d<=u;d++)r[c+d-1]=h*d;c=null}}return t.map((function(t,n){return{color:t.color,stop:Math.max(Math.min(1,r[n]/e),0)}}))},Xf=function(t,e,n){var A='number'==typeof t?t:function(t,e,n){var A=e/2,r=n/2,i=Ff(t[0],e)-A,o=r-Ff(t[1],n);return(Math.atan2(o,i)+2*Math.PI)%(2*Math.PI)}(t,e,n),r=Math.abs(e*Math.sin(A))+Math.abs(n*Math.cos(A)),i=e/2,o=n/2,s=r/2,a=Math.sin(A-Math.PI/2)*s,c=Math.cos(A-Math.PI/2)*s;return[r,i-c,i+c,o-a,o+a]},zf=function(t,e){return Math.sqrt(t*t+e*e)},Zf=function(t,e,n,A,r){return[[0,0],[0,e],[t,0],[t,e]].reduce((function(t,e){var i=e[0],o=e[1],s=zf(n-i,A-o);return(r?s<t.optimumDistance:s>t.optimumDistance)?{optimumCorner:e,optimumDistance:s}:t}),{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},Yf=function(t,e){var n=Lf(180),A=[];return pf(e).forEach((function(e,r){if(0===r){var i=e[0];if(20===i.type&&-1!==['top','left','right','bottom'].indexOf(i.value))return void(n=Uf(e));if(Sf(i))return void(n=(Ef(t,i)+Lf(270))%Lf(360))}var o=Wf(t,e);A.push(o)})),{angle:n,stops:A,type:1}},qf='closest-side',Jf='farthest-side',$f='closest-corner',tg='farthest-corner',eg='circle',ng='ellipse',Ag='cover',rg='contain',ig=function(t,e){var n=0,A=3,r=[],i=[];return pf(e).forEach((function(e,o){var s=!0;if(0===o?s=e.reduce((function(t,e){if(uf(e))switch(e.value){case'center':return i.push(Bf),!1;case'top':case'left':return i.push(wf),!1;case'right':case'bottom':return i.push(Cf),!1}else if(vf(e)||bf(e))return i.push(e),!1;return t}),s):1===o&&(s=e.reduce((function(t,e){if(uf(e))switch(e.value){case eg:return n=0,!1;case ng:return n=1,!1;case rg:case qf:return A=0,!1;case Jf:return A=1,!1;case $f:return A=2,!1;case Ag:case tg:return A=3,!1}else if(bf(e)||vf(e))return Array.isArray(A)||(A=[]),A.push(e),!1;return t}),s)),s){var a=Wf(t,e);r.push(a)}})),{size:A,shape:n,stops:r,position:i,type:2}},og=function(t,e){if(22===e.type){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(18===e.type){var A=ag[e.name];if(void 0===A)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return A(t,e.values)}throw new Error('Unsupported image type '+e.type)};var sg,ag={'linear-gradient':function(t,e){var n=Lf(180),A=[];return pf(e).forEach((function(e,r){if(0===r){var i=e[0];if(20===i.type&&'to'===i.value)return void(n=Uf(e));if(Sf(i))return void(n=Ef(t,i))}var o=Wf(t,e);A.push(o)})),{angle:n,stops:A,type:1}},'-moz-linear-gradient':Yf,'-ms-linear-gradient':Yf,'-o-linear-gradient':Yf,'-webkit-linear-gradient':Yf,'radial-gradient':function(t,e){var n=0,A=3,r=[],i=[];return pf(e).forEach((function(e,o){var s=!0;if(0===o){var a=!1;s=e.reduce((function(t,e){if(a)if(uf(e))switch(e.value){case'center':return i.push(Bf),t;case'top':case'left':return i.push(wf),t;case'right':case'bottom':return i.push(Cf),t}else(vf(e)||bf(e))&&i.push(e);else if(uf(e))switch(e.value){case eg:return n=0,!1;case ng:return n=1,!1;case'at':return a=!0,!1;case qf:return A=0,!1;case Ag:case Jf:return A=1,!1;case rg:case $f:return A=2,!1;case tg:return A=3,!1}else if(bf(e)||vf(e))return Array.isArray(A)||(A=[]),A.push(e),!1;return t}),s)}if(s){var c=Wf(t,e);r.push(c)}})),{size:A,shape:n,stops:r,position:i,type:2}},'-moz-radial-gradient':ig,'-ms-radial-gradient':ig,'-o-radial-gradient':ig,'-webkit-radial-gradient':ig,'-webkit-gradient':function(t,e){var n=Lf(180),A=[],r=1;return pf(e).forEach((function(e,n){var i=e[0];if(0===n){if(uf(i)&&'linear'===i.value)return void(r=1);if(uf(i)&&'radial'===i.value)return void(r=2)}if(18===i.type)if('from'===i.name){var o=Nf(t,i.values[0]);A.push({stop:wf,color:o})}else if('to'===i.name){o=Nf(t,i.values[0]);A.push({stop:Cf,color:o})}else if('color-stop'===i.name){var s=i.values.filter(gf);if(2===s.length){o=Nf(t,s[1]);var a=s[0];lf(a)&&A.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}})),1===r?{angle:(n+Lf(180))%Lf(360),stops:A,type:r}:{size:3,shape:0,stops:A,position:[],type:r}}},cg={name:'background-image',initialValue:'none',type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&'none'===n.value?[]:e.filter((function(t){return gf(t)&&function(t){return!(20===t.type&&'none'===t.value||18===t.type&&!ag[t.name])}(t)})).map((function(e){return og(t,e)}))}},lg={name:'background-origin',initialValue:'border-box',prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(uf(t))switch(t.value){case'padding-box':return 1;case'content-box':return 2}return 0}))}},ug={name:'background-position',initialValue:'0% 0%',type:1,prefix:!1,parse:function(t,e){return pf(e).map((function(t){return t.filter(vf)})).map(yf)}},hg={name:'background-repeat',initialValue:'repeat',prefix:!1,type:1,parse:function(t,e){return pf(e).map((function(t){return t.filter(uf).map((function(t){return t.value})).join(' ')})).map(dg)}},dg=function(t){switch(t){case'no-repeat':return 1;case'repeat-x':case'repeat no-repeat':return 2;case'repeat-y':case'no-repeat repeat':return 3;default:return 0}};!function(t){t.AUTO='auto',t.CONTAIN='contain',t.COVER='cover'}(sg||(sg={}));var fg,gg={name:'background-size',initialValue:'0',prefix:!1,type:1,parse:function(t,e){return pf(e).map((function(t){return t.filter(pg)}))}},pg=function(t){return uf(t)||vf(t)},mg=function(t){return{name:'border-'+t+'-color',initialValue:'transparent',prefix:!1,type:3,format:'color'}},bg=mg('top'),vg=mg('right'),yg=mg('bottom'),wg=mg('left'),Bg=function(t){return{name:'border-radius-'+t,initialValue:'0 0',prefix:!1,type:1,parse:function(t,e){return yf(e.filter(vf))}}},Cg=Bg('top-left'),xg=Bg('top-right'),Fg=Bg('bottom-right'),Ig=Bg('bottom-left'),Qg=function(t){return{name:'border-'+t+'-style',initialValue:'solid',prefix:!1,type:2,parse:function(t,e){switch(e){case'none':return 0;case'dashed':return 2;case'dotted':return 3;case'double':return 4}return 1}}},Eg=Qg('top'),Sg=Qg('right'),Ug=Qg('bottom'),Lg=Qg('left'),Ng=function(t){return{name:'border-'+t+'-width',initialValue:'0',type:0,prefix:!1,parse:function(t,e){return cf(e)?e.number:0}}},kg=Ng('top'),_g=Ng('right'),Pg=Ng('bottom'),Og=Ng('left'),Mg={name:'color',initialValue:'transparent',prefix:!1,type:3,format:'color'},Hg={name:'direction',initialValue:'ltr',prefix:!1,type:2,parse:function(t,e){return'rtl'===e?1:0}},Tg={name:'display',initialValue:'inline-block',prefix:!1,type:1,parse:function(t,e){return e.filter(uf).reduce((function(t,e){return t|Dg(e.value)}),0)}},Dg=function(t){switch(t){case'block':case'-webkit-box':return 2;case'inline':return 4;case'run-in':return 8;case'flow':return 16;case'flow-root':return 32;case'table':return 64;case'flex':case'-webkit-flex':return 128;case'grid':case'-ms-grid':return 256;case'ruby':return 512;case'subgrid':return 1024;case'list-item':return 2048;case'table-row-group':return 4096;case'table-header-group':return 8192;case'table-footer-group':return 16384;case'table-row':return 32768;case'table-cell':return 65536;case'table-column-group':return 131072;case'table-column':return 262144;case'table-caption':return 524288;case'ruby-base':return 1048576;case'ruby-text':return 2097152;case'ruby-base-container':return 4194304;case'ruby-text-container':return 8388608;case'contents':return 16777216;case'inline-block':return 33554432;case'inline-list-item':return 67108864;case'inline-table':return 134217728;case'inline-flex':return 268435456;case'inline-grid':return 536870912}return 0},Rg={name:'float',initialValue:'none',prefix:!1,type:2,parse:function(t,e){switch(e){case'left':return 1;case'right':return 2;case'inline-start':return 3;case'inline-end':return 4}return 0}},Vg={name:'letter-spacing',initialValue:'0',prefix:!1,type:0,parse:function(t,e){return 20===e.type&&'normal'===e.value?0:17===e.type||15===e.type?e.number:0}};!function(t){t.NORMAL='normal',t.STRICT='strict'}(fg||(fg={}));var Gg,jg={name:'line-break',initialValue:'normal',prefix:!1,type:2,parse:function(t,e){return'strict'===e?fg.STRICT:fg.NORMAL}},Wg={name:'line-height',initialValue:'normal',prefix:!1,type:4},Kg=function(t,e){return uf(t)&&'normal'===t.value?1.2*e:17===t.type?e*t.number:vf(t)?Ff(t,e):e},Xg={name:'list-style-image',initialValue:'none',type:0,prefix:!1,parse:function(t,e){return 20===e.type&&'none'===e.value?null:og(t,e)}},zg={name:'list-style-position',initialValue:'outside',prefix:!1,type:2,parse:function(t,e){return'inside'===e?0:1}},Zg={name:'list-style-type',initialValue:'none',prefix:!1,type:2,parse:function(t,e){switch(e){case'disc':return 0;case'circle':return 1;case'square':return 2;case'decimal':return 3;case'cjk-decimal':return 4;case'decimal-leading-zero':return 5;case'lower-roman':return 6;case'upper-roman':return 7;case'lower-greek':return 8;case'lower-alpha':return 9;case'upper-alpha':return 10;case'arabic-indic':return 11;case'armenian':return 12;case'bengali':return 13;case'cambodian':return 14;case'cjk-earthly-branch':return 15;case'cjk-heavenly-stem':return 16;case'cjk-ideographic':return 17;case'devanagari':return 18;case'ethiopic-numeric':return 19;case'georgian':return 20;case'gujarati':return 21;case'gurmukhi':case'hebrew':return 22;case'hiragana':return 23;case'hiragana-iroha':return 24;case'japanese-formal':return 25;case'japanese-informal':return 26;case'kannada':return 27;case'katakana':return 28;case'katakana-iroha':return 29;case'khmer':return 30;case'korean-hangul-formal':return 31;case'korean-hanja-formal':return 32;case'korean-hanja-informal':return 33;case'lao':return 34;case'lower-armenian':return 35;case'malayalam':return 36;case'mongolian':return 37;case'myanmar':return 38;case'oriya':return 39;case'persian':return 40;case'simp-chinese-formal':return 41;case'simp-chinese-informal':return 42;case'tamil':return 43;case'telugu':return 44;case'thai':return 45;case'tibetan':return 46;case'trad-chinese-formal':return 47;case'trad-chinese-informal':return 48;case'upper-armenian':return 49;case'disclosure-open':return 50;case'disclosure-closed':return 51;default:return-1}}},Yg=function(t){return{name:'margin-'+t,initialValue:'0',prefix:!1,type:4}},qg=Yg('top'),Jg=Yg('right'),$g=Yg('bottom'),tp=Yg('left'),ep={name:'overflow',initialValue:'visible',prefix:!1,type:1,parse:function(t,e){return e.filter(uf).map((function(t){switch(t.value){case'hidden':return 1;case'scroll':return 2;case'clip':return 3;case'auto':return 4;default:return 0}}))}},np={name:'overflow-wrap',initialValue:'normal',prefix:!1,type:2,parse:function(t,e){return'break-word'===e?'break-word':'normal'}},Ap=function(t){return{name:'padding-'+t,initialValue:'0',prefix:!1,type:3,format:'length-percentage'}},rp=Ap('top'),ip=Ap('right'),op=Ap('bottom'),sp=Ap('left'),ap={name:'text-align',initialValue:'left',prefix:!1,type:2,parse:function(t,e){switch(e){case'right':return 2;case'center':case'justify':return 1;default:return 0}}},cp={name:'position',initialValue:'static',prefix:!1,type:2,parse:function(t,e){switch(e){case'relative':return 1;case'absolute':return 2;case'fixed':return 3;case'sticky':return 4}return 0}},lp={name:'text-shadow',initialValue:'none',type:1,prefix:!1,parse:function(t,e){return 1===e.length&&df(e[0],'none')?[]:pf(e).map((function(e){for(var n={color:Vf.TRANSPARENT,offsetX:wf,offsetY:wf,blur:wf},A=0,r=0;r<e.length;r++){var i=e[r];bf(i)?(0===A?n.offsetX=i:1===A?n.offsetY=i:n.blur=i,A++):n.color=Nf(t,i)}return n}))}},up={name:'text-transform',initialValue:'none',prefix:!1,type:2,parse:function(t,e){switch(e){case'uppercase':return 2;case'lowercase':return 1;case'capitalize':return 3}return 0}},hp={name:'transform',initialValue:'none',prefix:!0,type:0,parse:function(t,e){if(20===e.type&&'none'===e.value)return null;if(18===e.type){var n=dp[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},dp={matrix:function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number}));return 6===e.length?e:null},matrix3d:function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number})),n=e[0],A=e[1];e[2],e[3];var r=e[4],i=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],16===e.length?[n,A,r,i,o,s]:null}},fp={type:16,number:50,flags:4},gp=[fp,fp],pp={name:'transform-origin',initialValue:'50% 50%',prefix:!0,type:1,parse:function(t,e){var n=e.filter(vf);return 2!==n.length?gp:[n[0],n[1]]}},mp={name:'visible',initialValue:'none',prefix:!1,type:2,parse:function(t,e){switch(e){case'hidden':return 1;case'collapse':return 2;default:return 0}}};!function(t){t.NORMAL='normal',t.BREAK_ALL='break-all',t.KEEP_ALL='keep-all'}(Gg||(Gg={}));for(var bp={name:'word-break',initialValue:'normal',prefix:!1,type:2,parse:function(t,e){switch(e){case'break-all':return Gg.BREAK_ALL;case'keep-all':return Gg.KEEP_ALL;default:return Gg.NORMAL}}},vp={name:'z-index',initialValue:'auto',prefix:!1,type:0,parse:function(t,e){if(20===e.type)return{auto:!0,order:0};if(lf(e))return{auto:!1,order:e.number};throw new Error('Invalid z-index number parsed')}},yp=function(t,e){if(15===e.type)switch(e.unit.toLowerCase()){case's':return 1e3*e.number;case'ms':return e.number}throw new Error('Unsupported time type')},wp={name:'opacity',initialValue:'1',type:0,prefix:!1,parse:function(t,e){return lf(e)?e.number:1}},Bp={name:'text-decoration-color',initialValue:'transparent',prefix:!1,type:3,format:'color'},Cp={name:'text-decoration-line',initialValue:'none',prefix:!1,type:1,parse:function(t,e){return e.filter(uf).map((function(t){switch(t.value){case'underline':return 1;case'overline':return 2;case'line-through':return 3;case'none':return 4}return 0})).filter((function(t){return 0!==t}))}},xp={name:'font-family',initialValue:'',prefix:!1,type:1,parse:function(t,e){var n=[],A=[];return e.forEach((function(t){switch(t.type){case 20:case 0:n.push(t.value);break;case 17:n.push(t.number.toString());break;case 4:A.push(n.join(' ')),n.length=0}})),n.length&&A.push(n.join(' ')),A.map((function(t){return-1===t.indexOf(' ')?t:'\''+t+'\''}))}},Fp={name:'font-size',initialValue:'0',prefix:!1,type:3,format:'length'},Ip={name:'font-weight',initialValue:'normal',type:0,prefix:!1,parse:function(t,e){return lf(e)?e.number:uf(e)&&'bold'===e.value?700:400}},Qp={name:'font-variant',initialValue:'none',type:1,prefix:!1,parse:function(t,e){return e.filter(uf).map((function(t){return t.value}))}},Ep={name:'font-style',initialValue:'normal',prefix:!1,type:2,parse:function(t,e){switch(e){case'oblique':return'oblique';case'italic':return'italic';default:return'normal'}}},Sp=function(t,e){return 0!=(t&e)},Up={name:'content',initialValue:'none',type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&'none'===n.value?[]:e}},Lp={name:'counter-increment',initialValue:'none',prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&'none'===n.value)return null;for(var A=[],r=e.filter(ff),i=0;i<r.length;i++){var o=r[i],s=r[i+1];if(20===o.type){var a=s&&lf(s)?s.number:1;A.push({counter:o.value,increment:a})}}return A}},Np={name:'counter-reset',initialValue:'none',prefix:!0,type:1,parse:function(t,e){if(0===e.length)return[];for(var n=[],A=e.filter(ff),r=0;r<A.length;r++){var i=A[r],o=A[r+1];if(uf(i)&&'none'!==i.value){var s=o&&lf(o)?o.number:0;n.push({counter:i.value,reset:s})}}return n}},kp={name:'duration',initialValue:'0s',prefix:!1,type:1,parse:function(t,e){return e.filter(cf).map((function(e){return yp(t,e)}))}},_p={name:'quotes',initialValue:'none',prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&'none'===n.value)return null;var A=[],r=e.filter(hf);if(r.length%2!=0)return null;for(var i=0;i<r.length;i+=2){var o=r[i].value,s=r[i+1].value;A.push({open:o,close:s})}return A}},Pp=function(t,e,n){if(!t)return'';var A=t[Math.min(e,t.length-1)];return A?n?A.open:A.close:''},Op={name:'box-shadow',initialValue:'none',type:1,prefix:!1,parse:function(t,e){return 1===e.length&&df(e[0],'none')?[]:pf(e).map((function(e){for(var n={color:255,offsetX:wf,offsetY:wf,blur:wf,spread:wf,inset:!1},A=0,r=0;r<e.length;r++){var i=e[r];df(i,'inset')?n.inset=!0:bf(i)?(0===A?n.offsetX=i:1===A?n.offsetY=i:2===A?n.blur=i:n.spread=i,A++):n.color=Nf(t,i)}return n}))}},Mp={name:'paint-order',initialValue:'normal',prefix:!1,type:1,parse:function(t,e){var n=[];return e.filter(uf).forEach((function(t){switch(t.value){case'stroke':n.push(1);break;case'fill':n.push(0);break;case'markers':n.push(2)}})),[0,1,2].forEach((function(t){-1===n.indexOf(t)&&n.push(t)})),n}},Hp={name:'-webkit-text-stroke-color',initialValue:'currentcolor',prefix:!1,type:3,format:'color'},Tp={name:'-webkit-text-stroke-width',initialValue:'0',type:0,prefix:!1,parse:function(t,e){return cf(e)?e.number:0}},Dp=function(){function t(t,e){var n,A;this.animationDuration=Gp(t,kp,e.animationDuration),this.backgroundClip=Gp(t,Gf,e.backgroundClip),this.backgroundColor=Gp(t,jf,e.backgroundColor),this.backgroundImage=Gp(t,cg,e.backgroundImage),this.backgroundOrigin=Gp(t,lg,e.backgroundOrigin),this.backgroundPosition=Gp(t,ug,e.backgroundPosition),this.backgroundRepeat=Gp(t,hg,e.backgroundRepeat),this.backgroundSize=Gp(t,gg,e.backgroundSize),this.borderTopColor=Gp(t,bg,e.borderTopColor),this.borderRightColor=Gp(t,vg,e.borderRightColor),this.borderBottomColor=Gp(t,yg,e.borderBottomColor),this.borderLeftColor=Gp(t,wg,e.borderLeftColor),this.borderTopLeftRadius=Gp(t,Cg,e.borderTopLeftRadius),this.borderTopRightRadius=Gp(t,xg,e.borderTopRightRadius),this.borderBottomRightRadius=Gp(t,Fg,e.borderBottomRightRadius),this.borderBottomLeftRadius=Gp(t,Ig,e.borderBottomLeftRadius),this.borderTopStyle=Gp(t,Eg,e.borderTopStyle),this.borderRightStyle=Gp(t,Sg,e.borderRightStyle),this.borderBottomStyle=Gp(t,Ug,e.borderBottomStyle),this.borderLeftStyle=Gp(t,Lg,e.borderLeftStyle),this.borderTopWidth=Gp(t,kg,e.borderTopWidth),this.borderRightWidth=Gp(t,_g,e.borderRightWidth),this.borderBottomWidth=Gp(t,Pg,e.borderBottomWidth),this.borderLeftWidth=Gp(t,Og,e.borderLeftWidth),this.boxShadow=Gp(t,Op,e.boxShadow),this.color=Gp(t,Mg,e.color),this.direction=Gp(t,Hg,e.direction),this.display=Gp(t,Tg,e.display),this.float=Gp(t,Rg,e.cssFloat),this.fontFamily=Gp(t,xp,e.fontFamily),this.fontSize=Gp(t,Fp,e.fontSize),this.fontStyle=Gp(t,Ep,e.fontStyle),this.fontVariant=Gp(t,Qp,e.fontVariant),this.fontWeight=Gp(t,Ip,e.fontWeight),this.letterSpacing=Gp(t,Vg,e.letterSpacing),this.lineBreak=Gp(t,jg,e.lineBreak),this.lineHeight=Gp(t,Wg,e.lineHeight),this.listStyleImage=Gp(t,Xg,e.listStyleImage),this.listStylePosition=Gp(t,zg,e.listStylePosition),this.listStyleType=Gp(t,Zg,e.listStyleType),this.marginTop=Gp(t,qg,e.marginTop),this.marginRight=Gp(t,Jg,e.marginRight),this.marginBottom=Gp(t,$g,e.marginBottom),this.marginLeft=Gp(t,tp,e.marginLeft),this.opacity=Gp(t,wp,e.opacity);var r=Gp(t,ep,e.overflow);this.overflowX=r[0],this.overflowY=r[r.length>1?1:0],this.overflowWrap=Gp(t,np,e.overflowWrap),this.paddingTop=Gp(t,rp,e.paddingTop),this.paddingRight=Gp(t,ip,e.paddingRight),this.paddingBottom=Gp(t,op,e.paddingBottom),this.paddingLeft=Gp(t,sp,e.paddingLeft),this.paintOrder=Gp(t,Mp,e.paintOrder),this.position=Gp(t,cp,e.position),this.textAlign=Gp(t,ap,e.textAlign),this.textDecorationColor=Gp(t,Bp,null!==(n=e.textDecorationColor)&&void 0!==n?n:e.color),this.textDecorationLine=Gp(t,Cp,null!==(A=e.textDecorationLine)&&void 0!==A?A:e.textDecoration),this.textShadow=Gp(t,lp,e.textShadow),this.textTransform=Gp(t,up,e.textTransform),this.transform=Gp(t,hp,e.transform),this.transformOrigin=Gp(t,pp,e.transformOrigin),this.visibility=Gp(t,mp,e.visibility),this.webkitTextStrokeColor=Gp(t,Hp,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Gp(t,Tp,e.webkitTextStrokeWidth),this.wordBreak=Gp(t,bp,e.wordBreak),this.zIndex=Gp(t,vp,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return kf(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return Sp(this.display,4)||Sp(this.display,33554432)||Sp(this.display,268435456)||Sp(this.display,536870912)||Sp(this.display,67108864)||Sp(this.display,134217728)},t}(),Rp=function(t,e){this.content=Gp(t,Up,e.content),this.quotes=Gp(t,_p,e.quotes)},Vp=function(t,e){this.counterIncrement=Gp(t,Lp,e.counterIncrement),this.counterReset=Gp(t,Np,e.counterReset)},Gp=function(t,e,n){var A=new sf,r=null!=n?n.toString():e.initialValue;A.write(r);var i=new af(A.read());switch(e.type){case 2:var o=i.parseComponentValue();return e.parse(t,uf(o)?o.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case'angle':return Ef(t,i.parseComponentValue());case'color':return Nf(t,i.parseComponentValue());case'image':return og(t,i.parseComponentValue());case'length':var s=i.parseComponentValue();return bf(s)?s:wf;case'length-percentage':var a=i.parseComponentValue();return vf(a)?a:wf;case'time':return yp(t,i.parseComponentValue())}}},jp=function(t,e){var n=function(t){switch(t.getAttribute('data-html2canvas-debug')){case'all':return 1;case'clone':return 2;case'parse':return 3;case'render':return 4;default:return 0}}(t);return 1===n||e===n},Wp=function(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,jp(e,3),this.styles=new Dp(t,window.getComputedStyle(e,null)),Zm(e)&&(this.styles.animationDuration.some((function(t){return t>0}))&&(e.style.animationDuration='0s'),null!==this.styles.transform&&(e.style.transform='none')),this.bounds=Ih(this.context,e),jp(e,4)&&(this.flags|=16)},Kp='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',Xp='undefined'==typeof Uint8Array?[]:new Uint8Array(256),zp=0;zp<64;zp++)Xp[Kp.charCodeAt(zp)]=zp;for(var Zp=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},Yp=function(){function t(t,e,n,A,r,i){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=A,this.index=r,this.data=i}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),qp='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',Jp='undefined'==typeof Uint8Array?[]:new Uint8Array(256),$p=0;$p<64;$p++)Jp[qp.charCodeAt($p)]=$p;var tm,em=8,nm=9,Am=11,rm=12,im=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return'';for(var A=[],r=-1,i='';++r<n;){var o=t[r];o<=65535?A.push(o):(o-=65536,A.push(55296+(o>>10),o%1024+56320)),(r+1===n||A.length>16384)&&(i+=String.fromCharCode.apply(String,A),A.length=0)}return i},om=function(t,e){var n,A,r,i=function(t){var e,n,A,r,i,o=.75*t.length,s=t.length,a=0;'='===t[t.length-1]&&(o--,'='===t[t.length-2]&&o--);var c='undefined'!=typeof ArrayBuffer&&'undefined'!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),l=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<s;e+=4)n=Xp[t.charCodeAt(e)],A=Xp[t.charCodeAt(e+1)],r=Xp[t.charCodeAt(e+2)],i=Xp[t.charCodeAt(e+3)],l[a++]=n<<2|A>>4,l[a++]=(15&A)<<4|r>>2,l[a++]=(3&r)<<6|63&i;return c}(t),o=Array.isArray(i)?function(t){for(var e=t.length,n=[],A=0;A<e;A+=4)n.push(t[A+3]<<24|t[A+2]<<16|t[A+1]<<8|t[A]);return n}(i):new Uint32Array(i),s=Array.isArray(i)?function(t){for(var e=t.length,n=[],A=0;A<e;A+=2)n.push(t[A+1]<<8|t[A]);return n}(i):new Uint16Array(i),a=Zp(s,12,o[4]/2),c=2===o[5]?Zp(s,(24+o[4])/2):(n=o,A=Math.ceil((24+o[4])/4),n.slice?n.slice(A,r):new Uint32Array(Array.prototype.slice.call(n,A,r)));return new Yp(o[0],o[1],o[2],o[3],a,c)}('AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA='),sm='×',am=function(t){return om.get(t)},cm=function(t,e,n){var A=n-2,r=e[A],i=e[n-1],o=e[n];if(2===i&&3===o)return sm;if(2===i||3===i||4===i)return'÷';if(2===o||3===o||4===o)return'÷';if(i===em&&-1!==[em,nm,Am,rm].indexOf(o))return sm;if(!(i!==Am&&i!==nm||o!==nm&&10!==o))return sm;if((i===rm||10===i)&&10===o)return sm;if(13===o||5===o)return sm;if(7===o)return sm;if(1===i)return sm;if(13===i&&14===o){for(;5===r;)r=e[--A];if(14===r)return sm}if(15===i&&15===o){for(var s=0;15===r;)s++,r=e[--A];if(s%2==0)return sm}return'÷'},lm=function(t){var e=function(t){for(var e=[],n=0,A=t.length;n<A;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<A){var i=t.charCodeAt(n++);56320==(64512&i)?e.push(((1023&r)<<10)+(1023&i)+65536):(e.push(r),n--)}else e.push(r)}return e}(t),n=e.length,A=0,r=0,i=e.map(am);return{next:function(){if(A>=n)return{done:!0,value:null};for(var t=sm;A<n&&(t=cm(0,i,++A))===sm;);if(t!==sm||A===n){var o=im.apply(null,e.slice(r,A));return r=A,{value:o,done:!1}}return{done:!0,value:null}}}},um=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},hm=function(t,e,n,A,r){var i='http://www.w3.org/2000/svg',o=document.createElementNS(i,'svg'),s=document.createElementNS(i,'foreignObject');return o.setAttributeNS(null,'width',t.toString()),o.setAttributeNS(null,'height',e.toString()),s.setAttributeNS(null,'width','100%'),s.setAttributeNS(null,'height','100%'),s.setAttributeNS(null,'x',n.toString()),s.setAttributeNS(null,'y',A.toString()),s.setAttributeNS(null,'externalResourcesRequired','true'),o.appendChild(s),s.appendChild(r),o},dm=function(t){return new Promise((function(e,n){var A=new Image;A.onload=function(){return e(A)},A.onerror=n,A.src='data:image/svg+xml;charset=utf-8,'+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},fm={get SUPPORT_RANGE_BOUNDS(){var t=function(t){if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var n=t.createElement('boundtest');n.style.height='123px',n.style.display='block',t.body.appendChild(n),e.selectNode(n);var A=e.getBoundingClientRect(),r=Math.round(A.height);if(t.body.removeChild(n),123===r)return!0}}return!1}(document);return Object.defineProperty(fm,'SUPPORT_RANGE_BOUNDS',{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=fm.SUPPORT_RANGE_BOUNDS&&function(t){var e=t.createElement('boundtest');e.style.width='50px',e.style.display='block',e.style.fontSize='12px',e.style.letterSpacing='0px',e.style.wordSpacing='0px',t.body.appendChild(e);var n=t.createRange();e.innerHTML='function'==typeof''.repeat?'&#128104;'.repeat(10):'';var A=e.firstChild,r=Qh(A.data).map((function(t){return Eh(t)})),i=0,o={},s=r.every((function(t,e){n.setStart(A,i),n.setEnd(A,i+t.length);var r=n.getBoundingClientRect();i+=t.length;var s=r.x>o.x||r.y>o.y;return o=r,0===e||s}));return t.body.removeChild(e),s}(document);return Object.defineProperty(fm,'SUPPORT_WORD_BREAKING',{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=function(t){var e=new Image,n=t.createElement('canvas'),A=n.getContext('2d');if(!A)return!1;e.src='data:image/svg+xml,<svg xmlns=\'http://www.w3.org/2000/svg\'></svg>';try{A.drawImage(e,0,0),n.toDataURL()}catch(t){return!1}return!0}(document);return Object.defineProperty(fm,'SUPPORT_SVG_DRAWING',{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t='function'==typeof Array.from&&'function'==typeof window.fetch?function(t){var e=t.createElement('canvas'),n=100;e.width=n,e.height=n;var A=e.getContext('2d');if(!A)return Promise.reject(!1);A.fillStyle='rgb(0, 255, 0)',A.fillRect(0,0,n,n);var r=new Image,i=e.toDataURL();r.src=i;var o=hm(n,n,0,0,r);return A.fillStyle='red',A.fillRect(0,0,n,n),dm(o).then((function(e){A.drawImage(e,0,0);var r=A.getImageData(0,0,n,n).data;A.fillStyle='red',A.fillRect(0,0,n,n);var o=t.createElement('div');return o.style.backgroundImage='url('+i+')',o.style.height=n+'px',um(r)?dm(hm(n,n,0,0,o)):Promise.reject(!1)})).then((function(t){return A.drawImage(t,0,0),um(A.getImageData(0,0,n,n).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(fm,'SUPPORT_FOREIGNOBJECT_DRAWING',{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=void 0!==(new Image).crossOrigin;return Object.defineProperty(fm,'SUPPORT_CORS_IMAGES',{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t='string'==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(fm,'SUPPORT_RESPONSE_TYPE',{value:t}),t},get SUPPORT_CORS_XHR(){var t='withCredentials'in new XMLHttpRequest;return Object.defineProperty(fm,'SUPPORT_CORS_XHR',{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!('undefined'==typeof Intl||!Intl.Segmenter);return Object.defineProperty(fm,'SUPPORT_NATIVE_TEXT_SEGMENTATION',{value:t}),t}},gm=function(t,e){this.text=t,this.bounds=e},pm=function(t,e){var n=e.ownerDocument;if(n){var A=n.createElement('html2canvaswrapper');A.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(A,e);var i=Ih(t,A);return A.firstChild&&r.replaceChild(A.firstChild,A),i}}return Fh.EMPTY},mm=function(t,e,n){var A=t.ownerDocument;if(!A)throw new Error('Node has no owner document');var r=A.createRange();return r.setStart(t,e),r.setEnd(t,e+n),r},bm=function(t){if(fm.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:'grapheme'});return Array.from(e.segment(t)).map((function(t){return t.segment}))}return function(t){for(var e,n=lm(t),A=[];!(e=n.next()).done;)e.value&&A.push(e.value.slice());return A}(t)},vm=function(t,e){return 0!==e.letterSpacing?bm(t):function(t,e){if(fm.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:'word'});return Array.from(n.segment(t)).map((function(t){return t.segment}))}return wm(t,e)}(t,e)},ym=[32,160,4961,65792,65793,4153,4241],wm=function(t,e){for(var n,A=function(t,e){var n=Qh(t),A=xd(n,e),r=A[0],i=A[1],o=A[2],s=n.length,a=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};for(var t=ud;c<s&&(t=Cd(n,i,r,++c,o))===ud;);if(t!==ud||c===s){var e=new Fd(n,t,a,c);return a=c,{value:e,done:!1}}return{done:!0,value:null}}}}(t,{lineBreak:e.lineBreak,wordBreak:'break-word'===e.overflowWrap?'break-word':e.wordBreak}),r=[],i=function(){if(n.value){var t=n.value.slice(),e=Qh(t),A='';e.forEach((function(t){-1===ym.indexOf(t)?A+=Eh(t):(A.length&&r.push(A),r.push(Eh(t)),A='')})),A.length&&r.push(A)}};!(n=A.next()).done;)i();return r},Bm=function(t,e,n){this.text=Cm(e.data,n.textTransform),this.textBounds=function(t,e,n,A){var r=vm(e,n),i=[],o=0;return r.forEach((function(e){if(n.textDecorationLine.length||e.trim().length>0)if(fm.SUPPORT_RANGE_BOUNDS){var r=mm(A,o,e.length).getClientRects();if(r.length>1){var s=bm(e),a=0;s.forEach((function(e){i.push(new gm(e,Fh.fromDOMRectList(t,mm(A,a+o,e.length).getClientRects()))),a+=e.length}))}else i.push(new gm(e,Fh.fromDOMRectList(t,r)))}else{var c=A.splitText(e.length);i.push(new gm(e,pm(t,A))),A=c}else fm.SUPPORT_RANGE_BOUNDS||(A=A.splitText(e.length));o+=e.length})),i}(t,this.text,n,e)},Cm=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(xm,Fm);case 2:return t.toUpperCase();default:return t}},xm=/(^|\s|:|-|\(|\))([a-z])/g,Fm=function(t,e,n){return t.length>0?e+n.toUpperCase():t},Im=function(t){function e(e,n){var A=t.call(this,e,n)||this;return A.src=n.currentSrc||n.src,A.intrinsicWidth=n.naturalWidth,A.intrinsicHeight=n.naturalHeight,A.context.cache.addImage(A.src),A}return wh(e,t),e}(Wp),Qm=function(t){function e(e,n){var A=t.call(this,e,n)||this;return A.canvas=n,A.intrinsicWidth=n.width,A.intrinsicHeight=n.height,A}return wh(e,t),e}(Wp),Em=function(t){function e(e,n){var A=t.call(this,e,n)||this,r=new XMLSerializer,i=Ih(e,n);return n.setAttribute('width',i.width+'px'),n.setAttribute('height',i.height+'px'),A.svg='data:image/svg+xml,'+encodeURIComponent(r.serializeToString(n)),A.intrinsicWidth=n.width.baseVal.value,A.intrinsicHeight=n.height.baseVal.value,A.context.cache.addImage(A.svg),A}return wh(e,t),e}(Wp),Sm=function(t){function e(e,n){var A=t.call(this,e,n)||this;return A.value=n.value,A}return wh(e,t),e}(Wp),Um=function(t){function e(e,n){var A=t.call(this,e,n)||this;return A.start=n.start,A.reversed='boolean'==typeof n.reversed&&!0===n.reversed,A}return wh(e,t),e}(Wp),Lm=[{type:15,flags:0,unit:'px',number:3}],Nm=[{type:16,flags:0,number:50}],km='checkbox',_m='radio',Pm='password',Om=707406591,Mm=function(t){function e(e,n){var A,r=t.call(this,e,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=function(t){var e=t.type===Pm?new Array(t.value.length+1).join('•'):t.value;return 0===e.length?t.placeholder||'':e}(n),r.type!==km&&r.type!==_m||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=(A=r.bounds).width>A.height?new Fh(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new Fh(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A),r.type){case km:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Lm;break;case _m:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Nm}return r}return wh(e,t),e}(Wp),Hm=function(t){function e(e,n){var A=t.call(this,e,n)||this,r=n.options[n.selectedIndex||0];return A.value=r&&r.text||'',A}return wh(e,t),e}(Wp),Tm=function(t){function e(e,n){var A=t.call(this,e,n)||this;return A.value=n.value,A}return wh(e,t),e}(Wp),Dm=function(t){function e(e,n){var A=t.call(this,e,n)||this;A.src=n.src,A.width=parseInt(n.width,10)||0,A.height=parseInt(n.height,10)||0,A.backgroundColor=A.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){A.tree=jm(e,n.contentWindow.document.documentElement);var r=n.contentWindow.document.documentElement?Rf(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Vf.TRANSPARENT,i=n.contentWindow.document.body?Rf(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):Vf.TRANSPARENT;A.backgroundColor=kf(r)?kf(i)?A.styles.backgroundColor:i:r}}catch(t){}return A}return wh(e,t),e}(Wp),Rm=['OL','UL','MENU'],Vm=function(t,e,n,A){for(var r=e.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,Xm(r)&&r.data.trim().length>0)n.textNodes.push(new Bm(t,r,n.styles));else if(zm(r))if(cb(r)&&r.assignedNodes)r.assignedNodes().forEach((function(e){return Vm(t,e,n,A)}));else{var o=Gm(t,r);o.styles.isVisible()&&(Wm(r,o,A)?o.flags|=4:Km(o.styles)&&(o.flags|=2),-1!==Rm.indexOf(r.tagName)&&(o.flags|=8),n.elements.push(o),r.slot,r.shadowRoot?Vm(t,r.shadowRoot,o,A):sb(r)||tb(r)||ab(r)||Vm(t,r,o,A))}},Gm=function(t,e){return rb(e)?new Im(t,e):nb(e)?new Qm(t,e):tb(e)?new Em(t,e):qm(e)?new Sm(t,e):Jm(e)?new Um(t,e):$m(e)?new Mm(t,e):ab(e)?new Hm(t,e):sb(e)?new Tm(t,e):ib(e)?new Dm(t,e):new Wp(t,e)},jm=function(t,e){var n=Gm(t,e);return n.flags|=4,Vm(t,e,n,n),n},Wm=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||eb(t)&&n.styles.isTransparent()},Km=function(t){return t.isPositioned()||t.isFloating()},Xm=function(t){return t.nodeType===Node.TEXT_NODE},zm=function(t){return t.nodeType===Node.ELEMENT_NODE},Zm=function(t){return zm(t)&&void 0!==t.style&&!Ym(t)},Ym=function(t){return'object'==typeof t.className},qm=function(t){return'LI'===t.tagName},Jm=function(t){return'OL'===t.tagName},$m=function(t){return'INPUT'===t.tagName},tb=function(t){return'svg'===t.tagName},eb=function(t){return'BODY'===t.tagName},nb=function(t){return'CANVAS'===t.tagName},Ab=function(t){return'VIDEO'===t.tagName},rb=function(t){return'IMG'===t.tagName},ib=function(t){return'IFRAME'===t.tagName},ob=function(t){return'STYLE'===t.tagName},sb=function(t){return'TEXTAREA'===t.tagName},ab=function(t){return'SELECT'===t.tagName},cb=function(t){return'SLOT'===t.tagName},lb=function(t){return t.tagName.indexOf('-')>0},ub=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,A=t.counterReset,r=!0;null!==n&&n.forEach((function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(r=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=t.increment)}));var i=[];return r&&A.forEach((function(t){var n=e.counters[t.counter];i.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)})),i},t}(),hb={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:['M','CM','D','CD','C','XC','L','XL','X','IX','V','IV','I']},db={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:['Ք','Փ','Ւ','Ց','Ր','Տ','Վ','Ս','Ռ','Ջ','Պ','Չ','Ո','Շ','Ն','Յ','Մ','Ճ','Ղ','Ձ','Հ','Կ','Ծ','Խ','Լ','Ի','Ժ','Թ','Ը','Է','Զ','Ե','Դ','Գ','Բ','Ա']},fb={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:['י׳','ט׳','ח׳','ז׳','ו׳','ה׳','ד׳','ג׳','ב׳','א׳','ת','ש','ר','ק','צ','פ','ע','ס','נ','מ','ל','כ','יט','יח','יז','טז','טו','י','ט','ח','ז','ו','ה','ד','ג','ב','א']},gb={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:['ჵ','ჰ','ჯ','ჴ','ხ','ჭ','წ','ძ','ც','ჩ','შ','ყ','ღ','ქ','ფ','ჳ','ტ','ს','რ','ჟ','პ','ო','ჲ','ნ','მ','ლ','კ','ი','თ','ჱ','ზ','ვ','ე','დ','გ','ბ','ა']},pb=function(t,e,n,A,r,i){return t<e||t>n?Fb(t,r,i.length>0):A.integers.reduce((function(e,n,r){for(;t>=n;)t-=n,e+=A.values[r];return e}),'')+i},mb=function(t,e,n,A){var r='';do{n||t--,r=A(t)+r,t/=e}while(t*e>=e);return r},bb=function(t,e,n,A,r){var i=n-e+1;return(t<0?'-':'')+(mb(Math.abs(t),i,A,(function(t){return Eh(Math.floor(t%i)+e)}))+r)},vb=function(t,e,n){void 0===n&&(n='. ');var A=e.length;return mb(Math.abs(t),A,!1,(function(t){return e[Math.floor(t%A)]}))+n},yb=function(t,e,n,A,r,i){if(t<-9999||t>9999)return Fb(t,4,r.length>0);var o=Math.abs(t),s=r;if(0===o)return e[0]+s;for(var a=0;o>0&&a<=4;a++){var c=o%10;0===c&&Sp(i,1)&&''!==s?s=e[c]+s:c>1||1===c&&0===a||1===c&&1===a&&Sp(i,2)||1===c&&1===a&&Sp(i,4)&&t>100||1===c&&a>1&&Sp(i,8)?s=e[c]+(a>0?n[a-1]:'')+s:1===c&&a>0&&(s=n[a-1]+s),o=Math.floor(o/10)}return(t<0?A:'')+s},wb='十百千萬',Bb='拾佰仟萬',Cb='マイナス',xb='마이너스',Fb=function(t,e,n){var A=n?'. ':'',r=n?'、':'',i=n?', ':'',o=n?' ':'';switch(e){case 0:return'•'+o;case 1:return'◦'+o;case 2:return'◾'+o;case 5:var s=bb(t,48,57,!0,A);return s.length<4?'0'+s:s;case 4:return vb(t,'〇一二三四五六七八九',r);case 6:return pb(t,1,3999,hb,3,A).toLowerCase();case 7:return pb(t,1,3999,hb,3,A);case 8:return bb(t,945,969,!1,A);case 9:return bb(t,97,122,!1,A);case 10:return bb(t,65,90,!1,A);case 11:return bb(t,1632,1641,!0,A);case 12:case 49:return pb(t,1,9999,db,3,A);case 35:return pb(t,1,9999,db,3,A).toLowerCase();case 13:return bb(t,2534,2543,!0,A);case 14:case 30:return bb(t,6112,6121,!0,A);case 15:return vb(t,'子丑寅卯辰巳午未申酉戌亥',r);case 16:return vb(t,'甲乙丙丁戊己庚辛壬癸',r);case 17:case 48:return yb(t,'零一二三四五六七八九',wb,'負',r,14);case 47:return yb(t,'零壹貳參肆伍陸柒捌玖',Bb,'負',r,15);case 42:return yb(t,'零一二三四五六七八九',wb,'负',r,14);case 41:return yb(t,'零壹贰叁肆伍陆柒捌玖',Bb,'负',r,15);case 26:return yb(t,'〇一二三四五六七八九','十百千万',Cb,r,0);case 25:return yb(t,'零壱弐参四伍六七八九','拾百千万',Cb,r,7);case 31:return yb(t,'영일이삼사오육칠팔구','십백천만',xb,i,7);case 33:return yb(t,'零一二三四五六七八九','十百千萬',xb,i,0);case 32:return yb(t,'零壹貳參四五六七八九','拾百千',xb,i,7);case 18:return bb(t,2406,2415,!0,A);case 20:return pb(t,1,19999,gb,3,A);case 21:return bb(t,2790,2799,!0,A);case 22:return bb(t,2662,2671,!0,A);case 22:return pb(t,1,10999,fb,3,A);case 23:return vb(t,'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん');case 24:return vb(t,'いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす');case 27:return bb(t,3302,3311,!0,A);case 28:return vb(t,'アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン',r);case 29:return vb(t,'イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス',r);case 34:return bb(t,3792,3801,!0,A);case 37:return bb(t,6160,6169,!0,A);case 38:return bb(t,4160,4169,!0,A);case 39:return bb(t,2918,2927,!0,A);case 40:return bb(t,1776,1785,!0,A);case 43:return bb(t,3046,3055,!0,A);case 44:return bb(t,3174,3183,!0,A);case 45:return bb(t,3664,3673,!0,A);case 46:return bb(t,3872,3881,!0,A);default:return bb(t,48,57,!0,A)}},Ib='data-html2canvas-ignore',Qb=function(){function t(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new ub,this.quoteDepth=0,!e.ownerDocument)throw new Error('Cloned element does not have an owner document');this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var n=this,A=Sb(t,e);if(!A.contentWindow)return Promise.reject('Unable to find iframe window');var r=t.defaultView.pageXOffset,i=t.defaultView.pageYOffset,o=A.contentWindow,s=o.document,a=Nb(A).then((function(){return Ch(n,void 0,void 0,(function(){var t,n;return xh(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(Mb),o&&(o.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||o.scrollY===e.top&&o.scrollX===e.left||(this.context.logger.warn('Unable to restore scroll position for cloned document'),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),t=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject('Error finding the '+this.referenceElement.nodeName+' in the cloned document')]:s.fonts&&s.fonts.ready?[4,s.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Lb(s)]:[3,4];case 3:r.sent(),r.label=4;case 4:return'function'==typeof t?[2,Promise.resolve().then((function(){return t(s,n)})).then((function(){return A}))]:[2,A]}}))}))}));return s.open(),s.write(Pb(document.doctype)+'<html></html>'),Ob(this.referenceElement.ownerDocument,r,i),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),a},t.prototype.createElementClone=function(t){if(jp(t,2),nb(t))return this.createCanvasClone(t);if(Ab(t))return this.createVideoClone(t);if(ob(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return rb(e)&&(rb(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=''),'lazy'===e.loading&&(e.loading='eager')),lb(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement('html2canvascustomelement');return _b(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&'string'==typeof e.cssText?t+e.cssText:t}),''),A=t.cloneNode(!1);return A.textContent=n,A}}catch(t){if(this.context.logger.error('Unable to access cssRules property',t),'SecurityError'!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement('img');try{return n.src=t.toDataURL(),n}catch(e){this.context.logger.info('Unable to inline canvas contents, canvas is tainted',t)}}var A=t.cloneNode(!1);try{A.width=t.width,A.height=t.height;var r=t.getContext('2d'),i=A.getContext('2d');if(i)if(!this.options.allowTaint&&r)i.putImageData(r.getImageData(0,0,t.width,t.height),0,0);else{var o=null!==(e=t.getContext('webgl2'))&&void 0!==e?e:t.getContext('webgl');if(o){var s=o.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn('Unable to clone WebGL context as it has preserveDrawingBuffer=false',t)}i.drawImage(t,0,0)}return A}catch(e){this.context.logger.info('Unable to clone canvas as it is tainted',t)}return A},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement('canvas');e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext('2d');try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info('Unable to clone video as it is tainted',t)}var A=t.ownerDocument.createElement('canvas');return A.width=t.offsetWidth,A.height=t.offsetHeight,A},t.prototype.appendChildNode=function(t,e,n){zm(e)&&(function(t){return'SCRIPT'===t.tagName}(e)||e.hasAttribute(Ib)||'function'==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&zm(e)&&ob(e)||t.appendChild(this.cloneNode(e,n))},t.prototype.cloneChildNodes=function(t,e,n){for(var A=this,r=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;r;r=r.nextSibling)if(zm(r)&&cb(r)&&'function'==typeof r.assignedNodes){var i=r.assignedNodes();i.length&&i.forEach((function(t){return A.appendChildNode(e,t,n)}))}else this.appendChildNode(e,r,n)},t.prototype.cloneNode=function(t,e){if(Xm(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&zm(t)&&(Zm(t)||Ym(t))){var A=this.createElementClone(t);A.style.transitionProperty='none';var r=n.getComputedStyle(t),i=n.getComputedStyle(t,':before'),o=n.getComputedStyle(t,':after');this.referenceElement===t&&Zm(A)&&(this.clonedReferenceElement=A),eb(A)&&Rb(A);var s=this.counters.parse(new Vp(this.context,r)),a=this.resolvePseudoContent(t,A,i,tm.BEFORE);lb(t)&&(e=!0),Ab(t)||this.cloneChildNodes(t,A,e),a&&A.insertBefore(a,A.firstChild);var c=this.resolvePseudoContent(t,A,o,tm.AFTER);return c&&A.appendChild(c),this.counters.pop(s),(r&&(this.options.copyStyles||Ym(t))&&!ib(t)||e)&&_b(r,A),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([A,t.scrollLeft,t.scrollTop]),(sb(t)||ab(t))&&(sb(A)||ab(A))&&(A.value=t.value),A}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,A){var r=this;if(n){var i=n.content,o=e.ownerDocument;if(o&&i&&'none'!==i&&'-moz-alt-content'!==i&&'none'!==n.display){this.counters.parse(new Vp(this.context,n));var s=new Rp(this.context,n),a=o.createElement('html2canvaspseudoelement');_b(n,a),s.content.forEach((function(e){if(0===e.type)a.appendChild(o.createTextNode(e.value));else if(22===e.type){var n=o.createElement('img');n.src=e.value,n.style.opacity='1',a.appendChild(n)}else if(18===e.type){if('attr'===e.name){var A=e.values.filter(uf);A.length&&a.appendChild(o.createTextNode(t.getAttribute(A[0].value)||''))}else if('counter'===e.name){var i=e.values.filter(gf),c=i[0],l=i[1];if(c&&uf(c)){var u=r.counters.getCounterValue(c.value),h=l&&uf(l)?Zg.parse(r.context,l.value):3;a.appendChild(o.createTextNode(Fb(u,h,!1)))}}else if('counters'===e.name){var d=e.values.filter(gf),f=(c=d[0],d[1]);l=d[2];if(c&&uf(c)){var g=r.counters.getCounterValues(c.value),p=l&&uf(l)?Zg.parse(r.context,l.value):3,m=f&&0===f.type?f.value:'',b=g.map((function(t){return Fb(t,p,!1)})).join(m);a.appendChild(o.createTextNode(b))}}}else if(20===e.type)switch(e.value){case'open-quote':a.appendChild(o.createTextNode(Pp(s.quotes,r.quoteDepth++,!0)));break;case'close-quote':a.appendChild(o.createTextNode(Pp(s.quotes,--r.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(e.value))}})),a.className=Hb+' '+Tb;var c=A===tm.BEFORE?' '+Hb:' '+Tb;return Ym(e)?e.className.baseValue+=c:e.className+=c,a}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();!function(t){t[t.BEFORE=0]='BEFORE',t[t.AFTER=1]='AFTER'}(tm||(tm={}));var Eb,Sb=function(t,e){var n=t.createElement('iframe');return n.className='html2canvas-container',n.style.visibility='hidden',n.style.position='fixed',n.style.left='-10000px',n.style.top='0px',n.style.border='0',n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling='no',n.setAttribute(Ib,'true'),t.body.appendChild(n),n},Ub=function(t){return new Promise((function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}))},Lb=function(t){return Promise.all([].slice.call(t.images,0).map(Ub))},Nb=function(t){return new Promise((function(e,n){var A=t.contentWindow;if(!A)return n('No window assigned for iframe');var r=A.document;A.onload=t.onload=function(){A.onload=t.onload=null;var n=setInterval((function(){r.body.childNodes.length>0&&'complete'===r.readyState&&(clearInterval(n),e(t))}),50)}}))},kb=['all','d','content'],_b=function(t,e){for(var n=t.length-1;n>=0;n--){var A=t.item(n);-1===kb.indexOf(A)&&e.style.setProperty(A,t.getPropertyValue(A))}return e},Pb=function(t){var e='';return t&&(e+='<!DOCTYPE ',t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+='>'),e},Ob=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},Mb=function(t){var e=t[0],n=t[1],A=t[2];e.scrollLeft=n,e.scrollTop=A},Hb='___html2canvas___pseudoelement_before',Tb='___html2canvas___pseudoelement_after',Db='{\n content: "" !important;\n display: none !important;\n}',Rb=function(t){Vb(t,'.'+Hb+':before'+Db+'\n .'+Tb+':after'+Db)},Vb=function(t,e){var n=t.ownerDocument;if(n){var A=n.createElement('style');A.textContent=e,t.appendChild(A)}},Gb=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):'about:blank'},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement('a'),t._origin=t.getOrigin(e.location.href)},t._origin='about:blank',t}(),jb=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:qb(t)||zb(t)?((this._cache[t]=this.loadImage(t)).catch((function(){})),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return Ch(this,void 0,void 0,(function(){var e,n,A,r,i=this;return xh(this,(function(o){switch(o.label){case 0:return e=Gb.isSameOrigin(t),n=!Zb(t)&&!0===this._options.useCORS&&fm.SUPPORT_CORS_IMAGES&&!e,A=!Zb(t)&&!e&&!qb(t)&&'string'==typeof this._options.proxy&&fm.SUPPORT_CORS_XHR&&!n,e||!1!==this._options.allowTaint||Zb(t)||qb(t)||A||n?(r=t,A?[4,this.proxy(r)]:[3,2]):[2];case 1:r=o.sent(),o.label=2;case 2:return this.context.logger.debug('Added image '+t.substring(0,256)),[4,new Promise((function(t,e){var A=new Image;A.onload=function(){return t(A)},A.onerror=e,(Yb(r)||n)&&(A.crossOrigin='anonymous'),A.src=r,!0===A.complete&&setTimeout((function(){return t(A)}),500),i._options.imageTimeout>0&&setTimeout((function(){return e('Timed out ('+i._options.imageTimeout+'ms) loading image')}),i._options.imageTimeout)}))];case 3:return[2,o.sent()]}}))}))},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error('No proxy defined');var A=t.substring(0,256);return new Promise((function(r,i){var o=fm.SUPPORT_RESPONSE_TYPE?'blob':'text',s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if('text'===o)r(s.response);else{var t=new FileReader;t.addEventListener('load',(function(){return r(t.result)}),!1),t.addEventListener('error',(function(t){return i(t)}),!1),t.readAsDataURL(s.response)}else i('Failed to proxy resource '+A+' with status code '+s.status)},s.onerror=i;var a=n.indexOf('?')>-1?'&':'?';if(s.open('GET',''+n+a+'url='+encodeURIComponent(t)+'&responseType='+o),'text'!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var c=e._options.imageTimeout;s.timeout=c,s.ontimeout=function(){return i('Timed out ('+c+'ms) proxying '+A)}}s.send()}))},t}(),Wb=/^data:image\/svg\+xml/i,Kb=/^data:image\/.*;base64,/i,Xb=/^data:image\/.*/i,zb=function(t){return fm.SUPPORT_SVG_DRAWING||!Jb(t)},Zb=function(t){return Xb.test(t)},Yb=function(t){return Kb.test(t)},qb=function(t){return'blob'===t.substr(0,4)},Jb=function(t){return'svg'===t.substr(-3).toLowerCase()||Wb.test(t)},$b=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),tv=function(t,e,n){return new $b(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},ev=function(){function t(t,e,n,A){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=A}return t.prototype.subdivide=function(e,n){var A=tv(this.start,this.startControl,e),r=tv(this.startControl,this.endControl,e),i=tv(this.endControl,this.end,e),o=tv(A,r,e),s=tv(r,i,e),a=tv(o,s,e);return n?new t(this.start,A,o,a):new t(a,s,i,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),nv=function(t){return 1===t.type},Av=function(t){var e=t.styles,n=t.bounds,A=xf(e.borderTopLeftRadius,n.width,n.height),r=A[0],i=A[1],o=xf(e.borderTopRightRadius,n.width,n.height),s=o[0],a=o[1],c=xf(e.borderBottomRightRadius,n.width,n.height),l=c[0],u=c[1],h=xf(e.borderBottomLeftRadius,n.width,n.height),d=h[0],f=h[1],g=[];g.push((r+s)/n.width),g.push((d+l)/n.width),g.push((i+f)/n.height),g.push((a+u)/n.height);var p=Math.max.apply(Math,g);p>1&&(r/=p,i/=p,s/=p,a/=p,l/=p,u/=p,d/=p,f/=p);var m=n.width-s,b=n.height-u,v=n.width-l,y=n.height-f,w=e.borderTopWidth,B=e.borderRightWidth,C=e.borderBottomWidth,x=e.borderLeftWidth,F=Ff(e.paddingTop,t.bounds.width),I=Ff(e.paddingRight,t.bounds.width),Q=Ff(e.paddingBottom,t.bounds.width),E=Ff(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=r>0||i>0?rv(n.left+x/3,n.top+w/3,r-x/3,i-w/3,Eb.TOP_LEFT):new $b(n.left+x/3,n.top+w/3),this.topRightBorderDoubleOuterBox=r>0||i>0?rv(n.left+m,n.top+w/3,s-B/3,a-w/3,Eb.TOP_RIGHT):new $b(n.left+n.width-B/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=l>0||u>0?rv(n.left+v,n.top+b,l-B/3,u-C/3,Eb.BOTTOM_RIGHT):new $b(n.left+n.width-B/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=d>0||f>0?rv(n.left+x/3,n.top+y,d-x/3,f-C/3,Eb.BOTTOM_LEFT):new $b(n.left+x/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=r>0||i>0?rv(n.left+2*x/3,n.top+2*w/3,r-2*x/3,i-2*w/3,Eb.TOP_LEFT):new $b(n.left+2*x/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=r>0||i>0?rv(n.left+m,n.top+2*w/3,s-2*B/3,a-2*w/3,Eb.TOP_RIGHT):new $b(n.left+n.width-2*B/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=l>0||u>0?rv(n.left+v,n.top+b,l-2*B/3,u-2*C/3,Eb.BOTTOM_RIGHT):new $b(n.left+n.width-2*B/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=d>0||f>0?rv(n.left+2*x/3,n.top+y,d-2*x/3,f-2*C/3,Eb.BOTTOM_LEFT):new $b(n.left+2*x/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=r>0||i>0?rv(n.left+x/2,n.top+w/2,r-x/2,i-w/2,Eb.TOP_LEFT):new $b(n.left+x/2,n.top+w/2),this.topRightBorderStroke=r>0||i>0?rv(n.left+m,n.top+w/2,s-B/2,a-w/2,Eb.TOP_RIGHT):new $b(n.left+n.width-B/2,n.top+w/2),this.bottomRightBorderStroke=l>0||u>0?rv(n.left+v,n.top+b,l-B/2,u-C/2,Eb.BOTTOM_RIGHT):new $b(n.left+n.width-B/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=d>0||f>0?rv(n.left+x/2,n.top+y,d-x/2,f-C/2,Eb.BOTTOM_LEFT):new $b(n.left+x/2,n.top+n.height-C/2),this.topLeftBorderBox=r>0||i>0?rv(n.left,n.top,r,i,Eb.TOP_LEFT):new $b(n.left,n.top),this.topRightBorderBox=s>0||a>0?rv(n.left+m,n.top,s,a,Eb.TOP_RIGHT):new $b(n.left+n.width,n.top),this.bottomRightBorderBox=l>0||u>0?rv(n.left+v,n.top+b,l,u,Eb.BOTTOM_RIGHT):new $b(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||f>0?rv(n.left,n.top+y,d,f,Eb.BOTTOM_LEFT):new $b(n.left,n.top+n.height),this.topLeftPaddingBox=r>0||i>0?rv(n.left+x,n.top+w,Math.max(0,r-x),Math.max(0,i-w),Eb.TOP_LEFT):new $b(n.left+x,n.top+w),this.topRightPaddingBox=s>0||a>0?rv(n.left+Math.min(m,n.width-B),n.top+w,m>n.width+B?0:Math.max(0,s-B),Math.max(0,a-w),Eb.TOP_RIGHT):new $b(n.left+n.width-B,n.top+w),this.bottomRightPaddingBox=l>0||u>0?rv(n.left+Math.min(v,n.width-x),n.top+Math.min(b,n.height-C),Math.max(0,l-B),Math.max(0,u-C),Eb.BOTTOM_RIGHT):new $b(n.left+n.width-B,n.top+n.height-C),this.bottomLeftPaddingBox=d>0||f>0?rv(n.left+x,n.top+Math.min(y,n.height-C),Math.max(0,d-x),Math.max(0,f-C),Eb.BOTTOM_LEFT):new $b(n.left+x,n.top+n.height-C),this.topLeftContentBox=r>0||i>0?rv(n.left+x+E,n.top+w+F,Math.max(0,r-(x+E)),Math.max(0,i-(w+F)),Eb.TOP_LEFT):new $b(n.left+x+E,n.top+w+F),this.topRightContentBox=s>0||a>0?rv(n.left+Math.min(m,n.width+x+E),n.top+w+F,m>n.width+x+E?0:s-x+E,a-(w+F),Eb.TOP_RIGHT):new $b(n.left+n.width-(B+I),n.top+w+F),this.bottomRightContentBox=l>0||u>0?rv(n.left+Math.min(v,n.width-(x+E)),n.top+Math.min(b,n.height+w+F),Math.max(0,l-(B+I)),u-(C+Q),Eb.BOTTOM_RIGHT):new $b(n.left+n.width-(B+I),n.top+n.height-(C+Q)),this.bottomLeftContentBox=d>0||f>0?rv(n.left+x+E,n.top+y,Math.max(0,d-(x+E)),f-(C+Q),Eb.BOTTOM_LEFT):new $b(n.left+x+E,n.top+n.height-(C+Q))};!function(t){t[t.TOP_LEFT=0]='TOP_LEFT',t[t.TOP_RIGHT=1]='TOP_RIGHT',t[t.BOTTOM_RIGHT=2]='BOTTOM_RIGHT',t[t.BOTTOM_LEFT=3]='BOTTOM_LEFT'}(Eb||(Eb={}));var rv=function(t,e,n,A,r){var i=(Math.sqrt(2)-1)/3*4,o=n*i,s=A*i,a=t+n,c=e+A;switch(r){case Eb.TOP_LEFT:return new ev(new $b(t,c),new $b(t,c-s),new $b(a-o,e),new $b(a,e));case Eb.TOP_RIGHT:return new ev(new $b(t,e),new $b(t+o,e),new $b(a,c-s),new $b(a,c));case Eb.BOTTOM_RIGHT:return new ev(new $b(a,e),new $b(a,e+s),new $b(t+o,c),new $b(t,c));case Eb.BOTTOM_LEFT:default:return new ev(new $b(a,c),new $b(a-o,c),new $b(t,e+s),new $b(t,e))}},iv=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},ov=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},sv=function(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6},av=function(t,e){this.path=t,this.target=e,this.type=1},cv=function(t){this.opacity=t,this.type=2,this.target=6},lv=function(t){return 1===t.type},uv=function(t,e){return t.length===e.length&&t.some((function(t,n){return t===e[n]}))},hv=function(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},dv=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Av(this.container),this.container.styles.opacity<1&&this.effects.push(new cv(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,A=this.container.bounds.top+this.container.styles.transformOrigin[1].number,r=this.container.styles.transform;this.effects.push(new sv(n,A,r))}if(0!==this.container.styles.overflowX){var i=iv(this.curves),o=ov(this.curves);uv(i,o)?this.effects.push(new av(i,6)):(this.effects.push(new av(i,2)),this.effects.push(new av(o,4)))}}return t.prototype.getEffects=function(t){for(var e=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,A=this.effects.slice(0);n;){var r=n.effects.filter((function(t){return!lv(t)}));if(e||0!==n.container.styles.position||!n.parent){if(A.unshift.apply(A,r),e=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var i=iv(n.curves),o=ov(n.curves);uv(i,o)||A.unshift(new av(o,6))}}else A.unshift.apply(A,r);n=n.parent}return A.filter((function(e){return Sp(e.target,t)}))},t}(),fv=function(t,e,n,A){t.container.elements.forEach((function(r){var i=Sp(r.flags,4),o=Sp(r.flags,2),s=new dv(r,t);Sp(r.styles.display,2048)&&A.push(s);var a=Sp(r.flags,8)?[]:A;if(i||o){var c=i||r.styles.isPositioned()?n:e,l=new hv(s);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var u=r.styles.zIndex.order;if(u<0){var h=0;c.negativeZIndex.some((function(t,e){return u>t.element.container.styles.zIndex.order?(h=e,!1):h>0})),c.negativeZIndex.splice(h,0,l)}else if(u>0){var d=0;c.positiveZIndex.some((function(t,e){return u>=t.element.container.styles.zIndex.order?(d=e+1,!1):d>0})),c.positiveZIndex.splice(d,0,l)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else r.styles.isFloating()?c.nonPositionedFloats.push(l):c.nonPositionedInlineLevel.push(l);fv(s,l,i?l:n,a)}else r.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),fv(s,e,n,a);Sp(r.flags,8)&&gv(r,a)}))},gv=function(t,e){for(var n=t instanceof Um?t.start:1,A=t instanceof Um&&t.reversed,r=0;r<e.length;r++){var i=e[r];i.container instanceof Sm&&'number'==typeof i.container.value&&0!==i.container.value&&(n=i.container.value),i.listValue=Fb(n,i.container.styles.listStyleType,!0),n+=A?-1:1}},pv=function(t,e){switch(e){case 0:return bv(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return bv(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return bv(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return bv(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},mv=function(t,e){var n=[];return nv(t)?n.push(t.subdivide(.5,!1)):n.push(t),nv(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},bv=function(t,e,n,A){var r=[];return nv(t)?r.push(t.subdivide(.5,!1)):r.push(t),nv(n)?r.push(n.subdivide(.5,!0)):r.push(n),nv(A)?r.push(A.subdivide(.5,!0).reverse()):r.push(A),nv(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},vv=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},yv=function(t){var e=t.styles,n=t.bounds,A=Ff(e.paddingLeft,n.width),r=Ff(e.paddingRight,n.width),i=Ff(e.paddingTop,n.width),o=Ff(e.paddingBottom,n.width);return n.add(A+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+A+r),-(e.borderTopWidth+e.borderBottomWidth+i+o))},wv=function(t,e,n){var A=function(t,e){return 0===t?e.bounds:2===t?yv(e):vv(e)}(Fv(t.styles.backgroundOrigin,e),t),r=function(t,e){return 0===t?e.bounds:2===t?yv(e):vv(e)}(Fv(t.styles.backgroundClip,e),t),i=xv(Fv(t.styles.backgroundSize,e),n,A),o=i[0],s=i[1],a=xf(Fv(t.styles.backgroundPosition,e),A.width-o,A.height-s);return[Iv(Fv(t.styles.backgroundRepeat,e),a,i,A,r),Math.round(A.left+a[0]),Math.round(A.top+a[1]),o,s]},Bv=function(t){return uf(t)&&t.value===sg.AUTO},Cv=function(t){return'number'==typeof t},xv=function(t,e,n){var A=e[0],r=e[1],i=e[2],o=t[0],s=t[1];if(!o)return[0,0];if(vf(o)&&s&&vf(s))return[Ff(o,n.width),Ff(s,n.height)];var a=Cv(i);if(uf(o)&&(o.value===sg.CONTAIN||o.value===sg.COVER))return Cv(i)?n.width/n.height<i!=(o.value===sg.COVER)?[n.width,n.width/i]:[n.height*i,n.height]:[n.width,n.height];var c=Cv(A),l=Cv(r),u=c||l;if(Bv(o)&&(!s||Bv(s)))return c&&l?[A,r]:a||u?u&&a?[c?A:r*i,l?r:A/i]:[c?A:n.width,l?r:n.height]:[n.width,n.height];if(a){var h=0,d=0;return vf(o)?h=Ff(o,n.width):vf(s)&&(d=Ff(s,n.height)),Bv(o)?h=d*i:s&&!Bv(s)||(d=h/i),[h,d]}var f=null,g=null;if(vf(o)?f=Ff(o,n.width):s&&vf(s)&&(g=Ff(s,n.height)),null===f||s&&!Bv(s)||(g=c&&l?f/A*r:n.height),null!==g&&Bv(o)&&(f=c&&l?g/r*A:n.width),null!==f&&null!==g)return[f,g];throw new Error('Unable to calculate background-size for element')},Fv=function(t,e){var n=t[e];return void 0===n?t[0]:n},Iv=function(t,e,n,A,r){var i=e[0],o=e[1],s=n[0],a=n[1];switch(t){case 2:return[new $b(Math.round(A.left),Math.round(A.top+o)),new $b(Math.round(A.left+A.width),Math.round(A.top+o)),new $b(Math.round(A.left+A.width),Math.round(a+A.top+o)),new $b(Math.round(A.left),Math.round(a+A.top+o))];case 3:return[new $b(Math.round(A.left+i),Math.round(A.top)),new $b(Math.round(A.left+i+s),Math.round(A.top)),new $b(Math.round(A.left+i+s),Math.round(A.height+A.top)),new $b(Math.round(A.left+i),Math.round(A.height+A.top))];case 1:return[new $b(Math.round(A.left+i),Math.round(A.top+o)),new $b(Math.round(A.left+i+s),Math.round(A.top+o)),new $b(Math.round(A.left+i+s),Math.round(A.top+o+a)),new $b(Math.round(A.left+i),Math.round(A.top+o+a))];default:return[new $b(Math.round(r.left),Math.round(r.top)),new $b(Math.round(r.left+r.width),Math.round(r.top)),new $b(Math.round(r.left+r.width),Math.round(r.height+r.top)),new $b(Math.round(r.left),Math.round(r.height+r.top))]}},Qv='Hidden Text',Ev=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var n=this._document.createElement('div'),A=this._document.createElement('img'),r=this._document.createElement('span'),i=this._document.body;n.style.visibility='hidden',n.style.fontFamily=t,n.style.fontSize=e,n.style.margin='0',n.style.padding='0',n.style.whiteSpace='nowrap',i.appendChild(n),A.src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',A.width=1,A.height=1,A.style.margin='0',A.style.padding='0',A.style.verticalAlign='baseline',r.style.fontFamily=t,r.style.fontSize=e,r.style.margin='0',r.style.padding='0',r.appendChild(this._document.createTextNode(Qv)),n.appendChild(r),n.appendChild(A);var o=A.offsetTop-r.offsetTop+2;n.removeChild(r),n.appendChild(this._document.createTextNode(Qv)),n.style.lineHeight='normal',A.style.verticalAlign='super';var s=A.offsetTop-n.offsetTop+2;return i.removeChild(n),{baseline:o,middle:s}},t.prototype.getMetrics=function(t,e){var n=t+' '+e;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},t}(),Sv=function(t,e){this.context=t,this.options=e},Uv=function(t){function e(e,n){var A=t.call(this,e,n)||this;return A._activeEffects=[],A.canvas=n.canvas?n.canvas:document.createElement('canvas'),A.ctx=A.canvas.getContext('2d'),n.canvas||(A.canvas.width=Math.floor(n.width*n.scale),A.canvas.height=Math.floor(n.height*n.scale),A.canvas.style.width=n.width+'px',A.canvas.style.height=n.height+'px'),A.fontMetrics=new Ev(document),A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-n.x,-n.y),A.ctx.textBaseline='bottom',A._activeEffects=[],A.context.logger.debug('Canvas renderer initialized ('+n.width+'x'+n.height+') with scale '+n.scale),A}return wh(e,t),e.prototype.applyEffects=function(t){for(var e=this;this._activeEffects.length;)this.popEffect();t.forEach((function(t){return e.applyEffect(t)}))},e.prototype.applyEffect=function(t){this.ctx.save(),function(t){return 2===t.type}(t)&&(this.ctx.globalAlpha=t.opacity),function(t){return 0===t.type}(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),lv(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return Ch(this,void 0,void 0,(function(){return xh(this,(function(e){switch(e.label){case 0:return t.element.container.styles.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.renderNode=function(t){return Ch(this,void 0,void 0,(function(){return xh(this,(function(e){switch(e.label){case 0:return Sp(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},e.prototype.renderTextWithLetterSpacing=function(t,e,n){var A=this;0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n):bm(t.text).reduce((function(e,r){return A.ctx.fillText(r,e,t.bounds.top+n),e+A.ctx.measureText(r).width}),t.bounds.left)},e.prototype.createFontStyle=function(t){var e=t.fontVariant.filter((function(t){return'normal'===t||'small-caps'===t})).join(''),n=Pv(t.fontFamily).join(', '),A=cf(t.fontSize)?''+t.fontSize.number+t.fontSize.unit:t.fontSize.number+'px';return[[t.fontStyle,e,t.fontWeight,A,n].join(' '),n,A]},e.prototype.renderTextNode=function(t,e){return Ch(this,void 0,void 0,(function(){var n,A,r,i,o,s,a,c,l=this;return xh(this,(function(u){return n=this.createFontStyle(e),A=n[0],r=n[1],i=n[2],this.ctx.font=A,this.ctx.direction=1===e.direction?'rtl':'ltr',this.ctx.textAlign='left',this.ctx.textBaseline='alphabetic',o=this.fontMetrics.getMetrics(r,i),s=o.baseline,a=o.middle,c=e.paintOrder,t.textBounds.forEach((function(t){c.forEach((function(n){switch(n){case 0:l.ctx.fillStyle=_f(e.color),l.renderTextWithLetterSpacing(t,e.letterSpacing,s);var A=e.textShadow;A.length&&t.text.trim().length&&(A.slice(0).reverse().forEach((function(n){l.ctx.shadowColor=_f(n.color),l.ctx.shadowOffsetX=n.offsetX.number*l.options.scale,l.ctx.shadowOffsetY=n.offsetY.number*l.options.scale,l.ctx.shadowBlur=n.blur.number,l.renderTextWithLetterSpacing(t,e.letterSpacing,s)})),l.ctx.shadowColor='',l.ctx.shadowOffsetX=0,l.ctx.shadowOffsetY=0,l.ctx.shadowBlur=0),e.textDecorationLine.length&&(l.ctx.fillStyle=_f(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:l.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+s),t.bounds.width,1);break;case 2:l.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:l.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+a),t.bounds.width,1)}})));break;case 1:e.webkitTextStrokeWidth&&t.text.trim().length&&(l.ctx.strokeStyle=_f(e.webkitTextStrokeColor),l.ctx.lineWidth=e.webkitTextStrokeWidth,l.ctx.lineJoin=window.chrome?'miter':'round',l.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+s)),l.ctx.strokeStyle='',l.ctx.lineWidth=0,l.ctx.lineJoin='miter'}}))})),[2]}))}))},e.prototype.renderReplacedElement=function(t,e,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var A=yv(t),r=ov(e);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,A.left,A.top,A.width,A.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Ch(this,void 0,void 0,(function(){var n,A,r,i,o,s,a,c,l,u,h,d,f,g,p,m,b,v;return xh(this,(function(y){switch(y.label){case 0:this.applyEffects(t.getEffects(4)),n=t.container,A=t.curves,r=n.styles,i=0,o=n.textNodes,y.label=1;case 1:return i<o.length?(s=o[i],[4,this.renderTextNode(s,r)]):[3,4];case 2:y.sent(),y.label=3;case 3:return i++,[3,1];case 4:if(!(n instanceof Im))return[3,8];y.label=5;case 5:return y.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return p=y.sent(),this.renderReplacedElement(n,A,p),[3,8];case 7:return y.sent(),this.context.logger.error('Error loading image '+n.src),[3,8];case 8:if(n instanceof Qm&&this.renderReplacedElement(n,A,n.canvas),!(n instanceof Em))return[3,12];y.label=9;case 9:return y.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return p=y.sent(),this.renderReplacedElement(n,A,p),[3,12];case 11:return y.sent(),this.context.logger.error('Error loading svg '+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Dm&&n.tree?[4,new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}).render(n.tree)]:[3,14];case 13:a=y.sent(),n.width&&n.height&&this.ctx.drawImage(a,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),y.label=14;case 14:if(n instanceof Mm&&(c=Math.min(n.bounds.width,n.bounds.height),n.type===km?n.checked&&(this.ctx.save(),this.path([new $b(n.bounds.left+.39363*c,n.bounds.top+.79*c),new $b(n.bounds.left+.16*c,n.bounds.top+.5549*c),new $b(n.bounds.left+.27347*c,n.bounds.top+.44071*c),new $b(n.bounds.left+.39694*c,n.bounds.top+.5649*c),new $b(n.bounds.left+.72983*c,n.bounds.top+.23*c),new $b(n.bounds.left+.84*c,n.bounds.top+.34085*c),new $b(n.bounds.left+.39363*c,n.bounds.top+.79*c)]),this.ctx.fillStyle=_f(Om),this.ctx.fill(),this.ctx.restore()):n.type===_m&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+c/2,n.bounds.top+c/2,c/4,0,2*Math.PI,!0),this.ctx.fillStyle=_f(Om),this.ctx.fill(),this.ctx.restore())),Lv(n)&&n.value.length){switch(l=this.createFontStyle(r),b=l[0],u=l[1],h=this.fontMetrics.getMetrics(b,u).baseline,this.ctx.font=b,this.ctx.fillStyle=_f(r.color),this.ctx.textBaseline='alphabetic',this.ctx.textAlign=kv(n.styles.textAlign),v=yv(n),d=0,n.styles.textAlign){case 1:d+=v.width/2;break;case 2:d+=v.width}f=v.add(d,0,0,-v.height/2+1),this.ctx.save(),this.path([new $b(v.left,v.top),new $b(v.left+v.width,v.top),new $b(v.left+v.width,v.top+v.height),new $b(v.left,v.top+v.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new gm(n.value,f),r.letterSpacing,h),this.ctx.restore(),this.ctx.textBaseline='alphabetic',this.ctx.textAlign='left'}if(!Sp(n.styles.display,2048))return[3,20];if(null===n.styles.listStyleImage)return[3,19];if(0!==(g=n.styles.listStyleImage).type)return[3,18];p=void 0,m=g.url,y.label=15;case 15:return y.trys.push([15,17,,18]),[4,this.context.cache.match(m)];case 16:return p=y.sent(),this.ctx.drawImage(p,n.bounds.left-(p.width+10),n.bounds.top),[3,18];case 17:return y.sent(),this.context.logger.error('Error loading list-style-image '+m),[3,18];case 18:return[3,20];case 19:t.listValue&&-1!==n.styles.listStyleType&&(b=this.createFontStyle(r)[0],this.ctx.font=b,this.ctx.fillStyle=_f(r.color),this.ctx.textBaseline='middle',this.ctx.textAlign='right',v=new Fh(n.bounds.left,n.bounds.top+Ff(n.styles.paddingTop,n.bounds.width),n.bounds.width,Kg(r.lineHeight,r.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new gm(t.listValue,v),r.letterSpacing,Kg(r.lineHeight,r.fontSize.number)/2+2),this.ctx.textBaseline='bottom',this.ctx.textAlign='left'),y.label=20;case 20:return[2]}}))}))},e.prototype.renderStackContent=function(t){return Ch(this,void 0,void 0,(function(){var e,n,A,r,i,o,s,a,c,l,u,h,d,f,g;return xh(this,(function(p){switch(p.label){case 0:return Sp(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:p.sent(),e=0,n=t.negativeZIndex,p.label=2;case 2:return e<n.length?(g=n[e],[4,this.renderStack(g)]):[3,5];case 3:p.sent(),p.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:p.sent(),A=0,r=t.nonInlineLevel,p.label=7;case 7:return A<r.length?(g=r[A],[4,this.renderNode(g)]):[3,10];case 8:p.sent(),p.label=9;case 9:return A++,[3,7];case 10:i=0,o=t.nonPositionedFloats,p.label=11;case 11:return i<o.length?(g=o[i],[4,this.renderStack(g)]):[3,14];case 12:p.sent(),p.label=13;case 13:return i++,[3,11];case 14:s=0,a=t.nonPositionedInlineLevel,p.label=15;case 15:return s<a.length?(g=a[s],[4,this.renderStack(g)]):[3,18];case 16:p.sent(),p.label=17;case 17:return s++,[3,15];case 18:c=0,l=t.inlineLevel,p.label=19;case 19:return c<l.length?(g=l[c],[4,this.renderNode(g)]):[3,22];case 20:p.sent(),p.label=21;case 21:return c++,[3,19];case 22:u=0,h=t.zeroOrAutoZIndexOrTransformedOrOpacity,p.label=23;case 23:return u<h.length?(g=h[u],[4,this.renderStack(g)]):[3,26];case 24:p.sent(),p.label=25;case 25:return u++,[3,23];case 26:d=0,f=t.positiveZIndex,p.label=27;case 27:return d<f.length?(g=f[d],[4,this.renderStack(g)]):[3,30];case 28:p.sent(),p.label=29;case 29:return d++,[3,27];case 30:return[2]}}))}))},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var e=this;t.forEach((function(t,n){var A=nv(t)?t.start:t;0===n?e.ctx.moveTo(A.x,A.y):e.ctx.lineTo(A.x,A.y),nv(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)}))},e.prototype.renderRepeat=function(t,e,n,A){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(n,A),this.ctx.fill(),this.ctx.translate(-n,-A)},e.prototype.resizeImage=function(t,e,n){var A;if(t.width===e&&t.height===n)return t;var r=(null!==(A=this.canvas.ownerDocument)&&void 0!==A?A:document).createElement('canvas');return r.width=Math.max(1,e),r.height=Math.max(1,n),r.getContext('2d').drawImage(t,0,0,t.width,t.height,0,0,e,n),r},e.prototype.renderBackgroundImage=function(t){return Ch(this,void 0,void 0,(function(){var e,n,A,r,i,o;return xh(this,(function(s){switch(s.label){case 0:e=t.styles.backgroundImage.length-1,n=function(n){var r,i,o,s,a,c,l,u,h,d,f,g,p,m,b,v,y,w,B,C,x,F,I,Q,E,S,U,L,N,k,_;return xh(this,(function(P){switch(P.label){case 0:if(0!==n.type)return[3,5];r=void 0,i=n.url,P.label=1;case 1:return P.trys.push([1,3,,4]),[4,A.context.cache.match(i)];case 2:return r=P.sent(),[3,4];case 3:return P.sent(),A.context.logger.error('Error loading background-image '+i),[3,4];case 4:return r&&(o=wv(t,e,[r.width,r.height,r.width/r.height]),v=o[0],F=o[1],I=o[2],B=o[3],C=o[4],m=A.ctx.createPattern(A.resizeImage(r,B,C),'repeat'),A.renderRepeat(v,m,F,I)),[3,6];case 5:1===n.type?(s=wv(t,e,[null,null,null]),v=s[0],F=s[1],I=s[2],B=s[3],C=s[4],a=Xf(n.angle,B,C),c=a[0],l=a[1],u=a[2],h=a[3],d=a[4],(f=document.createElement('canvas')).width=B,f.height=C,g=f.getContext('2d'),p=g.createLinearGradient(l,h,u,d),Kf(n.stops,c).forEach((function(t){return p.addColorStop(t.stop,_f(t.color))})),g.fillStyle=p,g.fillRect(0,0,B,C),B>0&&C>0&&(m=A.ctx.createPattern(f,'repeat'),A.renderRepeat(v,m,F,I))):function(t){return 2===t.type}(n)&&(b=wv(t,e,[null,null,null]),v=b[0],y=b[1],w=b[2],B=b[3],C=b[4],x=0===n.position.length?[Bf]:n.position,F=Ff(x[0],B),I=Ff(x[x.length-1],C),Q=function(t,e,n,A,r){var i=0,o=0;switch(t.size){case 0:0===t.shape?i=o=Math.min(Math.abs(e),Math.abs(e-A),Math.abs(n),Math.abs(n-r)):1===t.shape&&(i=Math.min(Math.abs(e),Math.abs(e-A)),o=Math.min(Math.abs(n),Math.abs(n-r)));break;case 2:if(0===t.shape)i=o=Math.min(zf(e,n),zf(e,n-r),zf(e-A,n),zf(e-A,n-r));else if(1===t.shape){var s=Math.min(Math.abs(n),Math.abs(n-r))/Math.min(Math.abs(e),Math.abs(e-A)),a=Zf(A,r,e,n,!0),c=a[0],l=a[1];o=s*(i=zf(c-e,(l-n)/s))}break;case 1:0===t.shape?i=o=Math.max(Math.abs(e),Math.abs(e-A),Math.abs(n),Math.abs(n-r)):1===t.shape&&(i=Math.max(Math.abs(e),Math.abs(e-A)),o=Math.max(Math.abs(n),Math.abs(n-r)));break;case 3:if(0===t.shape)i=o=Math.max(zf(e,n),zf(e,n-r),zf(e-A,n),zf(e-A,n-r));else if(1===t.shape){s=Math.max(Math.abs(n),Math.abs(n-r))/Math.max(Math.abs(e),Math.abs(e-A));var u=Zf(A,r,e,n,!1);c=u[0],l=u[1],o=s*(i=zf(c-e,(l-n)/s))}}return Array.isArray(t.size)&&(i=Ff(t.size[0],A),o=2===t.size.length?Ff(t.size[1],r):i),[i,o]}(n,F,I,B,C),E=Q[0],S=Q[1],E>0&&S>0&&(U=A.ctx.createRadialGradient(y+F,w+I,0,y+F,w+I,E),Kf(n.stops,2*E).forEach((function(t){return U.addColorStop(t.stop,_f(t.color))})),A.path(v),A.ctx.fillStyle=U,E!==S?(L=t.bounds.left+.5*t.bounds.width,N=t.bounds.top+.5*t.bounds.height,_=1/(k=S/E),A.ctx.save(),A.ctx.translate(L,N),A.ctx.transform(1,0,0,k,0,0),A.ctx.translate(-L,-N),A.ctx.fillRect(y,_*(w-N)+N,B,C*_),A.ctx.restore()):A.ctx.fill())),P.label=6;case 6:return e--,[2]}}))},A=this,r=0,i=t.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return r<i.length?(o=i[r],[5,n(o)]):[3,4];case 2:s.sent(),s.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},e.prototype.renderSolidBorder=function(t,e,n){return Ch(this,void 0,void 0,(function(){return xh(this,(function(A){return this.path(pv(n,e)),this.ctx.fillStyle=_f(t),this.ctx.fill(),[2]}))}))},e.prototype.renderDoubleBorder=function(t,e,n,A){return Ch(this,void 0,void 0,(function(){var r,i;return xh(this,(function(o){switch(o.label){case 0:return e<3?[4,this.renderSolidBorder(t,n,A)]:[3,2];case 1:return o.sent(),[2];case 2:return r=function(t,e){switch(e){case 0:return bv(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return bv(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return bv(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return bv(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}}(A,n),this.path(r),this.ctx.fillStyle=_f(t),this.ctx.fill(),i=function(t,e){switch(e){case 0:return bv(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return bv(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return bv(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return bv(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}}(A,n),this.path(i),this.ctx.fill(),[2]}}))}))},e.prototype.renderNodeBackgroundAndBorders=function(t){return Ch(this,void 0,void 0,(function(){var e,n,A,r,i,o,s,a,c=this;return xh(this,(function(l){switch(l.label){case 0:return this.applyEffects(t.getEffects(2)),e=t.container.styles,n=!kf(e.backgroundColor)||e.backgroundImage.length,A=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],r=Nv(Fv(e.backgroundClip,0),t.curves),n||e.boxShadow.length?(this.ctx.save(),this.path(r),this.ctx.clip(),kf(e.backgroundColor)||(this.ctx.fillStyle=_f(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:l.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){c.ctx.save();var n,A,r,i,o,s=iv(t.curves),a=e.inset?0:1e4,l=(n=s,A=-a+(e.inset?1:-1)*e.spread.number,r=(e.inset?1:-1)*e.spread.number,i=e.spread.number*(e.inset?-2:2),o=e.spread.number*(e.inset?-2:2),n.map((function(t,e){switch(e){case 0:return t.add(A,r);case 1:return t.add(A+i,r);case 2:return t.add(A+i,r+o);case 3:return t.add(A,r+o)}return t})));e.inset?(c.path(s),c.ctx.clip(),c.mask(l)):(c.mask(s),c.ctx.clip(),c.path(l)),c.ctx.shadowOffsetX=e.offsetX.number+a,c.ctx.shadowOffsetY=e.offsetY.number,c.ctx.shadowColor=_f(e.color),c.ctx.shadowBlur=e.blur.number,c.ctx.fillStyle=e.inset?_f(e.color):'rgba(0,0,0,1)',c.ctx.fill(),c.ctx.restore()})),l.label=2;case 2:i=0,o=0,s=A,l.label=3;case 3:return o<s.length?0!==(a=s[o]).style&&!kf(a.color)&&a.width>0?2!==a.style?[3,5]:[4,this.renderDashedDottedBorder(a.color,a.width,i,t.curves,2)]:[3,11]:[3,13];case 4:return l.sent(),[3,11];case 5:return 3!==a.style?[3,7]:[4,this.renderDashedDottedBorder(a.color,a.width,i,t.curves,3)];case 6:return l.sent(),[3,11];case 7:return 4!==a.style?[3,9]:[4,this.renderDoubleBorder(a.color,a.width,i,t.curves)];case 8:return l.sent(),[3,11];case 9:return[4,this.renderSolidBorder(a.color,i,t.curves)];case 10:l.sent(),l.label=11;case 11:i++,l.label=12;case 12:return o++,[3,3];case 13:return[2]}}))}))},e.prototype.renderDashedDottedBorder=function(t,e,n,A,r){return Ch(this,void 0,void 0,(function(){var i,o,s,a,c,l,u,h,d,f,g,p,m,b,v,y;return xh(this,(function(w){return this.ctx.save(),i=function(t,e){switch(e){case 0:return mv(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return mv(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return mv(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return mv(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}}(A,n),o=pv(A,n),2===r&&(this.path(o),this.ctx.clip()),nv(o[0])?(s=o[0].start.x,a=o[0].start.y):(s=o[0].x,a=o[0].y),nv(o[1])?(c=o[1].end.x,l=o[1].end.y):(c=o[1].x,l=o[1].y),u=0===n||2===n?Math.abs(s-c):Math.abs(a-l),this.ctx.beginPath(),3===r?this.formatPath(i):this.formatPath(o.slice(0,2)),h=e<3?3*e:2*e,d=e<3?2*e:e,3===r&&(h=e,d=e),f=!0,u<=2*h?f=!1:u<=2*h+d?(h*=g=u/(2*h+d),d*=g):(p=Math.floor((u+d)/(h+d)),m=(u-p*h)/(p-1),d=(b=(u-(p+1)*h)/p)<=0||Math.abs(d-m)<Math.abs(d-b)?m:b),f&&(3===r?this.ctx.setLineDash([0,h+d]):this.ctx.setLineDash([h,d])),3===r?(this.ctx.lineCap='round',this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=_f(t),this.ctx.stroke(),this.ctx.setLineDash([]),2===r&&(nv(o[0])&&(v=o[3],y=o[0],this.ctx.beginPath(),this.formatPath([new $b(v.end.x,v.end.y),new $b(y.start.x,y.start.y)]),this.ctx.stroke()),nv(o[1])&&(v=o[1],y=o[2],this.ctx.beginPath(),this.formatPath([new $b(v.end.x,v.end.y),new $b(y.start.x,y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},e.prototype.render=function(t){return Ch(this,void 0,void 0,(function(){var e;return xh(this,(function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=_f(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=function(t){var e=new dv(t,null),n=new hv(e),A=[];return fv(e,n,n,A),gv(e.container,A),n}(t),[4,this.renderStack(e)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},e}(Sv),Lv=function(t){return t instanceof Tm||(t instanceof Hm||t instanceof Mm&&t.type!==_m&&t.type!==km)},Nv=function(t,e){switch(t){case 0:return iv(e);case 2:return function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]}(e);default:return ov(e)}},kv=function(t){switch(t){case 1:return'center';case 2:return'right';default:return'left'}},_v=['-apple-system','system-ui'],Pv=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter((function(t){return-1===_v.indexOf(t)})):t},Ov=function(t){function e(e,n){var A=t.call(this,e,n)||this;return A.canvas=n.canvas?n.canvas:document.createElement('canvas'),A.ctx=A.canvas.getContext('2d'),A.options=n,A.canvas.width=Math.floor(n.width*n.scale),A.canvas.height=Math.floor(n.height*n.scale),A.canvas.style.width=n.width+'px',A.canvas.style.height=n.height+'px',A.ctx.scale(A.options.scale,A.options.scale),A.ctx.translate(-n.x,-n.y),A.context.logger.debug('EXPERIMENTAL ForeignObject renderer initialized ('+n.width+'x'+n.height+' at '+n.x+','+n.y+') with scale '+n.scale),A}return wh(e,t),e.prototype.render=function(t){return Ch(this,void 0,void 0,(function(){var e,n;return xh(this,(function(A){switch(A.label){case 0:return e=hm(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Mv(e)];case 1:return n=A.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=_f(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},e}(Sv),Mv=function(t){return new Promise((function(e,n){var A=new Image;A.onload=function(){e(A)},A.onerror=n,A.src='data:image/svg+xml;charset=utf-8,'+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Hv=function(){function t(t){var e=t.id,n=t.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&('undefined'!=typeof window&&window.console&&'function'==typeof console.debug||this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&'undefined'!=typeof window&&window.console&&console.info},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&('undefined'!=typeof window&&window.console&&'function'==typeof console.warn||this.info.apply(this,t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&('undefined'!=typeof window&&window.console&&'function'==typeof console.error||this.info.apply(this,t))},t.instances={},t}(),Tv=function(){function t(e,n){var A;this.windowBounds=n,this.instanceName='#'+t.instanceCount++,this.logger=new Hv({id:this.instanceName,enabled:e.logging}),this.cache=null!==(A=e.cache)&&void 0!==A?A:new jb(this,e)}return t.instanceCount=1,t}(),Dv=function(t,e){return void 0===e&&(e={}),Rv(t,e)};'undefined'!=typeof window&&Gb.setContext(window);var Rv=function(t,e){return Ch(void 0,void 0,void 0,(function(){var n,A,r,i,o,s,a,c,l,u,h,d,f,g,p,m,b,v,y,w,B,C,x,F,I,Q,E,S,U,L,N,k,_,P,O,M,H,T;return xh(this,(function(D){switch(D.label){case 0:if(!t||'object'!=typeof t)return[2,Promise.reject('Invalid element provided as first argument')];if(!(n=t.ownerDocument))throw new Error('Element is not attached to a Document');if(!(A=n.defaultView))throw new Error('Document is not attached to a Window');return r={allowTaint:null!==(C=e.allowTaint)&&void 0!==C&&C,imageTimeout:null!==(x=e.imageTimeout)&&void 0!==x?x:15e3,proxy:e.proxy,useCORS:null!==(F=e.useCORS)&&void 0!==F&&F},i=Bh({logging:null===(I=e.logging)||void 0===I||I,cache:e.cache},r),o={windowWidth:null!==(Q=e.windowWidth)&&void 0!==Q?Q:A.innerWidth,windowHeight:null!==(E=e.windowHeight)&&void 0!==E?E:A.innerHeight,scrollX:null!==(S=e.scrollX)&&void 0!==S?S:A.pageXOffset,scrollY:null!==(U=e.scrollY)&&void 0!==U?U:A.pageYOffset},s=new Fh(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),a=new Tv(i,s),c=null!==(L=e.foreignObjectRendering)&&void 0!==L&&L,l={allowTaint:null!==(N=e.allowTaint)&&void 0!==N&&N,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:c,copyStyles:c},a.logger.debug('Starting document clone with size '+s.width+'x'+s.height+' scrolled to '+-s.left+','+-s.top),u=new Qb(a,t,l),(h=u.clonedReferenceElement)?[4,u.toIFrame(n,s)]:[2,Promise.reject('Unable to find element in cloned iframe')];case 1:return d=D.sent(),f=eb(h)||function(t){return'HTML'===t.tagName}(h)?function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error('Unable to get document size');var A=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),r=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new Fh(0,0,A,r)}(h.ownerDocument):Ih(a,h),g=f.width,p=f.height,m=f.left,b=f.top,v=Vv(a,h,e.backgroundColor),y={canvas:e.canvas,backgroundColor:v,scale:null!==(_=null!==(k=e.scale)&&void 0!==k?k:A.devicePixelRatio)&&void 0!==_?_:1,x:(null!==(P=e.x)&&void 0!==P?P:0)+m,y:(null!==(O=e.y)&&void 0!==O?O:0)+b,width:null!==(M=e.width)&&void 0!==M?M:Math.ceil(g),height:null!==(H=e.height)&&void 0!==H?H:Math.ceil(p)},c?(a.logger.debug('Document cloned, using foreign object rendering'),[4,new Ov(a,y).render(h)]):[3,3];case 2:return w=D.sent(),[3,5];case 3:return a.logger.debug('Document cloned, element located at '+m+','+b+' with size '+g+'x'+p+' using computed rendering'),a.logger.debug('Starting DOM parsing'),B=jm(a,h),v===B.styles.backgroundColor&&(B.styles.backgroundColor=Vf.TRANSPARENT),a.logger.debug('Starting renderer for element at '+y.x+','+y.y+' with size '+y.width+'x'+y.height),[4,new Uv(a,y).render(B)];case 4:w=D.sent(),D.label=5;case 5:return(null===(T=e.removeContainer)||void 0===T||T)&&(Qb.destroy(d)||a.logger.error('Cannot detach cloned iframe as it is not in the DOM anymore')),a.logger.debug('Finished rendering'),[2,w]}}))}))},Vv=function(t,e,n){var A=e.ownerDocument,r=A.documentElement?Rf(t,getComputedStyle(A.documentElement).backgroundColor):Vf.TRANSPARENT,i=A.body?Rf(t,getComputedStyle(A.body).backgroundColor):Vf.TRANSPARENT,o='string'==typeof n?Rf(t,n):null===n?Vf.TRANSPARENT:4294967295;return e===A.documentElement?kf(r)?kf(i)?o:i:r:o},Gv=Object.freeze({__proto__:null,default:Dv});function jv(t){return jv='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&'function'==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?'symbol':typeof t},jv(t)}try{require('worker_threads').Worker}catch(t){}var Wv=Uint8Array,Kv=Uint16Array,Xv=Uint32Array,zv=new Wv([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Zv=new Wv([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Yv=new Wv([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qv=function(t,e){for(var n=new Kv(31),A=0;A<31;++A)n[A]=e+=1<<t[A-1];var r=new Xv(n[30]);for(A=1;A<30;++A)for(var i=n[A];i<n[A+1];++i)r[i]=i-n[A]<<5|A;return[n,r]},Jv=qv(zv,2),$v=Jv[0],ty=Jv[1];$v[28]=258,ty[258]=28;for(var ey=qv(Zv,0),ny=ey[0],Ay=ey[1],ry=new Kv(32768),iy=0;iy<32768;++iy){var oy=(43690&iy)>>>1|(21845&iy)<<1;oy=(61680&(oy=(52428&oy)>>>2|(13107&oy)<<2))>>>4|(3855&oy)<<4,ry[iy]=((65280&oy)>>>8|(255&oy)<<8)>>>1}var sy=function(t,e,n){for(var A=t.length,r=0,i=new Kv(e);r<A;++r)++i[t[r]-1];var o,s=new Kv(e);for(r=0;r<e;++r)s[r]=s[r-1]+i[r-1]<<1;if(n){o=new Kv(1<<e);var a=15-e;for(r=0;r<A;++r)if(t[r])for(var c=r<<4|t[r],l=e-t[r],u=s[t[r]-1]++<<l,h=u|(1<<l)-1;u<=h;++u)o[ry[u]>>>a]=c}else for(o=new Kv(A),r=0;r<A;++r)o[r]=ry[s[t[r]-1]++]>>>15-t[r];return o},ay=new Wv(288);for(iy=0;iy<144;++iy)ay[iy]=8;for(iy=144;iy<256;++iy)ay[iy]=9;for(iy=256;iy<280;++iy)ay[iy]=7;for(iy=280;iy<288;++iy)ay[iy]=8;var cy=new Wv(32);for(iy=0;iy<32;++iy)cy[iy]=5;var ly=sy(ay,9,0),uy=sy(ay,9,1),hy=sy(cy,5,0),dy=sy(cy,5,1),fy=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},gy=function(t,e,n){var A=e/8>>0;return(t[A]|t[A+1]<<8)>>>(7&e)&n},py=function(t,e){var n=e/8>>0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(7&e)},my=function(t){return(t/8>>0)+(7&t&&1)},by=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var A=new(t instanceof Kv?Kv:t instanceof Xv?Xv:Wv)(n-e);return A.set(t.subarray(e,n)),A},vy=function(t,e,n){n<<=7&e;var A=e/8>>0;t[A]|=n,t[A+1]|=n>>>8},yy=function(t,e,n){n<<=7&e;var A=e/8>>0;t[A]|=n,t[A+1]|=n>>>8,t[A+2]|=n>>>16},wy=function(t,e){for(var n=[],A=0;A<t.length;++A)t[A]&&n.push({s:A,f:t[A]});var r=n.length,i=n.slice();if(!r)return[new Wv(0),0];if(1==r){var o=new Wv(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var s=n[0],a=n[1],c=0,l=1,u=2;for(n[0]={s:-1,f:s.f+a.f,l:s,r:a};l!=r-1;)s=n[n[c].f<n[u].f?c++:u++],a=n[c!=l&&n[c].f<n[u].f?c++:u++],n[l++]={s:-1,f:s.f+a.f,l:s,r:a};var h=i[0].s;for(A=1;A<r;++A)i[A].s>h&&(h=i[A].s);var d=new Kv(h+1),f=By(n[l-1],d,0);if(f>e){A=0;var g=0,p=f-e,m=1<<p;for(i.sort((function(t,e){return d[e.s]-d[t.s]||t.f-e.f}));A<r;++A){var b=i[A].s;if(!(d[b]>e))break;g+=m-(1<<f-d[b]),d[b]=e}for(g>>>=p;g>0;){var v=i[A].s;d[v]<e?g-=1<<e-d[v]++-1:++A}for(;A>=0&&g;--A){var y=i[A].s;d[y]==e&&(--d[y],++g)}f=e}return[new Wv(d),f]},By=function(t,e,n){return-1==t.s?Math.max(By(t.l,e,n+1),By(t.r,e,n+1)):e[t.s]=n},Cy=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new Kv(++e),A=0,r=t[0],i=1,o=function(t){n[A++]=t},s=1;s<=e;++s)if(t[s]==r&&s!=e)++i;else{if(!r&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(r),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(r);i=1,r=t[s]}return[n.subarray(0,A),e]},xy=function(t,e){for(var n=0,A=0;A<e.length;++A)n+=t[A]*e[A];return n},Fy=function(t,e,n){var A=n.length,r=my(e+2);t[r]=255&A,t[r+1]=A>>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var i=0;i<A;++i)t[r+i+4]=n[i];return 8*(r+4+A)},Iy=function(t,e,n,A,r,i,o,s,a,c,l){vy(e,l++,n),++r[256];for(var u=wy(r,15),h=u[0],d=u[1],f=wy(i,15),g=f[0],p=f[1],m=Cy(h),b=m[0],v=m[1],y=Cy(g),w=y[0],B=y[1],C=new Kv(19),x=0;x<b.length;++x)C[31&b[x]]++;for(x=0;x<w.length;++x)C[31&w[x]]++;for(var F=wy(C,7),I=F[0],Q=F[1],E=19;E>4&&!I[Yv[E-1]];--E);var S,U,L,N,k=c+5<<3,_=xy(r,ay)+xy(i,cy)+o,P=xy(r,h)+xy(i,g)+o+14+3*E+xy(C,I)+(2*C[16]+3*C[17]+7*C[18]);if(k<=_&&k<=P)return Fy(e,l,t.subarray(a,a+c));if(vy(e,l,1+(P<_)),l+=2,P<_){S=sy(h,d,0),U=h,L=sy(g,p,0),N=g;var O=sy(I,Q,0);vy(e,l,v-257),vy(e,l+5,B-1),vy(e,l+10,E-4),l+=14;for(x=0;x<E;++x)vy(e,l+3*x,I[Yv[x]]);l+=3*E;for(var M=[b,w],H=0;H<2;++H){var T=M[H];for(x=0;x<T.length;++x){var D=31&T[x];vy(e,l,O[D]),l+=I[D],D>15&&(vy(e,l,T[x]>>>5&127),l+=T[x]>>>12)}}}else S=ly,U=ay,L=hy,N=cy;for(x=0;x<s;++x)if(A[x]>255){D=A[x]>>>18&31;yy(e,l,S[D+257]),l+=U[D+257],D>7&&(vy(e,l,A[x]>>>23&31),l+=zv[D]);var R=31&A[x];yy(e,l,L[R]),l+=N[R],R>3&&(yy(e,l,A[x]>>>5&8191),l+=Zv[R])}else yy(e,l,S[A[x]]),l+=U[A[x]];return yy(e,l,S[256]),l+U[256]},Qy=new Xv([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ey=new Wv(0),Sy=function(t,e,n,A,r){return function(t,e,n,A,r,i){var o=t.length,s=new Wv(A+o+5*(1+Math.floor(o/7e3))+r),a=s.subarray(A,s.length-r),c=0;if(!e||o<8)for(var l=0;l<=o;l+=65535){var u=l+65535;u<o?c=Fy(a,c,t.subarray(l,u)):(a[l]=i,c=Fy(a,c,t.subarray(l,o)))}else{for(var h=Qy[e-1],d=h>>>13,f=8191&h,g=(1<<n)-1,p=new Kv(32768),m=new Kv(g+1),b=Math.ceil(n/3),v=2*b,y=function(e){return(t[e]^t[e+1]<<b^t[e+2]<<v)&g},w=new Xv(25e3),B=new Kv(288),C=new Kv(32),x=0,F=0,I=(l=0,0),Q=0,E=0;l<o;++l){var S=y(l),U=32767&l,L=m[S];if(p[U]=L,m[S]=U,Q<=l){var N=o-l;if((x>7e3||I>24576)&&N>423){c=Iy(t,a,0,w,B,C,F,I,E,l-E,c),I=x=F=0,E=l;for(var k=0;k<286;++k)B[k]=0;for(k=0;k<30;++k)C[k]=0}var _=2,P=0,O=f,M=U-L&32767;if(N>2&&S==y(l-M))for(var H=Math.min(d,N)-1,T=Math.min(32767,l),D=Math.min(258,N);M<=T&&--O&&U!=L;){if(t[l+_]==t[l+_-M]){for(var R=0;R<D&&t[l+R]==t[l+R-M];++R);if(R>_){if(_=R,P=M,R>H)break;var V=Math.min(M,R-2),G=0;for(k=0;k<V;++k){var j=l-M+k+32768&32767,W=j-p[j]+32768&32767;W>G&&(G=W,L=j)}}}M+=(U=L)-(L=p[U])+32768&32767}if(P){w[I++]=268435456|ty[_]<<18|Ay[P];var K=31&ty[_],X=31&Ay[P];F+=zv[K]+Zv[X],++B[257+K],++C[X],Q=l+_,++x}else w[I++]=t[l],++B[t[l]]}}c=Iy(t,a,i,w,B,C,F,I,E,l-E,c),i||(c=Fy(a,c,Ey))}return by(s,0,A+my(c)+r)}(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,A,!r)};function Uy(t,e){void 0===e&&(e={});var n=function(){var t=1,e=0;return{p:function(n){for(var A=t,r=e,i=n.length,o=0;o!=i;){for(var s=Math.min(o+5552,i);o<s;++o)r+=A+=n[o];A%=65521,r%=65521}t=A,e=r},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}}();n.p(t);var A=Sy(t,e,2,4);return function(t,e){var n=e.level,A=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=A<<6|(A?32-2*A:1)}(A,e),function(t,e,n){for(;n;++e)t[e]=n,n>>>=8}(A,A.length-4,n.d()),A}function Ly(t,e){return function(t,e,n){var A=t.length,r=!e||n,i=!n||n.i;n||(n={}),e||(e=new Wv(3*A));var o=function(t){var n=e.length;if(t>n){var A=new Wv(Math.max(2*n,t));A.set(e),e=A}},s=n.f||0,a=n.p||0,c=n.b||0,l=n.l,u=n.d,h=n.m,d=n.n,f=8*A;do{if(!l){n.f=s=gy(t,a,1);var g=gy(t,a+1,3);if(a+=3,!g){var p=t[(Q=my(a)+4)-4]|t[Q-3]<<8,m=Q+p;if(m>A){if(i)throw'unexpected EOF';break}r&&o(c+p),e.set(t.subarray(Q,m),c),n.b=c+=p,n.p=a=8*m;continue}if(1==g)l=uy,u=dy,h=9,d=5;else{if(2!=g)throw'invalid block type';var b=gy(t,a,31)+257,v=gy(t,a+10,15)+4,y=b+gy(t,a+5,31)+1;a+=14;for(var w=new Wv(y),B=new Wv(19),C=0;C<v;++C)B[Yv[C]]=gy(t,a+3*C,7);a+=3*v;var x=fy(B),F=(1<<x)-1;if(!i&&a+y*(x+7)>f)break;var I=sy(B,x,1);for(C=0;C<y;){var Q,E=I[gy(t,a,F)];if(a+=15&E,(Q=E>>>4)<16)w[C++]=Q;else{var S=0,U=0;for(16==Q?(U=3+gy(t,a,3),a+=2,S=w[C-1]):17==Q?(U=3+gy(t,a,7),a+=3):18==Q&&(U=11+gy(t,a,127),a+=7);U--;)w[C++]=S}}var L=w.subarray(0,b),N=w.subarray(b);h=fy(L),d=fy(N),l=sy(L,h,1),u=sy(N,d,1)}if(a>f)throw'unexpected EOF'}r&&o(c+131072);for(var k=(1<<h)-1,_=(1<<d)-1,P=h+d+18;i||a+P<f;){var O=(S=l[py(t,a)&k])>>>4;if((a+=15&S)>f)throw'unexpected EOF';if(!S)throw'invalid length/literal';if(O<256)e[c++]=O;else{if(256==O){l=null;break}var M=O-254;if(O>264){var H=zv[C=O-257];M=gy(t,a,(1<<H)-1)+$v[C],a+=H}var T=u[py(t,a)&_],D=T>>>4;if(!T)throw'invalid distance';if(a+=15&T,N=ny[D],D>3&&(H=Zv[D],N+=py(t,a)&(1<<H)-1,a+=H),a>f)throw'unexpected EOF';r&&o(c+131072);for(var R=c+M;c<R;c+=4)e[c]=e[c-N],e[c+1]=e[c+1-N],e[c+2]=e[c+2-N],e[c+3]=e[c+3-N];c=R}}n.l=l,n.p=a,n.b=c,l&&(s=1,n.m=h,n.d=u,n.n=d)}while(!s);return c==e.length?e:by(e,0,c)}((function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw'invalid zlib data';if(32&t[1])throw'invalid zlib data: preset dictionaries not supported'}(t),t.subarray(2,-4)),e)}
33
+ /** @license
34
+ *
35
+ * jsPDF - PDF Document creation from JavaScript
36
+ * Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
37
+ * CommitID 00000000
38
+ *
39
+ * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
40
+ * 2015-2021 yWorks GmbH, http://www.yworks.com
41
+ * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
42
+ * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
43
+ * 2010 Aaron Spike, https://github.com/acspike
44
+ * 2012 Willow Systems Corporation, https://github.com/willowsystems
45
+ * 2012 Pablo Hess, https://github.com/pablohess
46
+ * 2012 Florian Jenett, https://github.com/fjenett
47
+ * 2013 Warren Weckesser, https://github.com/warrenweckesser
48
+ * 2013 Youssef Beddad, https://github.com/lifof
49
+ * 2013 Lee Driscoll, https://github.com/lsdriscoll
50
+ * 2013 Stefan Slonevskiy, https://github.com/stefslon
51
+ * 2013 Jeremy Morel, https://github.com/jmorel
52
+ * 2013 Christoph Hartmann, https://github.com/chris-rock
53
+ * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
54
+ * 2014 James Makes, https://github.com/dollaruw
55
+ * 2014 Diego Casorran, https://github.com/diegocr
56
+ * 2014 Steven Spungin, https://github.com/Flamenco
57
+ * 2014 Kenneth Glassey, https://github.com/Gavvers
58
+ *
59
+ * Permission is hereby granted, free of charge, to any person obtaining
60
+ * a copy of this software and associated documentation files (the
61
+ * "Software"), to deal in the Software without restriction, including
62
+ * without limitation the rights to use, copy, modify, merge, publish,
63
+ * distribute, sublicense, and/or sell copies of the Software, and to
64
+ * permit persons to whom the Software is furnished to do so, subject to
65
+ * the following conditions:
66
+ *
67
+ * The above copyright notice and this permission notice shall be
68
+ * included in all copies or substantial portions of the Software.
69
+ *
70
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
71
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
72
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
73
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
74
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
75
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
76
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
77
+ *
78
+ * Contributor(s):
79
+ * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
80
+ * kim3er, mfo, alnorth, Flamenco
81
+ */var Ny=function(){return'undefined'!=typeof window?window:'undefined'!=typeof global?global:'undefined'!=typeof self?self:this}();function ky(){Ny.console&&'function'==typeof Ny.console.log&&Ny.console.log.apply(Ny.console,arguments)}var _y={log:ky,warn:function(t){Ny.console&&('function'==typeof Ny.console.warn?Ny.console.warn.apply(Ny.console,arguments):ky.call(null,arguments))},error:function(t){Ny.console&&('function'==typeof Ny.console.error?Ny.console.error.apply(Ny.console,arguments):ky(t))}};function Py(t,e,n){var A=new XMLHttpRequest;A.open('GET',t),A.responseType='blob',A.onload=function(){Dy(A.response,e,n)},A.onerror=function(){_y.error('could not download file')},A.send()}function Oy(t){var e=new XMLHttpRequest;e.open('HEAD',t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function My(t){try{t.dispatchEvent(new MouseEvent('click'))}catch(n){var e=document.createEvent('MouseEvents');e.initMouseEvent('click',!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var Hy,Ty,Dy=Ny.saveAs||('object'!==('undefined'==typeof window?'undefined':jv(window))||window!==Ny?function(){}:'undefined'!=typeof HTMLAnchorElement&&'download'in HTMLAnchorElement.prototype?function(t,e,n){var A=Ny.URL||Ny.webkitURL,r=document.createElement('a');e=e||t.name||'download',r.download=e,r.rel='noopener','string'==typeof t?(r.href=t,r.origin!==location.origin?Oy(r.href)?Py(t,e,n):My(r,r.target='_blank'):My(r)):(r.href=A.createObjectURL(t),setTimeout((function(){A.revokeObjectURL(r.href)}),4e4),setTimeout((function(){My(r)}),0))}:'msSaveOrOpenBlob'in navigator?function(t,e,n){if(e=e||t.name||'download','string'==typeof t)if(Oy(t))Py(t,e,n);else{var A=document.createElement('a');A.href=t,A.target='_blank',setTimeout((function(){My(A)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:'object'!==jv(e)&&(_y.warn('Deprecated: Expected third argument to be a object'),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,A){if((A=A||open('','_blank'))&&(A.document.title=A.document.body.innerText='downloading...'),'string'==typeof t)return Py(t,e,n);var r='application/octet-stream'===t.type,i=/constructor/i.test(Ny.HTMLElement)||Ny.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||r&&i)&&'object'===('undefined'==typeof FileReader?'undefined':jv(FileReader))){var s=new FileReader;s.onloadend=function(){var t=s.result;t=o?t:t.replace(/^data:[^;]*;/,'data:attachment/file;'),A?A.location.href=t:location=t,A=null},s.readAsDataURL(t)}else{var a=Ny.URL||Ny.webkitURL,c=a.createObjectURL(t);A?A.location=c:location.href=c,A=null,setTimeout((function(){a.revokeObjectURL(c)}),4e4)}});
82
+ /**
83
+ * A class to parse color values
84
+ * @author Stoyan Stefanov <sstoo@gmail.com>
85
+ * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
86
+ * @license Use it if you like it
87
+ */function Ry(t){var e;t=t||'',this.ok=!1,'#'==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:'f0f8ff',antiquewhite:'faebd7',aqua:'00ffff',aquamarine:'7fffd4',azure:'f0ffff',beige:'f5f5dc',bisque:'ffe4c4',black:'000000',blanchedalmond:'ffebcd',blue:'0000ff',blueviolet:'8a2be2',brown:'a52a2a',burlywood:'deb887',cadetblue:'5f9ea0',chartreuse:'7fff00',chocolate:'d2691e',coral:'ff7f50',cornflowerblue:'6495ed',cornsilk:'fff8dc',crimson:'dc143c',cyan:'00ffff',darkblue:'00008b',darkcyan:'008b8b',darkgoldenrod:'b8860b',darkgray:'a9a9a9',darkgreen:'006400',darkkhaki:'bdb76b',darkmagenta:'8b008b',darkolivegreen:'556b2f',darkorange:'ff8c00',darkorchid:'9932cc',darkred:'8b0000',darksalmon:'e9967a',darkseagreen:'8fbc8f',darkslateblue:'483d8b',darkslategray:'2f4f4f',darkturquoise:'00ced1',darkviolet:'9400d3',deeppink:'ff1493',deepskyblue:'00bfff',dimgray:'696969',dodgerblue:'1e90ff',feldspar:'d19275',firebrick:'b22222',floralwhite:'fffaf0',forestgreen:'228b22',fuchsia:'ff00ff',gainsboro:'dcdcdc',ghostwhite:'f8f8ff',gold:'ffd700',goldenrod:'daa520',gray:'808080',green:'008000',greenyellow:'adff2f',honeydew:'f0fff0',hotpink:'ff69b4',indianred:'cd5c5c',indigo:'4b0082',ivory:'fffff0',khaki:'f0e68c',lavender:'e6e6fa',lavenderblush:'fff0f5',lawngreen:'7cfc00',lemonchiffon:'fffacd',lightblue:'add8e6',lightcoral:'f08080',lightcyan:'e0ffff',lightgoldenrodyellow:'fafad2',lightgrey:'d3d3d3',lightgreen:'90ee90',lightpink:'ffb6c1',lightsalmon:'ffa07a',lightseagreen:'20b2aa',lightskyblue:'87cefa',lightslateblue:'8470ff',lightslategray:'778899',lightsteelblue:'b0c4de',lightyellow:'ffffe0',lime:'00ff00',limegreen:'32cd32',linen:'faf0e6',magenta:'ff00ff',maroon:'800000',mediumaquamarine:'66cdaa',mediumblue:'0000cd',mediumorchid:'ba55d3',mediumpurple:'9370d8',mediumseagreen:'3cb371',mediumslateblue:'7b68ee',mediumspringgreen:'00fa9a',mediumturquoise:'48d1cc',mediumvioletred:'c71585',midnightblue:'191970',mintcream:'f5fffa',mistyrose:'ffe4e1',moccasin:'ffe4b5',navajowhite:'ffdead',navy:'000080',oldlace:'fdf5e6',olive:'808000',olivedrab:'6b8e23',orange:'ffa500',orangered:'ff4500',orchid:'da70d6',palegoldenrod:'eee8aa',palegreen:'98fb98',paleturquoise:'afeeee',palevioletred:'d87093',papayawhip:'ffefd5',peachpuff:'ffdab9',peru:'cd853f',pink:'ffc0cb',plum:'dda0dd',powderblue:'b0e0e6',purple:'800080',red:'ff0000',rosybrown:'bc8f8f',royalblue:'4169e1',saddlebrown:'8b4513',salmon:'fa8072',sandybrown:'f4a460',seagreen:'2e8b57',seashell:'fff5ee',sienna:'a0522d',silver:'c0c0c0',skyblue:'87ceeb',slateblue:'6a5acd',slategray:'708090',snow:'fffafa',springgreen:'00ff7f',steelblue:'4682b4',tan:'d2b48c',teal:'008080',thistle:'d8bfd8',tomato:'ff6347',turquoise:'40e0d0',violet:'ee82ee',violetred:'d02090',wheat:'f5deb3',white:'ffffff',whitesmoke:'f5f5f5',yellow:'ffff00',yellowgreen:'9acd32'}[t=(t=t.replace(/ /g,'')).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:['rgb(123, 234, 45)','rgb(255,234,245)'],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:['#00ff00','336699'],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:['#fb0','f0f'],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],A=0;A<n.length;A++){var r=n[A].re,i=n[A].process,o=r.exec(t);o&&(e=i(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return'rgb('+this.r+', '+this.g+', '+this.b+')'},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t='0'+t),1==e.length&&(e='0'+e),1==n.length&&(n='0'+n),'#'+t+e+n}}
88
+ /**
89
+ * @license
90
+ * Joseph Myers does not specify a particular license for his work.
91
+ *
92
+ * Author: Joseph Myers
93
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
94
+ *
95
+ * Modified by: Owen Leong
96
+ */function Vy(t,e){var n=t[0],A=t[1],r=t[2],i=t[3];n=jy(n,A,r,i,e[0],7,-680876936),i=jy(i,n,A,r,e[1],12,-389564586),r=jy(r,i,n,A,e[2],17,606105819),A=jy(A,r,i,n,e[3],22,-1044525330),n=jy(n,A,r,i,e[4],7,-176418897),i=jy(i,n,A,r,e[5],12,1200080426),r=jy(r,i,n,A,e[6],17,-1473231341),A=jy(A,r,i,n,e[7],22,-45705983),n=jy(n,A,r,i,e[8],7,1770035416),i=jy(i,n,A,r,e[9],12,-1958414417),r=jy(r,i,n,A,e[10],17,-42063),A=jy(A,r,i,n,e[11],22,-1990404162),n=jy(n,A,r,i,e[12],7,1804603682),i=jy(i,n,A,r,e[13],12,-40341101),r=jy(r,i,n,A,e[14],17,-1502002290),n=Wy(n,A=jy(A,r,i,n,e[15],22,1236535329),r,i,e[1],5,-165796510),i=Wy(i,n,A,r,e[6],9,-1069501632),r=Wy(r,i,n,A,e[11],14,643717713),A=Wy(A,r,i,n,e[0],20,-373897302),n=Wy(n,A,r,i,e[5],5,-701558691),i=Wy(i,n,A,r,e[10],9,38016083),r=Wy(r,i,n,A,e[15],14,-660478335),A=Wy(A,r,i,n,e[4],20,-405537848),n=Wy(n,A,r,i,e[9],5,568446438),i=Wy(i,n,A,r,e[14],9,-1019803690),r=Wy(r,i,n,A,e[3],14,-187363961),A=Wy(A,r,i,n,e[8],20,1163531501),n=Wy(n,A,r,i,e[13],5,-1444681467),i=Wy(i,n,A,r,e[2],9,-51403784),r=Wy(r,i,n,A,e[7],14,1735328473),n=Ky(n,A=Wy(A,r,i,n,e[12],20,-1926607734),r,i,e[5],4,-378558),i=Ky(i,n,A,r,e[8],11,-2022574463),r=Ky(r,i,n,A,e[11],16,1839030562),A=Ky(A,r,i,n,e[14],23,-35309556),n=Ky(n,A,r,i,e[1],4,-1530992060),i=Ky(i,n,A,r,e[4],11,1272893353),r=Ky(r,i,n,A,e[7],16,-155497632),A=Ky(A,r,i,n,e[10],23,-1094730640),n=Ky(n,A,r,i,e[13],4,681279174),i=Ky(i,n,A,r,e[0],11,-358537222),r=Ky(r,i,n,A,e[3],16,-722521979),A=Ky(A,r,i,n,e[6],23,76029189),n=Ky(n,A,r,i,e[9],4,-640364487),i=Ky(i,n,A,r,e[12],11,-421815835),r=Ky(r,i,n,A,e[15],16,530742520),n=Xy(n,A=Ky(A,r,i,n,e[2],23,-995338651),r,i,e[0],6,-198630844),i=Xy(i,n,A,r,e[7],10,1126891415),r=Xy(r,i,n,A,e[14],15,-1416354905),A=Xy(A,r,i,n,e[5],21,-57434055),n=Xy(n,A,r,i,e[12],6,1700485571),i=Xy(i,n,A,r,e[3],10,-1894986606),r=Xy(r,i,n,A,e[10],15,-1051523),A=Xy(A,r,i,n,e[1],21,-2054922799),n=Xy(n,A,r,i,e[8],6,1873313359),i=Xy(i,n,A,r,e[15],10,-30611744),r=Xy(r,i,n,A,e[6],15,-1560198380),A=Xy(A,r,i,n,e[13],21,1309151649),n=Xy(n,A,r,i,e[4],6,-145523070),i=Xy(i,n,A,r,e[11],10,-1120210379),r=Xy(r,i,n,A,e[2],15,718787259),A=Xy(A,r,i,n,e[9],21,-343485551),t[0]=ew(n,t[0]),t[1]=ew(A,t[1]),t[2]=ew(r,t[2]),t[3]=ew(i,t[3])}function Gy(t,e,n,A,r,i){return e=ew(ew(e,t),ew(A,i)),ew(e<<r|e>>>32-r,n)}function jy(t,e,n,A,r,i,o){return Gy(e&n|~e&A,t,e,r,i,o)}function Wy(t,e,n,A,r,i,o){return Gy(e&A|n&~A,t,e,r,i,o)}function Ky(t,e,n,A,r,i,o){return Gy(e^n^A,t,e,r,i,o)}function Xy(t,e,n,A,r,i,o){return Gy(n^(e|~A),t,e,r,i,o)}function zy(t){var e,n=t.length,A=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)Vy(A,Zy(t.substring(e-64,e)));t=t.substring(e-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)r[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(Vy(A,r),e=0;e<16;e++)r[e]=0;return r[14]=8*n,Vy(A,r),A}function Zy(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}Hy=Ny.atob.bind(Ny),Ty=Ny.btoa.bind(Ny);var Yy='0123456789abcdef'.split('');function qy(t){for(var e='',n=0;n<4;n++)e+=Yy[t>>8*n+4&15]+Yy[t>>8*n&15];return e}function Jy(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function $y(t){return zy(t).map(Jy).join('')}var tw='5d41402abc4b2a76b9719d911017c592'!=function(t){for(var e=0;e<t.length;e++)t[e]=qy(t[e]);return t.join('')}(zy('hello'));function ew(t,e){if(tw){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}
97
+ /**
98
+ * @license
99
+ * FPDF is released under a permissive license: there is no usage restriction.
100
+ * You may embed it freely in your application (commercial or not), with or
101
+ * without modifications.
102
+ *
103
+ * Reference: http://www.fpdf.org/en/script/script37.php
104
+ */function nw(t,e){var n,A,r,i;if(t!==n){for(var o=(r=t,i=1+(256/t.length>>0),new Array(i+1).join(r)),s=[],a=0;a<256;a++)s[a]=a;var c=0;for(a=0;a<256;a++){var l=s[a];c=(c+l+o.charCodeAt(a))%256,s[a]=s[c],s[c]=l}n=t,A=s}else s=A;var u=e.length,h=0,d=0,f='';for(a=0;a<u;a++)d=(d+(l=s[h=(h+1)%256]))%256,s[h]=s[d],s[d]=l,o=s[(s[h]+s[d])%256],f+=String.fromCharCode(e.charCodeAt(a)^o);return f}
105
+ /**
106
+ * @license
107
+ * Licensed under the MIT License.
108
+ * http://opensource.org/licenses/mit-license
109
+ * Author: Owen Leong (@owenl131)
110
+ * Date: 15 Oct 2020
111
+ * References:
112
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
113
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
114
+ * http://www.fpdf.org/en/script/script37.php
115
+ */var Aw={print:4,modify:8,copy:16,'annot-forms':32};function rw(t,e,n,A){this.v=1,this.r=2;var r=192;t.forEach((function(t){if(void 0!==Aw.perm)throw new Error('Invalid permission: '+t);r+=Aw[t]})),this.padding='(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz';var i=(e+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^r)),this.encryptionKey=$y(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(A)).substr(0,5),this.U=nw(this.encryptionKey,this.padding)}function iw(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error('Invalid PDF Name Object: '+t+', Only accept ASCII characters.');for(var e='',n=t.length,A=0;A<n;A++){var r=t.charCodeAt(A);e+=r<33||35===r||37===r||40===r||41===r||47===r||60===r||62===r||91===r||93===r||123===r||125===r||r>126?'#'+('0'+r.toString(16)).slice(-2):t[A]}return e}function ow(t){if('object'!==jv(t))throw new Error('Invalid Context passed to initialize PubSub (jsPDF-module)');var e={};this.subscribe=function(t,n,A){if(A=A||!1,'string'!=typeof t||'function'!=typeof n||'boolean'!=typeof A)throw new Error('Invalid arguments passed to PubSub.subscribe (jsPDF-module)');e.hasOwnProperty(t)||(e[t]={});var r=Math.random().toString(35);return e[t][r]=[n,!!A],r},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var A=Array.prototype.slice.call(arguments,1),r=[];for(var i in e[n]){var o=e[n][i];try{o[0].apply(t,A)}catch(n){Ny.console&&_y.error('jsPDF PubSub Error',n.message,n)}o[1]&&r.push(i)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function sw(t){if(!(this instanceof sw))return new sw(t);var e='opacity,stroke-opacity'.split(',');for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id='',this.objectNumber=-1}function aw(t,e){this.gState=t,this.matrix=e,this.id='',this.objectNumber=-1}function cw(t,e,n,A,r){if(!(this instanceof cw))return new cw(t,e,n,A,r);this.type='axial'===t?2:3,this.coords=e,this.colors=n,aw.call(this,A,r)}function lw(t,e,n,A,r){if(!(this instanceof lw))return new lw(t,e,n,A,r);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream='',this.cloneIndex=0,aw.call(this,A,r)}function uw(t){var e,n='string'==typeof arguments[0]?arguments[0]:'p',A=arguments[1],r=arguments[2],i=arguments[3],o=[],s=1,a=16,c='S',l=null;'object'===jv(t=t||{})&&(n=t.orientation,A=t.unit||A,r=t.format||r,i=t.compress||t.compressPdf||i,null!==(l=t.encryption||null)&&(l.userPassword=l.userPassword||'',l.ownerPassword=l.ownerPassword||'',l.userPermissions=l.userPermissions||[]),s='number'==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(a=t.floatPrecision),c=t.defaultPathOperation||'S'),o=t.filters||(!0===i?['FlateEncode']:o),A=A||'mm',n=(''+(n||'P')).toLowerCase();var u=t.putOnlyUsedFonts||!1,h={},d={internal:{},__private__:{}};d.__private__.PubSub=ow;var f='1.3',g=d.__private__.getPdfVersion=function(){return f};d.__private__.setPdfVersion=function(t){f=t};var p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],'government-letter':[576,756],legal:[612,1008],'junior-legal':[576,360],ledger:[1224,792],tabloid:[792,1224],'credit-card':[153,243]};d.__private__.getPageFormats=function(){return p};var m=d.__private__.getPageFormat=function(t){return p[t]};r=r||'a4';var b='compat',v='advanced',y=b;function w(){this.saveGraphicsState(),q(new Lt(ht,0,0,-ht,0,cn()*ht).toString()+' cm'),this.setFontSize(this.getFontSize()/ht),c='n',y=v}function B(){this.restoreGraphicsState(),c='S',y=b}var C=d.__private__.combineFontStyleAndFontWeight=function(t,e){if('bold'==t&&'normal'==e||'bold'==t&&400==e||'normal'==t&&'italic'==e||'bold'==t&&'italic'==e)throw new Error('Invalid Combination of fontweight and fontstyle');return e&&(t=400==e||'normal'===e?'italic'===t?'italic':'normal':700!=e&&'bold'!==e||'normal'!==t?(700==e?'bold':e)+''+t:'bold'),t};d.advancedAPI=function(t){var e=y===b;return e&&w.call(this),'function'!=typeof t||(t(this),e&&B.call(this)),this},d.compatAPI=function(t){var e=y===v;return e&&B.call(this),'function'!=typeof t||(t(this),e&&w.call(this)),this},d.isAdvancedAPI=function(){return y===v};var x,F=function(t){if(y!==v)throw new Error(t+' is only available in \'advanced\' API mode. You need to call advancedAPI() first.')},I=d.roundToPrecision=d.__private__.roundToPrecision=function(t,n){var A=e||n;if(isNaN(t)||isNaN(A))throw new Error('Invalid argument passed to jsPDF.roundToPrecision');return t.toFixed(A).replace(/0+$/,'')};x=d.hpf=d.__private__.hpf='number'==typeof a?function(t){if(isNaN(t))throw new Error('Invalid argument passed to jsPDF.hpf');return I(t,a)}:'smart'===a?function(t){if(isNaN(t))throw new Error('Invalid argument passed to jsPDF.hpf');return I(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error('Invalid argument passed to jsPDF.hpf');return I(t,16)};var Q=d.f2=d.__private__.f2=function(t){if(isNaN(t))throw new Error('Invalid argument passed to jsPDF.f2');return I(t,2)},E=d.__private__.f3=function(t){if(isNaN(t))throw new Error('Invalid argument passed to jsPDF.f3');return I(t,3)},S=d.scale=d.__private__.scale=function(t){if(isNaN(t))throw new Error('Invalid argument passed to jsPDF.scale');return y===b?t*ht:y===v?t:void 0},U=function(t){return S(function(t){return y===b?cn()-t:y===v?t:void 0}(t))};d.__private__.setPrecision=d.setPrecision=function(t){'number'==typeof parseInt(t,10)&&(e=parseInt(t,10))};var L,N='00000000000000000000000000000000',k=d.__private__.getFileId=function(){return N},_=d.__private__.setFileId=function(t){return N=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():N.split('').map((function(){return'ABCDEF0123456789'.charAt(Math.floor(16*Math.random()))})).join(''),null!==l&&(be=new rw(l.userPermissions,l.userPassword,l.ownerPassword,N)),N};d.setFileId=function(t){return _(t),this},d.getFileId=function(){return k()};var P=d.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?'+':'-',A=Math.floor(Math.abs(e/60)),r=Math.abs(e%60),i=[n,D(A),'\'',D(r),'\''].join('');return['D:',t.getFullYear(),D(t.getMonth()+1),D(t.getDate()),D(t.getHours()),D(t.getMinutes()),D(t.getSeconds()),i].join('')},O=d.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,A=parseInt(t.substr(8,2),10),r=parseInt(t.substr(10,2),10),i=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,n,A,r,i,o,0)},M=d.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=P(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error('Invalid argument passed to jsPDF.setCreationDate');e=t}return L=e},H=d.__private__.getCreationDate=function(t){var e=L;return'jsDate'===t&&(e=O(L)),e};d.setCreationDate=function(t){return M(t),this},d.getCreationDate=function(t){return H(t)};var T,D=d.__private__.padd2=function(t){return('0'+parseInt(t)).slice(-2)},R=d.__private__.padd2Hex=function(t){return('00'+(t=t.toString())).substr(t.length)},V=0,G=[],j=[],W=0,K=[],X=[],z=!1,Z=j;d.__private__.setCustomOutputDestination=function(t){z=!0,Z=t};var Y=function(t){z||(Z=t)};d.__private__.resetCustomOutputDestination=function(){z=!1,Z=j};var q=d.__private__.out=function(t){return t=t.toString(),W+=t.length+1,Z.push(t),Z},J=d.__private__.write=function(t){return q(1===arguments.length?t.toString():Array.prototype.join.call(arguments,' '))},$=d.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),A=new Uint8Array(n);e--;)A[e]=t.charCodeAt(e);return n},tt=[['Helvetica','helvetica','normal','WinAnsiEncoding'],['Helvetica-Bold','helvetica','bold','WinAnsiEncoding'],['Helvetica-Oblique','helvetica','italic','WinAnsiEncoding'],['Helvetica-BoldOblique','helvetica','bolditalic','WinAnsiEncoding'],['Courier','courier','normal','WinAnsiEncoding'],['Courier-Bold','courier','bold','WinAnsiEncoding'],['Courier-Oblique','courier','italic','WinAnsiEncoding'],['Courier-BoldOblique','courier','bolditalic','WinAnsiEncoding'],['Times-Roman','times','normal','WinAnsiEncoding'],['Times-Bold','times','bold','WinAnsiEncoding'],['Times-Italic','times','italic','WinAnsiEncoding'],['Times-BoldItalic','times','bolditalic','WinAnsiEncoding'],['ZapfDingbats','zapfdingbats','normal',null],['Symbol','symbol','normal',null]];d.__private__.getStandardFonts=function(){return tt};var et=t.fontSize||16;d.__private__.setFontSize=d.setFontSize=function(t){return et=y===v?t/ht:t,this};var nt,At=d.__private__.getFontSize=d.getFontSize=function(){return y===b?et:et*ht},rt=t.R2L||!1;d.__private__.setR2L=d.setR2L=function(t){return rt=t,this},d.__private__.getR2L=d.getR2L=function(){return rt};var it,ot=d.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))nt=t;else if(isNaN(t)){if(-1===[void 0,null,'fullwidth','fullheight','fullpage','original'].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');nt=t}else nt=parseInt(t,10)};d.__private__.getZoomMode=function(){return nt};var st,at=d.__private__.setPageMode=function(t){if(-1==[void 0,null,'UseNone','UseOutlines','UseThumbs','FullScreen'].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');it=t};d.__private__.getPageMode=function(){return it};var ct=d.__private__.setLayoutMode=function(t){if(-1==[void 0,null,'continuous','single','twoleft','tworight','two'].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');st=t};d.__private__.getLayoutMode=function(){return st},d.__private__.setDisplayMode=d.setDisplayMode=function(t,e,n){return ot(t),ct(e),at(n),this};var lt={title:'',subject:'',author:'',keywords:'',creator:''};d.__private__.getDocumentProperty=function(t){if(-1===Object.keys(lt).indexOf(t))throw new Error('Invalid argument passed to jsPDF.getDocumentProperty');return lt[t]},d.__private__.getDocumentProperties=function(){return lt},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(t){for(var e in lt)lt.hasOwnProperty(e)&&t[e]&&(lt[e]=t[e]);return this},d.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(lt).indexOf(t))throw new Error('Invalid arguments passed to jsPDF.setDocumentProperty');return lt[t]=e};var ut,ht,dt,ft,gt,pt={},mt={},bt=[],vt={},yt={},wt={},Bt={},Ct=null,xt=0,Ft=[],It=new ow(d),Qt=t.hotfixes||[],Et={},St={},Ut=[],Lt=function t(e,n,A,r,i,o){if(!(this instanceof t))return new t(e,n,A,r,i,o);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(A)&&(A=0),isNaN(r)&&(r=1),isNaN(i)&&(i=0),isNaN(o)&&(o=0),this._matrix=[e,n,A,r,i,o]};Object.defineProperty(Lt.prototype,'sx',{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Lt.prototype,'shy',{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Lt.prototype,'shx',{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Lt.prototype,'sy',{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Lt.prototype,'tx',{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Lt.prototype,'ty',{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Lt.prototype,'a',{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Lt.prototype,'b',{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Lt.prototype,'c',{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Lt.prototype,'d',{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Lt.prototype,'e',{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Lt.prototype,'f',{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Lt.prototype,'rotation',{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Lt.prototype,'scaleX',{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Lt.prototype,'scaleY',{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Lt.prototype,'isIdentity',{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Lt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(x).join(t)},Lt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,A=t.shx*this.sx+t.sy*this.shx,r=t.shx*this.shy+t.sy*this.sy,i=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Lt(e,n,A,r,i,o)},Lt.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,A=this.sy,r=this.tx,i=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*n+(e/=o)*A;n-=t*s,A-=e*s;var a=Math.sqrt(n*n+A*A);return s/=a,t*(A/=a)<e*(n/=a)&&(t=-t,e=-e,s=-s,o=-o),{scale:new Lt(o,0,0,a,0,0),translate:new Lt(1,0,0,1,r,i),rotate:new Lt(t,e,-e,t,0,0),skew:new Lt(1,0,s,1,0,0)}},Lt.prototype.toString=function(t){return this.join(' ')},Lt.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,A=this.sy,r=this.tx,i=this.ty,o=1/(t*A-e*n),s=A*o,a=-e*o,c=-n*o,l=t*o;return new Lt(s,a,c,l,-s*r-c*i,-a*r-l*i)},Lt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new en(e,n)},Lt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new en(t.x+t.w,t.y+t.h));return new nn(e.x,e.y,n.x-e.x,n.y-e.y)},Lt.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,A=this.sy,r=this.tx,i=this.ty;return new Lt(t,e,n,A,r,i)},d.Matrix=Lt;var Nt=d.matrixMult=function(t,e){return e.multiply(t)},kt=new Lt(1,0,0,1,0,0);d.unitMatrix=d.identityMatrix=kt;var _t=function(t,e){if(!yt[t]){var n=(e instanceof cw?'Sh':'P')+(Object.keys(vt).length+1).toString(10);e.id=n,yt[t]=n,vt[n]=e,It.publish('addPattern',e)}};d.ShadingPattern=cw,d.TilingPattern=lw,d.addShadingPattern=function(t,e){return F('addShadingPattern()'),_t(t,e),this},d.beginTilingPattern=function(t){F('beginTilingPattern()'),rn(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},d.endTilingPattern=function(t,e){F('endTilingPattern()'),e.stream=X[T].join('\n'),_t(t,e),It.publish('endTilingPattern',e),Ut.pop().restore()};var Pt=d.__private__.newObject=function(){var t=Ot();return Mt(t,!0),t},Ot=d.__private__.newObjectDeferred=function(){return V++,G[V]=function(){return W},V},Mt=function(t,e){return e='boolean'==typeof e&&e,G[t]=W,e&&q(t+' 0 obj'),t},Ht=d.__private__.newAdditionalObject=function(){var t={objId:Ot(),content:''};return K.push(t),t},Tt=Ot(),Dt=Ot(),Rt=d.__private__.decodeColorString=function(t){var e=t.split(' ');if(2!==e.length||'g'!==e[1]&&'G'!==e[1])5!==e.length||'k'!==e[4]&&'K'!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),'r']);else{var n=parseFloat(e[0]);e=[n,n,n,'r']}for(var A='#',r=0;r<3;r++)A+=('0'+Math.floor(255*parseFloat(e[r])).toString(16)).slice(-2);return A},Vt=d.__private__.encodeColorString=function(t){var e;'string'==typeof t&&(t={ch1:t});var n=t.ch1,A=t.ch2,r=t.ch3,i=t.ch4,o='draw'===t.pdfColorType?['G','RG','K']:['g','rg','k'];if('string'==typeof n&&'#'!==n.charAt(0)){var s=new Ry(n);if(s.ok)n=s.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if('string'==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n='#'+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),'string'==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var a=parseInt(n.substr(1),16);n=a>>16&255,A=a>>8&255,r=255&a}if(void 0===A||void 0===i&&n===A&&A===r)if('string'==typeof n)e=n+' '+o[0];else if(2===t.precision)e=Q(n/255)+' '+o[0];else e=E(n/255)+' '+o[0];else if(void 0===i||'object'===jv(i)){if(i&&!isNaN(i.a)&&0===i.a)return['1.','1.','1.',o[1]].join(' ');if('string'==typeof n)e=[n,A,r,o[1]].join(' ');else if(2===t.precision)e=[Q(n/255),Q(A/255),Q(r/255),o[1]].join(' ');else e=[E(n/255),E(A/255),E(r/255),o[1]].join(' ')}else if('string'==typeof n)e=[n,A,r,i,o[2]].join(' ');else if(2===t.precision)e=[Q(n),Q(A),Q(r),Q(i),o[2]].join(' ');else e=[E(n),E(A),E(r),E(i),o[2]].join(' ');return e},Gt=d.__private__.getFilters=function(){return o},jt=d.__private__.putStream=function(t){var e=(t=t||{}).data||'',n=t.filters||Gt(),A=t.alreadyAppliedFilters||[],r=t.addLength1||!1,i=e.length,o=t.objectId,s=function(t){return t};if(null!==l&&void 0===o)throw new Error('ObjectId must be passed to putStream for file encryption');null!==l&&(s=be.encryptor(o,0));var a={};!0===n&&(n=['FlateEncode']);var c=t.additionalKeyValues||[],u=(a=void 0!==uw.API.processDataByFilters?uw.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(A)?A.join(' '):A.toString());if(0!==a.data.length&&(c.push({key:'Length',value:a.data.length}),!0===r&&c.push({key:'Length1',value:i})),0!=u.length)if(u.split('/').length-1==1)c.push({key:'Filter',value:u});else{c.push({key:'Filter',value:'['+u+']'});for(var h=0;h<c.length;h+=1)if('DecodeParms'===c[h].key){for(var d=[],f=0;f<a.reverseChain.split('/').length-1;f+=1)d.push('null');d.push(c[h].value),c[h].value='['+d.join(' ')+']'}}q('<<');for(var g=0;g<c.length;g++)q('/'+c[g].key+' '+c[g].value);q('>>'),0!==a.data.length&&(q('stream'),q(s(a.data)),q('endstream'))},Wt=d.__private__.putPage=function(t){var e=t.number,n=t.data,A=t.objId,r=t.contentsObjId;Mt(A,!0),q('<</Type /Page'),q('/Parent '+t.rootDictionaryObjId+' 0 R'),q('/Resources '+t.resourceDictionaryObjId+' 0 R'),q('/MediaBox ['+parseFloat(x(t.mediaBox.bottomLeftX))+' '+parseFloat(x(t.mediaBox.bottomLeftY))+' '+x(t.mediaBox.topRightX)+' '+x(t.mediaBox.topRightY)+']'),null!==t.cropBox&&q('/CropBox ['+x(t.cropBox.bottomLeftX)+' '+x(t.cropBox.bottomLeftY)+' '+x(t.cropBox.topRightX)+' '+x(t.cropBox.topRightY)+']'),null!==t.bleedBox&&q('/BleedBox ['+x(t.bleedBox.bottomLeftX)+' '+x(t.bleedBox.bottomLeftY)+' '+x(t.bleedBox.topRightX)+' '+x(t.bleedBox.topRightY)+']'),null!==t.trimBox&&q('/TrimBox ['+x(t.trimBox.bottomLeftX)+' '+x(t.trimBox.bottomLeftY)+' '+x(t.trimBox.topRightX)+' '+x(t.trimBox.topRightY)+']'),null!==t.artBox&&q('/ArtBox ['+x(t.artBox.bottomLeftX)+' '+x(t.artBox.bottomLeftY)+' '+x(t.artBox.topRightX)+' '+x(t.artBox.topRightY)+']'),'number'==typeof t.userUnit&&1!==t.userUnit&&q('/UserUnit '+t.userUnit),It.publish('putPage',{objId:A,pageContext:Ft[e],pageNumber:e,page:n}),q('/Contents '+r+' 0 R'),q('>>'),q('endobj');var i=n.join('\n');return y===v&&(i+='\nQ'),Mt(r,!0),jt({data:i,filters:Gt(),objectId:r}),q('endobj'),A},Kt=d.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=xt;t++)Ft[t].objId=Ot(),Ft[t].contentsObjId=Ot();for(t=1;t<=xt;t++)n.push(Wt({number:t,data:X[t],objId:Ft[t].objId,contentsObjId:Ft[t].contentsObjId,mediaBox:Ft[t].mediaBox,cropBox:Ft[t].cropBox,bleedBox:Ft[t].bleedBox,trimBox:Ft[t].trimBox,artBox:Ft[t].artBox,userUnit:Ft[t].userUnit,rootDictionaryObjId:Tt,resourceDictionaryObjId:Dt}));Mt(Tt,!0),q('<</Type /Pages');var A='/Kids [';for(e=0;e<xt;e++)A+=n[e]+' 0 R ';q(A+']'),q('/Count '+xt),q('>>'),q('endobj'),It.publish('postPutPages')},Xt=function(t){It.publish('putFont',{font:t,out:q,newObject:Pt,putStream:jt}),!0!==t.isAlreadyPutted&&(t.objectNumber=Pt(),q('<<'),q('/Type /Font'),q('/BaseFont /'+iw(t.postScriptName)),q('/Subtype /Type1'),'string'==typeof t.encoding&&q('/Encoding /'+t.encoding),q('/FirstChar 32'),q('/LastChar 255'),q('>>'),q('endobj'))},zt=function(t){t.objectNumber=Pt();var e=[];e.push({key:'Type',value:'/XObject'}),e.push({key:'Subtype',value:'/Form'}),e.push({key:'BBox',value:'['+[x(t.x),x(t.y),x(t.x+t.width),x(t.y+t.height)].join(' ')+']'}),e.push({key:'Matrix',value:'['+t.matrix.toString()+']'});var n=t.pages[1].join('\n');jt({data:n,additionalKeyValues:e,objectId:t.objectNumber}),q('endobj')},Zt=function(t,e){e||(e=21);var n=Pt(),A=function(t,e){var n,A=[],r=1/(e-1);for(n=0;n<1;n+=r)A.push(n);if(A.push(1),0!=t[0].offset){var i={offset:0,color:t[0].color};t.unshift(i)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s='',a=0,c=0;c<A.length;c++){for(n=A[c];n>t[a+1].offset;)a++;var l=t[a].offset,u=(n-l)/(t[a+1].offset-l),h=t[a].color,d=t[a+1].color;s+=R(Math.round((1-u)*h[0]+u*d[0]).toString(16))+R(Math.round((1-u)*h[1]+u*d[1]).toString(16))+R(Math.round((1-u)*h[2]+u*d[2]).toString(16))}return s.trim()}(t.colors,e),r=[];r.push({key:'FunctionType',value:'0'}),r.push({key:'Domain',value:'[0.0 1.0]'}),r.push({key:'Size',value:'['+e+']'}),r.push({key:'BitsPerSample',value:'8'}),r.push({key:'Range',value:'[0.0 1.0 0.0 1.0 0.0 1.0]'}),r.push({key:'Decode',value:'[0.0 1.0 0.0 1.0 0.0 1.0]'}),jt({data:A,additionalKeyValues:r,alreadyAppliedFilters:['/ASCIIHexDecode'],objectId:n}),q('endobj'),t.objectNumber=Pt(),q('<< /ShadingType '+t.type),q('/ColorSpace /DeviceRGB');var i='/Coords ['+x(parseFloat(t.coords[0]))+' '+x(parseFloat(t.coords[1]))+' ';2===t.type?i+=x(parseFloat(t.coords[2]))+' '+x(parseFloat(t.coords[3])):i+=x(parseFloat(t.coords[2]))+' '+x(parseFloat(t.coords[3]))+' '+x(parseFloat(t.coords[4]))+' '+x(parseFloat(t.coords[5])),q(i+=']'),t.matrix&&q('/Matrix ['+t.matrix.toString()+']'),q('/Function '+n+' 0 R'),q('/Extend [true true]'),q('>>'),q('endobj')},Yt=function(t,e){var n=Ot(),A=Pt();e.push({resourcesOid:n,objectOid:A}),t.objectNumber=A;var r=[];r.push({key:'Type',value:'/Pattern'}),r.push({key:'PatternType',value:'1'}),r.push({key:'PaintType',value:'1'}),r.push({key:'TilingType',value:'1'}),r.push({key:'BBox',value:'['+t.boundingBox.map(x).join(' ')+']'}),r.push({key:'XStep',value:x(t.xStep)}),r.push({key:'YStep',value:x(t.yStep)}),r.push({key:'Resources',value:n+' 0 R'}),t.matrix&&r.push({key:'Matrix',value:'['+t.matrix.toString()+']'}),jt({data:t.stream,additionalKeyValues:r,objectId:t.objectNumber}),q('endobj')},qt=function(t){for(var e in t.objectNumber=Pt(),q('<<'),t)switch(e){case'opacity':q('/ca '+Q(t[e]));break;case'stroke-opacity':q('/CA '+Q(t[e]))}q('>>'),q('endobj')},Jt=function(t){Mt(t.resourcesOid,!0),q('<<'),q('/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]'),function(){for(var t in q('/Font <<'),pt)pt.hasOwnProperty(t)&&(!1===u||!0===u&&h.hasOwnProperty(t))&&q('/'+t+' '+pt[t].objectNumber+' 0 R');q('>>')}(),function(){if(Object.keys(vt).length>0){for(var t in q('/Shading <<'),vt)vt.hasOwnProperty(t)&&vt[t]instanceof cw&&vt[t].objectNumber>=0&&q('/'+t+' '+vt[t].objectNumber+' 0 R');It.publish('putShadingPatternDict'),q('>>')}}(),function(t){if(Object.keys(vt).length>0){for(var e in q('/Pattern <<'),vt)vt.hasOwnProperty(e)&&vt[e]instanceof d.TilingPattern&&vt[e].objectNumber>=0&&vt[e].objectNumber<t&&q('/'+e+' '+vt[e].objectNumber+' 0 R');It.publish('putTilingPatternDict'),q('>>')}}(t.objectOid),function(){if(Object.keys(wt).length>0){var t;for(t in q('/ExtGState <<'),wt)wt.hasOwnProperty(t)&&wt[t].objectNumber>=0&&q('/'+t+' '+wt[t].objectNumber+' 0 R');It.publish('putGStateDict'),q('>>')}}(),function(){for(var t in q('/XObject <<'),Et)Et.hasOwnProperty(t)&&Et[t].objectNumber>=0&&q('/'+t+' '+Et[t].objectNumber+' 0 R');It.publish('putXobjectDict'),q('>>')}(),q('>>'),q('endobj')},$t=function(){var t=[];(function(){for(var t in pt)pt.hasOwnProperty(t)&&(!1===u||!0===u&&h.hasOwnProperty(t))&&Xt(pt[t])})(),function(){var t;for(t in wt)wt.hasOwnProperty(t)&&qt(wt[t])}(),function(){for(var t in Et)Et.hasOwnProperty(t)&&zt(Et[t])}(),function(t){var e;for(e in vt)vt.hasOwnProperty(e)&&(vt[e]instanceof cw?Zt(vt[e]):vt[e]instanceof lw&&Yt(vt[e],t))}(t),It.publish('putResources'),t.forEach(Jt),Jt({resourcesOid:Dt,objectOid:Number.MAX_SAFE_INTEGER}),It.publish('postPutResources')},te=function(t){mt[t.fontName]=mt[t.fontName]||{},mt[t.fontName][t.fontStyle]=t.id},ee=function(t,e,n,A,r){var i={id:'F'+(Object.keys(pt).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:A,isStandardFont:r||!1,metadata:{}};return It.publish('addFont',{font:i,instance:this}),pt[i.id]=i,te(i),i.id},ne=d.__private__.pdfEscape=d.pdfEscape=function(t,e){return function(t,e){var n,A,r,i,o,s,a,c,l;if(r=(e=e||{}).sourceEncoding||'Unicode',o=e.outputEncoding,(e.autoencode||o)&&pt[ut].metadata&&pt[ut].metadata[r]&&pt[ut].metadata[r].encoding&&(i=pt[ut].metadata[r].encoding,!o&&pt[ut].encoding&&(o=pt[ut].encoding),!o&&i.codePages&&(o=i.codePages[0]),'string'==typeof o&&(o=i[o]),o)){for(a=!1,s=[],n=0,A=t.length;n<A;n++)(c=o[t.charCodeAt(n)])?s.push(String.fromCharCode(c)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(a=!0);t=s.join('')}for(n=t.length;void 0===a&&0!==n;)t.charCodeAt(n-1)>>8&&(a=!0),n--;if(!a)return t;for(s=e.noBOM?[]:[254,255],n=0,A=t.length;n<A;n++){if((l=(c=t.charCodeAt(n))>>8)>>8)throw new Error('Character at position '+n+' of string \''+t+'\' exceeds 16bits. Cannot be encoded into UCS-2 BE');s.push(l),s.push(c-(l<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,'\\\\').replace(/\(/g,'\\(').replace(/\)/g,'\\)')},Ae=d.__private__.beginPage=function(t){X[++xt]=[],Ft[xt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},oe(xt),Y(X[T])},re=function(t,e){var A,i,o;switch(n=e||n,'string'==typeof t&&(A=m(t.toLowerCase()),Array.isArray(A)&&(i=A[0],o=A[1])),Array.isArray(t)&&(i=t[0]*ht,o=t[1]*ht),isNaN(i)&&(i=r[0],o=r[1]),(i>14400||o>14400)&&(_y.warn('A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400'),i=Math.min(14400,i),o=Math.min(14400,o)),r=[i,o],n.substr(0,1)){case'l':o>i&&(r=[o,i]);break;case'p':i>o&&(r=[o,i])}Ae(r),He(Oe),q(Ke),0!==Je&&q(Je+' J'),0!==$e&&q($e+' j'),It.publish('addPage',{pageNumber:xt})},ie=function(t){t>0&&t<=xt&&(X.splice(t,1),Ft.splice(t,1),xt--,T>xt&&(T=xt),this.setPage(T))},oe=function(t){t>0&&t<=xt&&(T=t)},se=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return X.length-1},ae=function(t,e,n){var A,r=void 0;return n=n||{},t=void 0!==t?t:pt[ut].fontName,e=void 0!==e?e:pt[ut].fontStyle,A=t.toLowerCase(),void 0!==mt[A]&&void 0!==mt[A][e]?r=mt[A][e]:void 0!==mt[t]&&void 0!==mt[t][e]?r=mt[t][e]:!1===n.disableWarning&&_y.warn('Unable to look up font label for font \''+t+'\', \''+e+'\'. Refer to getFontList() for available fonts.'),r||n.noFallback||null==(r=mt.times[e])&&(r=mt.times.normal),r},ce=d.__private__.putInfo=function(){var t=Pt(),e=function(t){return t};for(var n in null!==l&&(e=be.encryptor(t,0)),q('<<'),q('/Producer ('+ne(e('jsPDF '+uw.version))+')'),lt)lt.hasOwnProperty(n)&&lt[n]&&q('/'+n.substr(0,1).toUpperCase()+n.substr(1)+' ('+ne(e(lt[n]))+')');q('/CreationDate ('+ne(e(L))+')'),q('>>'),q('endobj')},le=d.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Tt;switch(Pt(),q('<<'),q('/Type /Catalog'),q('/Pages '+e+' 0 R'),nt||(nt='fullwidth'),nt){case'fullwidth':q('/OpenAction [3 0 R /FitH null]');break;case'fullheight':q('/OpenAction [3 0 R /FitV null]');break;case'fullpage':q('/OpenAction [3 0 R /Fit]');break;case'original':q('/OpenAction [3 0 R /XYZ null null 1]');break;default:var n=''+nt;'%'===n.substr(n.length-1)&&(nt=parseInt(nt)/100),'number'==typeof nt&&q('/OpenAction [3 0 R /XYZ null null '+Q(nt)+']')}switch(st||(st='continuous'),st){case'continuous':q('/PageLayout /OneColumn');break;case'single':q('/PageLayout /SinglePage');break;case'two':case'twoleft':q('/PageLayout /TwoColumnLeft');break;case'tworight':q('/PageLayout /TwoColumnRight')}it&&q('/PageMode /'+it),It.publish('putCatalog'),q('>>'),q('endobj')},ue=d.__private__.putTrailer=function(){q('trailer'),q('<<'),q('/Size '+(V+1)),q('/Root '+V+' 0 R'),q('/Info '+(V-1)+' 0 R'),null!==l&&q('/Encrypt '+be.oid+' 0 R'),q('/ID [ <'+N+'> <'+N+'> ]'),q('>>')},he=d.__private__.putHeader=function(){q('%PDF-'+f),q('%ºß¬à')},de=d.__private__.putXRef=function(){var t='0000000000';q('xref'),q('0 '+(V+1)),q('0000000000 65535 f ');for(var e=1;e<=V;e++)'function'==typeof G[e]?q((t+G[e]()).slice(-10)+' 00000 n '):void 0!==G[e]?q((t+G[e]).slice(-10)+' 00000 n '):q('0000000000 00000 n ')},fe=d.__private__.buildDocument=function(){V=0,W=0,j=[],G=[],K=[],Tt=Ot(),Dt=Ot(),Y(j),It.publish('buildDocument'),he(),Kt(),function(){It.publish('putAdditionalObjects');for(var t=0;t<K.length;t++){var e=K[t];Mt(e.objId,!0),q(e.content),q('endobj')}It.publish('postPutAdditionalObjects')}(),$t(),null!==l&&(be.oid=Pt(),q('<<'),q('/Filter /Standard'),q('/V '+be.v),q('/R '+be.r),q('/U <'+be.toHexString(be.U)+'>'),q('/O <'+be.toHexString(be.O)+'>'),q('/P '+be.P),q('>>'),q('endobj')),ce(),le();var t=W;return de(),ue(),q('startxref'),q(''+t),q('%%EOF'),Y(X[T]),j.join('\n')},ge=d.__private__.getBlob=function(t){return new Blob([$(t)],{type:'application/pdf'})},pe=d.output=d.__private__.output=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var e=t.stack||'';~e.indexOf(' at ')&&(e=e.split(' at ')[1]);var n='Error in function '+e.split('\n')[0].split('<')[0]+': '+t.message;if(!Ny.console)throw new Error(n);Ny.console.error(n,t),Ny.alert&&alert(n)}},t.foo.bar=t,t.foo}((function(t,e){switch('string'==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||'generated.pdf',t){case void 0:return fe();case'save':d.save(e.filename);break;case'arraybuffer':return $(fe());case'blob':return ge(fe());case'bloburi':case'bloburl':if(void 0!==Ny.URL&&'function'==typeof Ny.URL.createObjectURL)return Ny.URL&&Ny.URL.createObjectURL(ge(fe()))||void 0;_y.warn('bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.');break;case'datauristring':case'dataurlstring':var n='',A=fe();try{n=Ty(A)}catch(t){n=Ty(unescape(encodeURIComponent(A)))}return'data:application/pdf;filename='+e.filename+';base64,'+n;case'pdfobjectnewwindow':if('[object Window]'===Object.prototype.toString.call(Ny)){var r='https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js',i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(r=e.pdfObjectUrl,i='');var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+r+'"'+i+'><\/script><script >PDFObject.embed("'+this.output('dataurlstring')+'", '+JSON.stringify(e)+');<\/script></body></html>',s=Ny.open();return null!==s&&s.document.write(o),s}throw new Error('The option pdfobjectnewwindow just works in a browser-environment.');case'pdfjsnewwindow':if('[object Window]'===Object.prototype.toString.call(Ny)){var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||'examples/PDF.js/web/viewer.html')+'?file=&downloadName='+e.filename+'" width="500px" height="400px" /></body></html>',c=Ny.open();if(null!==c){c.document.write(a);var l=this;c.document.documentElement.querySelector('#pdfViewer').onload=function(){c.document.title=e.filename,c.document.documentElement.querySelector('#pdfViewer').contentWindow.PDFViewerApplication.open(l.output('bloburl'))}}return c}throw new Error('The option pdfjsnewwindow just works in a browser-environment.');case'dataurlnewwindow':if('[object Window]'!==Object.prototype.toString.call(Ny))throw new Error('The option dataurlnewwindow just works in a browser-environment.');var u='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output('datauristring',e)+'"></iframe></body></html>',h=Ny.open();if(null!==h&&(h.document.write(u),h.document.title=e.filename),h||'undefined'==typeof safari)return h;break;case'datauri':case'dataurl':return Ny.document.location.href=this.output('datauristring',e);default:return null}})),me=function(t){return!0===Array.isArray(Qt)&&Qt.indexOf(t)>-1};switch(A){case'pt':ht=1;break;case'mm':ht=72/25.4;break;case'cm':ht=72/2.54;break;case'in':ht=72;break;case'px':ht=1==me('px_scaling')?.75:96/72;break;case'pc':case'em':ht=12;break;case'ex':ht=6;break;default:if('number'!=typeof A)throw new Error('Invalid unit: '+A);ht=A}var be=null;M(),_();var ve=d.__private__.getPageInfo=d.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error('Invalid argument passed to jsPDF.getPageInfo');return{objId:Ft[t].objId,pageNumber:t,pageContext:Ft[t]}},ye=d.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error('Invalid argument passed to jsPDF.getPageInfoByObjId');for(var e in Ft)if(Ft[e].objId===t)break;return ve(e)},we=d.__private__.getCurrentPageInfo=d.getCurrentPageInfo=function(){return{objId:Ft[T].objId,pageNumber:T,pageContext:Ft[T]}};d.addPage=function(){return re.apply(this,arguments),this},d.setPage=function(){return oe.apply(this,arguments),Y.call(this,X[T]),this},d.insertPage=function(t){return this.addPage(),this.movePage(T,t),this},d.movePage=function(t,e){var n,A;if(t>e){n=X[t],A=Ft[t];for(var r=t;r>e;r--)X[r]=X[r-1],Ft[r]=Ft[r-1];X[e]=n,Ft[e]=A,this.setPage(e)}else if(t<e){n=X[t],A=Ft[t];for(var i=t;i<e;i++)X[i]=X[i+1],Ft[i]=Ft[i+1];X[e]=n,Ft[e]=A,this.setPage(e)}return this},d.deletePage=function(){return ie.apply(this,arguments),this},d.__private__.text=d.text=function(t,e,n,A,r){var i,o,s,a,c,l,u,d,f,g=(A=A||{}).scope||this;if('number'==typeof t&&'number'==typeof e&&('string'==typeof n||Array.isArray(n))){var p=n;n=e,e=t,t=p}if(arguments[3]instanceof Lt==0?(s=arguments[4],a=arguments[5],'object'===jv(u=arguments[3])&&null!==u||('string'==typeof s&&(a=s,s=null),'string'==typeof u&&(a=u,u=null),'number'==typeof u&&(s=u,u=null),A={flags:u,angle:s,align:a})):(F('The transform parameter of text() with a Matrix value'),f=r),isNaN(e)||isNaN(n)||null==t)throw new Error('Invalid arguments passed to jsPDF.text');if(0===t.length)return g;var m,b='',w='number'==typeof A.lineHeightFactor?A.lineHeightFactor:Pe,B=g.internal.scaleFactor;function C(t){return t=t.split('\t').join(Array(A.TabLen||9).join(' ')),ne(t,u)}function I(t){for(var e,n=t.concat(),A=[],r=n.length;r--;)'string'==typeof(e=n.shift())?A.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?A.push(e[0]):A.push([e[0],e[1],e[2]]);return A}function Q(t,e){var n;if('string'==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var A,r,i=t.concat(),o=[],s=i.length;s--;)'string'==typeof(A=i.shift())?o.push(e(A)[0]):Array.isArray(A)&&'string'==typeof A[0]&&(r=e(A[0],A[1],A[2]),o.push([r[0],r[1],r[2]]));n=o}return n}var E=!1,U=!0;if('string'==typeof t)E=!0;else if(Array.isArray(t)){var L=t.concat();o=[];for(var N,k=L.length;k--;)('string'!=typeof(N=L.shift())||Array.isArray(N)&&'string'!=typeof N[0])&&(U=!1);E=U}if(!1===E)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');'string'==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var _=et/g.internal.scaleFactor,P=_*(w-1);switch(A.baseline){case'bottom':n-=P;break;case'top':n+=_-P;break;case'hanging':n+=_-2*P;break;case'middle':n+=_/2-P}if((l=A.maxWidth||0)>0&&('string'==typeof t?t=g.splitTextToSize(t,l):'[object Array]'===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(g.splitTextToSize(e,l))}),[]))),i={text:t,x:e,y:n,options:A,mutex:{pdfEscape:ne,activeFontKey:ut,fonts:pt,activeFontSize:et}},It.publish('preProcessText',i),t=i.text,s=(A=i.options).angle,f instanceof Lt==0&&s&&'number'==typeof s){s*=Math.PI/180,0===A.rotationDirection&&(s=-s),y===v&&(s=-s);var O=Math.cos(s),M=Math.sin(s);f=new Lt(O,M,-M,O,0,0)}else s&&s instanceof Lt&&(f=s);y!==v||f||(f=kt),void 0!==(c=A.charSpace||Ye)&&(b+=x(S(c))+' Tc\n',this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=A.horizontalScale)&&(b+=x(100*d)+' Tz\n'),A.lang;var H=-1,T=void 0!==A.renderingMode?A.renderingMode:A.stroke,D=g.internal.getCurrentPageInfo().pageContext;switch(T){case 0:case!1:case'fill':H=0;break;case 1:case!0:case'stroke':H=1;break;case 2:case'fillThenStroke':H=2;break;case 3:case'invisible':H=3;break;case 4:case'fillAndAddForClipping':H=4;break;case 5:case'strokeAndAddPathForClipping':H=5;break;case 6:case'fillThenStrokeAndAddToPathForClipping':H=6;break;case 7:case'addToPathForClipping':H=7}var R=void 0!==D.usedRenderingMode?D.usedRenderingMode:-1;-1!==H?b+=H+' Tr\n':-1!==R&&(b+='0 Tr\n'),-1!==H&&(D.usedRenderingMode=H),a=A.align||'left';var V,G=et*w,j=g.internal.pageSize.getWidth(),W=pt[ut];c=A.charSpace||Ye,l=A.maxWidth||0,u=Object.assign({autoencode:!0,noBOM:!0},A.flags);var K=[];if('[object Array]'===Object.prototype.toString.call(t)){var X;o=I(t),'left'!==a&&(V=o.map((function(t){return g.getStringUnitWidth(t,{font:W,charSpace:c,fontSize:et,doKerning:!1})*et/B})));var z,Z=0;if('right'===a){e-=V[0],t=[],k=o.length;for(var Y=0;Y<k;Y++)0===Y?(z=Ve(e),X=Ge(n)):(z=S(Z-V[Y]),X=-G),t.push([o[Y],z,X]),Z=V[Y]}else if('center'===a){e-=V[0]/2,t=[],k=o.length;for(var J=0;J<k;J++)0===J?(z=Ve(e),X=Ge(n)):(z=S((Z-V[J])/2),X=-G),t.push([o[J],z,X]),Z=V[J]}else if('left'===a){t=[],k=o.length;for(var $=0;$<k;$++)t.push(o[$])}else{if('justify'!==a)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],k=o.length,l=0!==l?l:j;for(var tt=0;tt<k;tt++)X=0===tt?Ge(n):-G,z=0===tt?Ve(e):0,tt<k-1?K.push(x(S((l-V[tt])/(o[tt].split(' ').length-1)))):K.push(0),t.push([o[tt],z,X])}}!0===('boolean'==typeof A.R2L?A.R2L:rt)&&(t=Q(t,(function(t,e,n){return[t.split('').reverse().join(''),e,n]}))),i={text:t,x:e,y:n,options:A,mutex:{pdfEscape:ne,activeFontKey:ut,fonts:pt,activeFontSize:et}},It.publish('postProcessText',i),t=i.text,m=i.mutex.isHex||!1;var nt=pt[ut].encoding;'WinAnsiEncoding'!==nt&&'StandardEncoding'!==nt||(t=Q(t,(function(t,e,n){return[C(t),e,n]}))),o=I(t),t=[];for(var At,it,ot,st=Array.isArray(o[0])?1:0,at='',ct=function(t,e,n){var r='';return n instanceof Lt?(n='number'==typeof A.angle?Nt(n,new Lt(1,0,0,1,t,e)):Nt(new Lt(1,0,0,1,t,e),n),y===v&&(n=Nt(new Lt(1,0,0,-1,0,0),n)),r=n.join(' ')+' Tm\n'):r=x(t)+' '+x(e)+' Td\n',r},lt=0;lt<o.length;lt++){switch(at='',st){case 1:ot=(m?'<':'(')+o[lt][0]+(m?'>':')'),At=parseFloat(o[lt][1]),it=parseFloat(o[lt][2]);break;case 0:ot=(m?'<':'(')+o[lt]+(m?'>':')'),At=Ve(e),it=Ge(n)}void 0!==K&&void 0!==K[lt]&&(at=K[lt]+' Tw\n'),0===lt?t.push(at+ct(At,it,f)+ot):0===st?t.push(at+ot):1===st&&t.push(at+ct(At,it,f)+ot)}t=0===st?t.join(' Tj\nT* '):t.join(' Tj\n'),t+=' Tj\n';var ht='BT\n/';return ht+=ut+' '+et+' Tf\n',ht+=x(et*w)+' TL\n',ht+=ze+'\n',ht+=b,ht+=t,q(ht+='ET'),h[ut]=!0,g};var Be=d.__private__.clip=d.clip=function(t){return q('evenodd'===t?'W*':'W'),this};d.clipEvenOdd=function(){return Be('evenodd')},d.__private__.discardPath=d.discardPath=function(){return q('n'),this};var Ce=d.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,'S','D','F','DF','FD','f','f*','B','B*','n'].indexOf(t)&&(e=!0),e};d.__private__.setDefaultPathOperation=d.setDefaultPathOperation=function(t){return Ce(t)&&(c=t),this};var xe=d.__private__.getStyle=d.getStyle=function(t){var e=c;switch(t){case'D':case'S':e='S';break;case'F':e='f';break;case'FD':case'DF':e='B';break;case'f':case'f*':case'B':case'B*':e=t}return e},Fe=d.close=function(){return q('h'),this};d.stroke=function(){return q('S'),this},d.fill=function(t){return Ie('f',t),this},d.fillEvenOdd=function(t){return Ie('f*',t),this},d.fillStroke=function(t){return Ie('B',t),this},d.fillStrokeEvenOdd=function(t){return Ie('B*',t),this};var Ie=function(t,e){'object'===jv(e)?Se(e,t):q(t)},Qe=function(t){null===t||y===v&&void 0===t||(t=xe(t),q(t))};function Ee(t,e,n,A,r){var i=new lw(e||this.boundingBox,n||this.xStep,A||this.yStep,this.gState,r||this.matrix);i.stream=this.stream;var o=t+'$$'+this.cloneIndex+++'$$';return _t(o,i),i}var Se=function(t,e){var n=yt[t.key],A=vt[n];if(A instanceof cw)q('q'),q(Ue(e)),A.gState&&d.setGState(A.gState),q(t.matrix.toString()+' cm'),q('/'+n+' sh'),q('Q');else if(A instanceof lw){var r=new Lt(1,0,0,-1,0,cn());t.matrix&&(r=r.multiply(t.matrix||kt),n=Ee.call(A,t.key,t.boundingBox,t.xStep,t.yStep,r).id),q('q'),q('/Pattern cs'),q('/'+n+' scn'),A.gState&&d.setGState(A.gState),q(e),q('Q')}},Ue=function(t){switch(t){case'f':case'F':case'n':return'W n';case'f*':return'W* n';case'B':case'S':return'W S';case'B*':return'W* S'}},Le=d.moveTo=function(t,e){return q(x(S(t))+' '+x(U(e))+' m'),this},Ne=d.lineTo=function(t,e){return q(x(S(t))+' '+x(U(e))+' l'),this},ke=d.curveTo=function(t,e,n,A,r,i){return q([x(S(t)),x(U(e)),x(S(n)),x(U(A)),x(S(r)),x(U(i)),'c'].join(' ')),this};d.__private__.line=d.line=function(t,e,n,A,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A)||!Ce(r))throw new Error('Invalid arguments passed to jsPDF.line');return y===b?this.lines([[n-t,A-e]],t,e,[1,1],r||'S'):this.lines([[n-t,A-e]],t,e,[1,1]).stroke()},d.__private__.lines=d.lines=function(t,e,n,A,r,i){var o,s,a,c,l,u,h,d,f,g,p,m;if('number'==typeof t&&(m=n,n=e,e=t,t=m),A=A||[1,1],i=i||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(A)||!Ce(r)||'boolean'!=typeof i)throw new Error('Invalid arguments passed to jsPDF.lines');for(Le(e,n),o=A[0],s=A[1],c=t.length,g=e,p=n,a=0;a<c;a++)2===(l=t[a]).length?(g=l[0]*o+g,p=l[1]*s+p,Ne(g,p)):(u=l[0]*o+g,h=l[1]*s+p,d=l[2]*o+g,f=l[3]*s+p,g=l[4]*o+g,p=l[5]*s+p,ke(u,h,d,f,g,p));return i&&Fe(),Qe(r),this},d.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],A=n.c;switch(n.op){case'm':Le(A[0],A[1]);break;case'l':Ne(A[0],A[1]);break;case'c':ke.apply(this,A);break;case'h':Fe()}}return this},d.__private__.rect=d.rect=function(t,e,n,A,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A)||!Ce(r))throw new Error('Invalid arguments passed to jsPDF.rect');return y===b&&(A=-A),q([x(S(t)),x(U(e)),x(S(n)),x(S(A)),'re'].join(' ')),Qe(r),this},d.__private__.triangle=d.triangle=function(t,e,n,A,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A)||isNaN(r)||isNaN(i)||!Ce(o))throw new Error('Invalid arguments passed to jsPDF.triangle');return this.lines([[n-t,A-e],[r-n,i-A],[t-r,e-i]],t,e,[1,1],o,!0),this},d.__private__.roundedRect=d.roundedRect=function(t,e,n,A,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A)||isNaN(r)||isNaN(i)||!Ce(o))throw new Error('Invalid arguments passed to jsPDF.roundedRect');var s=4/3*(Math.SQRT2-1);return r=Math.min(r,.5*n),i=Math.min(i,.5*A),this.lines([[n-2*r,0],[r*s,0,r,i-i*s,r,i],[0,A-2*i],[0,i*s,-r*s,i,-r,i],[2*r-n,0],[-r*s,0,-r,-i*s,-r,-i],[0,2*i-A],[0,-i*s,r*s,-i,r,-i]],t+r,e,[1,1],o,!0),this},d.__private__.ellipse=d.ellipse=function(t,e,n,A,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A)||!Ce(r))throw new Error('Invalid arguments passed to jsPDF.ellipse');var i=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*A;return Le(t+n,e),ke(t+n,e-o,t+i,e-A,t,e-A),ke(t-i,e-A,t-n,e-o,t-n,e),ke(t-n,e+o,t-i,e+A,t,e+A),ke(t+i,e+A,t+n,e+o,t+n,e),Qe(r),this},d.__private__.circle=d.circle=function(t,e,n,A){if(isNaN(t)||isNaN(e)||isNaN(n)||!Ce(A))throw new Error('Invalid arguments passed to jsPDF.circle');return this.ellipse(t,e,n,n,A)},d.setFont=function(t,e,n){return n&&(e=C(e,n)),ut=ae(t,e,{disableWarning:!1}),this};var _e=d.__private__.getFont=d.getFont=function(){return pt[ae.apply(d,arguments)]};d.__private__.getFontList=d.getFontList=function(){var t,e,n={};for(t in mt)if(mt.hasOwnProperty(t))for(e in n[t]=[],mt[t])mt[t].hasOwnProperty(e)&&n[t].push(e);return n},d.addFont=function(t,e,n,A,r){var i=['StandardEncoding','MacRomanEncoding','Identity-H','WinAnsiEncoding'];return arguments[3]&&-1!==i.indexOf(arguments[3])?r=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(n=C(n,A)),ee.call(this,t,e,n,r=r||'Identity-H')};var Pe,Oe=t.lineWidth||.200025,Me=d.__private__.getLineWidth=d.getLineWidth=function(){return Oe},He=d.__private__.setLineWidth=d.setLineWidth=function(t){return Oe=t,q(x(S(t))+' w'),this};d.__private__.setLineDash=uw.API.setLineDash=uw.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error('Invalid arguments passed to jsPDF.setLineDash');return t=t.map((function(t){return x(S(t))})).join(' '),e=x(S(e)),q('['+t+'] '+e+' d'),this};var Te=d.__private__.getLineHeight=d.getLineHeight=function(){return et*Pe};d.__private__.getLineHeight=d.getLineHeight=function(){return et*Pe};var De=d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(t){return'number'==typeof(t=t||1.15)&&(Pe=t),this},Re=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return Pe};De(t.lineHeight);var Ve=d.__private__.getHorizontalCoordinate=function(t){return S(t)},Ge=d.__private__.getVerticalCoordinate=function(t){return y===v?t:Ft[T].mediaBox.topRightY-Ft[T].mediaBox.bottomLeftY-S(t)},je=d.__private__.getHorizontalCoordinateString=d.getHorizontalCoordinateString=function(t){return x(Ve(t))},We=d.__private__.getVerticalCoordinateString=d.getVerticalCoordinateString=function(t){return x(Ge(t))},Ke=t.strokeColor||'0 G';d.__private__.getStrokeColor=d.getDrawColor=function(){return Rt(Ke)},d.__private__.setStrokeColor=d.setDrawColor=function(t,e,n,A){return Ke=Vt({ch1:t,ch2:e,ch3:n,ch4:A,pdfColorType:'draw',precision:2}),q(Ke),this};var Xe=t.fillColor||'0 g';d.__private__.getFillColor=d.getFillColor=function(){return Rt(Xe)},d.__private__.setFillColor=d.setFillColor=function(t,e,n,A){return Xe=Vt({ch1:t,ch2:e,ch3:n,ch4:A,pdfColorType:'fill',precision:2}),q(Xe),this};var ze=t.textColor||'0 g',Ze=d.__private__.getTextColor=d.getTextColor=function(){return Rt(ze)};d.__private__.setTextColor=d.setTextColor=function(t,e,n,A){return ze=Vt({ch1:t,ch2:e,ch3:n,ch4:A,pdfColorType:'text',precision:3}),this};var Ye=t.charSpace,qe=d.__private__.getCharSpace=d.getCharSpace=function(){return parseFloat(Ye||0)};d.__private__.setCharSpace=d.setCharSpace=function(t){if(isNaN(t))throw new Error('Invalid argument passed to jsPDF.setCharSpace');return Ye=t,this};var Je=0;d.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},d.__private__.setLineCap=d.setLineCap=function(t){var e=d.CapJoinStyles[t];if(void 0===e)throw new Error('Line cap style of \''+t+'\' is not recognized. See or extend .CapJoinStyles property for valid styles');return Je=e,q(e+' J'),this};var $e=0;d.__private__.setLineJoin=d.setLineJoin=function(t){var e=d.CapJoinStyles[t];if(void 0===e)throw new Error('Line join style of \''+t+'\' is not recognized. See or extend .CapJoinStyles property for valid styles');return $e=e,q(e+' j'),this},d.__private__.setLineMiterLimit=d.__private__.setMiterLimit=d.setLineMiterLimit=d.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error('Invalid argument passed to jsPDF.setLineMiterLimit');return q(x(S(t))+' M'),this},d.GState=sw,d.setGState=function(t){(t='string'==typeof t?wt[Bt[t]]:tn(null,t)).equals(Ct)||(q('/'+t.id+' gs'),Ct=t)};var tn=function(t,e){if(!t||!Bt[t]){var n=!1;for(var A in wt)if(wt.hasOwnProperty(A)&&wt[A].equals(e)){n=!0;break}if(n)e=wt[A];else{var r='GS'+(Object.keys(wt).length+1).toString(10);wt[r]=e,e.id=r}return t&&(Bt[t]=e.id),It.publish('addGState',e),e}};d.addGState=function(t,e){return tn(t,e),this},d.saveGraphicsState=function(){return q('q'),bt.push({key:ut,size:et,color:ze}),this},d.restoreGraphicsState=function(){q('Q');var t=bt.pop();return ut=t.key,et=t.size,ze=t.color,Ct=null,this},d.setCurrentTransformationMatrix=function(t){return q(t.toString()+' cm'),this},d.comment=function(t){return q('#'+t),this};var en=function(t,e){var n=t||0;Object.defineProperty(this,'x',{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var A=e||0;Object.defineProperty(this,'y',{enumerable:!0,get:function(){return A},set:function(t){isNaN(t)||(A=parseFloat(t))}});var r='pt';return Object.defineProperty(this,'type',{enumerable:!0,get:function(){return r},set:function(t){r=t.toString()}}),this},nn=function(t,e,n,A){en.call(this,t,e),this.type='rect';var r=n||0;Object.defineProperty(this,'w',{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i=A||0;return Object.defineProperty(this,'h',{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}}),this},An=function(){this.page=xt,this.currentPage=T,this.pages=X.slice(0),this.pagesContext=Ft.slice(0),this.x=dt,this.y=ft,this.matrix=gt,this.width=sn(T),this.height=cn(T),this.outputDestination=Z,this.id='',this.objectNumber=-1};An.prototype.restore=function(){xt=this.page,T=this.currentPage,Ft=this.pagesContext,X=this.pages,dt=this.x,ft=this.y,gt=this.matrix,an(T,this.width),ln(T,this.height),Z=this.outputDestination};var rn=function(t,e,n,A,r){Ut.push(new An),xt=T=0,X=[],dt=t,ft=e,gt=r,Ae([n,A])};for(var on in d.beginFormObject=function(t,e,n,A,r){return rn(t,e,n,A,r),this},d.endFormObject=function(t){return function(t){if(St[t])Ut.pop().restore();else{var e=new An,n='Xo'+(Object.keys(Et).length+1).toString(10);e.id=n,St[t]=n,Et[n]=e,It.publish('addFormObject',e),Ut.pop().restore()}}(t),this},d.doFormObject=function(t,e){var n=Et[St[t]];return q('q'),q(e.toString()+' cm'),q('/'+n.id+' Do'),q('Q'),this},d.getFormObject=function(t){var e=Et[St[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},d.save=function(t,e){return t=t||'generated.pdf',(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(Dy(ge(fe()),t),'function'==typeof Dy.unload&&Ny.setTimeout&&setTimeout(Dy.unload,911),this):new Promise((function(e,n){try{var A=Dy(ge(fe()),t);'function'==typeof Dy.unload&&Ny.setTimeout&&setTimeout(Dy.unload,911),e(A)}catch(t){n(t.message)}}))},uw.API)uw.API.hasOwnProperty(on)&&('events'===on&&uw.API.events.length?function(t,e){var n,A,r;for(r=e.length-1;-1!==r;r--)n=e[r][0],A=e[r][1],t.subscribe.apply(t,[n].concat('function'==typeof A?[A]:A))}(It,uw.API.events):d[on]=uw.API[on]);var sn=d.getPageWidth=function(t){return(Ft[t=t||T].mediaBox.topRightX-Ft[t].mediaBox.bottomLeftX)/ht},an=d.setPageWidth=function(t,e){Ft[t].mediaBox.topRightX=e*ht+Ft[t].mediaBox.bottomLeftX},cn=d.getPageHeight=function(t){return(Ft[t=t||T].mediaBox.topRightY-Ft[t].mediaBox.bottomLeftY)/ht},ln=d.setPageHeight=function(t,e){Ft[t].mediaBox.topRightY=e*ht+Ft[t].mediaBox.bottomLeftY};return d.internal={pdfEscape:ne,getStyle:xe,getFont:_e,getFontSize:At,getCharSpace:qe,getTextColor:Ze,getLineHeight:Te,getLineHeightFactor:Re,getLineWidth:Me,write:J,getHorizontalCoordinate:Ve,getVerticalCoordinate:Ge,getCoordinateString:je,getVerticalCoordinateString:We,collections:{},newObject:Pt,newAdditionalObject:Ht,newObjectDeferred:Ot,newObjectDeferredBegin:Mt,getFilters:Gt,putStream:jt,events:It,scaleFactor:ht,pageSize:{getWidth:function(){return sn(T)},setWidth:function(t){an(T,t)},getHeight:function(){return cn(T)},setHeight:function(t){ln(T,t)}},encryptionOptions:l,encryption:be,getEncryptor:function(t){return null!==l?be.encryptor(t,0):function(t){return t}},output:pe,getNumberOfPages:se,pages:X,out:q,f2:Q,f3:E,getPageInfo:ve,getPageInfoByObjId:ye,getCurrentPageInfo:we,getPDFVersion:g,Point:en,Rectangle:nn,Matrix:Lt,hasHotfix:me},Object.defineProperty(d.internal.pageSize,'width',{get:function(){return sn(T)},set:function(t){an(T,t)},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,'height',{get:function(){return cn(T)},set:function(t){ln(T,t)},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=tt.length;e<n;e++){var A=ee.call(this,t[e][0],t[e][1],t[e][2],tt[e][3],!0);!1===u&&(h[A]=!0);var r=t[e][0].split('-');te({id:A,fontName:r[0],fontStyle:r[1]||''})}It.publish('addFonts',{fonts:pt,dictionary:mt})}.call(d,tt),ut='F1',re(r,n),It.publish('initialized'),d}rw.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},rw.prototype.toHexString=function(t){return t.split('').map((function(t){return('0'+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join('')},rw.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join('')},rw.prototype.processOwnerPassword=function(t,e){return nw($y(e).substr(0,5),t)},rw.prototype.encryptor=function(t,e){var n=$y(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return nw(n,t)}},sw.prototype.equals=function(t){var e,n='id,objectNumber,equals';if(!t||jv(t)!==jv(this))return!1;var A=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;A++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&A--;return 0===A},uw.API={events:[]},uw.version='2.5.1';var hw=uw.API,dw=1,fw=function(t){return t.replace(/\\/g,'\\\\').replace(/\(/g,'\\(').replace(/\)/g,'\\)')},gw=function(t){return t.replace(/\\\\/g,'\\').replace(/\\\(/g,'(').replace(/\\\)/g,')')},pw=function(t){return t.toFixed(2)},mw=function(t){return t.toFixed(5)};hw.__acroform__={};var bw=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},vw=function(t){return t*dw},yw=function(t){var e=new Mw,n=qw.internal.getHeight(t)||0,A=qw.internal.getWidth(t)||0;return e.BBox=[0,0,Number(pw(A)),Number(pw(n))],e},ww=hw.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error('Invalid arguments passed to jsPDF.API.__acroform__.setBit');return t|1<<e},Bw=hw.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error('Invalid arguments passed to jsPDF.API.__acroform__.clearBit');return t&~(1<<e)},Cw=hw.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error('Invalid arguments passed to jsPDF.API.__acroform__.getBit');return 0==(t&1<<e)?0:1},xw=hw.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error('Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf');return Cw(t,e-1)},Fw=hw.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error('Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf');return ww(t,e-1)},Iw=hw.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error('Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf');return Bw(t,e-1)},Qw=hw.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,A=e.internal.getVerticalCoordinate,r=t[0],i=t[1],o=t[2],s=t[3],a={};return a.lowerLeft_X=n(r)||0,a.lowerLeft_Y=A(i+s)||0,a.upperRight_X=n(r+o)||0,a.upperRight_Y=A(i)||0,[Number(pw(a.lowerLeft_X)),Number(pw(a.lowerLeft_Y)),Number(pw(a.upperRight_X)),Number(pw(a.upperRight_Y))]},Ew=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,A=Sw(t,n),r=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push('/Tx BMC'),e.push('q'),e.push('BT'),e.push(t.scope.__private__.encodeColorString(t.color)),e.push('/'+r+' '+pw(A.fontSize)+' Tf'),e.push('1 0 0 1 0 0 Tm'),e.push(A.text),e.push('ET'),e.push('Q'),e.push('EMC');var i=yw(t);return i.scope=t.scope,i.stream=e.join('\n'),i}},Sw=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,A={text:'',fontSize:''},r=(e=')'==(e='('==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(' ');r=t.multiline?r.map((function(t){return t.split('\n')})):r.map((function(t){return[t]}));var i=n,o=qw.internal.getHeight(t)||0;o=o<0?-o:o;var s=qw.internal.getWidth(t)||0;s=s<0?-s:s;var a=function(e,n,A){if(e+1<r.length){var i=n+' '+r[e+1][0];return Uw(i,t,A).width<=s-4}return!1};i++;t:for(;i>0;){e='',i--;var c,l,u=Uw('3',t,i).height,h=t.multiline?o-i:(o-u)/2,d=h+=2,f=0,g=0,p=0;if(i<=0){e='(...) Tj\n',e+='% Width of Text: '+Uw(e,t,i=12).width+', FieldWidth:'+s+'\n';break}for(var m='',b=0,v=0;v<r.length;v++)if(r.hasOwnProperty(v)){var y=!1;if(1!==r[v].length&&p!==r[v].length-1){if((u+2)*(b+2)+2>o)continue t;m+=r[v][p],y=!0,g=v,v--}else{m=' '==(m+=r[v][p]+' ').substr(m.length-1)?m.substr(0,m.length-1):m;var w=parseInt(v),B=a(w,m,i),C=v>=r.length-1;if(B&&!C){m+=' ',p=0;continue}if(B||C){if(C)g=w;else if(t.multiline&&(u+2)*(b+2)+2>o)continue t}else{if(!t.multiline)continue t;if((u+2)*(b+2)+2>o)continue t;g=w}}for(var x='',F=f;F<=g;F++){var I=r[F];if(t.multiline){if(F===g){x+=I[p]+' ',p=(p+1)%I.length;continue}if(F===f){x+=I[I.length-1]+' ';continue}}x+=I[0]+' '}switch(x=' '==x.substr(x.length-1)?x.substr(0,x.length-1):x,l=Uw(x,t,i).width,t.textAlign){case'right':c=s-l-2;break;case'center':c=(s-l)/2;break;default:c=2}e+=pw(c)+' '+pw(d)+' Td\n',e+='('+fw(x)+') Tj\n',e+=-pw(c)+' 0 Td\n',d=-(i+2),l=0,f=y?g:g+1,b++,m=''}break}return A.text=e,A.fontSize=i,A},Uw=function(t,e,n){var A=e.scope.internal.getFont(e.fontName,e.fontStyle),r=e.scope.getStringUnitWidth(t,{font:A,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth('3',{font:A,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:r}},Lw={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Nw=function(t,e){var n={type:'reference',object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===n.type&&t.object===n.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},kw=function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(Tw.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Lw)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error('Exception while creating AcroformDictionary');dw=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new Hw,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe('postPutResources',(function(){!function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}(t)})),t.internal.events.subscribe('buildDocument',(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in e)if(e.hasOwnProperty(n)){var A=e[n];A.objId=void 0,A.hasAnnotation&&Nw(A,t)}}(t)})),t.internal.events.subscribe('putCatalog',(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error('putCatalogCallback: Root missing.');t.internal.write('/AcroForm '+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+' 0 R')}(t)})),t.internal.events.subscribe('postPutPages',(function(e){!function(t,e){var n=!t;for(var A in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(A)){var r=t[A],i=[],o=r.Rect;if(r.Rect&&(r.Rect=Qw(r.Rect,e)),e.internal.newObjectDeferredBegin(r.objId,!0),r.DA=qw.createDefaultAppearanceStream(r),'object'===jv(r)&&'function'==typeof r.getKeyValueListForStream&&(i=r.getKeyValueListForStream()),r.Rect=o,r.hasAppearanceStream&&!r.appearanceStreamContent){var s=Ew(r);i.push({key:'AP',value:'<</N '+s+'>>'}),e.internal.acroformPlugin.xForms.push(s)}if(r.appearanceStreamContent){var a='';for(var c in r.appearanceStreamContent)if(r.appearanceStreamContent.hasOwnProperty(c)){var l=r.appearanceStreamContent[c];if(a+='/'+c+' ',a+='<<',Object.keys(l).length>=1||Array.isArray(l)){for(var A in l)if(l.hasOwnProperty(A)){var u=l[A];'function'==typeof u&&(u=u.call(e,r)),a+='/'+A+' '+u+' ',e.internal.acroformPlugin.xForms.indexOf(u)>=0||e.internal.acroformPlugin.xForms.push(u)}}else'function'==typeof(u=l)&&(u=u.call(e,r)),a+='/'+A+' '+u,e.internal.acroformPlugin.xForms.indexOf(u)>=0||e.internal.acroformPlugin.xForms.push(u);a+='>>'}i.push({key:'AP',value:'<<\n'+a+'>>'})}e.internal.putStream({additionalKeyValues:i,objectId:r.objId}),e.internal.out('endobj')}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var A=n,r=t[n];e.internal.newObjectDeferredBegin(r.objId,!0),'object'===jv(r)&&'function'==typeof r.putStream&&r.putStream(),delete t[A]}}(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}},_w=hw.__acroform__.arrayToPdfArray=function(t,e,n){var A=function(t){return t};if(Array.isArray(t)){for(var r='[',i=0;i<t.length;i++)switch(0!==i&&(r+=' '),jv(t[i])){case'boolean':case'number':case'object':r+=t[i].toString();break;case'string':'/'!==t[i].substr(0,1)?(void 0!==e&&n&&(A=n.internal.getEncryptor(e)),r+='('+fw(A(t[i].toString()))+')'):r+=t[i].toString()}return r+']'}throw new Error('Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray')},Pw=function(t,e,n){var A=function(t){return t};return void 0!==e&&n&&(A=n.internal.getEncryptor(e)),(t=t||'').toString(),'('+fw(A(t))+')'},Ow=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,'objId',{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,'scope',{value:this._scope,writable:!0})};Ow.prototype.toString=function(){return this.objId+' 0 R'},Ow.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out('endobj')},Ow.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter((function(t){return'content'!=t&&'appearanceStreamContent'!=t&&'scope'!=t&&'objId'!=t&&'_'!=t.substring(0,1)}));for(var n in e)if(!1===Object.getOwnPropertyDescriptor(this,e[n]).configurable){var A=e[n],r=this[A];r&&(Array.isArray(r)?t.push({key:A,value:_w(r,this.objId,this.scope)}):r instanceof Ow?(r.scope=this.scope,t.push({key:A,value:r.objId+' 0 R'})):'function'!=typeof r&&t.push({key:A,value:r}))}return t};var Mw=function(){Ow.call(this),Object.defineProperty(this,'Type',{value:'/XObject',configurable:!1,writable:!0}),Object.defineProperty(this,'Subtype',{value:'/Form',configurable:!1,writable:!0}),Object.defineProperty(this,'FormType',{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,'BBox',{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,'Resources',{value:'2 0 R',configurable:!1,writable:!0}),Object.defineProperty(this,'stream',{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};bw(Mw,Ow);var Hw=function(){Ow.call(this);var t,e=[];Object.defineProperty(this,'Kids',{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,'Fields',{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,'DA',{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),'('+fw(e(t))+')'}},set:function(e){t=e}})};bw(Hw,Ow);var Tw=function t(){Ow.call(this);var e=4;Object.defineProperty(this,'F',{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,'showWhenPrinted',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(e,3))},set:function(t){!0===Boolean(t)?this.F=Fw(e,3):this.F=Iw(e,3)}});var n=0;Object.defineProperty(this,'Ff',{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var A=[];Object.defineProperty(this,'Rect',{enumerable:!1,configurable:!1,get:function(){if(0!==A.length)return A},set:function(t){A=void 0!==t?t:[]}}),Object.defineProperty(this,'x',{enumerable:!0,configurable:!0,get:function(){return!A||isNaN(A[0])?0:A[0]},set:function(t){A[0]=t}}),Object.defineProperty(this,'y',{enumerable:!0,configurable:!0,get:function(){return!A||isNaN(A[1])?0:A[1]},set:function(t){A[1]=t}}),Object.defineProperty(this,'width',{enumerable:!0,configurable:!0,get:function(){return!A||isNaN(A[2])?0:A[2]},set:function(t){A[2]=t}}),Object.defineProperty(this,'height',{enumerable:!0,configurable:!0,get:function(){return!A||isNaN(A[3])?0:A[3]},set:function(t){A[3]=t}});var r='';Object.defineProperty(this,'FT',{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){switch(t){case'/Btn':case'/Tx':case'/Ch':case'/Sig':r=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,'T',{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Xw)return;i='FieldObject'+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),'('+fw(e(i))+')'},set:function(t){i=t.toString()}}),Object.defineProperty(this,'fieldName',{configurable:!0,enumerable:!0,get:function(){return i},set:function(t){i=t}});var o='helvetica';Object.defineProperty(this,'fontName',{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var s='normal';Object.defineProperty(this,'fontStyle',{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var a=0;Object.defineProperty(this,'fontSize',{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var c=void 0;Object.defineProperty(this,'maxFontSize',{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/dw:c},set:function(t){c=t}});var l='black';Object.defineProperty(this,'color',{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var u='/F1 0 Tf 0 g';Object.defineProperty(this,'DA',{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof Xw||this instanceof Zw))return Pw(u,this.objId,this.scope)},set:function(t){t=t.toString(),u=t}});var h=null;Object.defineProperty(this,'DV',{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof jw==0?Pw(h,this.objId,this.scope):h},set:function(t){t=t.toString(),h=this instanceof jw==0?'('===t.substr(0,1)?gw(t.substr(1,t.length-2)):gw(t):t}}),Object.defineProperty(this,'defaultValue',{enumerable:!0,configurable:!0,get:function(){return this instanceof jw==1?gw(h.substr(1,h.length-1)):h},set:function(t){t=t.toString(),h=this instanceof jw==1?'/'+t:t}});var d=null;Object.defineProperty(this,'_V',{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,'V',{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof jw==0?Pw(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof jw==0?'('===t.substr(0,1)?gw(t.substr(1,t.length-2)):gw(t):t}}),Object.defineProperty(this,'value',{enumerable:!0,configurable:!0,get:function(){return this instanceof jw==1?gw(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof jw==1?'/'+t:t}}),Object.defineProperty(this,'hasAnnotation',{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,'Type',{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?'/Annot':null}}),Object.defineProperty(this,'Subtype',{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?'/Widget':null}});var f,g=!1;Object.defineProperty(this,'hasAppearanceStream',{enumerable:!0,configurable:!0,get:function(){return g},set:function(t){t=Boolean(t),g=t}}),Object.defineProperty(this,'page',{enumerable:!0,configurable:!0,get:function(){if(f)return f},set:function(t){f=t}}),Object.defineProperty(this,'readOnly',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,1):this.Ff=Iw(this.Ff,1)}}),Object.defineProperty(this,'required',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,2):this.Ff=Iw(this.Ff,2)}}),Object.defineProperty(this,'noExport',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,3):this.Ff=Iw(this.Ff,3)}});var p=null;Object.defineProperty(this,'Q',{enumerable:!0,configurable:!1,get:function(){if(null!==p)return p},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');p=t}}),Object.defineProperty(this,'textAlign',{get:function(){var t;switch(p){case 0:default:t='left';break;case 1:t='center';break;case 2:t='right'}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case'right':case 2:p=2;break;case'center':case 1:p=1;break;default:p=0}}})};bw(Tw,Ow);var Dw=function(){Tw.call(this),this.FT='/Ch',this.V='()',this.fontName='zapfdingbats';var t=0;Object.defineProperty(this,'TI',{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,'topIndex',{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,'Opt',{enumerable:!0,configurable:!1,get:function(){return _w(e,this.objId,this.scope)},set:function(t){var n,A;A=[],'string'==typeof(n=t)&&(A=function(t,e,n){n||(n=1);for(var A,r=[];A=e.exec(t);)r.push(A[n]);return r}(n,/\((.*?)\)/g)),e=A}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||'').toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||'').toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,'combo',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,18):this.Ff=Iw(this.Ff,18)}}),Object.defineProperty(this,'edit',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=Fw(this.Ff,19):this.Ff=Iw(this.Ff,19))}}),Object.defineProperty(this,'sort',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=Fw(this.Ff,20),e.sort()):this.Ff=Iw(this.Ff,20)}}),Object.defineProperty(this,'multiSelect',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,22):this.Ff=Iw(this.Ff,22)}}),Object.defineProperty(this,'doNotSpellCheck',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,23):this.Ff=Iw(this.Ff,23)}}),Object.defineProperty(this,'commitOnSelChange',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,27):this.Ff=Iw(this.Ff,27)}}),this.hasAppearanceStream=!1};bw(Dw,Tw);var Rw=function(){Dw.call(this),this.fontName='helvetica',this.combo=!1};bw(Rw,Dw);var Vw=function(){Rw.call(this),this.combo=!0};bw(Vw,Rw);var Gw=function(){Vw.call(this),this.edit=!0};bw(Gw,Vw);var jw=function(){Tw.call(this),this.FT='/Btn',Object.defineProperty(this,'noToggleToOff',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,15):this.Ff=Iw(this.Ff,15)}}),Object.defineProperty(this,'radio',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,16):this.Ff=Iw(this.Ff,16)}}),Object.defineProperty(this,'pushButton',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,17):this.Ff=Iw(this.Ff,17)}}),Object.defineProperty(this,'radioIsUnison',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,26):this.Ff=Iw(this.Ff,26)}});var t,e={};Object.defineProperty(this,'MK',{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var n,A=[];for(n in A.push('<<'),e)A.push('/'+n+' ('+fw(t(e[n]))+')');return A.push('>>'),A.join('\n')}},set:function(t){'object'===jv(t)&&(e=t)}}),Object.defineProperty(this,'caption',{enumerable:!0,configurable:!0,get:function(){return e.CA||''},set:function(t){'string'==typeof t&&(e.CA=t)}}),Object.defineProperty(this,'AS',{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,'appearanceState',{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t='/'+e}})};bw(jw,Tw);var Ww=function(){jw.call(this),this.pushButton=!0};bw(Ww,jw);var Kw=function(){jw.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,'Kids',{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};bw(Kw,jw);var Xw=function(){var t,e;Tw.call(this),Object.defineProperty(this,'Parent',{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,'optionName',{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,A={};Object.defineProperty(this,'MK',{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,n=[];for(e in n.push('<<'),A)n.push('/'+e+' ('+fw(t(A[e]))+')');return n.push('>>'),n.join('\n')},set:function(t){'object'===jv(t)&&(A=t)}}),Object.defineProperty(this,'caption',{enumerable:!0,configurable:!0,get:function(){return A.CA||''},set:function(t){'string'==typeof t&&(A.CA=t)}}),Object.defineProperty(this,'AS',{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,'appearanceState',{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n='/'+t}}),this.caption='l',this.appearanceState='Off',this._AppearanceType=qw.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};bw(Xw,Tw),Kw.prototype.setAppearance=function(t){if(!('createAppearanceStream'in t)||!('getCA'in t))throw new Error('Couldn\'t assign Appearance to RadioButton. Appearance was Invalid!');for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},Kw.prototype.createOption=function(t){var e=new Xw;return e.Parent=this,e.optionName=t,this.Kids.push(e),Jw.call(this.scope,e),e};var zw=function(){jw.call(this),this.fontName='zapfdingbats',this.caption='3',this.appearanceState='On',this.value='On',this.textAlign='center',this.appearanceStreamContent=qw.CheckBox.createAppearanceStream()};bw(zw,jw);var Zw=function(){Tw.call(this),this.FT='/Tx',Object.defineProperty(this,'multiline',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,13):this.Ff=Iw(this.Ff,13)}}),Object.defineProperty(this,'fileSelect',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,21):this.Ff=Iw(this.Ff,21)}}),Object.defineProperty(this,'doNotSpellCheck',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,23):this.Ff=Iw(this.Ff,23)}}),Object.defineProperty(this,'doNotScroll',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,24):this.Ff=Iw(this.Ff,24)}}),Object.defineProperty(this,'comb',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,25):this.Ff=Iw(this.Ff,25)}}),Object.defineProperty(this,'richText',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,26):this.Ff=Iw(this.Ff,26)}});var t=null;Object.defineProperty(this,'MaxLen',{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,'maxLength',{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,'hasAppearanceStream',{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};bw(Zw,Tw);var Yw=function(){Zw.call(this),Object.defineProperty(this,'password',{enumerable:!0,configurable:!0,get:function(){return Boolean(xw(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=Fw(this.Ff,14):this.Ff=Iw(this.Ff,14)}}),this.password=!0};bw(Yw,Zw);var qw={CheckBox:{createAppearanceStream:function(){return{N:{On:qw.CheckBox.YesNormal},D:{On:qw.CheckBox.YesPushDown,Off:qw.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=yw(t);e.scope=t.scope;var n=[],A=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=Sw(t,t.caption);return n.push('0.749023 g'),n.push('0 0 '+pw(qw.internal.getWidth(t))+' '+pw(qw.internal.getHeight(t))+' re'),n.push('f'),n.push('BMC'),n.push('q'),n.push('0 0 1 rg'),n.push('/'+A+' '+pw(i.fontSize)+' Tf '+r),n.push('BT'),n.push(i.text),n.push('ET'),n.push('Q'),n.push('EMC'),e.stream=n.join('\n'),e},YesNormal:function(t){var e=yw(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,A=t.scope.__private__.encodeColorString(t.color),r=[],i=qw.internal.getHeight(t),o=qw.internal.getWidth(t),s=Sw(t,t.caption);return r.push('1 g'),r.push('0 0 '+pw(o)+' '+pw(i)+' re'),r.push('f'),r.push('q'),r.push('0 0 1 rg'),r.push('0 0 '+pw(o-1)+' '+pw(i-1)+' re'),r.push('W'),r.push('n'),r.push('0 g'),r.push('BT'),r.push('/'+n+' '+pw(s.fontSize)+' Tf '+A),r.push(s.text),r.push('ET'),r.push('Q'),e.stream=r.join('\n'),e},OffPushDown:function(t){var e=yw(t);e.scope=t.scope;var n=[];return n.push('0.749023 g'),n.push('0 0 '+pw(qw.internal.getWidth(t))+' '+pw(qw.internal.getHeight(t))+' re'),n.push('f'),e.stream=n.join('\n'),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:qw.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=qw.RadioButton.Circle.YesNormal,e.D[t]=qw.RadioButton.Circle.YesPushDown,e},getCA:function(){return'l'},YesNormal:function(t){var e=yw(t);e.scope=t.scope;var n=[],A=qw.internal.getWidth(t)<=qw.internal.getHeight(t)?qw.internal.getWidth(t)/4:qw.internal.getHeight(t)/4;A=Number((.9*A).toFixed(5));var r=qw.internal.Bezier_C,i=Number((A*r).toFixed(5));return n.push('q'),n.push('1 0 0 1 '+mw(qw.internal.getWidth(t)/2)+' '+mw(qw.internal.getHeight(t)/2)+' cm'),n.push(A+' 0 m'),n.push(A+' '+i+' '+i+' '+A+' 0 '+A+' c'),n.push('-'+i+' '+A+' -'+A+' '+i+' -'+A+' 0 c'),n.push('-'+A+' -'+i+' -'+i+' -'+A+' 0 -'+A+' c'),n.push(i+' -'+A+' '+A+' -'+i+' '+A+' 0 c'),n.push('f'),n.push('Q'),e.stream=n.join('\n'),e},YesPushDown:function(t){var e=yw(t);e.scope=t.scope;var n=[],A=qw.internal.getWidth(t)<=qw.internal.getHeight(t)?qw.internal.getWidth(t)/4:qw.internal.getHeight(t)/4;A=Number((.9*A).toFixed(5));var r=Number((2*A).toFixed(5)),i=Number((r*qw.internal.Bezier_C).toFixed(5)),o=Number((A*qw.internal.Bezier_C).toFixed(5));return n.push('0.749023 g'),n.push('q'),n.push('1 0 0 1 '+mw(qw.internal.getWidth(t)/2)+' '+mw(qw.internal.getHeight(t)/2)+' cm'),n.push(r+' 0 m'),n.push(r+' '+i+' '+i+' '+r+' 0 '+r+' c'),n.push('-'+i+' '+r+' -'+r+' '+i+' -'+r+' 0 c'),n.push('-'+r+' -'+i+' -'+i+' -'+r+' 0 -'+r+' c'),n.push(i+' -'+r+' '+r+' -'+i+' '+r+' 0 c'),n.push('f'),n.push('Q'),n.push('0 g'),n.push('q'),n.push('1 0 0 1 '+mw(qw.internal.getWidth(t)/2)+' '+mw(qw.internal.getHeight(t)/2)+' cm'),n.push(A+' 0 m'),n.push(A+' '+o+' '+o+' '+A+' 0 '+A+' c'),n.push('-'+o+' '+A+' -'+A+' '+o+' -'+A+' 0 c'),n.push('-'+A+' -'+o+' -'+o+' -'+A+' 0 -'+A+' c'),n.push(o+' -'+A+' '+A+' -'+o+' '+A+' 0 c'),n.push('f'),n.push('Q'),e.stream=n.join('\n'),e},OffPushDown:function(t){var e=yw(t);e.scope=t.scope;var n=[],A=qw.internal.getWidth(t)<=qw.internal.getHeight(t)?qw.internal.getWidth(t)/4:qw.internal.getHeight(t)/4;A=Number((.9*A).toFixed(5));var r=Number((2*A).toFixed(5)),i=Number((r*qw.internal.Bezier_C).toFixed(5));return n.push('0.749023 g'),n.push('q'),n.push('1 0 0 1 '+mw(qw.internal.getWidth(t)/2)+' '+mw(qw.internal.getHeight(t)/2)+' cm'),n.push(r+' 0 m'),n.push(r+' '+i+' '+i+' '+r+' 0 '+r+' c'),n.push('-'+i+' '+r+' -'+r+' '+i+' -'+r+' 0 c'),n.push('-'+r+' -'+i+' -'+i+' -'+r+' 0 -'+r+' c'),n.push(i+' -'+r+' '+r+' -'+i+' '+r+' 0 c'),n.push('f'),n.push('Q'),e.stream=n.join('\n'),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:qw.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=qw.RadioButton.Cross.YesNormal,e.D[t]=qw.RadioButton.Cross.YesPushDown,e},getCA:function(){return'8'},YesNormal:function(t){var e=yw(t);e.scope=t.scope;var n=[],A=qw.internal.calculateCross(t);return n.push('q'),n.push('1 1 '+pw(qw.internal.getWidth(t)-2)+' '+pw(qw.internal.getHeight(t)-2)+' re'),n.push('W'),n.push('n'),n.push(pw(A.x1.x)+' '+pw(A.x1.y)+' m'),n.push(pw(A.x2.x)+' '+pw(A.x2.y)+' l'),n.push(pw(A.x4.x)+' '+pw(A.x4.y)+' m'),n.push(pw(A.x3.x)+' '+pw(A.x3.y)+' l'),n.push('s'),n.push('Q'),e.stream=n.join('\n'),e},YesPushDown:function(t){var e=yw(t);e.scope=t.scope;var n=qw.internal.calculateCross(t),A=[];return A.push('0.749023 g'),A.push('0 0 '+pw(qw.internal.getWidth(t))+' '+pw(qw.internal.getHeight(t))+' re'),A.push('f'),A.push('q'),A.push('1 1 '+pw(qw.internal.getWidth(t)-2)+' '+pw(qw.internal.getHeight(t)-2)+' re'),A.push('W'),A.push('n'),A.push(pw(n.x1.x)+' '+pw(n.x1.y)+' m'),A.push(pw(n.x2.x)+' '+pw(n.x2.y)+' l'),A.push(pw(n.x4.x)+' '+pw(n.x4.y)+' m'),A.push(pw(n.x3.x)+' '+pw(n.x3.y)+' l'),A.push('s'),A.push('Q'),e.stream=A.join('\n'),e},OffPushDown:function(t){var e=yw(t);e.scope=t.scope;var n=[];return n.push('0.749023 g'),n.push('0 0 '+pw(qw.internal.getWidth(t))+' '+pw(qw.internal.getHeight(t))+' re'),n.push('f'),e.stream=n.join('\n'),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return'/'+e+' '+t.fontSize+' Tf '+n}};qw.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=qw.internal.getWidth(t),n=qw.internal.getHeight(t),A=Math.min(e,n);return{x1:{x:(e-A)/2,y:(n-A)/2+A},x2:{x:(e-A)/2+A,y:(n-A)/2},x3:{x:(e-A)/2,y:(n-A)/2},x4:{x:(e-A)/2+A,y:(n-A)/2+A}}}},qw.internal.getWidth=function(t){var e=0;return'object'===jv(t)&&(e=vw(t.Rect[2])),e},qw.internal.getHeight=function(t){var e=0;return'object'===jv(t)&&(e=vw(t.Rect[3])),e};var Jw=hw.addField=function(t){if(kw(this,t),!(t instanceof Tw))throw new Error('Invalid argument passed to jsPDF.addField.');var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};function $w(t){return t.reduce((function(t,e,n){return t[e]=n,t}),{})}hw.AcroFormChoiceField=Dw,hw.AcroFormListBox=Rw,hw.AcroFormComboBox=Vw,hw.AcroFormEditBox=Gw,hw.AcroFormButton=jw,hw.AcroFormPushButton=Ww,hw.AcroFormRadioButton=Kw,hw.AcroFormCheckBox=zw,hw.AcroFormTextField=Zw,hw.AcroFormPasswordField=Yw,hw.AcroFormAppearance=qw,hw.AcroForm={ChoiceField:Dw,ListBox:Rw,ComboBox:Vw,EditBox:Gw,Button:jw,PushButton:Ww,RadioButton:Kw,CheckBox:zw,TextField:Zw,PasswordField:Yw,Appearance:qw},uw.AcroForm={ChoiceField:Dw,ListBox:Rw,ComboBox:Vw,EditBox:Gw,Button:jw,PushButton:Ww,RadioButton:Kw,CheckBox:zw,TextField:Zw,PasswordField:Yw,Appearance:qw},function(t){t.__addimage__={};var e='UNKNOWN',n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},A=t.__addimage__.getImageFileTypeByImageData=function(t,A){var r,i,o,s,a,c=e;if('RGBA'===(A=A||e)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&'height'in t&&'width'in t)return'RGBA';if(B(t))for(a in n)for(o=n[a],r=0;r<o.length;r+=1){for(s=!0,i=0;i<o[r].length;i+=1)if(void 0!==o[r][i]&&o[r][i]!==t[i]){s=!1;break}if(!0===s){c=a;break}}else for(a in n)for(o=n[a],r=0;r<o.length;r+=1){for(s=!0,i=0;i<o[r].length;i+=1)if(void 0!==o[r][i]&&o[r][i]!==t.charCodeAt(i)){s=!1;break}if(!0===s){c=a;break}}return c===e&&A!==e&&(c=A),c},r=function t(e){for(var n=this.internal.write,A=this.internal.putStream,r=(0,this.internal.getFilters)();-1!==r.indexOf('FlateEncode');)r.splice(r.indexOf('FlateEncode'),1);e.objectId=this.internal.newObject();var i=[];if(i.push({key:'Type',value:'/XObject'}),i.push({key:'Subtype',value:'/Image'}),i.push({key:'Width',value:e.width}),i.push({key:'Height',value:e.height}),e.colorSpace===p.INDEXED?i.push({key:'ColorSpace',value:'[/Indexed /DeviceRGB '+(e.palette.length/3-1)+' '+('sMask'in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+' 0 R]'}):(i.push({key:'ColorSpace',value:'/'+e.colorSpace}),e.colorSpace===p.DEVICE_CMYK&&i.push({key:'Decode',value:'[1 0 1 0 1 0 1 0]'})),i.push({key:'BitsPerComponent',value:e.bitsPerComponent}),'decodeParameters'in e&&void 0!==e.decodeParameters&&i.push({key:'DecodeParms',value:'<<'+e.decodeParameters+'>>'}),'transparency'in e&&Array.isArray(e.transparency)){for(var o='',s=0,a=e.transparency.length;s<a;s++)o+=e.transparency[s]+' '+e.transparency[s]+' ';i.push({key:'Mask',value:'['+o+']'})}void 0!==e.sMask&&i.push({key:'SMask',value:e.objectId+1+' 0 R'});var c=void 0!==e.filter?['/'+e.filter]:void 0;if(A({data:e.data,additionalKeyValues:i,alreadyAppliedFilters:c,objectId:e.objectId}),n('endobj'),'sMask'in e&&void 0!==e.sMask){var l='/Predictor '+e.predictor+' /Colors 1 /BitsPerComponent '+e.bitsPerComponent+' /Columns '+e.width,u={width:e.width,height:e.height,colorSpace:'DeviceGray',bitsPerComponent:e.bitsPerComponent,decodeParameters:l,data:e.sMask};'filter'in e&&(u.filter=e.filter),t.call(this,u)}if(e.colorSpace===p.INDEXED){var h=this.internal.newObject();A({data:x(new Uint8Array(e.palette)),objectId:h}),n('endobj')}},i=function(){var t=this.internal.collections.addImage_images;for(var e in t)r.call(this,t[e])},o=function(){var t,e=this.internal.collections.addImage_images,n=this.internal.write;for(var A in e)n('/I'+(t=e[A]).index,t.objectId,'0','R')},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe('putResources',i),this.internal.events.subscribe('putXobjectDict',o))},a=function(){var t=this.internal.collections.addImage_images;return s.call(this),t},c=function(){return Object.keys(this.internal.collections.addImage_images).length},l=function(e){return'function'==typeof t['process'+e.toUpperCase()]},u=function(t){return'object'===jv(t)&&1===t.nodeType},h=function(e,n){if('IMG'===e.nodeName&&e.hasAttribute('src')){var A=''+e.getAttribute('src');if(0===A.indexOf('data:image/'))return Hy(unescape(A).split('base64,').pop());var r=t.loadFile(A,!0);if(void 0!==r)return r}if('CANVAS'===e.nodeName){if(0===e.width||0===e.height)throw new Error('Given canvas must have data. Canvas width: '+e.width+', height: '+e.height);var i;switch(n){case'PNG':i='image/png';break;case'WEBP':i='image/webp';break;default:i='image/jpeg'}return Hy(e.toDataURL(i,1).split('base64,').pop())}},d=function(t){var e=this.internal.collections.addImage_images;if(e)for(var n in e)if(t===e[n].alias)return e[n]},f=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.height*72/e/this.internal.scaleFactor),0===t&&(t=e*n.width/n.height),0===e&&(e=t*n.height/n.width),[t,e]},g=function(t,e,n,A,r,i){var o=f.call(this,n,A,r),s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,l=a.call(this);if(n=o[0],A=o[1],l[r.index]=r,i){i*=Math.PI/180;var u=Math.cos(i),h=Math.sin(i),d=function(t){return t.toFixed(4)},g=[d(u),d(h),d(-1*h),d(u),0,0,'cm']}this.internal.write('q'),i?(this.internal.write([1,'0','0',1,s(t),c(e+A),'cm'].join(' ')),this.internal.write(g.join(' ')),this.internal.write([s(n),'0','0',s(A),'0','0','cm'].join(' '))):this.internal.write([s(n),'0','0',s(A),s(t),c(e+A),'cm'].join(' ')),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,'cm'].join(' ')),this.internal.write('/I'+r.index+' Do'),this.internal.write('Q')},p=t.color_spaces={DEVICE_RGB:'DeviceRGB',DEVICE_GRAY:'DeviceGray',DEVICE_CMYK:'DeviceCMYK',CAL_GREY:'CalGray',CAL_RGB:'CalRGB',LAB:'Lab',ICC_BASED:'ICCBased',INDEXED:'Indexed',PATTERN:'Pattern',SEPARATION:'Separation',DEVICE_N:'DeviceN'};t.decode={DCT_DECODE:'DCTDecode',FLATE_DECODE:'FlateDecode',LZW_DECODE:'LZWDecode',JPX_DECODE:'JPXDecode',JBIG2_DECODE:'JBIG2Decode',ASCII85_DECODE:'ASCII85Decode',ASCII_HEX_DECODE:'ASCIIHexDecode',RUN_LENGTH_DECODE:'RunLengthDecode',CCITT_FAX_DECODE:'CCITTFaxDecode'};var m=t.image_compression={NONE:'NONE',FAST:'FAST',MEDIUM:'MEDIUM',SLOW:'SLOW'},b=t.__addimage__.sHashCode=function(t){var e,n,A=0;if('string'==typeof t)for(n=t.length,e=0;e<n;e++)A=(A<<5)-A+t.charCodeAt(e),A|=0;else if(B(t))for(n=t.byteLength/2,e=0;e<n;e++)A=(A<<5)-A+t[e],A|=0;return A},v=t.__addimage__.validateStringAsBase64=function(t){(t=t||'').toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},y=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||'').split('base64,'),n=null;if(2===e.length){var A=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(A)&&(n={mimeType:A[1],charset:A[2],data:e[1]})}return n},w=t.__addimage__.supportsArrayBuffer=function(){return'undefined'!=typeof ArrayBuffer&&'undefined'!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return w()&&t instanceof ArrayBuffer};var B=t.__addimage__.isArrayBufferView=function(t){return w()&&'undefined'!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||'undefined'!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},C=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),A=0;A<e;A++)n[A]=t.charCodeAt(A);return n},x=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e='',n=B(t)?t:new Uint8Array(t),A=0;A<n.length;A+=8192)e+=String.fromCharCode.apply(null,n.subarray(A,A+8192));return e};t.addImage=function(){var t,n,A,r,i,o,a,c,l;if('number'==typeof arguments[1]?(n=e,A=arguments[1],r=arguments[2],i=arguments[3],o=arguments[4],a=arguments[5],c=arguments[6],l=arguments[7]):(n=arguments[1],A=arguments[2],r=arguments[3],i=arguments[4],o=arguments[5],a=arguments[6],c=arguments[7],l=arguments[8]),'object'===jv(t=arguments[0])&&!u(t)&&'imageData'in t){var h=t;t=h.imageData,n=h.format||n||e,A=h.x||A||0,r=h.y||r||0,i=h.w||h.width||i,o=h.h||h.height||o,a=h.alias||a,c=h.compression||c,l=h.rotation||h.angle||l}var d=this.internal.getFilters();if(void 0===c&&-1!==d.indexOf('FlateEncode')&&(c='SLOW'),isNaN(A)||isNaN(r))throw new Error('Invalid coordinates passed to jsPDF.addImage');s.call(this);var f=F.call(this,t,n,a,c);return g.call(this,A,r,i,o,f,l),this};var F=function(n,r,i,o){var s,a,f;if('string'==typeof n&&A(n)===e){n=unescape(n);var g=I(n,!1);(''!==g||void 0!==(g=t.loadFile(n,!0)))&&(n=g)}if(u(n)&&(n=h(n,r)),r=A(n,r),!l(r))throw new Error('addImage does not support files of type \''+r+'\', please ensure that a plugin for \''+r+'\' support is added.');if((null==(f=i)||0===f.length)&&(i=function(t){return'string'==typeof t||B(t)?b(t):B(t.data)?b(t.data):null}(n)),(s=d.call(this,i))||(w()&&(n instanceof Uint8Array||'RGBA'===r||(a=n,n=C(n))),s=this['process'+r.toUpperCase()](n,c.call(this),i,function(e){return e&&'string'==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:m.NONE}(o),a)),!s)throw new Error('An unknown error occurred whilst processing the image.');return s},I=t.__addimage__.convertBase64ToBinaryString=function(t,e){var n;e='boolean'!=typeof e||e;var A,r='';if('string'==typeof t){A=null!==(n=y(t))?n.data:t;try{r=Hy(A)}catch(t){if(e)throw v(A)?new Error('atob-Error in jsPDF.convertBase64ToBinaryString '+t.message):new Error('Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ')}}return r};t.getImageProperties=function(n){var r,i,o='';if(u(n)&&(n=h(n)),'string'==typeof n&&A(n)===e&&(''===(o=I(n,!1))&&(o=t.loadFile(n)||''),n=o),i=A(n),!l(i))throw new Error('addImage does not support files of type \''+i+'\', please ensure that a plugin for \''+i+'\' support is added.');if(!w()||n instanceof Uint8Array||(n=C(n)),!(r=this['process'+i.toUpperCase()](n)))throw new Error('An unknown error occurred whilst processing the image');return r.fileType=i,r}}(uw.API),
116
+ /**
117
+ * @license
118
+ * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
119
+ *
120
+ * Licensed under the MIT License.
121
+ * http://opensource.org/licenses/mit-license
122
+ */
123
+ function(t){var e=function(t){if(void 0!==t&&''!=t)return!0};uw.API.events.push(['addPage',function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),t.events.push(['putPage',function(t){for(var n,A,r,i=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(t.objId),a=t.pageContext.annotations,c=!1,l=0;l<a.length&&!c;l++)switch((n=a[l]).type){case'link':(e(n.options.url)||e(n.options.pageNumber))&&(c=!0);break;case'reference':case'text':case'freetext':c=!0}if(0!=c){this.internal.write('/Annots [');for(var u=0;u<a.length;u++){n=a[u];var h=this.internal.pdfEscape,d=this.internal.getEncryptor(t.objId);switch(n.type){case'reference':this.internal.write(' '+n.object.objId+' 0 R ');break;case'text':var f=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),p=this.internal.getEncryptor(f.objId),m=n.title||'Note';r='<</Type /Annot /Subtype /Text '+(A='/Rect ['+i(n.bounds.x)+' '+o(n.bounds.y+n.bounds.h)+' '+i(n.bounds.x+n.bounds.w)+' '+o(n.bounds.y)+'] ')+'/Contents ('+h(p(n.contents))+')',r+=' /Popup '+g.objId+' 0 R',r+=' /P '+s.objId+' 0 R',r+=' /T ('+h(p(m))+') >>',f.content=r;var b=f.objId+' 0 R';r='<</Type /Annot /Subtype /Popup '+(A='/Rect ['+i(n.bounds.x+30)+' '+o(n.bounds.y+n.bounds.h)+' '+i(n.bounds.x+n.bounds.w+30)+' '+o(n.bounds.y)+'] ')+' /Parent '+b,n.open&&(r+=' /Open true'),r+=' >>',g.content=r,this.internal.write(f.objId,'0 R',g.objId,'0 R');break;case'freetext':A='/Rect ['+i(n.bounds.x)+' '+o(n.bounds.y)+' '+i(n.bounds.x+n.bounds.w)+' '+o(n.bounds.y+n.bounds.h)+'] ';var v=n.color||'#000000';r='<</Type /Annot /Subtype /FreeText '+A+'/Contents ('+h(d(n.contents))+')',r+=' /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#'+v+')',r+=' /Border [0 0 0]',r+=' >>',this.internal.write(r);break;case'link':if(n.options.name){var y=this.annotations._nameMap[n.options.name];n.options.pageNumber=y.page,n.options.top=y.y}else n.options.top||(n.options.top=0);if(A='/Rect ['+n.finalBounds.x+' '+n.finalBounds.y+' '+n.finalBounds.w+' '+n.finalBounds.h+'] ',r='',n.options.url)r='<</Type /Annot /Subtype /Link '+A+'/Border [0 0 0] /A <</S /URI /URI ('+h(d(n.options.url))+') >>';else if(n.options.pageNumber)switch(r='<</Type /Annot /Subtype /Link '+A+'/Border [0 0 0] /Dest ['+this.internal.getPageInfo(n.options.pageNumber).objId+' 0 R',n.options.magFactor=n.options.magFactor||'XYZ',n.options.magFactor){case'Fit':r+=' /Fit]';break;case'FitH':r+=' /FitH '+n.options.top+']';break;case'FitV':n.options.left=n.options.left||0,r+=' /FitV '+n.options.left+']';break;default:var w=o(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),r+=' /XYZ '+n.options.left+' '+w+' '+n.options.zoom+']'}''!=r&&(r+=' >>',this.internal.write(r))}}this.internal.write(']')}}]),t.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case'link':this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case'text':case'freetext':e.pageContext.annotations.push(t)}},t.link=function(t,e,n,A,r){var i=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+n),h:s(e+A)},options:r,type:'link'})},t.textWithLink=function(t,e,n,A){var r,i,o=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==A.maxWidth){i=A.maxWidth;var a=this.splitTextToSize(t,i).length;r=Math.ceil(s*a)}else i=o,r=s;return this.text(t,e,n,A),n+=.2*s,'center'===A.align&&(e-=o/2),'right'===A.align&&(e-=o),this.link(e,n-s,i,r,A),o},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor}}(uw.API),
124
+ /**
125
+ * @license
126
+ * Copyright (c) 2017 Aras Abbasi
127
+ *
128
+ * Licensed under the MIT License.
129
+ * http://opensource.org/licenses/mit-license
130
+ */
131
+ function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},A={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},r=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},o=t.__arabicParser__.isArabicLetter=function(t){return'string'==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length<=2},a=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&r.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=1};var c=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=3};var l=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&i(t)&&4==e[t.charCodeAt(0)].length},u=t.__arabicParser__.resolveLigatures=function(t){var e=0,A=n,r='',i=0;for(e=0;e<t.length;e+=1)void 0!==A[t.charCodeAt(e)]?(i++,'number'==typeof(A=A[t.charCodeAt(e)])&&(r+=String.fromCharCode(A),A=n,i=0),e===t.length-1&&(A=n,r+=t.charAt(e-(i-1)),e-=i-1,i=0)):(A=n,r+=t.charAt(e-i),e-=i,i=0);return r};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==A[t.charCodeAt(0)]};var h=t.__arabicParser__.getCorrectForm=function(t,e,n){return o(t)?!1===i(t)?-1:!c(t)||!o(e)&&!o(n)||!o(n)&&s(e)||s(t)&&!o(e)||s(t)&&a(e)||s(t)&&s(e)?0:l(t)&&o(e)&&!s(e)&&o(n)&&c(n)?3:s(t)||!o(n)?1:2:-1},d=function(t){var n=0,A=0,r=0,i='',s='',a='',c=(t=t||'').split('\\s+'),l=[];for(n=0;n<c.length;n+=1){for(l.push(''),A=0;A<c[n].length;A+=1)i=c[n][A],s=c[n][A-1],a=c[n][A+1],o(i)?(r=h(i,s,a),l[n]+=-1!==r?String.fromCharCode(e[i.charCodeAt(0)][r]):i):l[n]+=i;l[n]=u(l[n])}return l.join(' ')},f=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e='string'==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(e)){var A=0;for(n=[],A=0;A<e.length;A+=1)Array.isArray(e[A])?n.push([d(e[A][0]),e[A][1],e[A][2]]):n.push([d(e[A])]);t=n}else t=d(e);return'string'==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(['preProcessText',f])}(uw.API),uw.API.autoPrint=function(t){var e;if('javascript'===((t=t||{}).variant=t.variant||'non-conform',t.variant))this.addJS('print({});');else this.internal.events.subscribe('postPutResources',(function(){e=this.internal.newObject(),this.internal.out('<<'),this.internal.out('/S /Named'),this.internal.out('/Type /Action'),this.internal.out('/N /Print'),this.internal.out('>>'),this.internal.out('endobj')})),this.internal.events.subscribe('putCatalog',(function(){this.internal.out('/OpenAction '+e+' 0 R')}));return this},
132
+ /**
133
+ * @license
134
+ * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
135
+ *
136
+ * Licensed under the MIT License.
137
+ * http://opensource.org/licenses/mit-license
138
+ */
139
+ function(t){var e=function(){var t=void 0;Object.defineProperty(this,'pdf',{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,'width',{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext('2d').pageWrapXEnabled&&(this.getContext('2d').pageWrapX=e+1)}});var n=300;Object.defineProperty(this,'height',{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext('2d').pageWrapYEnabled&&(this.getContext('2d').pageWrapY=n+1)}});var A=[];Object.defineProperty(this,'childNodes',{get:function(){return A},set:function(t){A=t}});var r={};Object.defineProperty(this,'style',{get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,'parentNode',{})};e.prototype.getContext=function(t,e){var n;if('2d'!==(t=t||'2d'))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error('toDataURL is not implemented.')},t.events.push(['initialized',function(){this.canvas=new e,this.canvas.pdf=this}])}(uw.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,A=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),r.call(this))},r=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var t=arguments[0];Object.defineProperty(this,'x',{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,'y',{enumerable:!0,get:function(){return e},set:function(t){e=t}});var n=arguments[2];Object.defineProperty(this,'width',{enumerable:!0,get:function(){return n},set:function(t){n=t}});var A=arguments[3];Object.defineProperty(this,'height',{enumerable:!0,get:function(){return A},set:function(t){A=t}});var r=arguments[4];Object.defineProperty(this,'text',{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[5];Object.defineProperty(this,'lineNumber',{enumerable:!0,get:function(){return i},set:function(t){i=t}});var o=arguments[6];return Object.defineProperty(this,'align',{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return A.call(this),this.internal.__cell__.headerFunction='function'==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){A.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),r=e.font||this.getFont(),i=e.scaleFactor||this.internal.scaleFactor,o=0,s=0,a=0,c=this;if(!Array.isArray(t)&&'string'!=typeof t){if('number'!=typeof t)throw new Error('getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.');t=String(t)}var l=e.maxWidth;l>0?'string'==typeof t?t=this.splitTextToSize(t,l):'[object Array]'===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(c.splitTextToSize(e,l))}),[])):t=Array.isArray(t)?t:[t];for(var u=0;u<t.length;u++)o<(a=this.getStringUnitWidth(t[u],{font:r})*n)&&(o=a);return 0!==o&&(s=t.length),{w:o/=i,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/i,0)}},t.cellAddPage=function(){A.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=t.cell=function(){var t;t=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),A.call(this);var r=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,a=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==r.lineNumber&&(r.lineNumber===t.lineNumber?(t.x=(r.x||0)+(r.width||0),t.y=r.y||0):r.y+r.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,c&&a&&(this.printHeaderRow(t.lineNumber,!0),t.y+=a[0].height)):t.y=r.y+r.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?'FD':void 0),'right'===t.align?this.text(t.text,t.x+t.width-o,t.y+o,{align:'right',baseline:'top'}):'center'===t.align?this.text(t.text,t.x+t.width/2,t.y+o,{align:'center',baseline:'top',maxWidth:t.width-o-o}):this.text(t.text,t.x+o,t.y+o,{align:'left',baseline:'top',maxWidth:t.width-o-o})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,a,c,l){if(A.call(this),!a)throw new Error('No data for PDF table.');var u,h,d,f,g=[],p=[],m=[],b={},v={},y=[],w=[],B=(l=l||{}).autoSize||!1,C=!1!==l.printHeaders,x=l.css&&void 0!==l.css['font-size']?16*l.css['font-size']:l.fontSize||12,F=l.margins||Object.assign({width:this.getPageWidth()},e),I='number'==typeof l.padding?l.padding:3,Q=l.headerBackgroundColor||'#c8c8c8',E=l.headerTextColor||'#000';if(r.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=F,this.internal.__cell__.table_font_size=x,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=Q,this.internal.__cell__.headerTextColor=E,this.setFontSize(x),null==c)p=g=Object.keys(a[0]),m=g.map((function(){return'left'}));else if(Array.isArray(c)&&'object'===jv(c[0]))for(g=c.map((function(t){return t.name})),p=c.map((function(t){return t.prompt||t.name||''})),m=c.map((function(t){return t.align||'left'})),u=0;u<c.length;u+=1)v[c[u].name]=c[u].width*(19.049976/25.4);else Array.isArray(c)&&'string'==typeof c[0]&&(p=g=c,m=g.map((function(){return'left'})));if(B||Array.isArray(c)&&'string'==typeof c[0])for(u=0;u<g.length;u+=1){for(b[f=g[u]]=a.map((function(t){return t[f]})),this.setFont(void 0,'bold'),y.push(this.getTextDimensions(p[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),h=b[f],this.setFont(void 0,'normal'),d=0;d<h.length;d+=1)y.push(this.getTextDimensions(h[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);v[f]=Math.max.apply(null,y)+I+I,y=[]}if(C){var S={};for(u=0;u<g.length;u+=1)S[g[u]]={},S[g[u]].text=p[u],S[g[u]].align=m[u];var U=s.call(this,S,v);w=g.map((function(e){return new i(t,n,v[e],U,S[e].text,void 0,S[e].align)})),this.setTableHeaderRow(w),this.printHeaderRow(1,!1)}var L=c.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(u=0;u<a.length;u+=1){'rowStart'in l&&l.rowStart instanceof Function&&l.rowStart({row:u,data:a[u]},this);var N=s.call(this,a[u],v);for(d=0;d<g.length;d+=1){var k=a[u][g[d]];'cellStart'in l&&l.cellStart instanceof Function&&l.cellStart({row:u,col:d,data:k},this),o.call(this,new i(t,n,v[g[d]],N,k,u+2,L[g[d]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var s=function(t,e){var n=this.internal.__cell__.padding,A=this.internal.__cell__.table_font_size,r=this.internal.scaleFactor;return Object.keys(t).map((function(A){var r=t[A];return this.splitTextToSize(r.hasOwnProperty('text')?r.text:r,e[A]-n-n)}),this).map((function(t){return this.getLineHeightFactor()*t.length*A/r+n+n}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){A.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(A.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error('Property tableHeaderRow does not exist.');var r;if(n=!0,'function'==typeof this.internal.__cell__.headerFunction){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,'bold');for(var a=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){r=this.internal.__cell__.tableHeaderRow[c].clone(),e&&(r.y=this.internal.__cell__.margins.top||0,a.push(r)),r.lineNumber=t;var l=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,r),this.setTextColor(l)}a.length>0&&this.setTableHeaderRow(a),this.setFont(void 0,'normal'),n=!1}}(uw.API);var tB={italic:['italic','oblique','normal'],oblique:['oblique','italic','normal'],normal:['normal','oblique','italic']},eB=['ultra-condensed','extra-condensed','condensed','semi-condensed','normal','semi-expanded','expanded','extra-expanded','ultra-expanded'],nB=$w(eB),AB=[100,200,300,400,500,600,700,800,900],rB=$w(AB);function iB(t){var e=t.family.replace(/"|'/g,'').toLowerCase(),n=function(t){return tB[t=t||'normal']?t:'normal'}(t.style),A=function(t){return t?'number'==typeof t?t>=100&&t<=900&&t%100==0?t:400:/^\d00$/.test(t)?parseInt(t):'bold'===t?700:400:400}(t.weight),r=function(t){return'number'==typeof nB[t=t||'normal']?t:'normal'}(t.stretch);return{family:e,style:n,weight:A,stretch:r,src:t.src||[],ref:t.ref||{name:e,style:[r,n,A].join(' ')}}}function oB(t,e,n,A){var r;for(r=n;r>=0&&r<e.length;r+=A)if(t[e[r]])return t[e[r]];for(r=n;r>=0&&r<e.length;r-=A)if(t[e[r]])return t[e[r]]}var sB={'sans-serif':'helvetica',fixed:'courier',monospace:'courier',terminal:'courier',cursive:'times',fantasy:'times',serif:'times'},aB={caption:'times',icon:'times',menu:'times','message-box':'times','small-caption':'times','status-bar':'times'};function cB(t){return[t.stretch,t.style,t.weight,t.family].join(' ')}function lB(t){return t.trimLeft()}function uB(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function hB(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var dB,fB,gB,pB=['times'];!function(t){var e,n,A,r,i,o,s,a,c,l=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||'#000000',this.fillStyle=t.fillStyle||'#000000',this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||'10px sans-serif',this.textBaseline=t.textBaseline||'alphabetic',this.textAlign=t.textAlign||'left',this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||'miter',this.lineCap=t.lineCap||'butt',this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new a,this.globalCompositeOperation=t.globalCompositeOperation||'normal',this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new o,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new o,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect='boolean'!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(['initialized',function(){this.context2d=new u(this),e=this.internal.f2,n=this.internal.getCoordinateString,A=this.internal.getVerticalCoordinateString,r=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,a=this.internal.Matrix,c=new l}]);var u=function(t){Object.defineProperty(this,'canvas',{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,'pdf',{get:function(){return e}});var n=!1;Object.defineProperty(this,'pageWrapXEnabled',{get:function(){return n},set:function(t){n=Boolean(t)}});var A=!1;Object.defineProperty(this,'pageWrapYEnabled',{get:function(){return A},set:function(t){A=Boolean(t)}});var r=0;Object.defineProperty(this,'posX',{get:function(){return r},set:function(t){isNaN(t)||(r=t)}});var i=0;Object.defineProperty(this,'posY',{get:function(){return i},set:function(t){isNaN(t)||(i=t)}}),Object.defineProperty(this,'margin',{get:function(){return c.margin},set:function(t){var e;'number'==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),c.margin=e}});var o=!1;Object.defineProperty(this,'autoPaging',{get:function(){return o},set:function(t){o=t}});var s=0;Object.defineProperty(this,'lastBreak',{get:function(){return s},set:function(t){s=t}});var a=[];Object.defineProperty(this,'pageBreaks',{get:function(){return a},set:function(t){a=t}}),Object.defineProperty(this,'ctx',{get:function(){return c},set:function(t){t instanceof l&&(c=t)}}),Object.defineProperty(this,'path',{get:function(){return c.path},set:function(t){c.path=t}});var u=[];Object.defineProperty(this,'ctxStack',{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,'fillStyle',{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=h(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,'strokeStyle',{get:function(){return this.ctx.strokeStyle},set:function(t){var e=h(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,'lineCap',{get:function(){return this.ctx.lineCap},set:function(t){-1!==['butt','round','square'].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,'lineWidth',{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,'lineJoin',{get:function(){return this.ctx.lineJoin},set:function(t){-1!==['bevel','round','miter'].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,'miterLimit',{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,'textBaseline',{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,'textAlign',{get:function(){return this.ctx.textAlign},set:function(t){-1!==['right','end','center','left','start'].indexOf(t)&&(this.ctx.textAlign=t)}});var d=null;function f(t,e){if(null===d){var n=function(t){var e=[];return Object.keys(t).forEach((function(n){t[n].forEach((function(t){var A=null;switch(t){case'bold':A={family:n,weight:'bold'};break;case'italic':A={family:n,style:'italic'};break;case'bolditalic':A={family:n,weight:'bold',style:'italic'};break;case'':case'normal':A={family:n}}null!==A&&(A.ref={name:n,style:t},e.push(A))}))})),e}(t.getFontList());d=function(t){for(var e={},n=0;n<t.length;++n){var A=iB(t[n]),r=A.family,i=A.stretch,o=A.style,s=A.weight;e[r]=e[r]||{},e[r][i]=e[r][i]||{},e[r][i][o]=e[r][i][o]||{},e[r][i][o][s]=A}return e}(n.concat(e))}return d}var g=null;Object.defineProperty(this,'fontFaces',{get:function(){return g},set:function(t){d=null,g=t}}),Object.defineProperty(this,'font',{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],A=(e[2],e[3]),r=e[4],i=(e[5],e[6]),o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(r)[2];r='px'===o?Math.floor(parseFloat(r)*this.pdf.internal.scaleFactor):'em'===o?Math.floor(parseFloat(r)*this.pdf.getFontSize()):Math.floor(parseFloat(r)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(r);var s=function(t){var e,n,A=[],r=t.trim();if(''===r)return pB;if(r in aB)return[aB[r]];for(;''!==r;){switch(n=null,e=(r=lB(r)).charAt(0)){case'"':case'\'':n=uB(r.substring(1),e);break;default:n=hB(r)}if(null===n)return pB;if(A.push(n[0]),''!==(r=lB(n[1]))&&','!==r.charAt(0))return pB;r=r.replace(/^,/,'')}return A}(i);if(this.fontFaces){var a=function(t,e,n){for(var A=(n=n||{}).defaultFontFamily||'times',r=Object.assign({},sB,n.genericFontFamilies||{}),i=null,o=null,s=0;s<e.length;++s)if(r[(i=iB(e[s])).family]&&(i.family=r[i.family]),t.hasOwnProperty(i.family)){o=t[i.family];break}if(!(o=o||t[A]))throw new Error('Could not find a font-family for the rule \''+cB(i)+'\' and default family \''+A+'\'.');if(o=function(t,e){if(e[t])return e[t];var n=nB[t],A=n<=nB.normal?-1:1,r=oB(e,eB,n,A);if(!r)throw new Error('Could not find a matching font-stretch value for '+t);return r}(i.stretch,o),o=function(t,e){if(e[t])return e[t];for(var n=tB[t],A=0;A<n.length;++A)if(e[n[A]])return e[n[A]];throw new Error('Could not find a matching font-style for '+t)}(i.style,o),!(o=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var n=rB[t],A=oB(e,AB,n,t<400?-1:1);if(!A)throw new Error('Could not find a matching font-weight for value '+t);return A}(i.weight,o)))throw new Error('Failed to resolve a font for the rule \''+cB(i)+'\'.');return o}(f(this.pdf,this.fontFaces),s.map((function(t){return{family:t,stretch:'normal',weight:A,style:n}})));this.pdf.setFont(a.ref.name,a.ref.style)}else{var c='';('bold'===A||parseInt(A,10)>=700||'bold'===n)&&(c='bold'),'italic'===n&&(c+='italic'),0===c.length&&(c='normal');for(var l='',u={arial:'Helvetica',Arial:'Helvetica',verdana:'Helvetica',Verdana:'Helvetica',helvetica:'Helvetica',Helvetica:'Helvetica','sans-serif':'Helvetica',fixed:'Courier',monospace:'Courier',terminal:'Courier',cursive:'Times',fantasy:'Times',serif:'Times'},h=0;h<s.length;h++){if(void 0!==this.pdf.internal.getFont(s[h],c,{noFallback:!0,disableWarning:!0})){l=s[h];break}if('bolditalic'===c&&void 0!==this.pdf.internal.getFont(s[h],'bold',{noFallback:!0,disableWarning:!0}))l=s[h],c='bold';else if(void 0!==this.pdf.internal.getFont(s[h],'normal',{noFallback:!0,disableWarning:!0})){l=s[h],c='normal';break}}if(''===l)for(var d=0;d<s.length;d++)if(u[s[d]]){l=u[s[d]];break}l=''===l?'Times':l,this.pdf.setFont(l,c)}}}}),Object.defineProperty(this,'globalCompositeOperation',{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,'globalAlpha',{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,'lineDashOffset',{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,M.call(this)}}),Object.defineProperty(this,'lineDash',{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,M.call(this)}}),Object.defineProperty(this,'ignoreClearRect',{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};u.prototype.setLineDash=function(t){this.lineDash=t},u.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},u.prototype.fill=function(){y.call(this,'fill',!1)},u.prototype.stroke=function(){y.call(this,'stroke',!1)},u.prototype.beginPath=function(){this.path=[{type:'begin'}]},u.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw _y.error('jsPDF.context2d.moveTo: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.moveTo');var n=this.ctx.transform.applyToPoint(new o(t,e));this.path.push({type:'mt',x:n.x,y:n.y}),this.ctx.lastPoint=new o(t,e)},u.prototype.closePath=function(){var t=new o(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if('begin'===this.path[e].type&&'object'===jv(this.path[e+1])&&'number'==typeof this.path[e+1].x){t=new o(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:'close'}),this.ctx.lastPoint=new o(t.x,t.y)},u.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw _y.error('jsPDF.context2d.lineTo: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.lineTo');var n=this.ctx.transform.applyToPoint(new o(t,e));this.path.push({type:'lt',x:n.x,y:n.y}),this.ctx.lastPoint=new o(n.x,n.y)},u.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),y.call(this,null,!0)},u.prototype.quadraticCurveTo=function(t,e,n,A){if(isNaN(n)||isNaN(A)||isNaN(t)||isNaN(e))throw _y.error('jsPDF.context2d.quadraticCurveTo: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.quadraticCurveTo');var r=this.ctx.transform.applyToPoint(new o(n,A)),i=this.ctx.transform.applyToPoint(new o(t,e));this.path.push({type:'qct',x1:i.x,y1:i.y,x:r.x,y:r.y}),this.ctx.lastPoint=new o(r.x,r.y)},u.prototype.bezierCurveTo=function(t,e,n,A,r,i){if(isNaN(r)||isNaN(i)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A))throw _y.error('jsPDF.context2d.bezierCurveTo: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.bezierCurveTo');var s=this.ctx.transform.applyToPoint(new o(r,i)),a=this.ctx.transform.applyToPoint(new o(t,e)),c=this.ctx.transform.applyToPoint(new o(n,A));this.path.push({type:'bct',x1:a.x,y1:a.y,x2:c.x,y2:c.y,x:s.x,y:s.y}),this.ctx.lastPoint=new o(s.x,s.y)},u.prototype.arc=function(t,e,n,A,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A)||isNaN(r))throw _y.error('jsPDF.context2d.arc: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.arc');if(i=Boolean(i),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new o(t,e));t=s.x,e=s.y;var a=this.ctx.transform.applyToPoint(new o(0,n)),c=this.ctx.transform.applyToPoint(new o(0,0));n=Math.sqrt(Math.pow(a.x-c.x,2)+Math.pow(a.y-c.y,2))}Math.abs(r-A)>=2*Math.PI&&(A=0,r=2*Math.PI),this.path.push({type:'arc',x:t,y:e,radius:n,startAngle:A,endAngle:r,counterclockwise:i})},u.prototype.arcTo=function(t,e,n,A,r){throw new Error('arcTo not implemented.')},u.prototype.rect=function(t,e,n,A){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A))throw _y.error('jsPDF.context2d.rect: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.rect');this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+A),this.lineTo(t,e+A),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},u.prototype.fillRect=function(t,e,n,A){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A))throw _y.error('jsPDF.context2d.fillRect: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.fillRect');if(!d.call(this)){var r={};'butt'!==this.lineCap&&(r.lineCap=this.lineCap,this.lineCap='butt'),'miter'!==this.lineJoin&&(r.lineJoin=this.lineJoin,this.lineJoin='miter'),this.beginPath(),this.rect(t,e,n,A),this.fill(),r.hasOwnProperty('lineCap')&&(this.lineCap=r.lineCap),r.hasOwnProperty('lineJoin')&&(this.lineJoin=r.lineJoin)}},u.prototype.strokeRect=function(t,e,n,A){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A))throw _y.error('jsPDF.context2d.strokeRect: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.strokeRect');f.call(this)||(this.beginPath(),this.rect(t,e,n,A),this.stroke())},u.prototype.clearRect=function(t,e,n,A){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A))throw _y.error('jsPDF.context2d.clearRect: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.clearRect');this.ignoreClearRect||(this.fillStyle='#ffffff',this.fillRect(t,e,n,A))},u.prototype.save=function(t){t='boolean'!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out('q');if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var A=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=A}},u.prototype.restore=function(t){t='boolean'!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out('Q');this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},u.prototype.toDataURL=function(){throw new Error('toDataUrl not implemented.')};var h=function(t){var e,n,A,r;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,n=0,A=0,r=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==i)e=parseInt(i[1]),n=parseInt(i[2]),A=parseInt(i[3]),r=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(i[1]),n=parseInt(i[2]),A=parseInt(i[3]),r=parseFloat(i[4]);else{if(r=1,'string'==typeof t&&'#'!==t.charAt(0)){var o=new Ry(t);t=o.ok?o.toHex():'#000000'}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,A=t.substring(3,4),A+=A):(e=t.substring(1,3),n=t.substring(3,5),A=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),A=parseInt(A,16)}}return{r:e,g:n,b:A,a:r,style:t}},d=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},f=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};u.prototype.fillText=function(t,e,n,A){if(isNaN(e)||isNaN(n)||'string'!=typeof t)throw _y.error('jsPDF.context2d.fillText: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.fillText');if(A=isNaN(A)?void 0:A,!d.call(this)){var r=_(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;E.call(this,{text:t,x:e,y:n,scale:i,angle:r,align:this.textAlign,maxWidth:A})}},u.prototype.strokeText=function(t,e,n,A){if(isNaN(e)||isNaN(n)||'string'!=typeof t)throw _y.error('jsPDF.context2d.strokeText: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.strokeText');if(!f.call(this)){A=isNaN(A)?void 0:A;var r=_(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;E.call(this,{text:t,x:e,y:n,scale:i,renderingMode:'stroke',angle:r,align:this.textAlign,maxWidth:A})}},u.prototype.measureText=function(t){if('string'!=typeof t)throw _y.error('jsPDF.context2d.measureText: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.measureText');var e=this.pdf,n=this.pdf.internal.scaleFactor,A=e.internal.getFontSize(),r=e.getStringUnitWidth(t)*A/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,'width',{get:function(){return e}}),this}({width:r*=Math.round(96*n/72*1e4)/1e4})},u.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw _y.error('jsPDF.context2d.scale: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.scale');var n=new a(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},u.prototype.rotate=function(t){if(isNaN(t))throw _y.error('jsPDF.context2d.rotate: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.rotate');var e=new a(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},u.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw _y.error('jsPDF.context2d.translate: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.translate');var n=new a(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},u.prototype.transform=function(t,e,n,A,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(A)||isNaN(r)||isNaN(i))throw _y.error('jsPDF.context2d.transform: Invalid arguments',arguments),new Error('Invalid arguments passed to jsPDF.context2d.transform');var o=new a(t,e,n,A,r,i);this.ctx.transform=this.ctx.transform.multiply(o)},u.prototype.setTransform=function(t,e,n,A,r,i){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,A=isNaN(A)?1:A,r=isNaN(r)?0:r,i=isNaN(i)?0:i,this.ctx.transform=new a(t,e,n,A,r,i)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};u.prototype.drawImage=function(t,e,n,A,r,i,o,c,l){var u=this.pdf.getImageProperties(t),h=1,d=1,f=1,m=1;void 0!==A&&void 0!==c&&(f=c/A,m=l/r,h=u.width/A*c/A,d=u.height/r*l/r),void 0===i&&(i=e,o=n,e=0,n=0),void 0!==A&&void 0===c&&(c=A,l=r),void 0===A&&void 0===c&&(c=u.width,l=u.height);for(var y,B=this.ctx.transform.decompose(),C=_(B.rotate.shx),x=new a,F=(x=(x=(x=x.multiply(B.translate)).multiply(B.skew)).multiply(B.scale)).applyToRectangle(new s(i-e*f,o-n*m,A*h,r*d)),I=p.call(this,F),Q=[],E=0;E<I.length;E+=1)-1===Q.indexOf(I[E])&&Q.push(I[E]);if(v(Q),this.autoPaging)for(var S=Q[0],U=Q[Q.length-1],L=S;L<U+1;L++){this.pdf.setPage(L);var N=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],k=1===L?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],O=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],M=1===L?0:P+(L-2)*O;if(0!==this.ctx.clip_path.length){var H=this.path;y=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(y,this.posX+this.margin[3],-M+k+this.ctx.prevPageLastElemOffset),w.call(this,'fill',!0),this.path=H}var T=JSON.parse(JSON.stringify(F));T=b([T],this.posX+this.margin[3],-M+k+this.ctx.prevPageLastElemOffset)[0];var D=(L>S||L<U)&&g.call(this);D&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],N,O,null).clip().discardPath()),this.pdf.addImage(t,'JPEG',T.x,T.y,T.w,T.h,null,null,C),D&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,'JPEG',F.x,F.y,F.w,F.h,null,null,C)};var p=function(t,e,n){var A=[];e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var r=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case'mt':case'lt':A.push(Math.floor((t.y+r)/n)+1);break;case'arc':A.push(Math.floor((t.y+r-t.radius)/n)+1),A.push(Math.floor((t.y+r+t.radius)/n)+1);break;case'qct':var i=P(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);A.push(Math.floor((i.y+r)/n)+1),A.push(Math.floor((i.y+i.h+r)/n)+1);break;case'bct':var o=O(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);A.push(Math.floor((o.y+r)/n)+1),A.push(Math.floor((o.y+o.h+r)/n)+1);break;case'rect':A.push(Math.floor((t.y+r)/n)+1),A.push(Math.floor((t.y+t.h+r)/n)+1)}for(var s=0;s<A.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<A[s];)m.call(this);return A},m=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,A=this.lineCap,r=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=A,this.lineWidth=r,this.lineJoin=i},b=function(t,e,n){for(var A=0;A<t.length;A++)switch(t[A].type){case'bct':t[A].x2+=e,t[A].y2+=n;case'qct':t[A].x1+=e,t[A].y1+=n;default:t[A].x+=e,t[A].y+=n}return t},v=function(t){return t.sort((function(t,e){return t-e}))},y=function(t,e){for(var n,A,r=this.fillStyle,i=this.strokeStyle,o=this.lineCap,s=this.lineWidth,a=Math.abs(s*this.ctx.transform.scaleX),c=this.lineJoin,l=JSON.parse(JSON.stringify(this.path)),u=JSON.parse(JSON.stringify(this.path)),h=[],d=0;d<u.length;d++)if(void 0!==u[d].x)for(var f=p.call(this,u[d]),y=0;y<f.length;y+=1)-1===h.indexOf(f[y])&&h.push(f[y]);for(var B=0;B<h.length;B++)for(;this.pdf.internal.getNumberOfPages()<h[B];)m.call(this);if(v(h),this.autoPaging)for(var C=h[0],x=h[h.length-1],F=C;F<x+1;F++){this.pdf.setPage(F),this.fillStyle=r,this.strokeStyle=i,this.lineCap=o,this.lineWidth=a,this.lineJoin=c;var I=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Q=1===F?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],S=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],U=1===F?0:E+(F-2)*S;if(0!==this.ctx.clip_path.length){var L=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(n,this.posX+this.margin[3],-U+Q+this.ctx.prevPageLastElemOffset),w.call(this,t,!0),this.path=L}if(A=JSON.parse(JSON.stringify(l)),this.path=b(A,this.posX+this.margin[3],-U+Q+this.ctx.prevPageLastElemOffset),!1===e||0===F){var N=(F>C||F<x)&&g.call(this);N&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,S,null).clip().discardPath()),w.call(this,t,e),N&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=a,w.call(this,t,e),this.lineWidth=s;this.path=l},w=function(t,e){if(('stroke'!==t||e||!f.call(this))&&('stroke'===t||e||!d.call(this))){for(var n,A,r=[],i=this.path,o=0;o<i.length;o++){var s=i[o];switch(s.type){case'begin':r.push({begin:!0});break;case'close':r.push({close:!0});break;case'mt':r.push({start:s,deltas:[],abs:[]});break;case'lt':var a=r.length;if(i[o-1]&&!isNaN(i[o-1].x)&&(n=[s.x-i[o-1].x,s.y-i[o-1].y],a>0))for(;a>=0;a--)if(!0!==r[a-1].close&&!0!==r[a-1].begin){r[a-1].deltas.push(n),r[a-1].abs.push(s);break}break;case'bct':n=[s.x1-i[o-1].x,s.y1-i[o-1].y,s.x2-i[o-1].x,s.y2-i[o-1].y,s.x-i[o-1].x,s.y-i[o-1].y],r[r.length-1].deltas.push(n);break;case'qct':var c=i[o-1].x+2/3*(s.x1-i[o-1].x),l=i[o-1].y+2/3*(s.y1-i[o-1].y),u=s.x+2/3*(s.x1-s.x),h=s.y+2/3*(s.y1-s.y),g=s.x,p=s.y;n=[c-i[o-1].x,l-i[o-1].y,u-i[o-1].x,h-i[o-1].y,g-i[o-1].x,p-i[o-1].y],r[r.length-1].deltas.push(n);break;case'arc':r.push({deltas:[],abs:[],arc:!0}),Array.isArray(r[r.length-1].abs)&&r[r.length-1].abs.push(s)}}A=e?null:'stroke'===t?'stroke':'fill';for(var m=!1,b=0;b<r.length;b++)if(r[b].arc)for(var v=r[b].abs,y=0;y<v.length;y++){var w=v[y];'arc'===w.type?x.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,e,!m):S.call(this,w.x,w.y),m=!0}else if(!0===r[b].close)this.pdf.internal.out('h'),m=!1;else if(!0!==r[b].begin){var B=r[b].start.x,C=r[b].start.y;U.call(this,r[b].deltas,B,C),m=!0}A&&F.call(this,A),e&&I.call(this)}},B=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case'bottom':return t-n;case'top':return t+e-n;case'hanging':return t+e-2*n;case'middle':return t+e/2-n;default:return t}},C=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};u.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?'#000000':this.colorStops[0][1]},t.isCanvasGradient=!0,t},u.prototype.createPattern=function(){return this.createLinearGradient()},u.prototype.createRadialGradient=function(){return this.createLinearGradient()};var x=function(t,e,n,A,r,i,o,s,a){for(var c=N.call(this,n,A,r,i),l=0;l<c.length;l++){var u=c[l];0===l&&(a?Q.call(this,u.x1+t,u.y1+e):S.call(this,u.x1+t,u.y1+e)),L.call(this,t,e,u.x2,u.y2,u.x3,u.y3,u.x4,u.y4)}s?I.call(this):F.call(this,o)},F=function(t){switch(t){case'stroke':this.pdf.internal.out('S');break;case'fill':this.pdf.internal.out('f')}},I=function(){this.pdf.clip(),this.pdf.discardPath()},Q=function(t,e){this.pdf.internal.out(n(t)+' '+A(e)+' m')},E=function(t){var e;switch(t.align){case'right':case'end':e='right';break;case'center':e='center';break;default:e='left'}var n=this.pdf.getTextDimensions(t.text),A=B.call(this,t.y),r=C.call(this,A)-n.h,i=this.ctx.transform.applyToPoint(new o(t.x,A)),c=this.ctx.transform.decompose(),l=new a;l=(l=(l=l.multiply(c.translate)).multiply(c.skew)).multiply(c.scale);for(var u,h,d,f=this.ctx.transform.applyToRectangle(new s(t.x,A,n.w,n.h)),m=l.applyToRectangle(new s(t.x,r,n.w,n.h)),y=p.call(this,m),x=[],F=0;F<y.length;F+=1)-1===x.indexOf(y[F])&&x.push(y[F]);if(v(x),this.autoPaging)for(var I=x[0],Q=x[x.length-1],E=I;E<Q+1;E++){this.pdf.setPage(E);var S=1===E?this.posY+this.margin[0]:this.margin[0],U=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[2],N=L-this.margin[0],k=this.pdf.internal.pageSize.width-this.margin[1],_=k-this.margin[3],P=1===E?0:U+(E-2)*N;if(0!==this.ctx.clip_path.length){var O=this.path;u=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(u,this.posX+this.margin[3],-1*P+S),w.call(this,'fill',!0),this.path=O}var M=b([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-P+S+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale);var H='text'!==this.autoPaging;if(H||M.y+M.h<=L){if(H||M.y>=S&&M.x<=k){var T=H?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||k-M.x)[0],D=b([JSON.parse(JSON.stringify(f))],this.posX+this.margin[3],-P+S+this.ctx.prevPageLastElemOffset)[0],R=H&&(E>I||E<Q)&&g.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_,N,null).clip().discardPath()),this.pdf.text(T,D.x,D.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),R&&this.pdf.restoreGraphicsState()}}else M.y<L&&(this.ctx.prevPageLastElemOffset+=L-M.y);t.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=d)}else t.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale),this.pdf.text(t.text,i.x+this.posX,i.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=d)},S=function(t,e,r,i){r=r||0,i=i||0,this.pdf.internal.out(n(t+r)+' '+A(e+i)+' l')},U=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},L=function(t,n,A,o,s,a,c,l){this.pdf.internal.out([e(r(A+t)),e(i(o+n)),e(r(s+t)),e(i(a+n)),e(r(c+t)),e(i(l+n)),'c'].join(' '))},N=function(t,e,n,A){for(var r=2*Math.PI,i=Math.PI/2;e>n;)e-=r;var o=Math.abs(n-e);o<r&&A&&(o=r-o);for(var s=[],a=A?-1:1,c=e;o>1e-5;){var l=c+a*Math.min(o,i);s.push(k.call(this,t,c,l)),o-=Math.abs(l-c),c=l}return s},k=function(t,e,n){var A=(n-e)/2,r=t*Math.cos(A),i=t*Math.sin(A),o=r,s=-i,a=o*o+s*s,c=a+o*r+s*i,l=4/3*(Math.sqrt(2*a*c)-c)/(o*i-s*r),u=o-l*s,h=s+l*o,d=u,f=-h,g=A+e,p=Math.cos(g),m=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:u*p-h*m,y2:u*m+h*p,x3:d*p-f*m,y3:d*m+f*p,x4:t*Math.cos(n),y4:t*Math.sin(n)}},_=function(t){return 180*t/Math.PI},P=function(t,e,n,A,r,i){var o=t+.5*(n-t),a=e+.5*(A-e),c=r+.5*(n-r),l=i+.5*(A-i),u=Math.min(t,r,o,c),h=Math.max(t,r,o,c),d=Math.min(e,i,a,l),f=Math.max(e,i,a,l);return new s(u,d,h-u,f-d)},O=function(t,e,n,A,r,i,o,a){var c,l,u,h,d,f,g,p,m,b,v,y,w,B,C=n-t,x=A-e,F=r-n,I=i-A,Q=o-r,E=a-i;for(l=0;l<41;l++)m=(g=(u=t+(c=l/40)*C)+c*((d=n+c*F)-u))+c*(d+c*(r+c*Q-d)-g),b=(p=(h=e+c*x)+c*((f=A+c*I)-h))+c*(f+c*(i+c*E-f)-p),0==l?(v=m,y=b,w=m,B=b):(v=Math.min(v,m),y=Math.min(y,b),w=Math.max(w,m),B=Math.max(B,b));return new s(Math.round(v),Math.round(y),Math.round(w-v),Math.round(B-y))},M=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,n=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(uw.API),
140
+ /**
141
+ * @license
142
+ * jsPDF filters PlugIn
143
+ * Copyright (c) 2014 Aras Abbasi
144
+ *
145
+ * Licensed under the MIT License.
146
+ * http://opensource.org/licenses/mit-license
147
+ */
148
+ function(t){var e=function(t){var e,n,A,r,i,o,s,a,c,l;for(n=[],A=0,r=(t+=e='\0\0\0\0'.slice(t.length%4||4)).length;r>A;A+=4)0!==(i=(t.charCodeAt(A)<<24)+(t.charCodeAt(A+1)<<16)+(t.charCodeAt(A+2)<<8)+t.charCodeAt(A+3))?(o=(i=((i=((i=((i=(i-(l=i%85))/85)-(c=i%85))/85)-(a=i%85))/85)-(s=i%85))/85)%85,n.push(o+33,s+33,a+33,c+33,l+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+'~>'},n=function(t){var e,n,A,r,i,o=String,s='length',a=255,c='charCodeAt',l='slice',u='replace';for(t[l](-2),t=t[l](0,-2)[u](/\s/g,'')[u]('z','!!!!!'),A=[],r=0,i=(t+=e='uuuuu'[l](t[s]%5||5))[s];i>r;r+=5)n=52200625*(t[c](r)-33)+614125*(t[c](r+1)-33)+7225*(t[c](r+2)-33)+85*(t[c](r+3)-33)+(t[c](r+4)-33),A.push(a&n>>24,a&n>>16,a&n>>8,a&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(A,e[s]),o.fromCharCode.apply(o,A)},A=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,'')).indexOf('>')&&(t=t.substr(0,t.indexOf('>'))),t.length%2&&(t+='0'),!1===e.test(t))return'';for(var n='',A=0;A<t.length;A+=2)n+=String.fromCharCode('0x'+(t[A]+t[A+1]));return n},r=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=Uy(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),'')};t.processDataByFilters=function(t,i){var o=0,s=t||'',a=[];for('string'==typeof(i=i||[])&&(i=[i]),o=0;o<i.length;o+=1)switch(i[o]){case'ASCII85Decode':case'/ASCII85Decode':s=n(s),a.push('/ASCII85Encode');break;case'ASCII85Encode':case'/ASCII85Encode':s=e(s),a.push('/ASCII85Decode');break;case'ASCIIHexDecode':case'/ASCIIHexDecode':s=A(s),a.push('/ASCIIHexEncode');break;case'ASCIIHexEncode':case'/ASCIIHexEncode':s=s.split('').map((function(t){return('0'+t.charCodeAt().toString(16)).slice(-2)})).join('')+'>',a.push('/ASCIIHexDecode');break;case'FlateEncode':case'/FlateEncode':s=r(s),a.push('/FlateDecode');break;default:throw new Error('The filter: "'+i[o]+'" is not implemented')}return{data:s,reverseChain:a.reverse().join(' ')}}}(uw.API),
149
+ /**
150
+ * @license
151
+ * jsPDF fileloading PlugIn
152
+ * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
153
+ *
154
+ * Licensed under the MIT License.
155
+ * http://opensource.org/licenses/mit-license
156
+ */
157
+ function(t){t.loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n='function'==typeof n?n:function(){};var A=void 0;try{A=function(t,e,n){var A=new XMLHttpRequest,r=0,i=function(t){var e=t.length,n=[],A=String.fromCharCode;for(r=0;r<e;r+=1)n.push(A(255&t.charCodeAt(r)));return n.join('')};if(A.open('GET',t,!e),A.overrideMimeType('text/plain; charset=x-user-defined'),!1===e&&(A.onload=function(){200===A.status?n(i(this.responseText)):n(void 0)}),A.send(null),e&&200===A.status)return i(A.responseText)}(t,e,n)}catch(t){}return A}(t,e,n)},t.loadImageFile=t.loadFile}(uw.API),function(t){function e(){return(Ny.html2canvas?Promise.resolve(Ny.html2canvas):Promise.resolve().then((function(){return Gv}))).catch((function(t){return Promise.reject(new Error('Could not load html2canvas: '+t))})).then((function(t){return t.default?t.default:t}))}function n(){return(Ny.DOMPurify?Promise.resolve(Ny.DOMPurify):Promise.resolve().then((function(){return IS}))).catch((function(t){return Promise.reject(new Error('Could not load dompurify: '+t))})).then((function(t){return t.default?t.default:t}))}var A=function(t){var e=jv(t);return'undefined'===e?'undefined':'string'===e||t instanceof String?'string':'number'===e||t instanceof Number?'number':'function'===e||t instanceof Function?'function':t&&t.constructor===Array?'array':t&&1===t.nodeType?'element':'object'===e?'object':'unknown'},r=function(t,e){var n=document.createElement(t);for(var A in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[A]=e.style[A];return n},i=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),A=t.convert(Promise.resolve(),n);return(A=A.setProgress(1,t,1,[t])).set(e)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(t,e){return t.__proto__=e||i.prototype,t},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:'file.pdf',margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:'transparent'}},i.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(A(t)){case'string':return'string';case'element':return'canvas'===t.nodeName.toLowerCase()?'canvas':'element';default:return'unknown'}}(t)){case'string':return this.then(n).then((function(e){return this.set({src:r('div',{innerHTML:t,dompurify:e})})}));case'element':return this.set({src:t});case'canvas':return this.set({canvas:t});case'img':return this.set({img:t});default:return this.error('Unknown source type.')}}))},i.prototype.to=function(t){switch(t){case'container':return this.toContainer();case'canvas':return this.toCanvas();case'img':return this.toImg();case'pdf':return this.toPdf();default:return this.error('Invalid target.')}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error('Cannot duplicate - no source HTML.')},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:'relative',display:'inline-block',width:('number'!=typeof this.opt.width||isNaN(this.opt.width)||'number'!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+'px',left:0,right:0,top:0,margin:'auto',backgroundColor:this.opt.backgroundColor},e=function t(e,n){for(var A=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),r=e.firstChild;r;r=r.nextSibling)!0!==n&&1===r.nodeType&&'SCRIPT'===r.nodeName||A.appendChild(t(r,n));return 1===e.nodeType&&('CANVAS'===e.nodeName?(A.width=e.width,A.height=e.height,A.getContext('2d').drawImage(e,0,0)):'TEXTAREA'!==e.nodeName&&'SELECT'!==e.nodeName||(A.value=e.value),A.addEventListener('load',(function(){A.scrollTop=e.scrollTop,A.scrollLeft=e.scrollLeft}),!0)),A}(this.prop.src,this.opt.html2canvas.javascriptEnabled);'BODY'===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+'px'),this.prop.overlay=r('div',{className:'html2pdf__overlay',style:{position:'fixed',overflow:'hidden',zIndex:1e3,left:'-100000px',right:0,bottom:0,top:0}}),this.prop.container=r('div',{className:'html2pdf__container',style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(r('div',{style:{clear:'both',border:'0 none transparent',margin:0,padding:0,height:0}})),this.prop.container.style.float='none',this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position='relative',this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+'px'}))},i.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},i.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=this.opt.jsPDF,n=this.opt.fontFaces,A='number'!=typeof this.opt.width||isNaN(this.opt.width)||'number'!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,r=Object.assign({async:!0,allowTaint:!0,scale:A,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:'#ffffff',imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete r.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=n,n)for(var i=0;i<n.length;++i){var o=n[i],s=o.src.find((function(t){return'truetype'===t.format}));s&&e.addFont(s.url,o.ref.name,o.ref.style)}return r.windowHeight=r.windowHeight||0,r.windowHeight=0==r.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):r.windowHeight,e.context2d.save(!0),t(this.prop.container,r)})).then((function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL('image/'+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement('img'),this.prop.img.src=t}))},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},i.prototype.output=function(t,e,n){return'img'===(n=n||'pdf').toLowerCase()||'image'===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},i.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},i.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case'img':return this.prop.img;case'datauristring':case'dataurlstring':return this.prop.img.src;case'datauri':case'dataurl':return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},i.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},i.prototype.set=function(t){if('object'!==A(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in i.template.prop)return function(){this.prop[e]=t[e]};switch(e){case'margin':return this.setMargin.bind(this,t.margin);case'jsPDF':return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case'pageSize':return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},i.prototype.get=function(t,e){return this.then((function(){var n=t in i.template.prop?this.prop[t]:this.opt[t];return e?e(n):n}))},i.prototype.setMargin=function(t){return this.then((function(){switch(A(t)){case'number':t=[t,t,t,t];case'array':if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error('Invalid margin array.')}this.opt.margin=t})).then(this.setPageSize)},i.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||uw.getPageSize(this.opt.jsPDF)).hasOwnProperty('inner')||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},i.prototype.setProgress=function(t,e,n,A){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=A&&(this.progress.stack=A),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(t,e,n,A){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,A?this.progress.stack.concat(A):null)},i.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,(function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return n.updateProgress(null,t),e})).then(t,e).then((function(t){return n.updateProgress(1),t}))}))},i.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var A=-1!==Promise.toString().indexOf('[native code]')&&'Promise'===Promise.name?this:i.convert(Object.assign({},this),Promise.prototype),r=n.call(A,t,e);return i.convert(r,this.__proto__)},i.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},i.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},i.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return i.convert(e,this)},i.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},i.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,uw.getPageSize=function(t,e,n){if('object'===jv(t)){var A=t;t=A.orientation,e=A.unit||e,n=A.format||n}e=e||'mm',n=n||'a4',t=(''+(t||'P')).toLowerCase();var r,i=(''+n).toLowerCase(),o={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],'government-letter':[576,756],legal:[612,1008],'junior-legal':[576,360],ledger:[1224,792],tabloid:[792,1224],'credit-card':[153,243]};switch(e){case'pt':r=1;break;case'mm':r=72/25.4;break;case'cm':r=72/2.54;break;case'in':r=72;break;case'px':r=.75;break;case'pc':case'em':r=12;break;case'ex':r=6;break;default:throw'Invalid unit: '+e}var s,a=0,c=0;if(o.hasOwnProperty(i))a=o[i][1]/r,c=o[i][0]/r;else try{a=n[1],c=n[0]}catch(t){throw new Error('Invalid format: '+n)}if('p'===t||'portrait'===t)t='p',c>a&&(s=c,c=a,a=s);else{if('l'!==t&&'landscape'!==t)throw'Invalid orientation: '+t;t='l',a>c&&(s=c,c=a,a=s)}return{width:c,height:a,unit:e,k:r,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(iB):null;var n=new i(e);return e.worker?n:n.from(t).doCallback()}}(uw.API),uw.API.addJS=function(t){return gB=t,this.internal.events.subscribe('postPutResources',(function(){dB=this.internal.newObject(),this.internal.out('<<'),this.internal.out('/Names [(EmbeddedJS) '+(dB+1)+' 0 R]'),this.internal.out('>>'),this.internal.out('endobj'),fB=this.internal.newObject(),this.internal.out('<<'),this.internal.out('/S /JavaScript'),this.internal.out('/JS ('+gB+')'),this.internal.out('>>'),this.internal.out('endobj')})),this.internal.events.subscribe('putCatalog',(function(){void 0!==dB&&void 0!==fB&&this.internal.out('/Names <</JavaScript '+dB+' 0 R>>')})),this
158
+ /**
159
+ * @license
160
+ * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
161
+ *
162
+ * Licensed under the MIT License.
163
+ * http://opensource.org/licenses/mit-license
164
+ */},function(t){var e;t.events.push(['postPutResources',function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var A=t.outline.render().split(/\r\n/),r=0;r<A.length;r++){var i=A[r],o=n.exec(i);if(null!=o){var s=o[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(i)}if(this.outline.createNamedDestinations){var a=this.internal.pages.length,c=[];for(r=0;r<a;r++){var l=t.internal.newObject();c.push(l);var u=t.internal.getPageInfo(r+1);t.internal.write('<< /D['+u.objId+' 0 R /XYZ null null null]>> endobj')}var h=t.internal.newObject();for(t.internal.write('<< /Names [ '),r=0;r<c.length;r++)t.internal.write('(page_'+(r+1)+')'+c[r]+' 0 R');t.internal.write(' ] >>','endobj'),e=t.internal.newObject(),t.internal.write('<< /Dests '+h+' 0 R'),t.internal.write('>>','endobj')}}]),t.events.push(['putCatalog',function(){this.outline.root.children.length>0&&(this.internal.write('/Outlines',this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write('/Names '+e+' 0 R'))}]),t.events.push(['initialized',function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var A={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(A),A},t.outline.render=function(){return this.ctx={},this.ctx.val='',this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line('/Type /Outlines'),t.children.length>0&&(this.line('/First '+this.makeRef(t.children[0])),this.line('/Last '+this.makeRef(t.children[t.children.length-1]))),this.line('/Count '+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,A=0;A<e.children.length;A++){var r=e.children[A];this.objStart(r),this.line('/Title '+this.makeString(r.title)),this.line('/Parent '+this.makeRef(e)),A>0&&this.line('/Prev '+this.makeRef(e.children[A-1])),A<e.children.length-1&&this.line('/Next '+this.makeRef(e.children[A+1])),r.children.length>0&&(this.line('/First '+this.makeRef(r.children[0])),this.line('/Last '+this.makeRef(r.children[r.children.length-1])));var i=this.count=this.count_r({count:0},r);if(i>0&&this.line('/Count '+i),r.options&&r.options.pageNumber){var o=t.internal.getPageInfo(r.options.pageNumber);this.line('/Dest ['+o.objId+' 0 R /XYZ 0 '+n(0)+' 0]')}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+'\r\n'},t.outline.makeRef=function(t){return t.id+' 0 R'},t.outline.makeString=function(e){return'('+t.internal.pdfEscape(e)+')'},t.outline.objStart=function(t){this.ctx.val+='\r\n'+t.id+' 0 obj\r\n<<\r\n'},t.outline.objEnd=function(){this.ctx.val+='>> \r\nendobj\r\n'},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(uw.API),
165
+ /**
166
+ * @license
167
+ *
168
+ * Licensed under the MIT License.
169
+ * http://opensource.org/licenses/mit-license
170
+ */
171
+ function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,A,r,i,o){var s,a=this.decode.DCT_DECODE,c=null;if('string'==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=i||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var n,A=256*t.charCodeAt(4)+t.charCodeAt(5),r=t.length,i={width:0,height:0,numcomponents:1},o=4;o<r;o+=2){if(o+=A,-1!==e.indexOf(t.charCodeAt(o+1))){n=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),i={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:n,numcomponents:t.charCodeAt(o+9)};break}A=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return i}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}c={data:t,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:a,index:n,alias:A}}return c}}(uw.API);var mB,bB,vB,yB,wB,BB=function(){var t,e,n;function A(t){var e,n,A,r,i,o,s,a,c,l,u,h,d,f;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(e=this.readUInt32(),c=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join('')){case'IHDR':this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case'acTL':this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case'PLTE':this.palette=this.read(e);break;case'fcTL':o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),r=this.readUInt16()||100,o.delay=1e3*i/r,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case'IDAT':case'fdAT':for('fdAT'===c&&(this.pos+=4,e-=4),t=(null!=o?o.data:void 0)||this.imgData,h=0;0<=e?h<e:h>e;0<=e?++h:--h)t.push(this.data[this.pos++]);break;case'tRNS':switch(this.transparency={},this.colorType){case 3:if(A=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>A)throw new Error('More transparent colors than palette size');if((l=A-this.transparency.indexed.length)>0)for(d=0;0<=l?d<l:d>l;0<=l?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case'tEXt':s=(u=this.read(e)).indexOf(0),a=String.fromCharCode.apply(String,u.slice(0,s)),this.text[a]=String.fromCharCode.apply(String,u.slice(s+1));break;case'IEND':return o&&this.animation.frames.push(o),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(f=this.colorType)||6===f,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return'DeviceGray';case 3:return'DeviceRGB'}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error('Incomplete or corrupt PNG file')}}A.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},A.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},A.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},A.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),A=0,r=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function i(i,o,s,a){var c,l,u,h,d,f,g,p,m,b,v,y,w,B,C,x,F,I,Q,E,S,U=Math.ceil((r.width-i)/s),L=Math.ceil((r.height-o)/a),N=r.width==U&&r.height==L;for(B=e*U,y=N?n:new Uint8Array(B*L),f=t.length,w=0,l=0;w<L&&A<f;){switch(t[A++]){case 0:for(h=F=0;F<B;h=F+=1)y[l++]=t[A++];break;case 1:for(h=I=0;I<B;h=I+=1)c=t[A++],d=h<e?0:y[l-e],y[l++]=(c+d)%256;break;case 2:for(h=Q=0;Q<B;h=Q+=1)c=t[A++],u=(h-h%e)/e,C=w&&y[(w-1)*B+u*e+h%e],y[l++]=(C+c)%256;break;case 3:for(h=E=0;E<B;h=E+=1)c=t[A++],u=(h-h%e)/e,d=h<e?0:y[l-e],C=w&&y[(w-1)*B+u*e+h%e],y[l++]=(c+Math.floor((d+C)/2))%256;break;case 4:for(h=S=0;S<B;h=S+=1)c=t[A++],u=(h-h%e)/e,d=h<e?0:y[l-e],0===w?C=x=0:(C=y[(w-1)*B+u*e+h%e],x=u&&y[(w-1)*B+(u-1)*e+h%e]),g=d+C-x,p=Math.abs(g-d),b=Math.abs(g-C),v=Math.abs(g-x),m=p<=b&&p<=v?d:b<=v?C:x,y[l++]=(c+m)%256;break;default:throw new Error('Invalid filter algorithm: '+t[A-1])}if(!N){var k=((o+w*a)*r.width+i)*e,_=w*B;for(h=0;h<U;h+=1){for(var P=0;P<e;P+=1)n[k++]=y[_++];k+=(s-1)*e}}w++}}return t=Ly(t),1==r.interlaceMethod?(i(0,0,8,8),i(4,0,8,8),i(0,4,4,8),i(2,0,4,4),i(0,2,2,4),i(1,0,2,2),i(0,1,1,2)):i(0,0,1,1),n},A.prototype.decodePalette=function(){var t,e,n,A,r,i,o,s,a;for(n=this.palette,i=this.transparency.indexed||[],r=new Uint8Array((i.length||0)+n.length),A=0,t=0,e=o=0,s=n.length;o<s;e=o+=3)r[A++]=n[e],r[A++]=n[e+1],r[A++]=n[e+2],r[A++]=null!=(a=i[t++])?a:255;return r},A.prototype.copyToImageData=function(t,e){var n,A,r,i,o,s,a,c,l,u,h;if(A=this.colors,l=null,n=this.hasAlphaChannel,this.palette.length&&(l=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),A=4,n=!0),c=(r=t.data||t).length,o=l||e,i=s=0,1===A)for(;i<c;)a=l?4*e[i/4]:s,u=o[a++],r[i++]=u,r[i++]=u,r[i++]=u,r[i++]=n?o[a++]:255,s=a;else for(;i<c;)a=l?4*e[i/4]:s,r[i++]=o[a++],r[i++]=o[a++],r[i++]=o[a++],r[i++]=n?o[a++]:255,s=a},A.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var r=function(){if('[object Window]'===Object.prototype.toString.call(Ny)){try{e=Ny.document.createElement('canvas'),n=e.getContext('2d')}catch(t){return!1}return!0}return!1};return r(),t=function(t){var A;if(!0===r())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(A=new Image).src=e.toDataURL(),A;throw new Error('This method requires a Browser with Canvas-capability.')},A.prototype.decodeFrames=function(e){var n,A,r,i,o,s,a,c;if(this.animation){for(c=[],A=o=0,s=(a=this.animation.frames).length;o<s;A=++o)n=a[A],r=e.createImageData(n.width,n.height),i=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(r,i),n.imageData=r,c.push(n.image=t(r));return c}},A.prototype.renderFrame=function(t,e){var n,A,r;return n=(A=this.animation.frames)[e],r=A[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=r?r.disposeOp:void 0)?t.clearRect(r.xOffset,r.yOffset,r.width,r.height):2===(null!=r?r.disposeOp:void 0)&&t.putImageData(r.imageData,r.xOffset,r.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},A.prototype.animate=function(t){var e,n,A,r,i,o,s=this;return n=0,o=this.animation,r=o.numFrames,A=o.frames,i=o.numPlays,(e=function(){var o,a;if(o=n++%r,a=A[o],s.renderFrame(t,o),r>1&&n/r<i)return s.animation._timeout=setTimeout(e,a.delay)})()},A.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},A.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext('2d'),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},A}();
172
+ /**
173
+ * @license
174
+ *
175
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
176
+ *
177
+ * Permission is hereby granted, free of charge, to any person obtaining
178
+ * a copy of this software and associated documentation files (the
179
+ * "Software"), to deal in the Software without restriction, including
180
+ * without limitation the rights to use, copy, modify, merge, publish,
181
+ * distribute, sublicense, and/or sell copies of the Software, and to
182
+ * permit persons to whom the Software is furnished to do so, subject to
183
+ * the following conditions:
184
+ *
185
+ * The above copyright notice and this permission notice shall be
186
+ * included in all copies or substantial portions of the Software.
187
+ *
188
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
189
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
190
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
191
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
192
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
193
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
194
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
195
+ * ====================================================================
196
+ */
197
+ /**
198
+ * @license
199
+ * (c) Dean McNamee <dean@gmail.com>, 2013.
200
+ *
201
+ * https://github.com/deanm/omggif
202
+ *
203
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
204
+ * of this software and associated documentation files (the "Software"), to
205
+ * deal in the Software without restriction, including without limitation the
206
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
207
+ * sell copies of the Software, and to permit persons to whom the Software is
208
+ * furnished to do so, subject to the following conditions:
209
+ *
210
+ * The above copyright notice and this permission notice shall be included in
211
+ * all copies or substantial portions of the Software.
212
+ *
213
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
214
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
215
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
216
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
217
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
218
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
219
+ * IN THE SOFTWARE.
220
+ *
221
+ * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
222
+ * including animation and compression. It does not rely on any specific
223
+ * underlying system, so should run in the browser, Node, or Plask.
224
+ */function CB(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error('Invalid GIF 87a/89a header.');var n=t[e++]|t[e++]<<8,A=t[e++]|t[e++]<<8,r=t[e++],i=r>>7,o=1<<1+(7&r);t[e++],t[e++];var s=null,a=null;i&&(s=e,a=o,e+=3*o);var c=!0,l=[],u=0,h=null,d=0,f=null;for(this.width=n,this.height=A;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,f=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((Q=t[e++])>=0))throw Error('Invalid block size');if(0===Q)break;e+=Q}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error('Invalid graphics extension block.');var g=t[e++];u=t[e++]|t[e++]<<8,h=t[e++],0==(1&g)&&(h=null),d=g>>2&7,e++;break;case 254:for(;;){if(!((Q=t[e++])>=0))throw Error('Invalid block size');if(0===Q)break;e+=Q}break;default:throw new Error('Unknown graphic control label: 0x'+t[e-1].toString(16))}break;case 44:var p=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,y=t[e++],w=y>>6&1,B=1<<1+(7&y),C=s,x=a,F=!1;y>>7&&(F=!0,C=e,x=B,e+=3*B);var I=e;for(e++;;){var Q;if(!((Q=t[e++])>=0))throw Error('Invalid block size');if(0===Q)break;e+=Q}l.push({x:p,y:m,width:b,height:v,has_local_palette:F,palette_offset:C,palette_size:x,data_offset:I,data_length:e-I,transparent_index:h,interlaced:!!w,delay:u,disposal:d});break;case 59:c=!1;break;default:throw new Error('Unknown gif block: 0x'+t[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(t){if(t<0||t>=l.length)throw new Error('Frame index out of range.');return l[t]},this.decodeAndBlitFrameBGRA=function(e,A){var r=this.frameInfo(e),i=r.width*r.height,o=new Uint8Array(i);xB(t,r.data_offset,o,i);var s=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var c=r.width,l=n-c,u=c,h=4*(r.y*n+r.x),d=4*((r.y+r.height)*n+r.x),f=h,g=4*l;!0===r.interlaced&&(g+=4*n*7);for(var p=8,m=0,b=o.length;m<b;++m){var v=o[m];if(0===u&&(u=c,(f+=g)>=d&&(g=4*l+4*n*(p-1),f=h+(c+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=t[s+3*v],w=t[s+3*v+1],B=t[s+3*v+2];A[f++]=B,A[f++]=w,A[f++]=y,A[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,A){var r=this.frameInfo(e),i=r.width*r.height,o=new Uint8Array(i);xB(t,r.data_offset,o,i);var s=r.palette_offset,a=r.transparent_index;null===a&&(a=256);var c=r.width,l=n-c,u=c,h=4*(r.y*n+r.x),d=4*((r.y+r.height)*n+r.x),f=h,g=4*l;!0===r.interlaced&&(g+=4*n*7);for(var p=8,m=0,b=o.length;m<b;++m){var v=o[m];if(0===u&&(u=c,(f+=g)>=d&&(g=4*l+4*n*(p-1),f=h+(c+l)*(p<<1),p>>=1)),v===a)f+=4;else{var y=t[s+3*v],w=t[s+3*v+1],B=t[s+3*v+2];A[f++]=y,A[f++]=w,A[f++]=B,A[f++]=255}--u}}}function xB(t,e,n,A){for(var r=t[e++],i=1<<r,o=i+1,s=o+1,a=r+1,c=(1<<a)-1,l=0,u=0,h=0,d=t[e++],f=new Int32Array(4096),g=null;;){for(;l<16&&0!==d;)u|=t[e++]<<l,l+=8,1===d?d=t[e++]:--d;if(l<a)break;var p=u&c;if(u>>=a,l-=a,p!==i){if(p===o)break;for(var m=p<s?p:g,b=0,v=m;v>i;)v=f[v]>>8,++b;var y=v;if(h+b+(m!==p?1:0)>A)return void _y.log('Warning, gif stream longer than expected.');n[h++]=y;var w=h+=b;for(m!==p&&(n[h++]=y),v=m;b--;)v=f[v],n[--w]=255&v,v>>=8;null!==g&&s<4096&&(f[s++]=g<<8|y,s>=c+1&&a<12&&(++a,c=c<<1|1)),g=p}else s=o+1,c=(1<<(a=r+1))-1,g=null}return h!==A&&_y.log('Warning, gif stream shorter than expected.'),n}
225
+ /**
226
+ * @license
227
+ Copyright (c) 2008, Adobe Systems Incorporated
228
+ All rights reserved.
229
+
230
+ Redistribution and use in source and binary forms, with or without
231
+ modification, are permitted provided that the following conditions are
232
+ met:
233
+
234
+ * Redistributions of source code must retain the above copyright notice,
235
+ this list of conditions and the following disclaimer.
236
+
237
+ * Redistributions in binary form must reproduce the above copyright
238
+ notice, this list of conditions and the following disclaimer in the
239
+ documentation and/or other materials provided with the distribution.
240
+
241
+ * Neither the name of Adobe Systems Incorporated nor the names of its
242
+ contributors may be used to endorse or promote products derived from
243
+ this software without specific prior written permission.
244
+
245
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
246
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
247
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
248
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
249
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
250
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
251
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
252
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
253
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
254
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
255
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
256
+ */function FB(t){var e,n,A,r,i,o=Math.floor,s=new Array(64),a=new Array(64),c=new Array(64),l=new Array(64),u=new Array(65535),h=new Array(65535),d=new Array(64),f=new Array(64),g=[],p=0,m=7,b=new Array(64),v=new Array(64),y=new Array(64),w=new Array(256),B=new Array(2048),C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],x=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],I=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Q=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],L=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function N(t,e){for(var n=0,A=0,r=new Array,i=1;i<=16;i++){for(var o=1;o<=t[i];o++)r[e[A]]=[],r[e[A]][0]=n,r[e[A]][1]=i,A++,n++;n*=2}return r}function k(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(p|=1<<m),n--,--m<0&&(255==p?(_(255),_(0)):_(p),m=7,p=0)}function _(t){g.push(t)}function P(t){_(t>>8&255),_(255&t)}function O(t,e,n,A,r){for(var i,o=r[0],s=r[240],a=function(t,e){var n,A,r,i,o,s,a,c,l,u,h=0;for(l=0;l<8;++l){n=t[h],A=t[h+1],r=t[h+2],i=t[h+3],o=t[h+4],s=t[h+5],a=t[h+6];var f=n+(c=t[h+7]),g=n-c,p=A+a,m=A-a,b=r+s,v=r-s,y=i+o,w=i-o,B=f+y,C=f-y,x=p+b,F=p-b;t[h]=B+x,t[h+4]=B-x;var I=.707106781*(F+C);t[h+2]=C+I,t[h+6]=C-I;var Q=.382683433*((B=w+v)-(F=m+g)),E=.5411961*B+Q,S=1.306562965*F+Q,U=.707106781*(x=v+m),L=g+U,N=g-U;t[h+5]=N+E,t[h+3]=N-E,t[h+1]=L+S,t[h+7]=L-S,h+=8}for(h=0,l=0;l<8;++l){n=t[h],A=t[h+8],r=t[h+16],i=t[h+24],o=t[h+32],s=t[h+40],a=t[h+48];var k=n+(c=t[h+56]),_=n-c,P=A+a,O=A-a,M=r+s,H=r-s,T=i+o,D=i-o,R=k+T,V=k-T,G=P+M,j=P-M;t[h]=R+G,t[h+32]=R-G;var W=.707106781*(j+V);t[h+16]=V+W,t[h+48]=V-W;var K=.382683433*((R=D+H)-(j=O+_)),X=.5411961*R+K,z=1.306562965*j+K,Z=.707106781*(G=H+O),Y=_+Z,q=_-Z;t[h+40]=q+X,t[h+24]=q-X,t[h+8]=Y+z,t[h+56]=Y-z,h++}for(l=0;l<64;++l)u=t[l]*e[l],d[l]=u>0?u+.5|0:u-.5|0;return d}(t,e),c=0;c<64;++c)f[C[c]]=a[c];var l=f[0]-n;n=f[0],0==l?k(A[0]):(k(A[h[i=32767+l]]),k(u[i]));for(var g=63;g>0&&0==f[g];)g--;if(0==g)return k(o),n;for(var p,m=1;m<=g;){for(var b=m;0==f[m]&&m<=g;)++m;var v=m-b;if(v>=16){p=v>>4;for(var y=1;y<=p;++y)k(s);v&=15}i=32767+f[m],k(r[(v<<4)+h[i]]),k(u[i]),m++}return 63!=g&&k(o),n}function M(t){t=Math.min(Math.max(t,1),100),i!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var A=o((e[n]*t+50)/100);A=Math.min(Math.max(A,1),255),s[C[n]]=A}for(var r=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var u=o((r[i]*t+50)/100);u=Math.min(Math.max(u,1),255),a[C[i]]=u}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,f=0;f<8;f++)for(var g=0;g<8;g++)c[d]=1/(s[C[d]]*h[f]*h[g]*8),l[d]=1/(a[C[d]]*h[f]*h[g]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),i=t)}this.encode=function(t,i){i&&M(i),g=new Array,p=0,m=7,P(65496),P(65504),P(16),_(74),_(70),_(73),_(70),_(0),_(1),_(1),_(0),P(1),P(1),_(0),_(0),function(){P(65499),P(132),_(0);for(var t=0;t<64;t++)_(s[t]);_(1);for(var e=0;e<64;e++)_(a[e])}(),function(t,e){P(65472),P(17),_(8),P(e),P(t),_(3),_(1),_(17),_(0),_(2),_(17),_(1),_(3),_(17),_(1)}(t.width,t.height),function(){P(65476),P(418),_(0);for(var t=0;t<16;t++)_(x[t+1]);for(var e=0;e<=11;e++)_(F[e]);_(16);for(var n=0;n<16;n++)_(I[n+1]);for(var A=0;A<=161;A++)_(Q[A]);_(1);for(var r=0;r<16;r++)_(E[r+1]);for(var i=0;i<=11;i++)_(S[i]);_(17);for(var o=0;o<16;o++)_(U[o+1]);for(var s=0;s<=161;s++)_(L[s])}(),P(65498),P(12),_(3),_(1),_(0),_(2),_(17),_(3),_(17),_(0),_(63),_(0);var o=0,u=0,h=0;p=0,m=7,this.encode.displayName='_encode_';for(var d,f,w,C,N,H,T,D,R,V=t.data,G=t.width,j=t.height,W=4*G,K=0;K<j;){for(d=0;d<W;){for(N=W*K+d,T=-1,D=0,R=0;R<64;R++)H=N+(D=R>>3)*W+(T=4*(7&R)),K+D>=j&&(H-=W*(K+1+D-j)),d+T>=W&&(H-=d+T-W+4),f=V[H++],w=V[H++],C=V[H++],b[R]=(B[f]+B[w+256>>0]+B[C+512>>0]>>16)-128,v[R]=(B[f+768>>0]+B[w+1024>>0]+B[C+1280>>0]>>16)-128,y[R]=(B[f+1280>>0]+B[w+1536>>0]+B[C+1792>>0]>>16)-128;o=O(b,c,o,e,A),u=O(v,l,u,n,r),h=O(y,l,h,n,r),d+=32}K+=8}if(m>=0){var X=[];X[1]=m+1,X[0]=(1<<m+1)-1,k(X)}return P(65497),new Uint8Array(g)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)w[e]=t(e)}(),e=N(x,F),n=N(E,S),A=N(I,Q),r=N(U,L),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var A=t;A<e;A++)h[32767+A]=n,u[32767+A]=[],u[32767+A][1]=n,u[32767+A][0]=A;for(var r=-(e-1);r<=-t;r++)h[32767+r]=n,u[32767+r]=[],u[32767+r][1]=n,u[32767+r][0]=e-1+r;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)B[t]=19595*t,B[t+256>>0]=38470*t,B[t+512>>0]=7471*t+32768,B[t+768>>0]=-11059*t,B[t+1024>>0]=-21709*t,B[t+1280>>0]=32768*t+8421375,B[t+1536>>0]=-27439*t,B[t+1792>>0]=-5329*t}(),M(t)}
257
+ /**
258
+ * @license
259
+ * Copyright (c) 2017 Aras Abbasi
260
+ *
261
+ * Licensed under the MIT License.
262
+ * http://opensource.org/licenses/mit-license
263
+ */function IB(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===['BM','BA','CI','CP','IC','PT'].indexOf(this.flag))throw new Error('Invalid BMP File');this.parseHeader(),this.parseBGR()}function QB(t){function e(t){if(!t)throw Error('assert :P')}function n(t,e,n){for(var A=0;4>A;A++)if(t[e+A]!=n.charCodeAt(A))return!0;return!1}function A(t,e,n,A,r){for(var i=0;i<r;i++)t[e+i]=n[A+i]}function r(t,e,n,A){for(var r=0;r<A;r++)t[e+r]=n}function i(t){return new Int32Array(t)}function o(t,e){for(var n=[],A=0;A<t;A++)n.push(new e);return n}function s(t,e){var n=[];return function t(n,A,r){for(var i=r[A],o=0;o<i&&(n.push(r.length>A+1?[]:new e),!(r.length<A+1));o++)t(n[o],A+1,r)}(n,0,t),n}var a=function(){var t=this;function a(t,e){for(var n=1<<e-1>>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function c(t,n,A,r,i){e(!(r%A));do{t[n+(r-=A)]=i}while(0<r)}function l(t,n,A,r,o){if(e(2328>=o),512>=o)var s=i(512);else if(null==(s=i(o)))return 0;return function(t,n,A,r,o,s){var l,h,d=n,f=1<<A,g=i(16),p=i(16);for(e(0!=o),e(null!=r),e(null!=t),e(0<A),h=0;h<o;++h){if(15<r[h])return 0;++g[r[h]]}if(g[0]==o)return 0;for(p[1]=0,l=1;15>l;++l){if(g[l]>1<<l)return 0;p[l+1]=p[l]+g[l]}for(h=0;h<o;++h)l=r[h],0<r[h]&&(s[p[l]++]=h);if(1==p[15])return(r=new u).g=0,r.value=s[0],c(t,d,1,f,r),f;var m,b=-1,v=f-1,y=0,w=1,B=1,C=1<<A;for(h=0,l=1,o=2;l<=A;++l,o<<=1){if(w+=B<<=1,0>(B-=g[l]))return 0;for(;0<g[l];--g[l])(r=new u).g=l,r.value=s[h++],c(t,d+y,o,C,r),y=a(y,l)}for(l=A+1,o=2;15>=l;++l,o<<=1){if(w+=B<<=1,0>(B-=g[l]))return 0;for(;0<g[l];--g[l]){if(r=new u,(y&v)!=b){for(d+=C,m=1<<(b=l)-A;15>b&&!(0>=(m-=g[b]));)++b,m<<=1;f+=C=1<<(m=b-A),t[n+(b=y&v)].g=m+A,t[n+b].value=d-n-b}r.g=l-A,r.value=s[h++],c(t,d+(y>>A),o,C,r),y=a(y,l)}}return w!=2*p[15]-1?0:f}(t,n,A,r,o,s)}function u(){this.value=this.g=0}function h(){this.value=this.g=0}function d(){this.G=o(5,u),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Tn,h)}function f(t,n,A,r){e(null!=t),e(null!=n),e(2147483648>r),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=A,t.Jd=n,t.Yc=A+r,t.Zc=4<=r?A+r-4+1:A,I(t)}function g(t,e){for(var n=0;0<e--;)n|=E(t,128)<<e;return n}function p(t,e){var n=g(t,e);return Q(t)?-n:n}function m(t,n,A,r){var i,o=0;for(e(null!=t),e(null!=n),e(4294967288>r),t.Sb=r,t.Ra=0,t.u=0,t.h=0,4<r&&(r=4),i=0;i<r;++i)o+=n[A+i]<<8*i;t.Ra=o,t.bb=r,t.oa=n,t.pa=A}function b(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<Vn-8>>>0,++t.bb,t.u-=8;C(t)&&(t.h=1,t.u=0)}function v(t,n){if(e(0<=n),!t.h&&n<=Rn){var A=B(t)&Dn[n];return t.u+=n,b(t),A}return t.h=1,t.u=0}function y(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(t){return t.Ra>>>(t.u&Vn-1)>>>0}function C(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Vn}function x(t,e){t.u=e,t.h=C(t)}function F(t){t.u>=Gn&&(e(t.u>=Gn),b(t))}function I(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function Q(t){return g(t,1)}function E(t,e){var n=t.Ca;0>t.b&&I(t);var A=t.b,r=n*e>>>8,i=(t.I>>>A>r)+0;for(i?(n-=r,t.I-=r+1<<A>>>0):n=r+1,A=n,r=0;256<=A;)r+=8,A>>=8;return A=7^r+jn[A],t.b-=A,t.Ca=(n<<A)-1,i}function S(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255}function U(t,e){return t[e+0]<<0|t[e+1]<<8}function L(t,e){return U(t,e)|t[e+2]<<16}function N(t,e){return U(t,e)|U(t,e+2)<<16}function k(t,n){var A=1<<n;return e(null!=t),e(0<n),t.X=i(A),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function _(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),A(n.X,0,t.X,0,1<<n.Xa)}function P(){this.X=[],this.Xa=this.Mb=0}function O(t,n,A,r){e(null!=A),e(null!=r);var i=A[0],o=r[0];return 0==i&&(i=(t*o+n/2)/n),0==o&&(o=(n*i+t/2)/t),0>=i||0>=o?0:(A[0]=i,r[0]=o,1)}function M(t,e){return t+(1<<e)-1>>>e}function H(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function T(e,n){t[n]=function(n,A,r,i,o,s,a){var c;for(c=0;c<o;++c){var l=t[e](s[a+c-1],r,i+c);s[a+c]=H(n[A+c],l)}}}function D(){this.ud=this.hd=this.jd=0}function R(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function V(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function G(t,e){return V(t+(t-e+.5>>1))}function j(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function W(t,e,n,A,r,i,o){for(A=i[o-1],n=0;n<r;++n)i[o+n]=A=H(t[e+n],A)}function K(t,e,n,A,r){var i;for(i=0;i<n;++i){var o=t[e+i],s=o>>8&255,a=16711935&(a=(a=16711935&o)+((s<<16)+s));A[r+i]=(4278255360&o)+a>>>0}}function X(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function z(t,e,n,A,r,i){var o;for(o=0;o<A;++o){var s=e[n+o],a=s>>>8,c=s,l=255&(l=(l=s>>>16)+((t.jd<<24>>24)*(a<<24>>24)>>>5));c=255&(c=(c+=(t.hd<<24>>24)*(a<<24>>24)>>>5)+((t.ud<<24>>24)*(l<<24>>24)>>>5)),r[i+o]=(4278255360&s)+(l<<16)+c}}function Z(e,n,A,r,i){t[n]=function(t,e,n,A,o,s,a,c,l){for(A=a;A<c;++A)for(a=0;a<l;++a)o[s++]=i(n[r(t[e++])])},t[e]=function(e,n,o,s,a,c,l){var u=8>>e.b,h=e.Ea,d=e.K[0],f=e.w;if(8>u)for(e=(1<<e.b)-1,f=(1<<u)-1;n<o;++n){var g,p=0;for(g=0;g<h;++g)g&e||(p=r(s[a++])),c[l++]=i(d[p&f]),p>>=u}else t['VP8LMapColor'+A](s,a,d,f,c,l,n,o,h)}}function Y(t,e,n,A,r){for(n=e+n;e<n;){var i=t[e++];A[r++]=i>>16&255,A[r++]=i>>8&255,A[r++]=i>>0&255}}function q(t,e,n,A,r){for(n=e+n;e<n;){var i=t[e++];A[r++]=i>>16&255,A[r++]=i>>8&255,A[r++]=i>>0&255,A[r++]=i>>24&255}}function J(t,e,n,A,r){for(n=e+n;e<n;){var i=(o=t[e++])>>16&240|o>>12&15,o=o>>0&240|o>>28&15;A[r++]=i,A[r++]=o}}function $(t,e,n,A,r){for(n=e+n;e<n;){var i=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;A[r++]=i,A[r++]=o}}function tt(t,e,n,A,r){for(n=e+n;e<n;){var i=t[e++];A[r++]=i>>0&255,A[r++]=i>>8&255,A[r++]=i>>16&255}}function et(t,e,n,r,i,o){if(0==o)for(n=e+n;e<n;)S(r,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),i+=32;else A(r,i,t,e,n)}function nt(e,n){t[n][0]=t[e+'0'],t[n][1]=t[e+'1'],t[n][2]=t[e+'2'],t[n][3]=t[e+'3'],t[n][4]=t[e+'4'],t[n][5]=t[e+'5'],t[n][6]=t[e+'6'],t[n][7]=t[e+'7'],t[n][8]=t[e+'8'],t[n][9]=t[e+'9'],t[n][10]=t[e+'10'],t[n][11]=t[e+'11'],t[n][12]=t[e+'12'],t[n][13]=t[e+'13'],t[n][14]=t[e+'0'],t[n][15]=t[e+'0']}function At(t){return t==GA||t==jA||t==WA||t==KA}function rt(){this.eb=[],this.size=this.A=this.fb=0}function it(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new rt,this.f.kb=new it,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function at(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ct(t){return alert('todo:WebPSamplerProcessPlane'),t.T}function lt(t,e){var n=t.T,r=e.ba.f.RGBA,i=r.eb,o=r.fb+t.ka*r.A,s=mr[e.ba.S],a=t.y,c=t.O,l=t.f,u=t.N,h=t.ea,d=t.W,f=e.cc,g=e.dc,p=e.Mc,m=e.Nc,b=t.ka,v=t.ka+t.T,y=t.U,w=y+1>>1;for(0==b?s(a,c,null,null,l,u,h,d,l,u,h,d,i,o,null,null,y):(s(e.ec,e.fc,a,c,f,g,p,m,l,u,h,d,i,o-r.A,i,o,y),++n);b+2<v;b+=2)f=l,g=u,p=h,m=d,u+=t.Rc,d+=t.Rc,o+=2*r.A,s(a,(c+=2*t.fa)-t.fa,a,c,f,g,p,m,l,u,h,d,i,o-r.A,i,o,y);return c+=t.fa,t.j+v<t.o?(A(e.ec,e.fc,a,c,y),A(e.cc,e.dc,l,u,w),A(e.Mc,e.Nc,h,d,w),n--):1&v||s(a,c,null,null,l,u,h,d,l,u,h,d,i,o+r.A,null,null,y),n}function ut(t,n,A){var r=t.F,i=[t.J];if(null!=r){var o=t.U,s=n.ba.S,a=s==DA||s==WA;n=n.ba.f.RGBA;var c=[0],l=t.ka;c[0]=t.T,t.Kb&&(0==l?--c[0]:(--l,i[0]-=t.width),t.j+t.ka+t.T==t.o&&(c[0]=t.o-t.j-l));var u=n.eb;l=n.fb+l*n.A,t=FA(r,i[0],t.width,o,c,u,l+(a?0:3),n.A),e(A==c),t&&At(s)&&CA(u,l,a,o,c,n.A)}return 0}function ht(t){var e=t.ma,n=e.ba.S,A=11>n,r=n==MA||n==TA||n==DA||n==RA||12==n||At(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!On(e.Oa,t,r?11:12))return 0;if(r&&At(n)&&vn(),t.da)alert('todo:use_scaling');else{if(A){if(e.Ib=ct,t.Kb){if(n=t.U+1>>1,e.memory=i(t.U+2*n),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+n,e.Ib=lt,vn()}}else alert('todo:EmitYUV');r&&(e.Jb=ut,A&&mn())}if(A&&!Lr){for(t=0;256>t;++t)Nr[t]=89858*(t-128)+Ir>>Fr,Pr[t]=-22014*(t-128)+Ir,_r[t]=-45773*(t-128),kr[t]=113618*(t-128)+Ir>>Fr;for(t=Qr;t<Er;++t)e=76283*(t-16)+Ir>>Fr,Or[t-Qr]=Wt(e,255),Mr[t-Qr]=Wt(e+8>>4,15);Lr=1}return 1}function dt(t){var n=t.ma,A=t.U,r=t.T;return e(!(1&t.ka)),0>=A||0>=r?0:(A=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,A),n.Dc+=A,1)}function ft(t){t.ma.memory=null}function gt(t,e,n,A){return 47!=v(t,8)?0:(e[0]=v(t,14)+1,n[0]=v(t,14)+1,A[0]=v(t,1),0!=v(t,3)?0:!t.h)}function pt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+v(e,n)+1}function mt(t,e){return 120<e?e-120:1<=(n=((n=JA[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function bt(t,e,n){var A=B(n),r=t[e+=255&A].g-8;return 0<r&&(x(n,n.u+8),A=B(n),e+=t[e].value,e+=A&(1<<r)-1),x(n,n.u+t[e].g),t[e].value}function vt(t,n,A){return A.g+=t.g,A.value+=t.value<<n>>>0,e(8>=A.g),t.g}function yt(t,n,A){var r=t.xc;return e((n=0==r?0:t.vc[t.md*(A>>r)+(n>>r)])<t.Wb),t.Ya[n]}function wt(t,n,r,i){var o=t.ab,s=t.c*n,a=t.C;n=a+n;var c=r,l=i;for(i=t.Ta,r=t.Ua;0<o--;){var u=t.gc[o],h=a,d=n,f=c,g=l,p=(l=i,c=r,u.Ea);switch(e(h<d),e(d<=u.nc),u.hc){case 2:Xn(f,g,(d-h)*p,l,c);break;case 0:var m=h,b=d,v=l,y=c,w=(I=u).Ea;0==m&&(Wn(f,g,null,null,1,v,y),W(f,g+1,0,0,w-1,v,y+1),g+=w,y+=w,++m);for(var B=1<<I.b,C=B-1,x=M(w,I.b),F=I.K,I=I.w+(m>>I.b)*x;m<b;){var Q=F,E=I,S=1;for(Kn(f,g,v,y-w,1,v,y);S<w;){var U=(S&~C)+B;U>w&&(U=w),(0,Jn[Q[E++]>>8&15])(f,g+ +S,v,y+S-w,U-S,v,y+S),S=U}g+=w,y+=w,++m&C||(I+=x)}d!=u.nc&&A(l,c-p,l,c+(d-h-1)*p,p);break;case 1:for(p=f,b=g,w=(f=u.Ea)-(y=f&~(v=(g=1<<u.b)-1)),m=M(f,u.b),B=u.K,u=u.w+(h>>u.b)*m;h<d;){for(C=B,x=u,F=new D,I=b+y,Q=b+f;b<I;)X(C[x++],F),$n(F,p,b,g,l,c),b+=g,c+=g;b<Q&&(X(C[x++],F),$n(F,p,b,w,l,c),b+=w,c+=w),++h&v||(u+=m)}break;case 3:if(f==l&&g==c&&0<u.b){for(b=l,f=p=c+(d-h)*p-(y=(d-h)*M(u.Ea,u.b)),g=l,v=c,m=[],y=(w=y)-1;0<=y;--y)m[y]=g[v+y];for(y=w-1;0<=y;--y)b[f+y]=m[y];zn(u,h,d,l,p,l,c)}else zn(u,h,d,f,g,l,c)}c=i,l=r}l!=r&&A(i,r,c,l,s)}function Bt(t,n){var A=t.V,r=t.Ba+t.c*t.C,i=n-t.C;if(e(n<=t.l.o),e(16>=i),0<i){var o=t.l,s=t.Ta,a=t.Ua,c=o.width;if(wt(t,i,A,r),i=a=[a],e((A=t.C)<(r=n)),e(o.v<o.va),r>o.o&&(r=o.o),A<o.j){var l=o.j-A;A=o.j,i[0]+=l*c}if(A>=r?A=0:(i[0]+=4*o.v,o.ka=A-o.j,o.U=o.va-o.v,o.T=r-A,A=1),A){if(a=a[0],11>(A=t.ca).S){var u=A.f.RGBA,h=(r=A.S,i=o.U,o=o.T,l=u.eb,u.A),d=o;for(u=u.fb+t.Ma*u.A;0<d--;){var f=s,g=a,p=i,m=l,b=u;switch(r){case OA:tA(f,g,p,m,b);break;case MA:eA(f,g,p,m,b);break;case GA:eA(f,g,p,m,b),CA(m,b,0,p,1,0);break;case HA:rA(f,g,p,m,b);break;case TA:et(f,g,p,m,b,1);break;case jA:et(f,g,p,m,b,1),CA(m,b,0,p,1,0);break;case DA:et(f,g,p,m,b,0);break;case WA:et(f,g,p,m,b,0),CA(m,b,1,p,1,0);break;case RA:nA(f,g,p,m,b);break;case KA:nA(f,g,p,m,b),xA(m,b,p,1,0);break;case VA:AA(f,g,p,m,b);break;default:e(0)}a+=c,u+=h}t.Ma+=o}else alert('todo:EmitRescaledRowsYUVA');e(t.Ma<=A.height)}}t.C=n,e(t.C<=t.i)}function Ct(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,A=t.Ya[e].H;if(0<n[1][A[1]+0].g||0<n[2][A[2]+0].g||0<n[3][A[3]+0].g)return 0}return 1}function xt(t,n,A,r,i,o){if(0!=t.Z){var s=t.qd,a=t.rd;for(e(null!=pr[t.Z]);n<A;++n)pr[t.Z](s,a,r,i,r,i,o),s=r,a=i,i+=o;t.qd=s,t.rd=a}}function Ft(t,n){var A=t.l.ma,r=0==A.Z||1==A.Z?t.l.j:t.C;if(r=t.C<r?r:t.C,e(n<=t.l.o),n>r){var i=t.l.width,o=A.ca,s=A.tb+i*r,a=t.V,c=t.Ba+t.c*r,l=t.gc;e(1==t.ab),e(3==l[0].hc),Yn(l[0],r,n,a,c,o,s),xt(A,r,n,o,s,i)}t.C=t.Ma=n}function It(t,n,A,r,i,o,s){var a=t.$/r,c=t.$%r,l=t.m,u=t.s,h=A+t.$,d=h;i=A+r*i;var f=A+r*o,g=280+u.ua,p=t.Pb?a:16777216,m=0<u.ua?u.Wa:null,b=u.wc,v=h<f?yt(u,c,a):null;e(t.C<o),e(f<=i);var y=!1;t:for(;;){for(;y||h<f;){var w=0;if(a>=p){var I=h-A;e((p=t).Pb),p.wd=p.m,p.xd=I,0<p.s.ua&&_(p.s.Wa,p.s.vb),p=a+tr}if(c&b||(v=yt(u,c,a)),e(null!=v),v.Qb&&(n[h]=v.qb,y=!0),!y)if(F(l),v.jc){w=l,I=n;var Q=h,E=v.pd[B(w)&Tn-1];e(v.jc),256>E.g?(x(w,w.u+E.g),I[Q]=E.value,w=0):(x(w,w.u+E.g-256),e(256<=E.value),w=E.value),0==w&&(y=!0)}else w=bt(v.G[0],v.H[0],l);if(l.h)break;if(y||256>w){if(!y)if(v.nd)n[h]=(v.qb|w<<8)>>>0;else{if(F(l),y=bt(v.G[1],v.H[1],l),F(l),I=bt(v.G[2],v.H[2],l),Q=bt(v.G[3],v.H[3],l),l.h)break;n[h]=(Q<<24|y<<16|w<<8|I)>>>0}if(y=!1,++h,++c>=r&&(c=0,++a,null!=s&&a<=o&&!(a%16)&&s(t,a),null!=m))for(;d<h;)w=n[d++],m.X[(506832829*w&4294967295)>>>m.Mb]=w}else if(280>w){if(w=pt(w-256,l),I=bt(v.G[4],v.H[4],l),F(l),I=mt(r,I=pt(I,l)),l.h)break;if(h-A<I||i-h<w)break t;for(Q=0;Q<w;++Q)n[h+Q]=n[h+Q-I];for(h+=w,c+=w;c>=r;)c-=r,++a,null!=s&&a<=o&&!(a%16)&&s(t,a);if(e(h<=i),c&b&&(v=yt(u,c,a)),null!=m)for(;d<h;)w=n[d++],m.X[(506832829*w&4294967295)>>>m.Mb]=w}else{if(!(w<g))break t;for(y=w-280,e(null!=m);d<h;)w=n[d++],m.X[(506832829*w&4294967295)>>>m.Mb]=w;w=h,e(!(y>>>(I=m).Xa)),n[w]=I.X[y],y=!0}y||e(l.h==C(l))}if(t.Pb&&l.h&&h<i)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&_(t.s.vb,t.s.Wa);else{if(l.h)break t;null!=s&&s(t,a>o?o:a),t.a=0,t.$=h-A}return 1}return t.a=3,0}function Qt(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function Et(){var e=new sn;return null==e?null:(e.a=0,e.xb=gr,nt('Predictor','VP8LPredictors'),nt('Predictor','VP8LPredictors_C'),nt('PredictorAdd','VP8LPredictorsAdd'),nt('PredictorAdd','VP8LPredictorsAdd_C'),Xn=K,$n=z,tA=Y,eA=q,nA=J,AA=$,rA=tt,t.VP8LMapColor32b=Zn,t.VP8LMapColor8b=qn,e)}function St(t,n,A,s,a){var c=1,h=[t],f=[n],g=s.m,p=s.s,m=null,b=0;t:for(;;){if(A)for(;c&&v(g,1);){var y=h,w=f,C=s,I=1,Q=C.m,E=C.gc[C.ab],S=v(Q,2);if(C.Oc&1<<S)c=0;else{switch(C.Oc|=1<<S,E.hc=S,E.Ea=y[0],E.nc=w[0],E.K=[null],++C.ab,e(4>=C.ab),S){case 0:case 1:E.b=v(Q,3)+2,I=St(M(E.Ea,E.b),M(E.nc,E.b),0,C,E.K),E.K=E.K[0];break;case 3:var U,L=v(Q,8)+1,N=16<L?0:4<L?1:2<L?2:3;if(y[0]=M(E.Ea,N),E.b=N,U=I=St(L,1,0,C,E.K)){var _,P=L,O=E,T=1<<(8>>O.b),D=i(T);if(null==D)U=0;else{var R=O.K[0],V=O.w;for(D[0]=O.K[0][0],_=1;_<1*P;++_)D[_]=H(R[V+_],D[_-1]);for(;_<4*T;++_)D[_]=0;O.K[0]=null,O.K[0]=D,U=1}}I=U;break;case 2:break;default:e(0)}c=I}}if(h=h[0],f=f[0],c&&v(g,1)&&!(c=1<=(b=v(g,4))&&11>=b)){s.a=3;break t}var G;if(G=c)e:{var j,W,K,X=s,z=h,Z=f,Y=b,q=A,J=X.m,$=X.s,tt=[null],et=1,nt=0,At=$A[Y];n:for(;;){if(q&&v(J,1)){var rt=v(J,3)+2,it=M(z,rt),ot=M(Z,rt),st=it*ot;if(!St(it,ot,0,X,tt))break n;for(tt=tt[0],$.xc=rt,j=0;j<st;++j){var at=tt[j]>>8&65535;tt[j]=at,at>=et&&(et=at+1)}}if(J.h)break n;for(W=0;5>W;++W){var ct=ZA[W];!W&&0<Y&&(ct+=1<<Y),nt<ct&&(nt=ct)}var lt=o(et*At,u),ut=et,ht=o(ut,d);if(null==ht)var dt=null;else e(65536>=ut),dt=ht;var ft=i(nt);if(null==dt||null==ft||null==lt){X.a=1;break n}var gt=lt;for(j=K=0;j<et;++j){var pt=dt[j],mt=pt.G,bt=pt.H,yt=0,wt=1,Bt=0;for(W=0;5>W;++W){ct=ZA[W],mt[W]=gt,bt[W]=K,!W&&0<Y&&(ct+=1<<Y);A:{var Ct,xt=ct,Ft=X,Et=ft,Ut=gt,Lt=K,Nt=0,kt=Ft.m,_t=v(kt,1);if(r(Et,0,0,xt),_t){var Pt=v(kt,1)+1,Ot=v(kt,1),Mt=v(kt,0==Ot?1:8);Et[Mt]=1,2==Pt&&(Et[Mt=v(kt,8)]=1);var Ht=1}else{var Tt=i(19),Dt=v(kt,4)+4;if(19<Dt){Ft.a=3;var Rt=0;break A}for(Ct=0;Ct<Dt;++Ct)Tt[qA[Ct]]=v(kt,3);var Vt=void 0,Gt=void 0,jt=Ft,Wt=Tt,Kt=xt,Xt=Et,zt=0,Zt=jt.m,Yt=8,qt=o(128,u);r:for(;l(qt,0,7,Wt,19);){if(v(Zt,1)){var Jt=2+2*v(Zt,3);if((Vt=2+v(Zt,Jt))>Kt)break r}else Vt=Kt;for(Gt=0;Gt<Kt&&Vt--;){F(Zt);var $t=qt[0+(127&B(Zt))];x(Zt,Zt.u+$t.g);var te=$t.value;if(16>te)Xt[Gt++]=te,0!=te&&(Yt=te);else{var ee=16==te,ne=te-16,Ae=zA[ne],re=v(Zt,XA[ne])+Ae;if(Gt+re>Kt)break r;for(var ie=ee?Yt:0;0<re--;)Xt[Gt++]=ie}}zt=1;break r}zt||(jt.a=3),Ht=zt}(Ht=Ht&&!kt.h)&&(Nt=l(Ut,Lt,8,Et,xt)),Ht&&0!=Nt?Rt=Nt:(Ft.a=3,Rt=0)}if(0==Rt)break n;if(wt&&1==YA[W]&&(wt=0==gt[K].g),yt+=gt[K].g,K+=Rt,3>=W){var oe,se=ft[0];for(oe=1;oe<ct;++oe)ft[oe]>se&&(se=ft[oe]);Bt+=se}}if(pt.nd=wt,pt.Qb=0,wt&&(pt.qb=(mt[3][bt[3]+0].value<<24|mt[1][bt[1]+0].value<<16|mt[2][bt[2]+0].value)>>>0,0==yt&&256>mt[0][bt[0]+0].value&&(pt.Qb=1,pt.qb+=mt[0][bt[0]+0].value<<8)),pt.jc=!pt.Qb&&6>Bt,pt.jc){var ae,ce=pt;for(ae=0;ae<Tn;++ae){var le=ae,ue=ce.pd[le],he=ce.G[0][ce.H[0]+le];256<=he.value?(ue.g=he.g+256,ue.value=he.value):(ue.g=0,ue.value=0,le>>=vt(he,8,ue),le>>=vt(ce.G[1][ce.H[1]+le],16,ue),le>>=vt(ce.G[2][ce.H[2]+le],0,ue),vt(ce.G[3][ce.H[3]+le],24,ue))}}}$.vc=tt,$.Wb=et,$.Ya=dt,$.yc=lt,G=1;break e}G=0}if(!(c=G)){s.a=3;break t}if(0<b){if(p.ua=1<<b,!k(p.Wa,b)){s.a=1,c=0;break t}}else p.ua=0;var de=s,fe=h,ge=f,pe=de.s,me=pe.xc;if(de.c=fe,de.i=ge,pe.md=M(fe,me),pe.wc=0==me?-1:(1<<me)-1,A){s.xb=fr;break t}if(null==(m=i(h*f))){s.a=1,c=0;break t}c=(c=It(s,m,0,h,f,f,null))&&!g.h;break t}return c?(null!=a?a[0]=m:(e(null==m),e(A)),s.$=0,A||Qt(p)):Qt(p),c}function Ut(t,n){var A=t.c*t.i,r=A+n+16*n;return e(t.c<=n),t.V=i(r),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+A+n,1)}function Lt(t,n){var A=t.C,r=n-A,i=t.V,o=t.Ba+t.c*A;for(e(n<=t.l.o);0<r;){var s=16<r?16:r,a=t.l.ma,c=t.l.width,l=c*s,u=a.ca,h=a.tb+c*A,d=t.Ta,f=t.Ua;wt(t,s,i,o),IA(d,f,u,h,l),xt(a,A,A+s,u,h,c),r-=s,i+=s*t.c,A+=s}e(A==n),t.C=t.Ma=n}function Nt(){this.ub=this.yd=this.td=this.Rb=0}function kt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function _t(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Pt(){this.Yb=function(){var t=[];return function t(e,n,A){for(var r=A[n],i=0;i<r&&(e.push(A.length>n+1?[]:0),!(A.length<n+1));i++)t(e[i],n+1,A)}(t,0,[3,11]),t}()}function Ot(){this.jb=i(3),this.Wc=s([4,8],Pt),this.Xc=s([4,17],Pt)}function Mt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Ht(){this.ld=this.La=this.dd=this.tc=0}function Tt(){this.Na=this.la=0}function Dt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Rt(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Vt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ht),this.Y=0,this.ya=Array(new Rt),this.aa=0,this.l=new Kt}function Gt(){this.y=i(16),this.f=i(8),this.ea=i(8)}function jt(){this.cb=this.a=0,this.sc='',this.m=new y,this.Od=new Nt,this.Kc=new kt,this.ed=new Mt,this.Qa=new _t,this.Ic=this.$c=this.Aa=0,this.D=new Vt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,y),this.ia=0,this.pb=o(4,Dt),this.Pa=new Ot,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Gt),this.Hd=0,this.rb=Array(new Tt),this.sb=0,this.wa=Array(new Ht),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Rt),this.L=this.aa=0,this.gd=s([4,2],Ht),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Wt(t,e){return 0>t?0:t>e?e:t}function Kt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma='void',this.put='VP8IoPutHook',this.ac='VP8IoSetupHook',this.bc='VP8IoTeardownHook',this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Xt(){var t=new jt;return null!=t&&(t.a=0,t.sc='OK',t.cb=0,t.Xb=0,Ar||(Ar=qt)),t}function zt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Zt(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Yt(t,n){if(null==t)return 0;if(t.a=0,t.sc='OK',null==n)return zt(t,2,'null VP8Io passed to VP8GetHeaders()');var A=n.data,i=n.w,o=n.ha;if(4>o)return zt(t,7,'Truncated header.');var s=A[i+0]|A[i+1]<<8|A[i+2]<<16,a=t.Od;if(a.Rb=!(1&s),a.td=s>>1&7,a.yd=s>>4&1,a.ub=s>>5,3<a.td)return zt(t,3,'Incorrect keyframe parameters.');if(!a.yd)return zt(t,4,'Frame not displayable.');i+=3,o-=3;var c=t.Kc;if(a.Rb){if(7>o)return zt(t,7,'cannot parse picture header');if(!Zt(A,i,o))return zt(t,3,'Bad code word');c.c=16383&(A[i+4]<<8|A[i+3]),c.Td=A[i+4]>>6,c.i=16383&(A[i+6]<<8|A[i+5]),c.Ud=A[i+6]>>6,i+=7,o-=7,t.za=c.c+15>>4,t.Ub=c.i+15>>4,n.width=c.c,n.height=c.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,r((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,r(s.Zb,0,0,s.Zb.length),r(s.Lb,0,0,s.Lb)}if(a.ub>o)return zt(t,7,'bad partition length');f(s=t.m,A,i,a.ub),i+=a.ub,o-=a.ub,a.Rb&&(c.Ld=Q(s),c.Kd=Q(s)),c=t.Qa;var l,u=t.Pa;if(e(null!=s),e(null!=c),c.Cb=Q(s),c.Cb){if(c.Bb=Q(s),Q(s)){for(c.Fb=Q(s),l=0;4>l;++l)c.Zb[l]=Q(s)?p(s,7):0;for(l=0;4>l;++l)c.Lb[l]=Q(s)?p(s,6):0}if(c.Bb)for(l=0;3>l;++l)u.jb[l]=Q(s)?g(s,8):255}else c.Bb=0;if(s.Ka)return zt(t,3,'cannot parse segment header');if((c=t.ed).zd=Q(s),c.Tb=g(s,6),c.wb=g(s,3),c.Pc=Q(s),c.Pc&&Q(s)){for(u=0;4>u;++u)Q(s)&&(c.vd[u]=p(s,6));for(u=0;4>u;++u)Q(s)&&(c.od[u]=p(s,6))}if(t.L=0==c.Tb?0:c.zd?1:2,s.Ka)return zt(t,3,'cannot parse filter header');var h=o;if(o=l=i,i=l+h,c=h,t.Xb=(1<<g(t.m,2))-1,h<3*(u=t.Xb))A=7;else{for(l+=3*u,c-=3*u,h=0;h<u;++h){var d=A[o+0]|A[o+1]<<8|A[o+2]<<16;d>c&&(d=c),f(t.Jc[+h],A,l,d),l+=d,c-=d,o+=3}f(t.Jc[+u],A,l,c),A=l<i?0:5}if(0!=A)return zt(t,A,'cannot parse partitions');for(A=g(l=t.m,7),o=Q(l)?p(l,4):0,i=Q(l)?p(l,4):0,c=Q(l)?p(l,4):0,u=Q(l)?p(l,4):0,l=Q(l)?p(l,4):0,h=t.Qa,d=0;4>d;++d){if(h.Cb){var m=h.Zb[d];h.Fb||(m+=A)}else{if(0<d){t.pb[d]=t.pb[0];continue}m=A}var b=t.pb[d];b.Sc[0]=er[Wt(m+o,127)],b.Sc[1]=nr[Wt(m+0,127)],b.Eb[0]=2*er[Wt(m+i,127)],b.Eb[1]=101581*nr[Wt(m+c,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=er[Wt(m+u,117)],b.Qc[1]=nr[Wt(m+l,127)],b.lc=m+l}if(!a.Rb)return zt(t,4,'Not a key frame.');for(Q(s),a=t.Pa,A=0;4>A;++A){for(o=0;8>o;++o)for(i=0;3>i;++i)for(c=0;11>c;++c)u=E(s,cr[A][o][i][c])?g(s,8):sr[A][o][i][c],a.Wc[A][o].Yb[i][c]=u;for(o=0;17>o;++o)a.Xc[A][o]=a.Wc[A][lr[o]]}return t.kc=Q(s),t.kc&&(t.Bd=g(s,8)),t.cb=1}function qt(t,e,n,A,r,i,o){var s=e[r].Yb[n];for(n=0;16>r;++r){if(!E(t,s[n+0]))return r;for(;!E(t,s[n+1]);)if(s=e[++r].Yb[0],n=0,16==r)return 16;var a=e[r+1].Yb;if(E(t,s[n+2])){var c=t,l=0;if(E(c,(h=s)[(u=n)+3]))if(E(c,h[u+6])){for(s=0,u=2*(l=E(c,h[u+8]))+(h=E(c,h[u+9+l])),l=0,h=rr[u];h[s];++s)l+=l+E(c,h[s]);l+=3+(8<<u)}else E(c,h[u+7])?(l=7+2*E(c,165),l+=E(c,145)):l=5+E(c,159);else l=E(c,h[u+4])?3+E(c,h[u+5]):2;s=a[2]}else l=1,s=a[1];a=o+ir[r],0>(c=t).b&&I(c);var u,h=c.b,d=(u=c.Ca>>1)-(c.I>>h)>>31;--c.b,c.Ca+=d,c.Ca|=1,c.I-=(u+1&d)<<h,i[a]=((l^d)-d)*A[(0<r)+0]}return 16}function Jt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,r(t.zc,0,0,t.zc.length),t.ja=0}function $t(t,n){if(null==t)return 0;if(null==n)return zt(t,2,'NULL VP8Io parameter in VP8Decode().');if(!t.cb&&!Yt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=Tr[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-s>>4,t.zb=n.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+s>>4,t.Hb=n.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var a=t.ed;for(s=0;4>s;++s){var c;if(t.Qa.Cb){var l=t.Qa.Lb[s];t.Qa.Fb||(l+=a.Tb)}else l=a.Tb;for(c=0;1>=c;++c){var u=t.gd[s][c],h=l;if(a.Pc&&(h+=a.vd[0],c&&(h+=a.od[0])),0<(h=0>h?0:63<h?63:h)){var d=h;0<a.wb&&(d=4<a.wb?d>>2:d>>1)>9-a.wb&&(d=9-a.wb),1>d&&(d=1),u.dd=d,u.tc=2*h+d,u.ld=40<=h?2:15<=h?1:0}else u.tc=0;u.La=c}}}s=0}else zt(t,6,'Frame setup failed'),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=Rr);t:{s=t.Ic,a=4*(d=t.za);var f=32*d,g=d+1,p=0<t.L?d*(0<t.Aa?2:1):0,m=(2==t.Aa?2:1)*d;if((u=a+832+(c=3*(16*s+Tr[t.L])/2*f)+(l=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=u)s=0;else{if(u>t.Vb){if(t.Vb=0,t.Ec=i(u),t.Fc=0,null==t.Ec){s=zt(t,1,'no memory during frame initialization.');break t}t.Vb=u}u=t.Ec,h=t.Fc,t.Ac=u,t.Bc=h,h+=a,t.Gd=o(f,Gt),t.Hd=0,t.rb=o(g+1,Tt),t.sb=1,t.wa=p?o(p,Ht):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=d),e(!0),t.oc=u,t.pc=h,h+=832,t.ya=o(m,Rt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=d),t.R=16*d,t.B=8*d,d=(f=Tr[t.L])*t.R,f=f/2*t.B,t.sa=u,t.ta=h+d,t.qa=t.sa,t.ra=t.ta+16*s*t.R+f,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+f,t.$c=0,h+=c,t.mb=l?u:null,t.nb=l?h:null,e(h+l<=t.Fc+t.Vb),Jt(t),r(t.Ac,t.Bc,0,a),s=1}}if(s){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!LA){for(s=-255;255>=s;++s)QA[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)EA[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)SA[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)UA[255+s]=0>s?0:255<s?255:s;LA=1}iA=ce,oA=ie,aA=oe,cA=se,lA=ae,sA=re,uA=ze,hA=Ze,dA=Je,fA=$e,gA=Ye,pA=qe,mA=tn,bA=en,vA=Ve,yA=Ge,wA=je,BA=We,hr[0]=xe,hr[1]=ue,hr[2]=Be,hr[3]=Ce,hr[4]=Fe,hr[5]=Qe,hr[6]=Ie,hr[7]=Ee,hr[8]=Ue,hr[9]=Se,ur[0]=me,ur[1]=de,ur[2]=fe,ur[3]=ge,ur[4]=be,ur[5]=ve,ur[6]=ye,dr[0]=_e,dr[1]=he,dr[2]=Le,dr[3]=Ne,dr[4]=Oe,dr[5]=Pe,dr[6]=Me,s=1}else s=0}s&&(s=function(t,n){for(t.M=0;t.M<t.Va;++t.M){var o,s=t.Jc[t.M&t.Xb],a=t.m,c=t;for(o=0;o<c.za;++o){var l=a,u=c,h=u.Ac,d=u.Bc+4*o,f=u.zc,g=u.ya[u.aa+o];if(u.Qa.Bb?g.$b=E(l,u.Pa.jb[0])?2+E(l,u.Pa.jb[2]):E(l,u.Pa.jb[1]):g.$b=0,u.kc&&(g.Ad=E(l,u.Bd)),g.Za=!E(l,145)+0,g.Za){var p=g.Ob,m=0;for(u=0;4>u;++u){var b,v=f[0+u];for(b=0;4>b;++b){v=ar[h[d+b]][v];for(var y=or[E(l,v[0])];0<y;)y=or[2*y+E(l,v[y])];v=-y,h[d+b]=v}A(p,m,h,d,4),m+=4,f[0+u]=v}}else v=E(l,156)?E(l,128)?1:3:E(l,163)?2:0,g.Ob[0]=v,r(h,d,v,4),r(f,0,v,4);g.Dd=E(l,142)?E(l,114)?E(l,183)?1:3:2:0}if(c.m.Ka)return zt(t,7,'Premature end-of-partition0 encountered.');for(;t.ja<t.za;++t.ja){if(c=s,l=(a=t).rb[a.sb-1],h=a.rb[a.sb+a.ja],o=a.ya[a.aa+a.ja],d=a.kc?o.Ad:0)l.la=h.la=0,o.Za||(l.Na=h.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var w,B;if(l=h,h=c,d=a.Pa.Xc,f=a.ya[a.aa+a.ja],g=a.pb[f.$b],u=f.ad,p=0,m=a.rb[a.sb-1],v=b=0,r(u,p,0,384),f.Za)var C=0,x=d[3];else{y=i(16);var F=l.Na+m.Na;if(F=Ar(h,d[1],F,g.Eb,0,y,0),l.Na=m.Na=(0<F)+0,1<F)iA(y,0,u,p);else{var I=y[0]+3>>3;for(y=0;256>y;y+=16)u[p+y]=I}C=1,x=d[0]}var Q=15&l.la,S=15&m.la;for(y=0;4>y;++y){var U=1&S;for(I=B=0;4>I;++I)Q=Q>>1|(U=(F=Ar(h,x,F=U+(1&Q),g.Sc,C,u,p))>C)<<7,B=B<<2|(3<F?3:1<F?2:0!=u[p+0]),p+=16;Q>>=4,S=S>>1|U<<7,b=(b<<8|B)>>>0}for(x=Q,C=S>>4,w=0;4>w;w+=2){for(B=0,Q=l.la>>4+w,S=m.la>>4+w,y=0;2>y;++y){for(U=1&S,I=0;2>I;++I)F=U+(1&Q),Q=Q>>1|(U=0<(F=Ar(h,d[2],F,g.Qc,0,u,p)))<<3,B=B<<2|(3<F?3:1<F?2:0!=u[p+0]),p+=16;Q>>=2,S=S>>1|U<<5}v|=B<<4*w,x|=Q<<4<<w,C|=(240&S)<<w}l.la=x,m.la=C,f.Hc=b,f.Gc=v,f.ia=43690&v?0:g.ia,d=!(b|v)}if(0<a.L&&(a.wa[a.Y+a.ja]=a.gd[o.$b][o.Za],a.wa[a.Y+a.ja].La|=!d),c.Ka)return zt(t,7,'Premature end-of-file encountered.')}if(Jt(t),a=n,c=1,o=(s=t).D,l=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(o.M=s.M,o.uc=l,_n(s,o),c=1,o=(B=s.D).Nb,l=(v=Tr[s.L])*s.R,h=v/2*s.B,y=16*o*s.R,I=8*o*s.B,d=s.sa,f=s.ta-l+y,g=s.qa,u=s.ra-h+I,p=s.Ha,m=s.Ia-h+I,S=0==(Q=B.M),b=Q>=s.Va-1,2==s.Aa&&_n(s,B),B.uc)for(U=(F=s).D.M,e(F.D.uc),B=F.yb;B<F.Hb;++B){C=B,x=U;var L=(N=(R=F).D).Nb;w=R.R;var N=N.wa[N.Y+C],k=R.sa,_=R.ta+16*L*w+16*C,P=N.dd,O=N.tc;if(0!=O)if(e(3<=O),1==R.L)0<C&&yA(k,_,w,O+4),N.La&&BA(k,_,w,O),0<x&&vA(k,_,w,O+4),N.La&&wA(k,_,w,O);else{var M=R.B,H=R.qa,T=R.ra+8*L*M+8*C,D=R.Ha,R=R.Ia+8*L*M+8*C;L=N.ld,0<C&&(hA(k,_,w,O+4,P,L),fA(H,T,D,R,M,O+4,P,L)),N.La&&(pA(k,_,w,O,P,L),bA(H,T,D,R,M,O,P,L)),0<x&&(uA(k,_,w,O+4,P,L),dA(H,T,D,R,M,O+4,P,L)),N.La&&(gA(k,_,w,O,P,L),mA(H,T,D,R,M,O,P,L))}}if(s.ia&&alert('todo:DitherRow'),null!=a.put){if(B=16*Q,Q=16*(Q+1),S?(a.y=s.sa,a.O=s.ta+y,a.f=s.qa,a.N=s.ra+I,a.ea=s.Ha,a.W=s.Ia+I):(B-=v,a.y=d,a.O=f,a.f=g,a.N=u,a.ea=p,a.W=m),b||(Q-=v),Q>a.o&&(Q=a.o),a.F=null,a.J=null,null!=s.Fa&&0<s.Fa.length&&B<Q&&(a.J=hn(s,a,B,Q-B),a.F=s.mb,null==a.F&&0==a.F.length)){c=zt(s,3,'Could not decode alpha data.');break t}B<a.j&&(v=a.j-B,B=a.j,e(!(1&v)),a.O+=s.R*v,a.N+=s.B*(v>>1),a.W+=s.B*(v>>1),null!=a.F&&(a.J+=a.width*v)),B<Q&&(a.O+=a.v,a.N+=a.v>>1,a.W+=a.v>>1,null!=a.F&&(a.J+=a.v),a.ka=B-a.j,a.U=a.va-a.v,a.T=Q-B,c=a.put(a))}o+1!=s.Ic||b||(A(s.sa,s.ta-l,d,f+16*s.R,l),A(s.qa,s.ra-h,g,u+8*s.B,h),A(s.Ha,s.Ia-h,p,m+8*s.B,h))}if(!c)return zt(t,6,'Output aborted.')}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0}function te(t,e,n,A,r){r=t[e+n+32*A]+(r>>3),t[e+n+32*A]=-256&r?0>r?0:255:r}function ee(t,e,n,A,r,i){te(t,e,0,n,A+r),te(t,e,1,n,A+i),te(t,e,2,n,A-i),te(t,e,3,n,A-r)}function ne(t){return(20091*t>>16)+t}function Ae(t,e,n,A){var r,o=0,s=i(16);for(r=0;4>r;++r){var a=t[e+0]+t[e+8],c=t[e+0]-t[e+8],l=(35468*t[e+4]>>16)-ne(t[e+12]),u=ne(t[e+4])+(35468*t[e+12]>>16);s[o+0]=a+u,s[o+1]=c+l,s[o+2]=c-l,s[o+3]=a-u,o+=4,e++}for(r=o=0;4>r;++r)a=(t=s[o+0]+4)+s[o+8],c=t-s[o+8],l=(35468*s[o+4]>>16)-ne(s[o+12]),te(n,A,0,0,a+(u=ne(s[o+4])+(35468*s[o+12]>>16))),te(n,A,1,0,c+l),te(n,A,2,0,c-l),te(n,A,3,0,a-u),o++,A+=32}function re(t,e,n,A){var r=t[e+0]+4,i=35468*t[e+4]>>16,o=ne(t[e+4]),s=35468*t[e+1]>>16;ee(n,A,0,r+o,t=ne(t[e+1]),s),ee(n,A,1,r+i,t,s),ee(n,A,2,r-i,t,s),ee(n,A,3,r-o,t,s)}function ie(t,e,n,A,r){Ae(t,e,n,A),r&&Ae(t,e+16,n,A+4)}function oe(t,e,n,A){oA(t,e+0,n,A,1),oA(t,e+32,n,A+128,1)}function se(t,e,n,A){var r;for(t=t[e+0]+4,r=0;4>r;++r)for(e=0;4>e;++e)te(n,A,e,r,t)}function ae(t,e,n,A){t[e+0]&&cA(t,e+0,n,A),t[e+16]&&cA(t,e+16,n,A+4),t[e+32]&&cA(t,e+32,n,A+128),t[e+48]&&cA(t,e+48,n,A+128+4)}function ce(t,e,n,A){var r,o=i(16);for(r=0;4>r;++r){var s=t[e+0+r]+t[e+12+r],a=t[e+4+r]+t[e+8+r],c=t[e+4+r]-t[e+8+r],l=t[e+0+r]-t[e+12+r];o[0+r]=s+a,o[8+r]=s-a,o[4+r]=l+c,o[12+r]=l-c}for(r=0;4>r;++r)s=(t=o[0+4*r]+3)+o[3+4*r],a=o[1+4*r]+o[2+4*r],c=o[1+4*r]-o[2+4*r],l=t-o[3+4*r],n[A+0]=s+a>>3,n[A+16]=l+c>>3,n[A+32]=s-a>>3,n[A+48]=l-c>>3,A+=64}function le(t,e,n){var A,r=e-32,i=_A,o=255-t[r-1];for(A=0;A<n;++A){var s,a=i,c=o+t[e-1];for(s=0;s<n;++s)t[e+s]=a[c+t[r+s]];e+=32}}function ue(t,e){le(t,e,4)}function he(t,e){le(t,e,8)}function de(t,e){le(t,e,16)}function fe(t,e){var n;for(n=0;16>n;++n)A(t,e+32*n,t,e-32,16)}function ge(t,e){var n;for(n=16;0<n;--n)r(t,e,t[e-1],16),e+=32}function pe(t,e,n){var A;for(A=0;16>A;++A)r(e,n+32*A,t,16)}function me(t,e){var n,A=16;for(n=0;16>n;++n)A+=t[e-1+32*n]+t[e+n-32];pe(A>>5,t,e)}function be(t,e){var n,A=8;for(n=0;16>n;++n)A+=t[e-1+32*n];pe(A>>4,t,e)}function ve(t,e){var n,A=8;for(n=0;16>n;++n)A+=t[e+n-32];pe(A>>4,t,e)}function ye(t,e){pe(128,t,e)}function we(t,e,n){return t+2*e+n+2>>2}function Be(t,e){var n,r=e-32;for(r=new Uint8Array([we(t[r-1],t[r+0],t[r+1]),we(t[r+0],t[r+1],t[r+2]),we(t[r+1],t[r+2],t[r+3]),we(t[r+2],t[r+3],t[r+4])]),n=0;4>n;++n)A(t,e+32*n,r,0,r.length)}function Ce(t,e){var n=t[e-1],A=t[e-1+32],r=t[e-1+64],i=t[e-1+96];S(t,e+0,16843009*we(t[e-1-32],n,A)),S(t,e+32,16843009*we(n,A,r)),S(t,e+64,16843009*we(A,r,i)),S(t,e+96,16843009*we(r,i,i))}function xe(t,e){var n,A=4;for(n=0;4>n;++n)A+=t[e+n-32]+t[e-1+32*n];for(A>>=3,n=0;4>n;++n)r(t,e+32*n,A,4)}function Fe(t,e){var n=t[e-1+0],A=t[e-1+32],r=t[e-1+64],i=t[e-1-32],o=t[e+0-32],s=t[e+1-32],a=t[e+2-32],c=t[e+3-32];t[e+0+96]=we(A,r,t[e-1+96]),t[e+1+96]=t[e+0+64]=we(n,A,r),t[e+2+96]=t[e+1+64]=t[e+0+32]=we(i,n,A),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=we(o,i,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=we(s,o,i),t[e+3+32]=t[e+2+0]=we(a,s,o),t[e+3+0]=we(c,a,s)}function Ie(t,e){var n=t[e+1-32],A=t[e+2-32],r=t[e+3-32],i=t[e+4-32],o=t[e+5-32],s=t[e+6-32],a=t[e+7-32];t[e+0+0]=we(t[e+0-32],n,A),t[e+1+0]=t[e+0+32]=we(n,A,r),t[e+2+0]=t[e+1+32]=t[e+0+64]=we(A,r,i),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=we(r,i,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=we(i,o,s),t[e+3+64]=t[e+2+96]=we(o,s,a),t[e+3+96]=we(s,a,a)}function Qe(t,e){var n=t[e-1+0],A=t[e-1+32],r=t[e-1+64],i=t[e-1-32],o=t[e+0-32],s=t[e+1-32],a=t[e+2-32],c=t[e+3-32];t[e+0+0]=t[e+1+64]=i+o+1>>1,t[e+1+0]=t[e+2+64]=o+s+1>>1,t[e+2+0]=t[e+3+64]=s+a+1>>1,t[e+3+0]=a+c+1>>1,t[e+0+96]=we(r,A,n),t[e+0+64]=we(A,n,i),t[e+0+32]=t[e+1+96]=we(n,i,o),t[e+1+32]=t[e+2+96]=we(i,o,s),t[e+2+32]=t[e+3+96]=we(o,s,a),t[e+3+32]=we(s,a,c)}function Ee(t,e){var n=t[e+0-32],A=t[e+1-32],r=t[e+2-32],i=t[e+3-32],o=t[e+4-32],s=t[e+5-32],a=t[e+6-32],c=t[e+7-32];t[e+0+0]=n+A+1>>1,t[e+1+0]=t[e+0+64]=A+r+1>>1,t[e+2+0]=t[e+1+64]=r+i+1>>1,t[e+3+0]=t[e+2+64]=i+o+1>>1,t[e+0+32]=we(n,A,r),t[e+1+32]=t[e+0+96]=we(A,r,i),t[e+2+32]=t[e+1+96]=we(r,i,o),t[e+3+32]=t[e+2+96]=we(i,o,s),t[e+3+64]=we(o,s,a),t[e+3+96]=we(s,a,c)}function Se(t,e){var n=t[e-1+0],A=t[e-1+32],r=t[e-1+64],i=t[e-1+96];t[e+0+0]=n+A+1>>1,t[e+2+0]=t[e+0+32]=A+r+1>>1,t[e+2+32]=t[e+0+64]=r+i+1>>1,t[e+1+0]=we(n,A,r),t[e+3+0]=t[e+1+32]=we(A,r,i),t[e+3+32]=t[e+1+64]=we(r,i,i),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=i}function Ue(t,e){var n=t[e-1+0],A=t[e-1+32],r=t[e-1+64],i=t[e-1+96],o=t[e-1-32],s=t[e+0-32],a=t[e+1-32],c=t[e+2-32];t[e+0+0]=t[e+2+32]=n+o+1>>1,t[e+0+32]=t[e+2+64]=A+n+1>>1,t[e+0+64]=t[e+2+96]=r+A+1>>1,t[e+0+96]=i+r+1>>1,t[e+3+0]=we(s,a,c),t[e+2+0]=we(o,s,a),t[e+1+0]=t[e+3+32]=we(n,o,s),t[e+1+32]=t[e+3+64]=we(A,n,o),t[e+1+64]=t[e+3+96]=we(r,A,n),t[e+1+96]=we(i,r,A)}function Le(t,e){var n;for(n=0;8>n;++n)A(t,e+32*n,t,e-32,8)}function Ne(t,e){var n;for(n=0;8>n;++n)r(t,e,t[e-1],8),e+=32}function ke(t,e,n){var A;for(A=0;8>A;++A)r(e,n+32*A,t,8)}function _e(t,e){var n,A=8;for(n=0;8>n;++n)A+=t[e+n-32]+t[e-1+32*n];ke(A>>4,t,e)}function Pe(t,e){var n,A=4;for(n=0;8>n;++n)A+=t[e+n-32];ke(A>>3,t,e)}function Oe(t,e){var n,A=4;for(n=0;8>n;++n)A+=t[e-1+32*n];ke(A>>3,t,e)}function Me(t,e){ke(128,t,e)}function He(t,e,n){var A=t[e-n],r=t[e+0],i=3*(r-A)+NA[1020+t[e-2*n]-t[e+n]],o=kA[112+(i+4>>3)];t[e-n]=_A[255+A+kA[112+(i+3>>3)]],t[e+0]=_A[255+r-o]}function Te(t,e,n,A){var r=t[e+0],i=t[e+n];return PA[255+t[e-2*n]-t[e-n]]>A||PA[255+i-r]>A}function De(t,e,n,A){return 4*PA[255+t[e-n]-t[e+0]]+PA[255+t[e-2*n]-t[e+n]]<=A}function Re(t,e,n,A,r){var i=t[e-3*n],o=t[e-2*n],s=t[e-n],a=t[e+0],c=t[e+n],l=t[e+2*n],u=t[e+3*n];return 4*PA[255+s-a]+PA[255+o-c]>A?0:PA[255+t[e-4*n]-i]<=r&&PA[255+i-o]<=r&&PA[255+o-s]<=r&&PA[255+u-l]<=r&&PA[255+l-c]<=r&&PA[255+c-a]<=r}function Ve(t,e,n,A){var r=2*A+1;for(A=0;16>A;++A)De(t,e+A,n,r)&&He(t,e+A,n)}function Ge(t,e,n,A){var r=2*A+1;for(A=0;16>A;++A)De(t,e+A*n,1,r)&&He(t,e+A*n,1)}function je(t,e,n,A){var r;for(r=3;0<r;--r)Ve(t,e+=4*n,n,A)}function We(t,e,n,A){var r;for(r=3;0<r;--r)Ge(t,e+=4,n,A)}function Ke(t,e,n,A,r,i,o,s){for(i=2*i+1;0<r--;){if(Re(t,e,n,i,o))if(Te(t,e,n,s))He(t,e,n);else{var a=t,c=e,l=n,u=a[c-2*l],h=a[c-l],d=a[c+0],f=a[c+l],g=a[c+2*l],p=27*(b=NA[1020+3*(d-h)+NA[1020+u-f]])+63>>7,m=18*b+63>>7,b=9*b+63>>7;a[c-3*l]=_A[255+a[c-3*l]+b],a[c-2*l]=_A[255+u+m],a[c-l]=_A[255+h+p],a[c+0]=_A[255+d-p],a[c+l]=_A[255+f-m],a[c+2*l]=_A[255+g-b]}e+=A}}function Xe(t,e,n,A,r,i,o,s){for(i=2*i+1;0<r--;){if(Re(t,e,n,i,o))if(Te(t,e,n,s))He(t,e,n);else{var a=t,c=e,l=n,u=a[c-l],h=a[c+0],d=a[c+l],f=kA[112+(4+(g=3*(h-u))>>3)],g=kA[112+(g+3>>3)],p=f+1>>1;a[c-2*l]=_A[255+a[c-2*l]+p],a[c-l]=_A[255+u+g],a[c+0]=_A[255+h-f],a[c+l]=_A[255+d-p]}e+=A}}function ze(t,e,n,A,r,i){Ke(t,e,n,1,16,A,r,i)}function Ze(t,e,n,A,r,i){Ke(t,e,1,n,16,A,r,i)}function Ye(t,e,n,A,r,i){var o;for(o=3;0<o;--o)Xe(t,e+=4*n,n,1,16,A,r,i)}function qe(t,e,n,A,r,i){var o;for(o=3;0<o;--o)Xe(t,e+=4,1,n,16,A,r,i)}function Je(t,e,n,A,r,i,o,s){Ke(t,e,r,1,8,i,o,s),Ke(n,A,r,1,8,i,o,s)}function $e(t,e,n,A,r,i,o,s){Ke(t,e,1,r,8,i,o,s),Ke(n,A,1,r,8,i,o,s)}function tn(t,e,n,A,r,i,o,s){Xe(t,e+4*r,r,1,8,i,o,s),Xe(n,A+4*r,r,1,8,i,o,s)}function en(t,e,n,A,r,i,o,s){Xe(t,e+4,1,r,8,i,o,s),Xe(n,A+4,1,r,8,i,o,s)}function nn(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new at,this.memory=0,this.Ib='OutputFunc',this.Jb='OutputAlphaFunc',this.Nd='OutputRowFunc'}function An(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function rn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function on(){this.ua=0,this.Wa=new P,this.vb=new P,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new u}function sn(){this.xb=this.a=0,this.l=new Kt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new on,this.ab=0,this.gc=o(4,rn),this.Oc=0}function an(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Kt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cn(t,e,n,A,r,i,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)r[i+e]=t+n[A+e]&255,t=r[i+e]}function ln(t,e,n,A,r,i,o){var s;if(null==t)cn(null,null,n,A,r,i,o);else for(s=0;s<o;++s)r[i+s]=t[e+s]+n[A+s]&255}function un(t,e,n,A,r,i,o){if(null==t)cn(null,null,n,A,r,i,o);else{var s,a=t[e+0],c=a,l=a;for(s=0;s<o;++s)c=l+(a=t[e+s])-c,l=n[A+s]+(-256&c?0>c?0:255:c)&255,c=a,r[i+s]=l}}function hn(t,n,r,o){var s=n.width,a=n.o;if(e(null!=t&&null!=n),0>r||0>=o||r+o>a)return null;if(!t.Cc){if(null==t.ga){var c;if(t.ga=new an,(c=null==t.ga)||(c=n.width*n.o,e(0==t.Gb.length),t.Gb=i(c),t.Uc=0,null==t.Gb?c=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,c=1),c=!c),!c){c=t.ga;var l=t.Fa,u=t.P,h=t.qc,d=t.mb,f=t.nb,g=u+1,p=h-1,b=c.l;if(e(null!=l&&null!=d&&null!=n),pr[0]=null,pr[1]=cn,pr[2]=ln,pr[3]=un,c.ca=d,c.tb=f,c.c=n.width,c.i=n.height,e(0<c.c&&0<c.i),1>=h)n=0;else if(c.$a=l[u+0]>>0&3,c.Z=l[u+0]>>2&3,c.Lc=l[u+0]>>4&3,u=l[u+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||u)n=0;else if(b.put=dt,b.ac=ht,b.bc=ft,b.ma=c,b.width=n.width,b.height=n.height,b.Da=n.Da,b.v=n.v,b.va=n.va,b.j=n.j,b.o=n.o,c.$a)t:{e(1==c.$a),n=Et();e:for(;;){if(null==n){n=0;break t}if(e(null!=c),c.mc=n,n.c=c.c,n.i=c.i,n.l=c.l,n.l.ma=c,n.l.width=c.c,n.l.height=c.i,n.a=0,m(n.m,l,g,p),!St(c.c,c.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&Ct(n.s)?(c.ic=1,l=n.c*n.i,n.Ta=null,n.Ua=0,n.V=i(l),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(c.ic=0,n=Ut(n,c.c)),!n)break e;n=1;break t}c.mc=null,n=0}else n=p>=c.c*c.i;c=!n}if(c)return null;1!=t.ga.Lc?t.Ga=0:o=a-r}e(null!=t.ga),e(r+o<=a);t:{if(n=(l=t.ga).c,a=l.l.o,0==l.$a){if(g=t.rc,p=t.Vc,b=t.Fa,u=t.P+1+r*n,h=t.mb,d=t.nb+r*n,e(u<=t.P+t.qc),0!=l.Z)for(e(null!=pr[l.Z]),c=0;c<o;++c)pr[l.Z](g,p,b,u,h,d,n),g=h,p=d,d+=n,u+=n;else for(c=0;c<o;++c)A(h,d,b,u,n),g=h,p=d,d+=n,u+=n;t.rc=g,t.Vc=p}else{if(e(null!=l.mc),n=r+o,e(null!=(c=l.mc)),e(n<=c.i),c.C>=n)n=1;else if(l.ic||mn(),l.ic){l=c.V,g=c.Ba,p=c.c;var v=c.i,y=(b=1,u=c.$/p,h=c.$%p,d=c.m,f=c.s,c.$),w=p*v,B=p*n,x=f.wc,I=y<B?yt(f,h,u):null;e(y<=w),e(n<=v),e(Ct(f));e:for(;;){for(;!d.h&&y<B;){if(h&x||(I=yt(f,h,u)),e(null!=I),F(d),256>(v=bt(I.G[0],I.H[0],d)))l[g+y]=v,++y,++h>=p&&(h=0,++u<=n&&!(u%16)&&Ft(c,u));else{if(!(280>v)){b=0;break e}v=pt(v-256,d);var Q,E=bt(I.G[4],I.H[4],d);if(F(d),!(y>=(E=mt(p,E=pt(E,d)))&&w-y>=v)){b=0;break e}for(Q=0;Q<v;++Q)l[g+y+Q]=l[g+y+Q-E];for(y+=v,h+=v;h>=p;)h-=p,++u<=n&&!(u%16)&&Ft(c,u);y<B&&h&x&&(I=yt(f,h,u))}e(d.h==C(d))}Ft(c,u>n?n:u);break e}!b||d.h&&y<w?(b=0,c.a=d.h?5:3):c.$=y,n=b}else n=It(c,c.V,c.Ba,c.c,c.i,n,Lt);if(!n){o=0;break t}}r+o>=a&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0<t.Ga))return alert('todo:WebPDequantizeLevels'),null}return t.nb+r*s}function dn(t,e,n,A,r,i){for(;0<r--;){var o,s=t,a=e+(n?1:0),c=t,l=e+(n?0:3);for(o=0;o<A;++o){var u=c[l+4*o];255!=u&&(u*=32897,s[a+4*o+0]=s[a+4*o+0]*u>>23,s[a+4*o+1]=s[a+4*o+1]*u>>23,s[a+4*o+2]=s[a+4*o+2]*u>>23)}e+=i}}function fn(t,e,n,A,r){for(;0<A--;){var i;for(i=0;i<n;++i){var o=t[e+2*i+0],s=15&(c=t[e+2*i+1]),a=4369*s,c=(240&c|c>>4)*a>>16;t[e+2*i+0]=(240&o|o>>4)*a>>16&240|(15&o|o<<4)*a>>16>>4&15,t[e+2*i+1]=240&c|s}e+=r}}function gn(t,e,n,A,r,i,o,s){var a,c,l=255;for(c=0;c<r;++c){for(a=0;a<A;++a){var u=t[e+a];i[o+4*a]=u,l&=u}e+=n,o+=s}return 255!=l}function pn(t,e,n,A,r){var i;for(i=0;i<r;++i)n[A+i]=t[e+i]>>8}function mn(){CA=dn,xA=fn,FA=gn,IA=pn}function bn(n,A,r){t[n]=function(t,n,i,o,s,a,c,l,u,h,d,f,g,p,m,b,v){var y,w=v-1>>1,B=s[a+0]|c[l+0]<<16,C=u[h+0]|d[f+0]<<16;e(null!=t);var x=3*B+C+131074>>2;for(A(t[n+0],255&x,x>>16,g,p),null!=i&&(x=3*C+B+131074>>2,A(i[o+0],255&x,x>>16,m,b)),y=1;y<=w;++y){var F=s[a+y]|c[l+y]<<16,I=u[h+y]|d[f+y]<<16,Q=B+F+C+I+524296,E=Q+2*(F+C)>>3;x=E+B>>1,B=(Q=Q+2*(B+I)>>3)+F>>1,A(t[n+2*y-1],255&x,x>>16,g,p+(2*y-1)*r),A(t[n+2*y-0],255&B,B>>16,g,p+(2*y-0)*r),null!=i&&(x=Q+C>>1,B=E+I>>1,A(i[o+2*y-1],255&x,x>>16,m,b+(2*y-1)*r),A(i[o+2*y+0],255&B,B>>16,m,b+(2*y+0)*r)),B=F,C=I}1&v||(x=3*B+C+131074>>2,A(t[n+v-1],255&x,x>>16,g,p+(v-1)*r),null!=i&&(x=3*C+B+131074>>2,A(i[o+v-1],255&x,x>>16,m,b+(v-1)*r)))}}function vn(){mr[OA]=br,mr[MA]=yr,mr[HA]=vr,mr[TA]=wr,mr[DA]=Br,mr[RA]=Cr,mr[VA]=xr,mr[GA]=yr,mr[jA]=wr,mr[WA]=Br,mr[KA]=Cr}function yn(t){return t&~Ur?0>t?0:255:t>>Sr}function wn(t,e){return yn((19077*t>>8)+(26149*e>>8)-14234)}function Bn(t,e,n){return yn((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function Cn(t,e){return yn((19077*t>>8)+(33050*e>>8)-17685)}function xn(t,e,n,A,r){A[r+0]=wn(t,n),A[r+1]=Bn(t,e,n),A[r+2]=Cn(t,e)}function Fn(t,e,n,A,r){A[r+0]=Cn(t,e),A[r+1]=Bn(t,e,n),A[r+2]=wn(t,n)}function In(t,e,n,A,r){var i=Bn(t,e,n);e=i<<3&224|Cn(t,e)>>3,A[r+0]=248&wn(t,n)|i>>5,A[r+1]=e}function Qn(t,e,n,A,r){var i=240&Cn(t,e)|15;A[r+0]=240&wn(t,n)|Bn(t,e,n)>>4,A[r+1]=i}function En(t,e,n,A,r){A[r+0]=255,xn(t,e,n,A,r+1)}function Sn(t,e,n,A,r){Fn(t,e,n,A,r),A[r+3]=255}function Un(t,e,n,A,r){xn(t,e,n,A,r),A[r+3]=255}function Wt(t,e){return 0>t?0:t>e?e:t}function Ln(e,n,A){t[e]=function(t,e,r,i,o,s,a,c,l){for(var u=c+(-2&l)*A;c!=u;)n(t[e+0],r[i+0],o[s+0],a,c),n(t[e+1],r[i+0],o[s+0],a,c+A),e+=2,++i,++s,c+=2*A;1&l&&n(t[e+0],r[i+0],o[s+0],a,c)}}function Nn(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function kn(t,e,n,A,r){switch(t>>>30){case 3:oA(e,n,A,r,0);break;case 2:sA(e,n,A,r);break;case 1:cA(e,n,A,r)}}function _n(t,e){var n,i,o=e.M,s=e.Nb,a=t.oc,c=t.pc+40,l=t.oc,u=t.pc+584,h=t.oc,d=t.pc+600;for(n=0;16>n;++n)a[c+32*n-1]=129;for(n=0;8>n;++n)l[u+32*n-1]=129,h[d+32*n-1]=129;for(0<o?a[c-1-32]=l[u-1-32]=h[d-1-32]=129:(r(a,c-32-1,127,21),r(l,u-32-1,127,9),r(h,d-32-1,127,9)),i=0;i<t.za;++i){var f=e.ya[e.aa+i];if(0<i){for(n=-1;16>n;++n)A(a,c+32*n-4,a,c+32*n+12,4);for(n=-1;8>n;++n)A(l,u+32*n-4,l,u+32*n+4,4),A(h,d+32*n-4,h,d+32*n+4,4)}var g=t.Gd,p=t.Hd+i,m=f.ad,b=f.Hc;if(0<o&&(A(a,c-32,g[p].y,0,16),A(l,u-32,g[p].f,0,8),A(h,d-32,g[p].ea,0,8)),f.Za){var v=a,y=c-32+16;for(0<o&&(i>=t.za-1?r(v,y,g[p].y[15],4):A(v,y,g[p+1].y,0,4)),n=0;4>n;n++)v[y+128+n]=v[y+256+n]=v[y+384+n]=v[y+0+n];for(n=0;16>n;++n,b<<=2)v=a,y=c+Hr[n],hr[f.Ob[n]](v,y),kn(b,m,16*+n,v,y)}else if(v=Nn(i,o,f.Ob[0]),ur[v](a,c),0!=b)for(n=0;16>n;++n,b<<=2)kn(b,m,16*+n,a,c+Hr[n]);for(n=f.Gc,v=Nn(i,o,f.Dd),dr[v](l,u),dr[v](h,d),b=m,v=l,y=u,255&(f=n>>0)&&(170&f?aA(b,256,v,y):lA(b,256,v,y)),f=h,b=d,255&(n>>=8)&&(170&n?aA(m,320,f,b):lA(m,320,f,b)),o<t.Ub-1&&(A(g[p].y,0,a,c+480,16),A(g[p].f,0,l,u+224,8),A(g[p].ea,0,h,d+224,8)),n=8*s*t.B,g=t.sa,p=t.ta+16*i+16*s*t.R,m=t.qa,f=t.ra+8*i+n,b=t.Ha,v=t.Ia+8*i+n,n=0;16>n;++n)A(g,p+n*t.R,a,c+32*n,16);for(n=0;8>n;++n)A(m,f+n*t.B,l,u+32*n,8),A(b,v+n*t.B,h,d+32*n,8)}}function Pn(t,A,r,i,o,s,a,c,l){var u=[0],h=[0],d=0,f=null!=l?l.kd:0,g=null!=l?l:new An;if(null==t||12>r)return 7;g.data=t,g.w=A,g.ha=r,A=[A],r=[r],g.gb=[g.gb];t:{var p=A,b=r,v=g.gb;if(e(null!=t),e(null!=b),e(null!=v),v[0]=0,12<=b[0]&&!n(t,p[0],'RIFF')){if(n(t,p[0]+8,'WEBP')){v=3;break t}var y=N(t,p[0]+4);if(12>y||4294967286<y){v=3;break t}if(f&&y>b[0]-8){v=7;break t}v[0]=y,p[0]+=12,b[0]-=12}v=0}if(0!=v)return v;for(y=0<g.gb[0],r=r[0];;){t:{var B=t;b=A,v=r;var C=u,x=h,F=p=[0];if((E=d=[d])[0]=0,8>v[0])v=7;else{if(!n(B,b[0],'VP8X')){if(10!=N(B,b[0]+4)){v=3;break t}if(18>v[0]){v=7;break t}var I=N(B,b[0]+8),Q=1+L(B,b[0]+12);if(2147483648<=Q*(B=1+L(B,b[0]+15))){v=3;break t}null!=F&&(F[0]=I),null!=C&&(C[0]=Q),null!=x&&(x[0]=B),b[0]+=18,v[0]-=18,E[0]=1}v=0}}if(d=d[0],p=p[0],0!=v)return v;if(b=!!(2&p),!y&&d)return 3;if(null!=s&&(s[0]=!!(16&p)),null!=a&&(a[0]=b),null!=c&&(c[0]=0),a=u[0],p=h[0],d&&b&&null==l){v=0;break}if(4>r){v=7;break}if(y&&d||!y&&!d&&!n(t,A[0],'ALPH')){r=[r],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];t:{I=t,v=A,y=r;var E=g.gb;C=g.na,x=g.P,F=g.Sa,Q=22,e(null!=I),e(null!=y),B=v[0];var S=y[0];for(e(null!=C),e(null!=F),C[0]=null,x[0]=null,F[0]=0;;){if(v[0]=B,y[0]=S,8>S){v=7;break t}var U=N(I,B+4);if(4294967286<U){v=3;break t}var k=8+U+1&-2;if(Q+=k,0<E&&Q>E){v=3;break t}if(!n(I,B,'VP8 ')||!n(I,B,'VP8L')){v=0;break t}if(S[0]<k){v=7;break t}n(I,B,'ALPH')||(C[0]=I,x[0]=B+8,F[0]=U),B+=k,S-=k}}if(r=r[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=v)break}r=[r],g.Ja=[g.Ja],g.xa=[g.xa];t:if(E=t,v=A,y=r,C=g.gb[0],x=g.Ja,F=g.xa,I=v[0],B=!n(E,I,'VP8 '),Q=!n(E,I,'VP8L'),e(null!=E),e(null!=y),e(null!=x),e(null!=F),8>y[0])v=7;else{if(B||Q){if(E=N(E,I+4),12<=C&&E>C-12){v=3;break t}if(f&&E>y[0]-8){v=7;break t}x[0]=E,v[0]+=8,y[0]-=8,F[0]=Q}else F[0]=5<=y[0]&&47==E[I+0]&&!(E[I+4]>>5),x[0]=y[0];v=0}if(r=r[0],g.Ja=g.Ja[0],g.xa=g.xa[0],A=A[0],0!=v)break;if(4294967286<g.Ja)return 3;if(null==c||b||(c[0]=g.xa?2:1),a=[a],p=[p],g.xa){if(5>r){v=7;break}c=a,f=p,b=s,null==t||5>r?t=0:5<=r&&47==t[A+0]&&!(t[A+4]>>5)?(y=[0],E=[0],C=[0],m(x=new w,t,A,r),gt(x,y,E,C)?(null!=c&&(c[0]=y[0]),null!=f&&(f[0]=E[0]),null!=b&&(b[0]=C[0]),t=1):t=0):t=0}else{if(10>r){v=7;break}c=p,null==t||10>r||!Zt(t,A+3,r-3)?t=0:(f=t[A+0]|t[A+1]<<8|t[A+2]<<16,b=16383&(t[A+7]<<8|t[A+6]),t=16383&(t[A+9]<<8|t[A+8]),1&f||3<(f>>1&7)||!(f>>4&1)||f>>5>=g.Ja||!b||!t?t=0:(a&&(a[0]=b),c&&(c[0]=t),t=1))}if(!t)return 3;if(a=a[0],p=p[0],d&&(u[0]!=a||h[0]!=p))return 3;null!=l&&(l[0]=g,l.offset=A-l.w,e(4294967286>A-l.w),e(l.offset==l.ha-r));break}return 0==v||7==v&&d&&null==l?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=i&&(i[0]=a),null!=o&&(o[0]=p),0):v}function On(t,e,n){var A=e.width,r=e.height,i=0,o=0,s=A,a=r;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,a=t.bd,i=t.v,o=t.j,11>n||(i&=-2,o&=-2),0>i||0>o||0>=s||0>=a||i+s>A||o+a>r))return 0;if(e.v=i,e.j=o,e.va=i+s,e.o=o+a,e.U=s,e.T=a,e.da=null!=t&&0<t.da,e.da){if(!O(s,a,n=[t.ib],i=[t.hb]))return 0;e.ib=n[0],e.hb=i[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*A/4&&e.hb<3*r/4,e.Kb=0),1}function Mn(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function Hn(t,e,n,A){if(null==A||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var r=n.cd,o=n.bd,s=-2&n.v,a=-2&n.j;if(0>s||0>a||0>=r||0>=o||s+r>t||a+o>e)return 2;t=r,e=o}if(n.da){if(!O(t,e,r=[n.ib],o=[n.hb]))return 2;t=r[0],e=o[0]}}A.width=t,A.height=e;t:{var c=A.width,l=A.height;if(t=A.S,0>=c||0>=l||!(t>=OA&&13>t))t=2;else{if(0>=A.Rd&&null==A.sd){s=o=r=e=0;var u=(a=c*Vr[t])*l;if(11>t||(o=(l+1)/2*(e=(c+1)/2),12==t&&(s=(r=c)*l)),null==(l=i(u+2*o+s))){t=1;break t}A.sd=l,11>t?((c=A.f.RGBA).eb=l,c.fb=0,c.A=a,c.size=u):((c=A.f.kb).y=l,c.O=0,c.fa=a,c.Fd=u,c.f=l,c.N=0+u,c.Ab=e,c.Cd=o,c.ea=l,c.W=0+u+o,c.Db=e,c.Ed=o,12==t&&(c.F=l,c.J=0+u+2*o),c.Tc=s,c.lb=r)}if(e=1,r=A.S,o=A.width,s=A.height,r>=OA&&13>r)if(11>r)t=A.f.RGBA,e&=(a=Math.abs(t.A))*(s-1)+o<=t.size,e&=a>=o*Vr[r],e&=null!=t.eb;else{t=A.f.kb,a=(o+1)/2,u=(s+1)/2,c=Math.abs(t.fa),l=Math.abs(t.Ab);var h=Math.abs(t.Db),d=Math.abs(t.lb),f=d*(s-1)+o;e&=c*(s-1)+o<=t.Fd,e&=l*(u-1)+a<=t.Cd,e=(e&=h*(u-1)+a<=t.Ed)&c>=o&l>=a&h>=a,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==r&&(e&=d>=o,e&=f<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=Mn(A)),t}var Tn=64,Dn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Rn=24,Vn=32,Gn=8,jn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];T('Predictor0','PredictorAdd0'),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return R(R(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return R(t,e[n-1])},t.Predictor7=function(t,e,n){return R(t,e[n+0])},t.Predictor8=function(t,e,n){return R(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return R(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return R(R(t,e[n-1]),R(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var A=e[n+0];return 0>=j(A>>24&255,t>>24&255,(e=e[n-1])>>24&255)+j(A>>16&255,t>>16&255,e>>16&255)+j(A>>8&255,t>>8&255,e>>8&255)+j(255&A,255&t,255&e)?A:t},t.Predictor12=function(t,e,n){var A=e[n+0];return(V((t>>24&255)+(A>>24&255)-((e=e[n-1])>>24&255))<<24|V((t>>16&255)+(A>>16&255)-(e>>16&255))<<16|V((t>>8&255)+(A>>8&255)-(e>>8&255))<<8|V((255&t)+(255&A)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var A=e[n-1];return(G((t=R(t,e[n+0]))>>24&255,A>>24&255)<<24|G(t>>16&255,A>>16&255)<<16|G(t>>8&255,A>>8&255)<<8|G(t>>0&255,A>>0&255))>>>0};var Wn=t.PredictorAdd0;t.PredictorAdd1=W,T('Predictor2','PredictorAdd2'),T('Predictor3','PredictorAdd3'),T('Predictor4','PredictorAdd4'),T('Predictor5','PredictorAdd5'),T('Predictor6','PredictorAdd6'),T('Predictor7','PredictorAdd7'),T('Predictor8','PredictorAdd8'),T('Predictor9','PredictorAdd9'),T('Predictor10','PredictorAdd10'),T('Predictor11','PredictorAdd11'),T('Predictor12','PredictorAdd12'),T('Predictor13','PredictorAdd13');var Kn=t.PredictorAdd2;Z('ColorIndexInverseTransform','MapARGB','32b',(function(t){return t>>8&255}),(function(t){return t})),Z('VP8LColorIndexInverseTransformAlpha','MapAlpha','8b',(function(t){return t}),(function(t){return t>>8&255}));var Xn,zn=t.ColorIndexInverseTransform,Zn=t.MapARGB,Yn=t.VP8LColorIndexInverseTransformAlpha,qn=t.MapAlpha,Jn=t.VP8LPredictorsAdd=[];Jn.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var $n,tA,eA,nA,AA,rA,iA,oA,sA,aA,cA,lA,uA,hA,dA,fA,gA,pA,mA,bA,vA,yA,wA,BA,CA,xA,FA,IA,QA=i(511),EA=i(2041),SA=i(225),UA=i(767),LA=0,NA=EA,kA=SA,_A=UA,PA=QA,OA=0,MA=1,HA=2,TA=3,DA=4,RA=5,VA=6,GA=7,jA=8,WA=9,KA=10,XA=[2,3,7],zA=[3,3,11],ZA=[280,256,256,256,40],YA=[0,1,1,1,0],qA=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],JA=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],$A=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],tr=8,er=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],nr=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Ar=null,rr=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ir=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],or=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],sr=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ar=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],cr=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],lr=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ur=[],hr=[],dr=[],fr=1,gr=2,pr=[],mr=[];bn('UpsampleRgbLinePair',xn,3),bn('UpsampleBgrLinePair',Fn,3),bn('UpsampleRgbaLinePair',Un,4),bn('UpsampleBgraLinePair',Sn,4),bn('UpsampleArgbLinePair',En,4),bn('UpsampleRgba4444LinePair',Qn,2),bn('UpsampleRgb565LinePair',In,2);var br=t.UpsampleRgbLinePair,vr=t.UpsampleBgrLinePair,yr=t.UpsampleRgbaLinePair,wr=t.UpsampleBgraLinePair,Br=t.UpsampleArgbLinePair,Cr=t.UpsampleRgba4444LinePair,xr=t.UpsampleRgb565LinePair,Fr=16,Ir=1<<Fr-1,Qr=-227,Er=482,Sr=6,Ur=(256<<Sr)-1,Lr=0,Nr=i(256),kr=i(256),_r=i(256),Pr=i(256),Or=i(Er-Qr),Mr=i(Er-Qr);Ln('YuvToRgbRow',xn,3),Ln('YuvToBgrRow',Fn,3),Ln('YuvToRgbaRow',Un,4),Ln('YuvToBgraRow',Sn,4),Ln('YuvToArgbRow',En,4),Ln('YuvToRgba4444Row',Qn,2),Ln('YuvToRgb565Row',In,2);var Hr=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Tr=[0,2,8],Dr=[8,7,6,4,4,2,2,2,1,1,1,1],Rr=1;this.WebPDecodeRGBA=function(t,n,A,r,i){var o=MA,s=new nn,a=new ot;s.ba=a,a.S=o,a.width=[a.width],a.height=[a.height];var c=a.width,l=a.height,u=new st;if(null==u||null==t)var h=2;else e(null!=u),h=Pn(t,n,A,u.width,u.height,u.Pd,u.Qd,u.format,null);if(0!=h?c=0:(null!=c&&(c[0]=u.width[0]),null!=l&&(l[0]=u.height[0]),c=1),c){a.width=a.width[0],a.height=a.height[0],null!=r&&(r[0]=a.width),null!=i&&(i[0]=a.height);t:{if(r=new Kt,(i=new An).data=t,i.w=n,i.ha=A,i.kd=1,n=[0],e(null!=i),(0==(t=Pn(i.data,i.w,i.ha,null,null,null,n,null,i))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=s),r.data=i.data,r.w=i.w+i.offset,r.ha=i.ha-i.offset,r.put=dt,r.ac=ht,r.bc=ft,r.ma=s,i.xa){if(null==(t=Et())){s=1;break t}if(function(t,n){var A=[0],r=[0],i=[0];e:for(;;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,m(t.m,n.data,n.w,n.ha),!gt(t.m,A,r,i)){t.a=3;break e}if(t.xb=gr,n.width=A[0],n.height=r[0],!St(A[0],r[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,r)){if(r=0==(n=Hn(r.width,r.height,s.Oa,s.ba))){e:{r=t;n:for(;;){if(null==r){r=0;break e}if(e(null!=r.s.yc),e(null!=r.s.Ya),e(0<r.s.Wb),e(null!=(A=r.l)),e(null!=(i=A.ma)),0!=r.xb){if(r.ca=i.ba,r.tb=i.tb,e(null!=r.ca),!On(i.Oa,A,TA)){r.a=2;break n}if(!Ut(r,A.width))break n;if(A.da)break n;if((A.da||At(r.ca.S))&&mn(),11>r.ca.S||(alert('todo:WebPInitConvertARGBToYUV'),null!=r.ca.f.kb.F&&mn()),r.Pb&&0<r.s.ua&&null==r.s.vb.X&&!k(r.s.vb,r.s.Wa.Xa)){r.a=1;break n}r.xb=0}if(!It(r,r.V,r.Ba,r.c,r.i,A.o,Bt))break n;i.Dc=r.Ma,r=1;break e}e(0!=r.a),r=0}r=!r}r&&(n=t.a)}else n=t.a}else{if(null==(t=new Xt)){s=1;break t}if(t.Fa=i.na,t.P=i.P,t.qc=i.Sa,Yt(t,r)){if(0==(n=Hn(r.width,r.height,s.Oa,s.ba))){if(t.Aa=0,A=s.Oa,e(null!=(i=t)),null!=A){if(0<(c=0>(c=A.Md)?0:100<c?255:255*c/100)){for(l=u=0;4>l;++l)12>(h=i.pb[l]).lc&&(h.ia=c*Dr[0>h.lc?0:h.lc]>>3),u|=h.ia;u&&(alert('todo:VP8InitRandom'),i.ia=1)}i.Ga=A.Id,100<i.Ga?i.Ga=100:0>i.Ga&&(i.Ga=0)}$t(t,r)||(n=t.a)}}else n=t.a}0==n&&null!=s.Oa&&s.Oa.fd&&(n=Mn(s.ba))}s=n}o=0!=s?null:11>o?a.f.RGBA.eb:a.f.kb.y}else o=null;return o};var Vr=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(t,e){for(var n='',A=0;A<4;A++)n+=String.fromCharCode(t[e++]);return n}function l(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function u(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new a;var h=[0],d=[0],f=[],g=new a,p=t,m=function(t,e){var n={},A=0,r=!1,i=0,o=0;if(n.frames=[],!
264
+ /** @license
265
+ * Copyright (c) 2017 Dominik Homberger
266
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
267
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
268
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
269
+ https://webpjs.appspot.com
270
+ WebPRiffParser dominikhlbg@gmail.com
271
+ */
272
+ function(t,e,n,A){for(var r=0;r<4;r++)if(t[e+r]!='RIFF'.charCodeAt(r))return!0;return!1}(t,e)){var s,a;for(u(t,e+=4),e+=8;e<t.length;){var h=c(t,e),d=u(t,e+=4);e+=4;var f=d+(1&d);switch(h){case'VP8 ':case'VP8L':void 0===n.frames[A]&&(n.frames[A]={}),(m=n.frames[A]).src_off=r?o:e-8,m.src_size=i+d+8,A++,r&&(r=!1,i=0,o=0);break;case'VP8X':(m=n.header={}).feature_flags=t[e];var g=e+4;m.canvas_width=1+l(t,g),g+=3,m.canvas_height=1+l(t,g),g+=3;break;case'ALPH':r=!0,i=f+8,o=e-8;break;case'ANIM':(m=n.header).bgcolor=u(t,e),g=e+4,m.loop_count=(s=t)[(a=g)+0]<<0|s[a+1]<<8,g+=2;break;case'ANMF':var p,m;(m=n.frames[A]={}).offset_x=2*l(t,e),e+=3,m.offset_y=2*l(t,e),e+=3,m.width=1+l(t,e),e+=3,m.height=1+l(t,e),e+=3,m.duration=l(t,e),e+=3,p=t[e++],m.dispose=1&p,m.blend=p>>1&1}'ANMF'!=h&&(e+=f)}return n}}(p,0);m.response=p,m.rgbaoutput=!0,m.dataurl=!1;var b=m.header?m.header:null,v=m.frames?m.frames:null;if(b){b.loop_counter=b.loop_count,h=[b.canvas_height],d=[b.canvas_width];for(var y=0;y<v.length&&0!=v[y].blend;y++);}var w=v[0],B=g.WebPDecodeRGBA(p,w.src_off,w.src_size,d,h);w.rgba=B,w.imgwidth=d[0],w.imgheight=h[0];for(var C=0;C<d[0]*h[0]*4;C++)f[C]=B[C];return this.width=d,this.height=h,this.data=f,this}!function(t){var e=function(e,A,a,c){var l=4,u=i;switch(c){case t.image_compression.FAST:l=1,u=r;break;case t.image_compression.MEDIUM:l=6,u=o;break;case t.image_compression.SLOW:l=9,u=s}var h=Uy(e=n(e,A,a,u),{level:l});return t.__addimage__.arrayBufferToBinaryString(h)},n=function(t,e,n,A){for(var r,i,o,s=t.length/e,a=new Uint8Array(t.length+s),u=c(),h=0;h<s;h+=1){if(o=h*e,r=t.subarray(o,o+e),A)a.set(A(r,n,i),o+h);else{for(var d,f=u.length,g=[];d<f;d+=1)g[d]=u[d](r,n,i);var p=l(g.concat());a.set(g[p],o+h)}i=r}return a},A=function(t){var e=Array.apply([],t);return e.unshift(0),e},r=function(t,e){var n,A=[],r=t.length;A[0]=1;for(var i=0;i<r;i+=1)n=t[i-e]||0,A[i+1]=t[i]-n+256&255;return A},i=function(t,e,n){var A,r=[],i=t.length;r[0]=2;for(var o=0;o<i;o+=1)A=n&&n[o]||0,r[o+1]=t[o]-A+256&255;return r},o=function(t,e,n){var A,r,i=[],o=t.length;i[0]=3;for(var s=0;s<o;s+=1)A=t[s-e]||0,r=n&&n[s]||0,i[s+1]=t[s]+256-(A+r>>>1)&255;return i},s=function(t,e,n){var A,r,i,o,s=[],c=t.length;s[0]=4;for(var l=0;l<c;l+=1)A=t[l-e]||0,r=n&&n[l]||0,i=n&&n[l-e]||0,o=a(A,r,i),s[l+1]=t[l]-o+256&255;return s},a=function(t,e,n){if(t===e&&e===n)return t;var A=Math.abs(e-n),r=Math.abs(t-n),i=Math.abs(t+e-n-n);return A<=r&&A<=i?t:r<=i?e:n},c=function(){return[A,r,i,o,s]},l=function(t){var e=t.map((function(t){return t.reduce((function(t,e){return t+Math.abs(e)}),0)}));return e.indexOf(Math.min.apply(null,e))};t.processPNG=function(n,A,r,i){var o,s,a,c,l,u,h,d,f,g,p,m,b,v,y,w=this.decode.FLATE_DECODE,B='';if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(a=new BB(n)).imgData,s=a.bits,o=a.colorSpace,l=a.colors,-1!==[4,6].indexOf(a.colorType)){if(8===a.bits){f=(d=32==a.pixelBitlength?new Uint32Array(a.decodePixels().buffer):16==a.pixelBitlength?new Uint16Array(a.decodePixels().buffer):new Uint8Array(a.decodePixels().buffer)).length,p=new Uint8Array(f*a.colors),g=new Uint8Array(f);var C,x=a.pixelBitlength-a.bits;for(v=0,y=0;v<f;v++){for(b=d[v],C=0;C<x;)p[y++]=b>>>C&255,C+=a.bits;g[v]=b>>>C&255}}if(16===a.bits){f=(d=new Uint32Array(a.decodePixels().buffer)).length,p=new Uint8Array(f*(32/a.pixelBitlength)*a.colors),g=new Uint8Array(f*(32/a.pixelBitlength)),m=a.colors>1,v=0,y=0;for(var F=0;v<f;)b=d[v++],p[y++]=b>>>0&255,m&&(p[y++]=b>>>16&255,b=d[v++],p[y++]=b>>>0&255),g[F++]=b>>>16&255;s=8}i!==t.image_compression.NONE?(n=e(p,a.width*a.colors,a.colors,i),h=e(g,a.width,1,i)):(n=p,h=g,w=void 0)}if(3===a.colorType&&(o=this.color_spaces.INDEXED,u=a.palette,a.transparency.indexed)){var I=a.transparency.indexed,Q=0;for(v=0,f=I.length;v<f;++v)Q+=I[v];if((Q/=255)==f-1&&-1!==I.indexOf(0))c=[I.indexOf(0)];else if(Q!==f){for(d=a.decodePixels(),g=new Uint8Array(d.length),v=0,f=d.length;v<f;v++)g[v]=I[d[v]];h=e(g,a.width,1)}}var E=function(e){var n;switch(e){case t.image_compression.FAST:n=11;break;case t.image_compression.MEDIUM:n=13;break;case t.image_compression.SLOW:n=14;break;default:n=12}return n}(i);return w===this.decode.FLATE_DECODE&&(B='/Predictor '+E+' '),B+='/Colors '+l+' /BitsPerComponent '+s+' /Columns '+a.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:r,data:n,index:A,filter:w,decodeParameters:B,transparency:c,palette:u,sMask:h,predictor:E,width:a.width,height:a.height,bitsPerComponent:s,colorSpace:o}}}}(uw.API),function(t){t.processGIF89A=function(e,n,A,r){var i=new CB(e),o=i.width,s=i.height,a=[];i.decodeAndBlitFrameRGBA(0,a);var c={data:a,width:o,height:s},l=new FB(100).encode(c,100);return t.processJPEG.call(this,l,n,A,r)},t.processGIF87A=t.processGIF89A}(uw.API),IB.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:r,green:A,blue:n,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},IB.prototype.parseBGR=function(){this.pos=this.offset;try{var t='bit'+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){_y.log('bit decode error:'+t)}},IB.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var A=this.bottom_up?t:this.height-1-t,r=0;r<e;r++)for(var i=this.datav.getUint8(this.pos++,!0),o=A*this.width*4+8*r*4,s=0;s<8&&8*r+s<this.width;s++){var a=this.palette[i>>7-s&1];this.data[o+4*s]=a.blue,this.data[o+4*s+1]=a.green,this.data[o+4*s+2]=a.red,this.data[o+4*s+3]=255}0!==n&&(this.pos+=4-n)}},IB.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var A=this.bottom_up?n:this.height-1-n,r=0;r<t;r++){var i=this.datav.getUint8(this.pos++,!0),o=A*this.width*4+2*r*4,s=i>>4,a=15&i,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*r+1>=this.width)break;c=this.palette[a],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},IB.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,A=0;A<this.width;A++){var r=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+4*A;if(r<this.palette.length){var o=this.palette[r];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==t&&(this.pos+=4-t)}},IB.prototype.bit15=function(){for(var t=this.width%3,e=parseInt('11111',2),n=this.height-1;n>=0;n--){for(var A=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&e)/e*255|0,s=(i>>5&e)/e*255|0,a=(i>>10&e)/e*255|0,c=i>>15?255:0,l=A*this.width*4+4*r;this.data[l]=a,this.data[l+1]=s,this.data[l+2]=o,this.data[l+3]=c}this.pos+=t}},IB.prototype.bit16=function(){for(var t=this.width%3,e=parseInt('11111',2),n=parseInt('111111',2),A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,a=(o>>5&n)/n*255|0,c=(o>>11)/e*255|0,l=r*this.width*4+4*i;this.data[l]=c,this.data[l+1]=a,this.data[l+2]=s,this.data[l+3]=255}this.pos+=t}},IB.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var A=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*n;this.data[o]=i,this.data[o+1]=r,this.data[o+2]=A,this.data[o+3]=255}this.pos+=this.width%4}},IB.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var A=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=i,this.data[s+1]=r,this.data[s+2]=A,this.data[s+3]=o}},IB.prototype.getData=function(){return this.data},
273
+ /**
274
+ * @license
275
+ * Copyright (c) 2018 Aras Abbasi
276
+ *
277
+ * Licensed under the MIT License.
278
+ * http://opensource.org/licenses/mit-license
279
+ */
280
+ function(t){t.processBMP=function(e,n,A,r){var i=new IB(e,!1),o=i.width,s=i.height,a={data:i.getData(),width:o,height:s},c=new FB(100).encode(a,100);return t.processJPEG.call(this,c,n,A,r)}}(uw.API),QB.prototype.getData=function(){return this.data},
281
+ /**
282
+ * @license
283
+ * Copyright (c) 2019 Aras Abbasi
284
+ *
285
+ * Licensed under the MIT License.
286
+ * http://opensource.org/licenses/mit-license
287
+ */
288
+ function(t){t.processWEBP=function(e,n,A,r){var i=new QB(e),o=i.width,s=i.height,a={data:i.getData(),width:o,height:s},c=new FB(100).encode(a,100);return t.processJPEG.call(this,c,n,A,r)}}(uw.API),uw.API.processRGBA=function(t,e,n){for(var A=t.data,r=A.length,i=new Uint8Array(r/4*3),o=new Uint8Array(r/4),s=0,a=0,c=0;c<r;c+=4){var l=A[c],u=A[c+1],h=A[c+2],d=A[c+3];i[s++]=l,i[s++]=u,i[s++]=h,o[a++]=d}var f=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:f,index:e,alias:n,colorSpace:'DeviceRGB',bitsPerComponent:8,width:t.width,height:t.height}},uw.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:'Afrikaans',sq:'Albanian',ar:'Arabic (Standard)','ar-DZ':'Arabic (Algeria)','ar-BH':'Arabic (Bahrain)','ar-EG':'Arabic (Egypt)','ar-IQ':'Arabic (Iraq)','ar-JO':'Arabic (Jordan)','ar-KW':'Arabic (Kuwait)','ar-LB':'Arabic (Lebanon)','ar-LY':'Arabic (Libya)','ar-MA':'Arabic (Morocco)','ar-OM':'Arabic (Oman)','ar-QA':'Arabic (Qatar)','ar-SA':'Arabic (Saudi Arabia)','ar-SY':'Arabic (Syria)','ar-TN':'Arabic (Tunisia)','ar-AE':'Arabic (U.A.E.)','ar-YE':'Arabic (Yemen)',an:'Aragonese',hy:'Armenian',as:'Assamese',ast:'Asturian',az:'Azerbaijani',eu:'Basque',be:'Belarusian',bn:'Bengali',bs:'Bosnian',br:'Breton',bg:'Bulgarian',my:'Burmese',ca:'Catalan',ch:'Chamorro',ce:'Chechen',zh:'Chinese','zh-HK':'Chinese (Hong Kong)','zh-CN':'Chinese (PRC)','zh-SG':'Chinese (Singapore)','zh-TW':'Chinese (Taiwan)',cv:'Chuvash',co:'Corsican',cr:'Cree',hr:'Croatian',cs:'Czech',da:'Danish',nl:'Dutch (Standard)','nl-BE':'Dutch (Belgian)',en:'English','en-AU':'English (Australia)','en-BZ':'English (Belize)','en-CA':'English (Canada)','en-IE':'English (Ireland)','en-JM':'English (Jamaica)','en-NZ':'English (New Zealand)','en-PH':'English (Philippines)','en-ZA':'English (South Africa)','en-TT':'English (Trinidad & Tobago)','en-GB':'English (United Kingdom)','en-US':'English (United States)','en-ZW':'English (Zimbabwe)',eo:'Esperanto',et:'Estonian',fo:'Faeroese',fj:'Fijian',fi:'Finnish',fr:'French (Standard)','fr-BE':'French (Belgium)','fr-CA':'French (Canada)','fr-FR':'French (France)','fr-LU':'French (Luxembourg)','fr-MC':'French (Monaco)','fr-CH':'French (Switzerland)',fy:'Frisian',fur:'Friulian',gd:'Gaelic (Scots)','gd-IE':'Gaelic (Irish)',gl:'Galacian',ka:'Georgian',de:'German (Standard)','de-AT':'German (Austria)','de-DE':'German (Germany)','de-LI':'German (Liechtenstein)','de-LU':'German (Luxembourg)','de-CH':'German (Switzerland)',el:'Greek',gu:'Gujurati',ht:'Haitian',he:'Hebrew',hi:'Hindi',hu:'Hungarian',is:'Icelandic',id:'Indonesian',iu:'Inuktitut',ga:'Irish',it:'Italian (Standard)','it-CH':'Italian (Switzerland)',ja:'Japanese',kn:'Kannada',ks:'Kashmiri',kk:'Kazakh',km:'Khmer',ky:'Kirghiz',tlh:'Klingon',ko:'Korean','ko-KP':'Korean (North Korea)','ko-KR':'Korean (South Korea)',la:'Latin',lv:'Latvian',lt:'Lithuanian',lb:'Luxembourgish',mk:'North Macedonia',ms:'Malay',ml:'Malayalam',mt:'Maltese',mi:'Maori',mr:'Marathi',mo:'Moldavian',nv:'Navajo',ng:'Ndonga',ne:'Nepali',no:'Norwegian',nb:'Norwegian (Bokmal)',nn:'Norwegian (Nynorsk)',oc:'Occitan',or:'Oriya',om:'Oromo',fa:'Persian','fa-IR':'Persian/Iran',pl:'Polish',pt:'Portuguese','pt-BR':'Portuguese (Brazil)',pa:'Punjabi','pa-IN':'Punjabi (India)','pa-PK':'Punjabi (Pakistan)',qu:'Quechua',rm:'Rhaeto-Romanic',ro:'Romanian','ro-MO':'Romanian (Moldavia)',ru:'Russian','ru-MO':'Russian (Moldavia)',sz:'Sami (Lappish)',sg:'Sango',sa:'Sanskrit',sc:'Sardinian',sd:'Sindhi',si:'Singhalese',sr:'Serbian',sk:'Slovak',sl:'Slovenian',so:'Somani',sb:'Sorbian',es:'Spanish','es-AR':'Spanish (Argentina)','es-BO':'Spanish (Bolivia)','es-CL':'Spanish (Chile)','es-CO':'Spanish (Colombia)','es-CR':'Spanish (Costa Rica)','es-DO':'Spanish (Dominican Republic)','es-EC':'Spanish (Ecuador)','es-SV':'Spanish (El Salvador)','es-GT':'Spanish (Guatemala)','es-HN':'Spanish (Honduras)','es-MX':'Spanish (Mexico)','es-NI':'Spanish (Nicaragua)','es-PA':'Spanish (Panama)','es-PY':'Spanish (Paraguay)','es-PE':'Spanish (Peru)','es-PR':'Spanish (Puerto Rico)','es-ES':'Spanish (Spain)','es-UY':'Spanish (Uruguay)','es-VE':'Spanish (Venezuela)',sx:'Sutu',sw:'Swahili',sv:'Swedish','sv-FI':'Swedish (Finland)','sv-SV':'Swedish (Sweden)',ta:'Tamil',tt:'Tatar',te:'Teluga',th:'Thai',tig:'Tigre',ts:'Tsonga',tn:'Tswana',tr:'Turkish',tk:'Turkmen',uk:'Ukrainian',hsb:'Upper Sorbian',ur:'Urdu',ve:'Venda',vi:'Vietnamese',vo:'Volapuk',wa:'Walloon',cy:'Welsh',xh:'Xhosa',ji:'Yiddish',zu:'Zulu'}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe('putCatalog',(function(){this.internal.write('/Lang ('+this.internal.languageSettings.languageCode+')')})),this.internal.languageSettings.isSubscribed=!0)),this},mB=uw.API,bB=mB.getCharWidthsArray=function(t,e){var n,A,r=(e=e||{}).font||this.internal.getFont(),i=e.fontSize||this.internal.getFontSize(),o=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:r.metadata.Unicode.widths,a=s.fof?s.fof:1,c=e.kerning?e.kerning:r.metadata.Unicode.kerning,l=c.fof?c.fof:1,u=!1!==e.doKerning,h=0,d=t.length,f=0,g=s[0]||a,p=[];for(n=0;n<d;n++)A=t.charCodeAt(n),'function'==typeof r.metadata.widthOfString?p.push((r.metadata.widthOfGlyph(r.metadata.characterToGlyph(A))+o*(1e3/i)||0)/1e3):(h=u&&'object'===jv(c[A])&&!isNaN(parseInt(c[A][f],10))?c[A][f]/l:0,p.push((s[A]||g)/a+h)),f=A;return p},vB=mB.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),A=e.font||this.internal.getFont(),r=e.charSpace||this.internal.getCharSpace();return mB.processArabic&&(t=mB.processArabic(t)),'function'==typeof A.metadata.widthOfString?A.metadata.widthOfString(t,n,r)/n:bB.apply(this,arguments).reduce((function(t,e){return t+e}),0)},yB=function(t,e,n,A){for(var r=[],i=0,o=t.length,s=0;i!==o&&s+e[i]<n;)s+=e[i],i++;r.push(t.slice(0,i));var a=i;for(s=0;i!==o;)s+e[i]>A&&(r.push(t.slice(a,i)),s=0,a=i),s+=e[i],i++;return a!==i&&r.push(t.slice(a,i)),r},wB=function(t,e,n){n||(n={});var A,r,i,o,s,a,c,l=[],u=[l],h=n.textIndent||0,d=0,f=0,g=t.split(' '),p=bB.apply(this,[' ',n])[0];if(a=-1===n.lineIndent?g[0].length+2:n.lineIndent||0){var m=Array(a).join(' '),b=[];g.map((function(t){(t=t.split(/\s*\n/)).length>1?b=b.concat(t.map((function(t,e){return(e&&t.length?'\n':'')+t}))):b.push(t[0])})),g=b,a=vB.apply(this,[m,n])}for(i=0,o=g.length;i<o;i++){var v=0;if(A=g[i],a&&'\n'==A[0]&&(A=A.substr(1),v=1),h+d+(f=(r=bB.apply(this,[A,n])).reduce((function(t,e){return t+e}),0))>e||v){if(f>e){for(s=yB.apply(this,[A,r,e-(h+d),e]),l.push(s.shift()),l=[s.pop()];s.length;)u.push([s.shift()]);f=r.slice(A.length-(l[0]?l[0].length:0)).reduce((function(t,e){return t+e}),0)}else l=[A];u.push(l),h=f+a,d=p}else l.push(A),h+=d+f,d=p}return c=a?function(t,e){return(e?m:'')+t.join(' ')}:function(t){return t.join(' ')},u.map(c)},mB.splitTextToSize=function(t,e,n){var A,r=(n=n||{}).fontSize||this.internal.getFontSize(),i=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);A=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/r;i.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/r:0,i.lineIndent=n.lineIndent;var s,a,c=[];for(s=0,a=A.length;s<a;s++)c=c.concat(wB.apply(this,[A[s],o,i]));return c},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e='klmnopqrstuvwxyz',n={},A={},r=0;r<16;r++)n[e[r]]='0123456789abcdef'[r],A['0123456789abcdef'[r]]=e[r];var i=function(t){return'0x'+parseInt(t,10).toString(16)},o=t.__fontmetrics__.compress=function(t){var e,n,r,s,a=['{'];for(var c in t){if(e=t[c],isNaN(parseInt(c,10))?n='\''+c+'\'':(c=parseInt(c,10),n=(n=i(c).slice(2)).slice(0,-1)+A[n.slice(-1)]),'number'==typeof e)e<0?(r=i(e).slice(3),s='-'):(r=i(e).slice(2),s=''),r=s+r.slice(0,-1)+A[r.slice(-1)];else{if('object'!==jv(e))throw new Error('Don\'t know what to do with value type '+jv(e)+'.');r=o(e)}a.push(n+r)}return a.push('}'),a.join('')},s=t.__fontmetrics__.uncompress=function(t){if('string'!=typeof t)throw new Error('Invalid argument passed to uncompress.');for(var e,A,r,i,o={},s=1,a=o,c=[],l='',u='',h=t.length-1,d=1;d<h;d+=1)'\''==(i=t[d])?e?(r=e.join(''),e=void 0):e=[]:e?e.push(i):'{'==i?(c.push([a,r]),a={},r=void 0):'}'==i?((A=c.pop())[0][A[1]]=a,r=void 0,a=A[0]):'-'==i?s=-1:void 0===r?n.hasOwnProperty(i)?(l+=n[i],r=parseInt(l,16)*s,s=1,l=''):l+=i:n.hasOwnProperty(i)?(u+=n[i],a[r]=parseInt(u,16)*s,s=1,r=void 0,u=''):u+=i;return o},a={codePages:['WinAnsiEncoding'],WinAnsiEncoding:s('{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}')},c={Unicode:{Courier:a,'Courier-Bold':a,'Courier-BoldOblique':a,'Courier-Oblique':a,Helvetica:a,'Helvetica-Bold':a,'Helvetica-BoldOblique':a,'Helvetica-Oblique':a,'Times-Roman':a,'Times-Bold':a,'Times-BoldItalic':a,'Times-Italic':a}},l={Unicode:{'Courier-Oblique':s('{\'widths\'{k3w\'fof\'6o}\'kerning\'{\'fof\'-6o}}'),'Times-BoldItalic':s('{\'widths\'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t\'fof\'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}\'kerning\'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}\'fof\'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}'),'Helvetica-Bold':s('{\'widths\'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u\'fof\'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}\'kerning\'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}\'fof\'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}'),Courier:s('{\'widths\'{k3w\'fof\'6o}\'kerning\'{\'fof\'-6o}}'),'Courier-BoldOblique':s('{\'widths\'{k3w\'fof\'6o}\'kerning\'{\'fof\'-6o}}'),'Times-Bold':s('{\'widths\'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t\'fof\'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}\'kerning\'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}\'fof\'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}'),Symbol:s('{\'widths\'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r\'fof\'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}\'kerning\'{\'fof\'-6o}}'),Helvetica:s('{\'widths\'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u\'fof\'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}\'kerning\'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}\'fof\'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}'),'Helvetica-BoldOblique':s('{\'widths\'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u\'fof\'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}\'kerning\'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}\'fof\'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}'),ZapfDingbats:s('{\'widths\'{k4u2k1w\'fof\'6o}\'kerning\'{\'fof\'-6o}}'),'Courier-Bold':s('{\'widths\'{k3w\'fof\'6o}\'kerning\'{\'fof\'-6o}}'),'Times-Italic':s('{\'widths\'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n\'fof\'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}\'kerning\'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}\'fof\'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}'),'Times-Roman':s('{\'widths\'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s\'fof\'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}\'kerning\'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}\'fof\'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}'),'Helvetica-Oblique':s('{\'widths\'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u\'fof\'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}\'kerning\'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}\'fof\'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}')}};t.events.push(['addFont',function(t){var e=t.font,n=l.Unicode[e.postScriptName];n&&(e.metadata.Unicode={},e.metadata.Unicode.widths=n.widths,e.metadata.Unicode.kerning=n.kerning);var A=c.Unicode[e.postScriptName];A&&(e.metadata.Unicode.encoding=A,e.encoding=A.codePages[0])}])}(uw.API),
289
+ /**
290
+ * @license
291
+ * Licensed under the MIT License.
292
+ * http://opensource.org/licenses/mit-license
293
+ */
294
+ function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),A=0;A<e;A++)n[A]=t.charCodeAt(A);return n};t.API.events.push(['addFont',function(n){var A=void 0,r=n.font,i=n.instance;if(!r.isStandardFont){if(void 0===i)throw new Error('Font does not exist in vFS, import fonts or remove declaration doc.addFont(\''+r.postScriptName+'\').');if('string'!=typeof(A=!1===i.existsFileInVFS(r.postScriptName)?i.loadFile(r.postScriptName):i.getFileFromVFS(r.postScriptName)))throw new Error('Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont(\''+r.postScriptName+'\').');!function(n,A){A=/^\x00\x01\x00\x00/.test(A)?e(A):e(Hy(A)),n.metadata=t.API.TTFFont.open(A),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(r,A)}}])}(uw),uw.API.addSvgAsImage=function(t,e,n,A,r,i,o,s){if(isNaN(e)||isNaN(n))throw _y.error('jsPDF.addSvgAsImage: Invalid coordinates',arguments),new Error('Invalid coordinates passed to jsPDF.addSvgAsImage');if(isNaN(A)||isNaN(r))throw _y.error('jsPDF.addSvgAsImage: Invalid measurements',arguments),new Error('Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage');var a=document.createElement('canvas');a.width=A,a.height=r;var c=a.getContext('2d');c.fillStyle='#fff',c.fillRect(0,0,a.width,a.height);var l={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},u=this;return(Ny.canvg?Promise.resolve(Ny.canvg):Promise.resolve().then((function(){return Fz}))).catch((function(t){return Promise.reject(new Error('Could not load canvg: '+t))})).then((function(t){return t.default?t.default:t})).then((function(e){return e.fromString(c,t,l)}),(function(){return Promise.reject(new Error('Could not load canvg.'))})).then((function(t){return t.render(l)})).then((function(){u.addImage(a.toDataURL('image/jpeg',1),e,n,A,r,o,s)}))},uw.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,'g'),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),'g'),n=this.pdfEscape16(this.internal.getNumberOfPages()+'',this.internal.getFont()));for(var A=1;A<=this.internal.getNumberOfPages();A++)for(var r=0;r<this.internal.pages[A].length;r++)this.internal.pages[A][r]=this.internal.pages[A][r].replace(e,n);return this},uw.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var A,r,i,o={HideToolbar:{defaultValue:!1,value:!1,type:'boolean',explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:'boolean',explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:'boolean',explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:'boolean',explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:'boolean',explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:'boolean',explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:'UseNone',value:'UseNone',type:'name',explicitSet:!1,valueSet:['UseNone','UseOutlines','UseThumbs','UseOC'],pdfVersion:1.3},Direction:{defaultValue:'L2R',value:'L2R',type:'name',explicitSet:!1,valueSet:['L2R','R2L'],pdfVersion:1.3},ViewArea:{defaultValue:'CropBox',value:'CropBox',type:'name',explicitSet:!1,valueSet:['MediaBox','CropBox','TrimBox','BleedBox','ArtBox'],pdfVersion:1.4},ViewClip:{defaultValue:'CropBox',value:'CropBox',type:'name',explicitSet:!1,valueSet:['MediaBox','CropBox','TrimBox','BleedBox','ArtBox'],pdfVersion:1.4},PrintArea:{defaultValue:'CropBox',value:'CropBox',type:'name',explicitSet:!1,valueSet:['MediaBox','CropBox','TrimBox','BleedBox','ArtBox'],pdfVersion:1.4},PrintClip:{defaultValue:'CropBox',value:'CropBox',type:'name',explicitSet:!1,valueSet:['MediaBox','CropBox','TrimBox','BleedBox','ArtBox'],pdfVersion:1.4},PrintScaling:{defaultValue:'AppDefault',value:'AppDefault',type:'name',explicitSet:!1,valueSet:['AppDefault','None'],pdfVersion:1.6},Duplex:{defaultValue:'',value:'none',type:'name',explicitSet:!1,valueSet:['Simplex','DuplexFlipShortEdge','DuplexFlipLongEdge','none'],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:'boolean',explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:'',value:'',type:'array',explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:'integer',explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),a=[],c=0,l=0,u=0;function h(t,e){var n,A=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(A=!0);return A}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,'reset'===t||!0===e){var d=s.length;for(u=0;u<d;u+=1)n[s[u]].value=n[s[u]].defaultValue,n[s[u]].explicitSet=!1}if('object'===jv(t))for(r in t)if(i=t[r],h(s,r)&&void 0!==i){if('boolean'===n[r].type&&'boolean'==typeof i)n[r].value=i;else if('name'===n[r].type&&h(n[r].valueSet,i))n[r].value=i;else if('integer'===n[r].type&&Number.isInteger(i))n[r].value=i;else if('array'===n[r].type){for(c=0;c<i.length;c+=1)if(A=!0,1===i[c].length&&'number'==typeof i[c][0])a.push(String(i[c]-1));else if(i[c].length>1){for(l=0;l<i[c].length;l+=1)'number'!=typeof i[c][l]&&(A=!1);!0===A&&a.push([i[c][0]-1,i[c][1]-1].join(' '))}n[r].value='['+a.join(' ')+']'}else n[r].value=n[r].defaultValue;n[r].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe('putCatalog',(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&('name'===n[t].type?e.push('/'+t+' /'+n[t].value):e.push('/'+t+' '+n[t].value));0!==e.length&&this.internal.write('/ViewerPreferences\n<<\n'+e.join('\n')+'\n>>')})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this
295
+ /** ====================================================================
296
+ * @license
297
+ * jsPDF XMP metadata plugin
298
+ * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
299
+ *
300
+ * Permission is hereby granted, free of charge, to any person obtaining
301
+ * a copy of this software and associated documentation files (the
302
+ * "Software"), to deal in the Software without restriction, including
303
+ * without limitation the rights to use, copy, modify, merge, publish,
304
+ * distribute, sublicense, and/or sell copies of the Software, and to
305
+ * permit persons to whom the Software is furnished to do so, subject to
306
+ * the following conditions:
307
+ *
308
+ * The above copyright notice and this permission notice shall be
309
+ * included in all copies or substantial portions of the Software.
310
+ *
311
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
312
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
313
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
314
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
315
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
316
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
317
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
318
+ * ====================================================================
319
+ */},function(t){var e=function(){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),A=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),r=unescape(encodeURIComponent('</jspdf:metadata></rdf:Description></rdf:RDF>')),i=unescape(encodeURIComponent('</x:xmpmeta>')),o=n.length+A.length+r.length+e.length+i.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write('<< /Type /Metadata /Subtype /XML /Length '+o+' >>'),this.internal.write('stream'),this.internal.write(e+n+A+r+i),this.internal.write('endstream'),this.internal.write('endobj')},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write('/Metadata '+this.internal.__metadata__.metadata_object_number+' 0 R')};t.addMetadata=function(t,A){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:A||'http://jspdf.default.namespaceuri/'},this.internal.events.subscribe('putCatalog',n),this.internal.events.subscribe('postPutResources',e)),this}}(uw.API),function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,A=e.metadata.Unicode.widths,r=['','0','00','000','0000'],i=[''],o=0,s=t.length;o<s;++o){if(n=e.metadata.characterToGlyph(t.charCodeAt(o)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(o),-1==A.indexOf(n)&&(A.push(n),A.push([parseInt(e.metadata.widthOfGlyph(n),10)])),'0'==n)return i.join('');n=n.toString(16),i.push(r[4-n.length],n)}return i.join('')},A=function(t){var e,n,A,r,i,o,s;for(i='/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange',A=[],o=0,s=(n=Object.keys(t).sort((function(t,e){return t-e}))).length;o<s;o++)e=n[o],A.length>=100&&(i+='\n'+A.length+' beginbfchar\n'+A.join('\n')+'\nendbfchar',A=[]),void 0!==t[e]&&null!==t[e]&&'function'==typeof t[e].toString&&(r=('0000'+t[e].toString(16)).slice(-4),e=('0000'+(+e).toString(16)).slice(-4),A.push('<'+e+'><'+r+'>'));return A.length&&(i+='\n'+A.length+' beginbfchar\n'+A.join('\n')+'\nendbfchar\n'),i+'endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend'};e.events.push(['putFont',function(e){!function(e){var n=e.font,r=e.out,i=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&'Identity-H'===n.encoding){for(var s=n.metadata.Unicode.widths,a=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),c='',l=0;l<a.length;l++)c+=String.fromCharCode(a[l]);var u=i();o({data:c,addLength1:!0,objectId:u}),r('endobj');var h=i();o({data:A(n.metadata.toUnicode),addLength1:!0,objectId:h}),r('endobj');var d=i();r('<<'),r('/Type /FontDescriptor'),r('/FontName /'+iw(n.fontName)),r('/FontFile2 '+u+' 0 R'),r('/FontBBox '+t.API.PDFObject.convert(n.metadata.bbox)),r('/Flags '+n.metadata.flags),r('/StemV '+n.metadata.stemV),r('/ItalicAngle '+n.metadata.italicAngle),r('/Ascent '+n.metadata.ascender),r('/Descent '+n.metadata.decender),r('/CapHeight '+n.metadata.capHeight),r('>>'),r('endobj');var f=i();r('<<'),r('/Type /Font'),r('/BaseFont /'+iw(n.fontName)),r('/FontDescriptor '+d+' 0 R'),r('/W '+t.API.PDFObject.convert(s)),r('/CIDToGIDMap /Identity'),r('/DW 1000'),r('/Subtype /CIDFontType2'),r('/CIDSystemInfo'),r('<<'),r('/Supplement 0'),r('/Registry (Adobe)'),r('/Ordering ('+n.encoding+')'),r('>>'),r('>>'),r('endobj'),n.objectNumber=i(),r('<<'),r('/Type /Font'),r('/Subtype /Type0'),r('/ToUnicode '+h+' 0 R'),r('/BaseFont /'+iw(n.fontName)),r('/Encoding /'+n.encoding),r('/DescendantFonts ['+f+' 0 R]'),r('>>'),r('endobj'),n.isAlreadyPutted=!0}}(e)}]),e.events.push(['putFont',function(e){!function(e){var n=e.font,r=e.out,i=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&'WinAnsiEncoding'===n.encoding){for(var s=n.metadata.rawData,a='',c=0;c<s.length;c++)a+=String.fromCharCode(s[c]);var l=i();o({data:a,addLength1:!0,objectId:l}),r('endobj');var u=i();o({data:A(n.metadata.toUnicode),addLength1:!0,objectId:u}),r('endobj');var h=i();r('<<'),r('/Descent '+n.metadata.decender),r('/CapHeight '+n.metadata.capHeight),r('/StemV '+n.metadata.stemV),r('/Type /FontDescriptor'),r('/FontFile2 '+l+' 0 R'),r('/Flags 96'),r('/FontBBox '+t.API.PDFObject.convert(n.metadata.bbox)),r('/FontName /'+iw(n.fontName)),r('/ItalicAngle '+n.metadata.italicAngle),r('/Ascent '+n.metadata.ascender),r('>>'),r('endobj'),n.objectNumber=i();for(var d=0;d<n.metadata.hmtx.widths.length;d++)n.metadata.hmtx.widths[d]=parseInt(n.metadata.hmtx.widths[d]*(1e3/n.metadata.head.unitsPerEm));r('<</Subtype/TrueType/Type/Font/ToUnicode '+u+' 0 R/BaseFont/'+iw(n.fontName)+'/FontDescriptor '+h+' 0 R/Encoding/'+n.encoding+' /FirstChar 29 /LastChar 255 /Widths '+t.API.PDFObject.convert(n.metadata.hmtx.widths)+'>>'),r('endobj'),n.isAlreadyPutted=!0}}(e)}]);var r=function(t){var e,A=t.text||'',r=t.x,i=t.y,o=t.options||{},s=t.mutex||{},a=s.pdfEscape,c=s.activeFontKey,l=s.fonts,u=c,h='',d=0,f='',g=l[u].encoding;if('Identity-H'!==l[u].encoding)return{text:A,x:r,y:i,options:o,mutex:s};for(f=A,u=c,Array.isArray(A)&&(f=A[0]),d=0;d<f.length;d+=1)l[u].metadata.hasOwnProperty('cmap')&&(e=l[u].metadata.cmap.unicode.codeMap[f[d].charCodeAt(0)]),e||f[d].charCodeAt(0)<256&&l[u].metadata.hasOwnProperty('Unicode')?h+=f[d]:h+='';var p='';return parseInt(u.slice(1))<14||'WinAnsiEncoding'===g?p=a(h,u).split('').map((function(t){return t.charCodeAt(0).toString(16)})).join(''):'Identity-H'===g&&(p=n(h,l[u])),s.isHex=!0,{text:p,x:r,y:i,options:o,mutex:s}};e.events.push(['postProcessText',function(t){var e=t.text||'',n=[],A={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var i=0;for(i=0;i<e.length;i+=1)Array.isArray(e[i])&&3===e[i].length?n.push([r(Object.assign({},A,{text:e[i][0]})).text,e[i][1],e[i][2]]):n.push(r(Object.assign({},A,{text:e[i]})).text);t.text=n}else t.text=r(Object.assign({},A,{text:e})).text}])}(uw),
320
+ /**
321
+ * @license
322
+ * jsPDF virtual FileSystem functionality
323
+ *
324
+ * Licensed under the MIT License.
325
+ * http://opensource.org/licenses/mit-license
326
+ */
327
+ function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(uw.API),
328
+ /**
329
+ * @license
330
+ * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
331
+ * MIT License
332
+ */
333
+ function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,A,r,i,o,s,a,c=e,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],u=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},f=['(',')','(','<','>','<','[',']','[','{','}','{','«','»','«','‹','›','‹','⁅','⁆','⁅','⁽','⁾','⁽','₍','₎','₍','≤','≥','≤','〈','〉','〈','﹙','﹚','﹙','﹛','﹜','﹛','﹝','﹞','﹝','﹤','﹥','﹤'],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),p=!1,m=0;this.__bidiEngine__={};var b=function(t){var e=t.charCodeAt(),n=e>>8,A=d[n];return void 0!==A?c[256*A+(255&e)]:252===n||253===n?'AL':g.test(n)?'L':8===n?'R':'N'},v=function(t){for(var e,n=0;n<t.length;n++){if('L'===(e=b(t.charAt(n))))return!1;if('R'===e)return!0}return!1},y=function(t,e,o,s){var a,c,l,u,h=e[s];switch(h){case'L':case'R':case'LRE':case'RLE':case'LRO':case'RLO':case'PDF':p=!1;break;case'N':case'AN':break;case'EN':p&&(h='AN');break;case'AL':p=!0,h='R';break;case'WS':case'BN':h='N';break;case'CS':s<1||s+1>=e.length||'EN'!==(a=o[s-1])&&'AN'!==a||'EN'!==(c=e[s+1])&&'AN'!==c?h='N':p&&(c='AN'),h=c===a?c:'N';break;case'ES':h='EN'===(a=s>0?o[s-1]:'B')&&s+1<e.length&&'EN'===e[s+1]?'EN':'N';break;case'ET':if(s>0&&'EN'===o[s-1]){h='EN';break}if(p){h='N';break}for(l=s+1,u=e.length;l<u&&'ET'===e[l];)l++;h=l<u&&'EN'===e[l]?'EN':'N';break;case'NSM':if(r&&!i){for(u=e.length,l=s+1;l<u&&'NSM'===e[l];)l++;if(l<u){var d=t[s],f=d>=1425&&d<=2303||64286===d;if(a=e[l],f&&('R'===a||'AL'===a)){h='R';break}}}h=s<1||'B'===(a=e[s-1])?'N':o[s-1];break;case'B':p=!1,n=!0,h=m;break;case'S':A=!0,h='N'}return h},w=function(t,e,n){var A=t.split('');return n&&B(A,n,{hiLevel:m}),A.reverse(),e&&e.reverse(),A.join('')},B=function(t,e,r){var i,o,s,a,c,d=-1,f=t.length,g=0,v=[],w=m?u:l,B=[];for(p=!1,n=!1,A=!1,o=0;o<f;o++)B[o]=b(t[o]);for(s=0;s<f;s++){if(c=g,v[s]=y(t,B,v,s),i=240&(g=w[c][h[v[s]]]),g&=15,e[s]=a=w[g][5],i>0)if(16===i){for(o=d;o<s;o++)e[o]=1;d=-1}else d=-1;if(w[g][6])-1===d&&(d=s);else if(d>-1){for(o=d;o<s;o++)e[o]=a;d=-1}'B'===B[s]&&(e[s]=0),r.hiLevel|=a}A&&function(t,e,n){for(var A=0;A<n;A++)if('S'===t[A]){e[A]=m;for(var r=A-1;r>=0&&'WS'===t[r];r--)e[r]=m}}(B,e,f)},C=function(t,e,A,r,i){if(!(i.hiLevel<t)){if(1===t&&1===m&&!n)return e.reverse(),void(A&&A.reverse());for(var o,s,a,c,l=e.length,u=0;u<l;){if(r[u]>=t){for(a=u+1;a<l&&r[a]>=t;)a++;for(c=u,s=a-1;c<s;c++,s--)o=e[c],e[c]=e[s],e[s]=o,A&&(o=A[c],A[c]=A[s],A[s]=o);u=a}u++}}},x=function(t,e,n){var A=t.split(''),r={hiLevel:m};return n||(n=[]),B(A,n,r),function(t,e,n){if(0!==n.hiLevel&&a)for(var A,r=0;r<t.length;r++)1===e[r]&&(A=f.indexOf(t[r]))>=0&&(t[r]=f[A+1])}(A,n,r),C(2,A,e,n,r),C(1,A,e,n,r),A.join('')};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===i&&(i=v(t)),void 0===s&&(s=v(t))}(t,e),r||!o||s)if(r&&o&&i^s)m=i?1:0,t=w(t,e,n);else if(!r&&o&&s)m=i?1:0,t=x(t,e,n),t=w(t,e);else if(!r||i||o||s){if(r&&!o&&i^s)t=w(t,e),i?(m=0,t=x(t,e,n)):(m=1,t=x(t,e,n),t=w(t,e));else if(r&&i&&!o&&s)m=1,t=x(t,e,n),t=w(t,e);else if(!r&&!o&&i^s){var A=a;i?(m=1,t=x(t,e,n),m=0,a=!1,t=x(t,e,n),a=A):(m=0,t=x(t,e,n),t=w(t,e),m=1,a=!1,t=x(t,e,n),a=A,t=w(t,e))}}else m=0,t=x(t,e,n);else m=i?1:0,t=x(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(r=t.isInputVisual,o=t.isOutputVisual,i=t.isInputRtl,s=t.isOutputRtl,a=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=['BN','BN','BN','BN','BN','BN','BN','BN','BN','S','B','S','WS','B','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','B','B','B','S','WS','N','N','ET','ET','ET','N','N','N','N','N','ES','CS','ES','CS','CS','EN','EN','EN','EN','EN','EN','EN','EN','EN','EN','CS','N','N','N','N','N','N','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','N','N','N','N','N','N','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','N','N','N','N','BN','BN','BN','BN','BN','BN','B','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','BN','CS','N','ET','ET','ET','ET','N','N','N','N','L','N','N','BN','N','N','ET','ET','EN','EN','N','L','N','N','N','EN','L','N','N','N','N','N','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','N','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','N','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','N','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','N','N','L','L','L','L','L','L','L','N','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','N','L','N','N','N','N','N','ET','N','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','R','NSM','R','NSM','NSM','R','NSM','NSM','R','NSM','N','N','N','N','N','N','N','N','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','N','N','N','N','N','R','R','R','R','R','N','N','N','N','N','N','N','N','N','N','N','AN','AN','AN','AN','AN','AN','N','N','AL','ET','ET','AL','CS','AL','N','N','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','AL','AL','N','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','AN','AN','AN','AN','AN','AN','AN','AN','AN','AN','ET','AN','AN','AL','AL','AL','NSM','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','NSM','NSM','NSM','NSM','NSM','NSM','NSM','AN','N','NSM','NSM','NSM','NSM','NSM','NSM','AL','AL','NSM','NSM','N','NSM','NSM','NSM','NSM','AL','AL','EN','EN','EN','EN','EN','EN','EN','EN','EN','EN','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','N','AL','AL','NSM','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','N','N','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','AL','N','N','N','N','N','N','N','N','N','N','N','N','N','N','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','R','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','R','R','N','N','N','N','R','N','N','N','N','N','WS','WS','WS','WS','WS','WS','WS','WS','WS','WS','WS','BN','BN','BN','L','R','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','WS','B','LRE','RLE','PDF','LRO','RLO','CS','ET','ET','ET','ET','ET','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','CS','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','WS','BN','BN','BN','BN','BN','N','LRI','RLI','FSI','PDI','BN','BN','BN','BN','BN','BN','EN','L','N','N','EN','EN','EN','EN','EN','EN','ES','ES','N','N','N','L','EN','EN','EN','EN','EN','EN','EN','EN','EN','EN','ES','ES','N','N','N','N','L','L','L','L','L','L','L','L','L','L','L','L','L','N','N','N','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','ET','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','L','L','L','L','L','L','L','N','N','N','N','N','N','N','N','N','N','N','N','L','L','L','L','L','N','N','N','N','N','R','NSM','R','R','R','R','R','R','R','R','R','R','ES','R','R','R','R','R','R','R','R','R','R','R','R','R','N','R','R','R','R','R','N','R','N','R','R','N','R','R','N','R','R','R','R','R','R','R','R','R','R','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','NSM','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','CS','N','CS','N','N','CS','N','N','N','N','N','N','N','N','N','ET','N','N','ES','ES','N','N','N','N','N','ET','ET','N','N','N','N','N','AL','AL','AL','AL','AL','N','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','AL','N','N','BN','N','N','N','ET','ET','ET','N','N','N','N','N','ES','CS','ES','CS','CS','EN','EN','EN','EN','EN','EN','EN','EN','EN','EN','CS','N','N','N','N','N','N','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','N','N','N','N','N','N','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','N','N','N','N','N','N','N','N','N','N','N','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','L','N','N','N','L','L','L','L','L','L','N','N','L','L','L','L','L','L','N','N','L','L','L','L','L','L','N','N','L','L','L','N','N','N','ET','ET','N','N','N','ET','ET','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N'],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(['postProcessText',function(t){var e=t.text,A=(t.x,t.y,t.options||{}),r=(t.mutex,A.lang,[]);if(A.isInputVisual='boolean'!=typeof A.isInputVisual||A.isInputVisual,n.setOptions(A),'[object Array]'===Object.prototype.toString.call(e)){var i=0;for(r=[],i=0;i<e.length;i+=1)'[object Array]'===Object.prototype.toString.call(e[i])?r.push([n.doBidiReorder(e[i][0]),e[i][1],e[i][2]]):r.push([n.doBidiReorder(e[i])]);t.text=r}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(uw),uw.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new SB(t),this.contents.pos=4,'ttcf'===e.readString(4))throw new Error('TTCF not supported.');e.pos=0,this.parse(),this.subset=new zB(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new UB(this.contents),this.head=new kB(this),this.name=new DB(this),this.cmap=new PB(this),this.toUnicode={},this.hhea=new OB(this),this.maxp=new RB(this),this.hmtx=new VB(this),this.post=new HB(this),this.os2=new MB(this),this.loca=new XB(this),this.glyf=new jB(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,n,A,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,A,r;for(r=[],e=0,n=(A=this.bbox).length;e<n;e++)t=A[e],r.push(Math.round(t*this.scaleFactor));return r}.call(this),this.stemV=0,this.post.exists?(n=255&(A=this.post.italic_angle),0!=(32768&(e=A>>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+'.'+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(r=this.familyClass)||2===r||3===r||4===r||5===r||7===r,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error('No unicode cmap for font')},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var A,r,i,o;for(i=0,r=0,o=(t=''+t).length;0<=o?r<o:r>o;r=0<=o?++r:--r)A=t.charCodeAt(r),i+=this.widthOfGlyph(this.characterToGlyph(A))+n*(1e3/e)||0;return i*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var EB,SB=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join('')},t.prototype.writeString=function(t){var e,n,A;for(A=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)A.push(this.writeByte(t.charCodeAt(e)));return A},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,A,r,i,o,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),A=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^A)+16777216*(255^r)+65536*(255^i)+256*(255^o)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*A+16777216*r+65536*i+256*o+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,A,r;for(r=[],n=0,A=t.length;n<A;n++)e=t[n],r.push(this.writeByte(e));return r},t}(),UB=function(){var t;function e(t){var e,n,A;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,A=this.tableCount;0<=A?n<A:n>A;n=0<=A?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,A,r,i,o,s,a,c,l,u,h,d,f;for(f in h=Object.keys(e).length,s=Math.log(2),l=16*Math.floor(Math.log(h)/s),i=Math.floor(l/s),c=16*h-l,(A=new SB).writeInt(this.scalarType),A.writeShort(h),A.writeShort(l),A.writeShort(i),A.writeShort(c),r=16*h,a=A.pos+r,o=null,d=[],e)for(u=e[f],A.writeString(f),A.writeInt(t(u)),A.writeInt(a),A.writeInt(u.length),d=d.concat(u),'head'===f&&(o=a),a+=u.length;a%4;)d.push(0),a++;return A.write(d),n=2981146554-t(A.data),A.pos=o+8,A.writeUInt32(n),A.data},t=function(t){var e,n,A,r;for(t=GB.call(t);t.length%4;)t.push(0);for(A=new SB(t),n=0,e=0,r=t.length;e<r;e=e+=4)n+=A.readUInt32();return 4294967295&n},e}(),LB={}.hasOwnProperty,NB=function(t,e){for(var n in e)LB.call(e,n)&&(t[n]=e[n]);function A(){this.constructor=t}return A.prototype=e.prototype,t.prototype=new A,t.__super__=e.prototype,t};EB=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var kB=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return NB(e,EB),e.prototype.tag='head',e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new SB).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(),_B=function(){function t(t,e){var n,A,r,i,o,s,a,c,l,u,h,d,f,g,p,m,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),l=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(h=t.readUInt16(),u=h/2,t.pos+=6,r=function(){var e,n;for(n=[],s=e=0;0<=u?e<u:e>u;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,f=function(){var e,n;for(n=[],s=e=0;0<=u?e<u:e>u;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),a=function(){var e,n;for(n=[],s=e=0;0<=u?e<u:e>u;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),c=function(){var e,n;for(n=[],s=e=0;0<=u?e<u:e>u;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),A=(this.length-t.pos+this.offset)/2,o=function(){var e,n;for(n=[],s=e=0;0<=A?e<A:e>A;s=0<=A?++e:--e)n.push(t.readUInt16());return n}(),s=p=0,b=r.length;p<b;s=++p)for(g=r[s],n=m=d=f[s];d<=g?m<=g:m>=g;n=d<=g?++m:--m)0===c[s]?i=n+a[s]:0!==(i=o[c[s]/2+(n-d)-(u-s)]||0)&&(i+=a[s]),this.codeMap[n]=65535&i}t.pos=l}return t.encode=function(t,e){var n,A,r,i,o,s,a,c,l,u,h,d,f,g,p,m,b,v,y,w,B,C,x,F,I,Q,E,S,U,L,N,k,_,P,O,M,H,T,D,R,V,G,j,W,K,X;switch(S=new SB,i=Object.keys(t).sort((function(t,e){return t-e})),e){case'macroman':for(f=0,g=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),m={0:0},r={},U=0,_=i.length;U<_;U++)null==m[j=t[A=i[U]]]&&(m[j]=++f),r[A]={old:t[A],new:m[t[A]]},g[A]=m[t[A]];return S.writeUInt16(1),S.writeUInt16(0),S.writeUInt32(12),S.writeUInt16(0),S.writeUInt16(262),S.writeUInt16(0),S.write(g),{charMap:r,subtable:S.data,maxGlyphID:f+1};case'unicode':for(Q=[],l=[],b=0,m={},n={},p=a=null,L=0,P=i.length;L<P;L++)null==m[y=t[A=i[L]]]&&(m[y]=++b),n[A]={old:y,new:m[y]},o=m[y]-A,null!=p&&o===a||(p&&l.push(p),Q.push(A),a=o),p=A;for(p&&l.push(p),l.push(65535),Q.push(65535),F=2*(x=Q.length),C=2*Math.pow(Math.log(x)/Math.LN2,2),u=Math.log(C/2)/Math.LN2,B=2*x-C,s=[],w=[],h=[],d=N=0,O=Q.length;N<O;d=++N){if(I=Q[d],c=l[d],65535===I){s.push(0),w.push(0);break}if(I-(E=n[I].new)>=32768)for(s.push(0),w.push(2*(h.length+x-d)),A=k=I;I<=c?k<=c:k>=c;A=I<=c?++k:--k)h.push(n[A].new);else s.push(E-I),w.push(0)}for(S.writeUInt16(3),S.writeUInt16(1),S.writeUInt32(12),S.writeUInt16(4),S.writeUInt16(16+8*x+2*h.length),S.writeUInt16(0),S.writeUInt16(F),S.writeUInt16(C),S.writeUInt16(u),S.writeUInt16(B),V=0,M=l.length;V<M;V++)A=l[V],S.writeUInt16(A);for(S.writeUInt16(0),G=0,H=Q.length;G<H;G++)A=Q[G],S.writeUInt16(A);for(W=0,T=s.length;W<T;W++)o=s[W],S.writeUInt16(o);for(K=0,D=w.length;K<D;K++)v=w[K],S.writeUInt16(v);for(X=0,R=h.length;X<R;X++)f=h[X],S.writeUInt16(f);return{charMap:n,subtable:S.data,maxGlyphID:b+1}}},t}(),PB=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return NB(e,EB),e.prototype.tag='cmap',e.prototype.parse=function(t){var e,n,A;for(t.pos=this.offset,this.version=t.readUInt16(),A=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=A?n<A:n>A;n=0<=A?++n:--n)e=new _B(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,A;return null==e&&(e='macroman'),n=_B.encode(t,e),(A=new SB).writeUInt16(0),A.writeUInt16(1),n.table=A.data.concat(n.subtable),n},e}(),OB=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return NB(e,EB),e.prototype.tag='hhea',e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),MB=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return NB(e,EB),e.prototype.tag='OS/2',e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),HB=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return NB(e,EB),e.prototype.tag='post',e.prototype.parse=function(t){var e,n,A;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var r;for(n=t.readUInt16(),this.glyphNameIndex=[],r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],A=[];t.pos<this.offset+this.length;)e=t.readByte(),A.push(this.names.push(t.readString(e)));return A;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=function(){var e,n,A;for(A=[],r=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;r=0<=n?++e:--e)A.push(t.readUInt32());return A}.call(this)}},e}(),TB=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},DB=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return NB(e,EB),e.prototype.tag='name',e.prototype.parse=function(t){var e,n,A,r,i,o,s,a,c,l,u;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),n=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(s={},r=c=0,l=n.length;c<l;r=++c)A=n[r],t.pos=A.offset,a=t.readString(A.length),i=new TB(a,A),null==s[u=A.nameID]&&(s[u]=[]),s[A.nameID].push(i);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,'')}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,'')}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),RB=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return NB(e,EB),e.prototype.tag='maxp',e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),VB=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return NB(e,EB),e.prototype.tag='hmtx',e.prototype.parse=function(t){var e,n,A,r,i,o,s;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(A=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,r;for(r=[],e=n=0;0<=A?n<A:n>A;e=0<=A?++n:--n)r.push(t.readInt16());return r}(),this.widths=function(){var t,e,n,A;for(A=[],t=0,e=(n=this.metrics).length;t<e;t++)r=n[t],A.push(r.advance);return A}.call(this),n=this.widths[this.widths.length-1],s=[],e=i=0;0<=A?i<A:i>A;e=0<=A?++i:--i)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),GB=[].slice,jB=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return NB(e,EB),e.prototype.tag='glyf',e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,A,r,i,o,s,a,c,l;return t in this.cache?this.cache[t]:(r=this.file.loca,e=this.file.contents,n=r.indexOf(t),0===(A=r.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,i=(o=new SB(e.read(A))).readShort(),a=o.readShort(),l=o.readShort(),s=o.readShort(),c=o.readShort(),this.cache[t]=-1===i?new KB(o,a,l,s,c):new WB(o,i,a,l,s,c),this.cache[t]))},e.prototype.encode=function(t,e,n){var A,r,i,o,s;for(i=[],r=[],o=0,s=e.length;o<s;o++)A=t[e[o]],r.push(i.length),A&&(i=i.concat(A.encode(n)));return r.push(i.length),{table:i,offsets:r}},e}(),WB=function(){function t(t,e,n,A,r,i){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=A,this.xMax=r,this.yMax=i,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),KB=function(){function t(t,e,n,A,r){var i,o;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=A,this.yMax=r,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new SB(GB.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),XB=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return NB(e,EB),e.prototype.tag='loca',e.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,A;for(A=[],n=0,e=this.length;n<e;n+=2)A.push(2*t.readUInt16());return A}.call(this):function(){var e,A;for(A=[],n=0,e=this.length;n<e;n+=4)A.push(t.readUInt32());return A}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),A=0,r=0,i=0;i<n.length;++i)if(n[i]=A,r<e.length&&e[r]==i){++r,n[i]=A;var o=this.offsets[i],s=this.offsets[i+1]-o;s>0&&(A+=s)}for(var a=new Array(4*n.length),c=0;c<n.length;++c)a[4*c+3]=255&n[c],a[4*c+2]=(65280&n[c])>>8,a[4*c+1]=(16711680&n[c])>>16,a[4*c]=(4278190080&n[c])>>24;return a},e}(),zB=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,A,r;for(e in A=this.font.cmap.tables[0].codeMap,t={},r=this.subset)n=r[e],t[e]=A[n];return t},t.prototype.glyphsFor=function(t){var e,n,A,r,i,o,s;for(A={},i=0,o=t.length;i<o;i++)A[r=t[i]]=this.font.glyf.glyphFor(r);for(r in e=[],A)(null!=(n=A[r])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(r in s=this.glyphsFor(e))n=s[r],A[r]=n;return A},t.prototype.encode=function(t,e){var n,A,r,i,o,s,a,c,l,u,h,d,f,g,p;for(A in n=PB.encode(this.generateCmap(),'unicode'),i=this.glyphsFor(t),h={0:0},p=n.charMap)h[(s=p[A]).old]=s.new;for(d in u=n.maxGlyphID,i)d in h||(h[d]=u++);return c=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(h),l=Object.keys(c).sort((function(t,e){return t-e})),f=function(){var t,e,n;for(n=[],t=0,e=l.length;t<e;t++)o=l[t],n.push(c[o]);return n}(),r=this.font.glyf.encode(i,f,h),a=this.font.loca.encode(r.offsets,f),g={cmap:this.font.cmap.raw(),glyf:r.table,loca:a,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(g['OS/2']=this.font.os2.raw()),this.font.directory.encode(g)},t}();uw.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join('0')+t).slice(-e)},e.convert=function(n){var A,r,i,o;if(Array.isArray(n))return'['+function(){var t,r,i;for(i=[],t=0,r=n.length;t<r;t++)A=n[t],i.push(e.convert(A));return i}().join(' ')+']';if('string'==typeof n)return'/'+n;if(null!=n?n.isString:void 0)return'('+n+')';if(n instanceof Date)return'(D:'+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+'Z)';if('[object Object]'==={}.toString.call(n)){for(r in i=['<<'],n)o=n[r],i.push('/'+r+' '+e.convert(o));return i.push('>>'),i.join('\n')}return''+n},e}();const ZB=3.77952755906;let YB;var qB;let JB;var $B;(qB=YB||(YB={}))[qB.LOW=1]='LOW',qB[qB.NORMAL=2]='NORMAL',qB[qB.MEDIUM=3]='MEDIUM',qB[qB.HIGH=7]='HIGH',qB[qB.EXTREME=12]='EXTREME',($B=JB||(JB={}))[$B.NONE=0]='NONE',$B[$B.SMALL=5]='SMALL',$B[$B.MEDIUM=10]='MEDIUM',$B[$B.LARGE=25]='LARGE';const tC={method:'save',resolution:YB.MEDIUM,page:{margin:JB.NONE,format:'A4',orientation:'portrait'},canvas:{mimeType:'image/jpeg',qualityRatio:1,useCORS:!0,logging:!1},overrides:{}};class eC{constructor(t,e){this.canvas=t,this.options=e,this.pdf=new uw({format:this.options.page.format,orientation:this.options.page.orientation,...this.options.overrides?.pdf,unit:'mm'})}getMarginTopMM(){const t='object'==typeof this.options.page.margin?this.options.page.margin.top:this.options.page.margin;return Number(t)}getMarginLeftMM(){const t='object'==typeof this.options.page.margin?this.options.page.margin.left:this.options.page.margin;return Number(t)}getMarginRightMM(){const t='object'==typeof this.options.page.margin?this.options.page.margin.right:this.options.page.margin;return Number(t)}getMarginBottomMM(){const t='object'==typeof this.options.page.margin?this.options.page.margin.bottom:this.options.page.margin;return Number(t)}getMarginTop(){return this.getMarginTopMM()*ZB}getMarginBottom(){return this.getMarginBottomMM()*ZB}getMarginLeft(){return this.getMarginLeftMM()*ZB}getMarginRight(){return this.getMarginRightMM()*ZB}getScale(){return this.options.resolution}getPageHeight(){return this.getPageHeightMM()*ZB}getPageHeightMM(){return this.pdf.internal.pageSize.height}getPageWidthMM(){return this.pdf.internal.pageSize.width}getPageWidth(){return this.getPageWidthMM()*ZB}getOriginalCanvasWidth(){return this.canvas.width/this.getScale()}getOriginalCanvasHeight(){return this.canvas.height/this.getScale()}getCanvasPageAvailableHeight(){return this.getPageAvailableHeight()*this.getScale()*this.getHorizontalFitFactor()}getPageAvailableWidth(){return this.getPageWidth()-(this.getMarginLeft()+this.getMarginRight())}getPageAvailableHeight(){return this.getPageHeight()-(this.getMarginTop()+this.getMarginBottom())}getPageAvailableWidthMM(){return this.getPageAvailableWidth()/ZB}getPageAvailableHeightMM(){return this.getPageAvailableHeight()/ZB}getNumberPages(){return Math.ceil(this.canvas.height/this.getCanvasPageAvailableHeight())}getHorizontalFitFactor(){return this.getPageAvailableWidth()<this.getOriginalCanvasWidth()?this.getOriginalCanvasWidth()/this.getPageAvailableWidth():1}getCanvasOffsetY(t){return this.getCanvasPageAvailableHeight()*(t-1)}getCanvasHeightLeft(t){return this.canvas.height-this.getCanvasOffsetY(t)}getCanvasPageHeight(t){if(this.canvas.height<this.getCanvasPageAvailableHeight())return this.canvas.height;const e=this.getCanvasHeightLeft(t);return e<this.getCanvasPageAvailableHeight()?e:this.getCanvasPageAvailableHeight()}getCanvasPageWidth(){return this.canvas.width}createCanvasPage(t){const e=this.getCanvasPageWidth(),n=this.getCanvasPageHeight(t),A=document.createElement('canvas');A.setAttribute('width',String(e)),A.setAttribute('height',String(n));return A.getContext('2d').drawImage(this.canvas,0,this.getCanvasOffsetY(t),this.canvas.width,n,0,0,this.canvas.width,n),A}convert(){let t=1;const e=this.getNumberPages();for(;t<=e;){t>1&&this.pdf.addPage(this.options.page.format,this.options.page.orientation);const e=this.createCanvasPage(t),n=e.toDataURL(this.options.canvas.mimeType,this.options.canvas.qualityRatio);this.pdf.setPage(t),this.pdf.addImage({imageData:n,width:e.width/(this.getScale()*ZB*this.getHorizontalFitFactor()),height:e.height/(this.getScale()*ZB*this.getHorizontalFitFactor()),x:this.getMarginLeftMM(),y:this.getMarginTopMM()}),t+=1}return this.pdf}}var nC,AC,rC,iC,oC,sC,aC=async(t,e)=>{const n=(t=>t?{...tC,...t,canvas:{...tC.canvas,...t.canvas},page:{...tC.page,...t.page}}:tC)(e),A=(t=>'function'==typeof t?t():t?.current)(t);if(!A)return;const r=await Dv(A,{useCORS:n.canvas.useCORS,logging:n.canvas.logging,scale:n.resolution,...n.overrides?.canvas}),i=new eC(r,n).convert();switch(n.method){case'build':return i;case'open':return window.open(i.output('bloburl'),'_blank'),i;default:{const t=n.filename??`${(new Date).getTime()}.pdf`;return await i.save(t,{returnPromise:!0}),i}}},cC=function(t){var i=t.conversationID,o=t.isNew,s=t.handleSetConversationInfo,a=t.category,c=bt(),l=A(''),u=l[0],h=l[1],d=A([]),f=d[0],g=d[1],p=n(null),m=n(null),b=Ft({queryKey:['conversations',i],queryFn:function(){return function(t){return Et(void 0,void 0,void 0,(function(){return St(this,(function(e){switch(e.label){case 0:return[4,su.get('/chat/conversation/'.concat(t,'/history/'))];case 1:return[2,e.sent().data]}}))}))}(i)},enabled:!1,onSuccess:function(t){t.map((function(t){g((function(e){var n;return Ut(Ut([],e,!0),[{from:'user',text:t.question},{from:'bot',text:t.response.result,chartData:null===(n=t.response)||void 0===n?void 0:n.chart_metadata,chatID:t.id,like:t.like,dislike:t.dislike}],!1)}))}))},onError:function(t){}}),v=b.isLoading,y=b.status,w=b.error,B=b.refetch;r((function(){g([]),B()}),[i]),r((function(){C()}),[f]);var C=function(){p.current&&(p.current.scrollTop=p.current.scrollHeight)},x=xt({mutationFn:cu,onSuccess:function(t){c.invalidateQueries('conversations'),!t.error&&t.result&&0!==Object.keys(t.result).length?(g((function(e){return Ut(Ut([],e,!0),[{from:'bot',text:t.result,chartData:null==t?void 0:t.chart_metadata,chatID:null==t?void 0:t.id}],!1)})),o&&s({conversationID:i,isNew:!1})):g((function(e){return Ut(Ut([],e,!0),[{from:'error',text:t.error}],!1)}))}});if('loading'===y)return e.createElement('div',{className:'flex h-full justify-center items-center'},e.createElement(gh,{color:'#000',loading:v,size:75,'aria-label':'Loading Spinner','data-testid':'loader'}));if('error'===y)return e.createElement('h1',null,JSON.stringify(w));return e.createElement(e.Fragment,null,e.createElement(fu,{ref:p},e.createElement(du,null,0===f.length?e.createElement(vh,null):e.createElement(e.Fragment,null,e.createElement(pu,{ref:m},f.map((function(t,n){return'user'===t.from?e.createElement(yu,{key:n,question:t.text}):e.createElement(hu,{key:n,answer:t.text,chartData:null==t?void 0:t.chartData,chatID:null==t?void 0:t.chatID,onError:'error'===t.from,like:t.like,dislike:t.dislike})}))),x.isLoading?e.createElement(nh,null):e.createElement(_u,{handleClickDownloadConversation:function(){aC(m,{filename:'conversation.pdf'})}})))),e.createElement(gu,null,e.createElement(Fu,{value:u,placeholder:'Enter Question Here',onChange:function(t){return h(t.target.value)},onClickTextAreaButton:function(){0!==u.length&&(x.mutate({category:a,question:u,conversationID:i}),g((function(t){return Ut(Ut([],t,!0),[{from:'user',text:u}],!1)})),h(''))},disableTextAreaButton:x.isLoading||0===u.length})))},lC=Ue.div(nC||(nC=Lt(['\n flex\n flex-col\n text-left\n grow\n'],['\n flex\n flex-col\n text-left\n grow\n']))),uC=Ue.div(AC||(AC=Lt(['\n my-2\n grow\n overflow-y-auto\n h-32\n'],['\n my-2\n grow\n overflow-y-auto\n h-32\n']))),hC=Ue.div(rC||(rC=Lt(['\n flex\n justify-between\n items-center\n p-1.5\n ','\n'],['\n flex\n justify-between\n items-center\n p-1.5\n ','\n'])),(function(t){return t.isSelected?'\n bg-gainsboro\n ':'bg-white'})),dC=Ue.div(iC||(iC=Lt(['\nflex\nitems-center\noverflow-x-hidden\n'],['\nflex\nitems-center\noverflow-x-hidden\n']))),fC=Ue.span(oC||(oC=Lt(['\n mr-2\n'],['\n mr-2\n']))),gC=Ue.div(sC||(sC=Lt(['\n truncate\n text-sm\n text-center\n cursor-pointer\n'],['\n truncate\n text-sm\n text-center\n cursor-pointer\n']))),pC=Ue.div(bC||(bC=Lt(['\n flex\n'],['\n flex\n']))),mC=Ue.div(vC||(vC=Lt(['\n flex\n flex-col\n gap-4\n grow\n'],['\n flex\n flex-col\n gap-4\n grow\n'])));Ue.div(yC||(yC=Lt(['\n flex\n justify-between\n mb-10\n'],['\n flex\n justify-between\n mb-10\n']))),Ue.div(wC||(wC=Lt(['\n flex\n items-center\n'],['\n flex\n items-center\n'])));var bC,vC,yC,wC,BC,CC,xC,FC,IC,QC,EC,SC,UC,LC=Ue.div(BC||(BC=Lt(['\n flex\n h-full\n'],['\n flex\n h-full\n']))),NC=Ue.div(CC||(CC=Lt(['\n flex\n flex-col\n'],['\n flex\n flex-col\n']))),kC=Ue.div(xC||(xC=Lt(['\n grow\n w-80\n pr-6\n min-w-[20rem]\n'],['\n grow\n w-80\n pr-6\n min-w-[20rem]\n']))),_C=Ue.div(FC||(FC=Lt(['\n h-full\n flex\n flex-col\n'],['\n h-full\n flex\n flex-col\n']))),PC=Ue.div(IC||(IC=Lt(['\n flex\n flex-col\n bg-alice_blue\n relative\n py-10\n w-full\n'],['\n flex\n flex-col\n bg-alice_blue\n relative\n py-10\n w-full\n']))),OC=Ue.div(QC||(QC=Lt(['\n flex\n justify-center\n items-center\n h-full\n'],['\n flex\n justify-center\n items-center\n h-full\n']))),MC=Ue.div(EC||(EC=Lt(['\n flex\n items-center\n mb-2\n pr-6\n'],['\n flex\n items-center\n mb-2\n pr-6\n']))),HC=Ue.div(SC||(SC=Lt(['\n grow\n'],['\n grow\n']))),TC=Ue.div(UC||(UC=Lt(['\n mr-2\n'],['\n mr-2\n'])));var DC=function(t){var n=t.handleSetConversationInfo,i=t.searchQuery,o=t.currentConversationInfo,s=A([]),a=s[0],c=s[1],l=bt(),u=Ft({queryKey:'conversations',queryFn:function(){return Et(void 0,void 0,void 0,(function(){return St(this,(function(t){switch(t.label){case 0:return[4,su.get('/chat/conversation/')];case 1:return[2,t.sent().data]}}))}))},enabled:!1}),h=u.isLoading,d=u.status,f=u.data,g=u.refetch;r((function(){var t=function(t,e){return t.filter((function(t){return t.chat_info[0].question.toLowerCase().includes(e.toLowerCase())}))}(null!=f?f:[],i);c(t)}),[f,i]),r((function(){g()}),[o]);var p=xt({mutationFn:lu,onSuccess:function(t,e){l.invalidateQueries(['conversations',e]),n(),l.invalidateQueries('conversations')}});return'loading'===d?e.createElement(OC,null,e.createElement(gh,{color:'#000',loading:h,size:25,'aria-label':'Loading Spinner','data-testid':'loader'})):'error'===d?e.createElement('h1',null,'Error in Loading Recent Conversations'):e.createElement(lC,null,e.createElement('div',null,'Recent Conversations'),e.createElement(uC,null,null==a?void 0:a.map((function(t,A){return e.createElement(hC,{key:A,isSelected:(null==o?void 0:o.conversationID)===t.id,onClick:function(){return n({conversationID:t.id,isNew:!1})},'data-tooltip-id':'question-tooltip','data-tooltip-content':t.chat_info[0].question},e.createElement(dC,null,e.createElement(fC,null,e.createElement(an,{svg:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22Layer_1%22%20data-name%3D%22Layer%201%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%20%20%3Cpath%20d%3D%22m5.09%2C20.53c-.13%2C0-.26-.02-.38-.08-.37-.15-.62-.52-.62-.92V7.24c0-.68.26-1.31.74-1.79s1.12-.74%2C1.79-.74h10.75c.68%2C0%2C1.31.26%2C1.79.74s.74%2C1.12.74%2C1.79v7.68c0%2C.68-.26%2C1.31-.74%2C1.79-.48.48-1.12.74-1.79.74h-8.8l-2.78%2C2.78c-.19.19-.45.29-.71.29Zm1.54-13.82c-.14%2C0-.28.06-.38.16s-.16.24-.16.38v9.87l1.36-1.36c.19-.19.44-.29.71-.29h9.22c.14%2C0%2C.28-.06.38-.16s.16-.24.16-.38v-7.68c0-.14-.06-.28-.16-.38s-.24-.16-.38-.16H6.62Z%22%2F%3E%3C%2Fsvg%3E'})),e.createElement(gC,null,t.chat_info[0].question)),(null==o?void 0:o.conversationID)===t.id&&e.createElement(fC,null,e.createElement(ln,{name:'delete',icon:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M20.1%2C5.6h-3.5v-.8c0-1.54-1.26-2.8-2.8-2.8h-3.6c-1.54%2C0-2.8%2C1.26-2.8%2C2.8v.8H3.9c-.55%2C0-1%2C.45-1%2C1s.45%2C1%2C1%2C1h.8v11.6c0%2C1.54%2C1.26%2C2.8%2C2.8%2C2.8h9c1.54%2C0%2C2.8-1.26%2C2.8-2.8V7.6h.8c.55%2C0%2C1-.45%2C1-1s-.45-1-1-1Zm-10.7-.8c0-.44%2C.36-.8%2C.8-.8h3.6c.44%2C0%2C.8%2C.36%2C.8%2C.8v.8h-5.2v-.8Zm7.9%2C14.4c0%2C.44-.36%2C.8-.8%2C.8H7.5c-.44%2C0-.8-.36-.8-.8V7.6h10.6v11.6Z%22%2F%3E%3Cpath%20d%3D%22M10.2%2C10.1c-.55%2C0-1%2C.45-1%2C1v5.4c0%2C.55%2C.45%2C1%2C1%2C1s1-.45%2C1-1v-5.4c0-.55-.45-1-1-1Z%22%2F%3E%3Cpath%20d%3D%22M13.8%2C10.1c-.55%2C0-1%2C.45-1%2C1v5.4c0%2C.55%2C.45%2C1%2C1%2C1s1-.45%2C1-1v-5.4c0-.55-.45-1-1-1Z%22%2F%3E%3C%2Fsvg%3E',disabled:p.isLoading,onClick:function(e){e.stopPropagation(),p.mutate(t.id)}})))}))),e.createElement(Tl,{id:'question-tooltip'}))};function RC(t){var e=function(t,e){if('object'!==jv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var A=n.call(t,e||'default');if('object'!==jv(A))return A;throw new TypeError('@@toPrimitive must return a primitive value.')}return('string'===e?String:Number)(t)}(t,'string');return'symbol'===jv(e)?e:String(e)}function VC(t,e,n){return(e=RC(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function GC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,A)}return n}function jC(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?GC(Object(n),!0).forEach((function(e){VC(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):GC(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function WC(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,A=new Array(e);n<e;n++)A[n]=t[n];return A}function KC(t,e){if(t){if('string'==typeof t)return WC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return'Object'===n&&t.constructor&&(n=t.constructor.name),'Map'===n||'Set'===n?Array.from(t):'Arguments'===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?WC(t,e):void 0}}function XC(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:'undefined'!=typeof Symbol&&t[Symbol.iterator]||t['@@iterator'];if(null!=n){var A,r,i,o,s=[],a=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(A=i.call(n)).done)&&(s.push(A.value),s.length!==e);a=!0);}catch(t){c=!0,r=t}finally{try{if(!a&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(t,e)||KC(t,e)||function(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}()}function zC(t,e){if(null==t)return{};var n,A,r=function(t,e){if(null==t)return{};var n,A,r={},i=Object.keys(t);for(A=0;A<i.length;A++)n=i[A],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(A=0;A<i.length;A++)n=i[A],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var ZC=['defaultInputValue','defaultMenuIsOpen','defaultValue','inputValue','menuIsOpen','onChange','onInputChange','onMenuClose','onMenuOpen','value'];function YC(t,e){for(var n=0;n<e.length;n++){var A=e[n];A.enumerable=A.enumerable||!1,A.configurable=!0,'value'in A&&(A.writable=!0),Object.defineProperty(t,RC(A.key),A)}}function qC(t){return qC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qC(t)}function JC(t,e){if(e&&('object'===jv(e)||'function'==typeof e))return e;if(void 0!==e)throw new TypeError('Derived constructors may only return object or undefined');return function(t){if(void 0===t)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return t}(t)}function $C(t){var e=function(){if('undefined'==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if('function'==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,A=qC(t);if(e){var r=qC(this).constructor;n=Reflect.construct(A,arguments,r)}else n=A.apply(this,arguments);return JC(this,n)}}function tx(t){return function(t){if(Array.isArray(t))return WC(t)}(t)||function(t){if('undefined'!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t['@@iterator'])return Array.from(t)}(t)||KC(t)||function(){throw new TypeError('Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}()}var ex=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy?'production'===process.env.NODE_ENV:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement('style');return e.setAttribute('data-emotion',t.key),void 0!==t.nonce&&e.setAttribute('nonce',t.nonce),e.appendChild(document.createTextNode('')),e.setAttribute('data-s',''),e}(this));var e=this.tags[this.tags.length-1];if('production'!==process.env.NODE_ENV){var n=64===t.charCodeAt(0)&&105===t.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule,this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var A=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{A.insertRule(t,A.cssRules.length)}catch(e){'production'!==process.env.NODE_ENV&&/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(t)}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0,'production'!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),nx='-ms-',Ax='-moz-',rx='-webkit-',ix='comm',ox='rule',sx='decl',ax='@keyframes',cx=Math.abs,lx=String.fromCharCode,ux=Object.assign;function hx(t){return t.trim()}function dx(t,e,n){return t.replace(e,n)}function fx(t,e){return t.indexOf(e)}function gx(t,e){return 0|t.charCodeAt(e)}function px(t,e,n){return t.slice(e,n)}function mx(t){return t.length}function bx(t){return t.length}function vx(t,e){return e.push(t),t}var yx=1,wx=1,Bx=0,Cx=0,xx=0,Fx='';function Ix(t,e,n,A,r,i,o){return{value:t,root:e,parent:n,type:A,props:r,children:i,line:yx,column:wx,length:o,return:''}}function Qx(t,e){return ux(Ix('',null,null,'',null,null,0),t,{length:-t.length},e)}function Ex(){return xx=Cx>0?gx(Fx,--Cx):0,wx--,10===xx&&(wx=1,yx--),xx}function Sx(){return xx=Cx<Bx?gx(Fx,Cx++):0,wx++,10===xx&&(wx=1,yx++),xx}function Ux(){return gx(Fx,Cx)}function Lx(){return Cx}function Nx(t,e){return px(Fx,t,e)}function kx(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _x(t){return yx=wx=1,Bx=mx(Fx=t),Cx=0,[]}function Px(t){return Fx='',t}function Ox(t){return hx(Nx(Cx-1,Tx(91===t?t+2:40===t?t+1:t)))}function Mx(t){for(;(xx=Ux())&&xx<33;)Sx();return kx(t)>2||kx(xx)>3?'':' '}function Hx(t,e){for(;--e&&Sx()&&!(xx<48||xx>102||xx>57&&xx<65||xx>70&&xx<97););return Nx(t,Lx()+(e<6&&32==Ux()&&32==Sx()))}function Tx(t){for(;Sx();)switch(xx){case t:return Cx;case 34:case 39:34!==t&&39!==t&&Tx(xx);break;case 40:41===t&&Tx(t);break;case 92:Sx()}return Cx}function Dx(t,e){for(;Sx()&&t+xx!==57&&(t+xx!==84||47!==Ux()););return'/*'+Nx(e,Cx-1)+'*'+lx(47===t?t:Sx())}function Rx(t){for(;!kx(Ux());)Sx();return Nx(t,Cx)}function Vx(t){return Px(Gx('',null,null,null,[''],t=_x(t),0,[0],t))}function Gx(t,e,n,A,r,i,o,s,a){for(var c=0,l=0,u=o,h=0,d=0,f=0,g=1,p=1,m=1,b=0,v='',y=r,w=i,B=A,C=v;p;)switch(f=b,b=Sx()){case 40:if(108!=f&&58==gx(C,u-1)){-1!=fx(C+=dx(Ox(b),'&','&\f'),'&\f')&&(m=-1);break}case 34:case 39:case 91:C+=Ox(b);break;case 9:case 10:case 13:case 32:C+=Mx(f);break;case 92:C+=Hx(Lx()-1,7);continue;case 47:switch(Ux()){case 42:case 47:vx(Wx(Dx(Sx(),Lx()),e,n),a);break;default:C+='/'}break;case 123*g:s[c++]=mx(C)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:p=0;case 59+l:-1==m&&(C=dx(C,/\f/g,'')),d>0&&mx(C)-u&&vx(d>32?Kx(C+';',A,n,u-1):Kx(dx(C,' ','')+';',A,n,u-2),a);break;case 59:C+=';';default:if(vx(B=jx(C,e,n,c,l,r,s,v,y=[],w=[],u),i),123===b)if(0===l)Gx(C,e,B,B,y,i,u,s,w);else switch(99===h&&110===gx(C,3)?100:h){case 100:case 108:case 109:case 115:Gx(t,B,B,A&&vx(jx(t,B,B,0,0,r,s,v,r,y=[],u),w),r,w,u,s,A?y:w);break;default:Gx(C,B,B,B,[''],w,0,s,w)}}c=l=d=0,g=m=1,v=C='',u=o;break;case 58:u=1+mx(C),d=f;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Ex())continue;switch(C+=lx(b),b*g){case 38:m=l>0?1:(C+='\f',-1);break;case 44:s[c++]=(mx(C)-1)*m,m=1;break;case 64:45===Ux()&&(C+=Ox(Sx())),h=Ux(),l=u=mx(v=C+=Rx(Lx())),b++;break;case 45:45===f&&2==mx(C)&&(g=0)}}return i}function jx(t,e,n,A,r,i,o,s,a,c,l){for(var u=r-1,h=0===r?i:[''],d=bx(h),f=0,g=0,p=0;f<A;++f)for(var m=0,b=px(t,u+1,u=cx(g=o[f])),v=t;m<d;++m)(v=hx(g>0?h[m]+' '+b:dx(b,/&\f/g,h[m])))&&(a[p++]=v);return Ix(t,e,n,0===r?ox:s,a,c,l)}function Wx(t,e,n){return Ix(t,e,n,ix,lx(xx),px(t,2,-2),0)}function Kx(t,e,n,A){return Ix(t,e,n,sx,px(t,0,A),px(t,A+1,-1),A)}function Xx(t,e){for(var n='',A=bx(t),r=0;r<A;r++)n+=e(t[r],r,t,e)||'';return n}function zx(t,e,n,A){switch(t.type){case'@layer':if(t.children.length)break;case'@import':case sx:return t.return=t.return||t.value;case ix:return'';case ax:return t.return=t.value+'{'+Xx(t.children,A)+'}';case ox:t.value=t.props.join(',')}return mx(n=Xx(t.children,A))?t.return=t.value+'{'+n+'}':''}function Zx(t){var e=bx(t);return function(n,A,r,i){for(var o='',s=0;s<e;s++)o+=t[s](n,A,r,i)||'';return o}}function Yx(t){return function(e){e.root||(e=e.return)&&t(e)}}function qx(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var Jx=function(t,e,n){for(var A=0,r=0;A=r,r=Ux(),38===A&&12===r&&(e[n]=1),!kx(r);)Sx();return Nx(t,Cx)},$x=function(t,e){return Px(function(t,e){var n=-1,A=44;do{switch(kx(A)){case 0:38===A&&12===Ux()&&(e[n]=1),t[n]+=Jx(Cx-1,e,n);break;case 2:t[n]+=Ox(A);break;case 4:if(44===A){t[++n]=58===Ux()?'&\f':'',e[n]=t[n].length;break}default:t[n]+=lx(A)}}while(A=Sx());return t}(_x(t),e))},tF=new WeakMap,eF=function(t){if('rule'===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,A=t.column===n.column&&t.line===n.line;'rule'!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||tF.get(n))&&!A){tF.set(t,!0);for(var r=[],i=$x(e,r),o=n.props,s=0,a=0;s<i.length;s++)for(var c=0;c<o.length;c++,a++)t.props[a]=r[s]?i[s].replace(/&\f/g,o[c]):o[c]+' '+i[s]}}},nF=function(t){if('decl'===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return='',t.value='')}},AF=function(t){return'comm'===t.type&&t.children.indexOf('emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason')>-1},rF=function(t){return 105===t.type.charCodeAt(1)&&64===t.type.charCodeAt(0)},iF=function(t){t.type='',t.value='',t.return='',t.children='',t.props=''},oF=function(t,e,n){rF(t)&&(t.parent||function(t,e){for(var n=t-1;n>=0;n--)if(!rF(e[n]))return!0;return!1}(e,n))&&iF(t)};function sF(t,e){switch(function(t,e){return 45^gx(t,0)?(((e<<2^gx(t,0))<<2^gx(t,1))<<2^gx(t,2))<<2^gx(t,3):0}(t,e)){case 5103:return rx+'print-'+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return rx+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return rx+t+Ax+t+nx+t+t;case 6828:case 4268:return rx+t+nx+t+t;case 6165:return rx+t+nx+'flex-'+t+t;case 5187:return rx+t+dx(t,/(\w+).+(:[^]+)/,rx+'box-$1$2'+nx+'flex-$1$2')+t;case 5443:return rx+t+nx+'flex-item-'+dx(t,/flex-|-self/,'')+t;case 4675:return rx+t+nx+'flex-line-pack'+dx(t,/align-content|flex-|-self/,'')+t;case 5548:return rx+t+nx+dx(t,'shrink','negative')+t;case 5292:return rx+t+nx+dx(t,'basis','preferred-size')+t;case 6060:return rx+'box-'+dx(t,'-grow','')+rx+t+nx+dx(t,'grow','positive')+t;case 4554:return rx+dx(t,/([^-])(transform)/g,'$1'+rx+'$2')+t;case 6187:return dx(dx(dx(t,/(zoom-|grab)/,rx+'$1'),/(image-set)/,rx+'$1'),t,'')+t;case 5495:case 3959:return dx(t,/(image-set\([^]*)/,rx+'$1$`$1');case 4968:return dx(dx(t,/(.+:)(flex-)?(.*)/,rx+'box-pack:$3'+nx+'flex-pack:$3'),/s.+-b[^;]+/,'justify')+rx+t+t;case 4095:case 3583:case 4068:case 2532:return dx(t,/(.+)-inline(.+)/,rx+'$1$2')+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mx(t)-1-e>6)switch(gx(t,e+1)){case 109:if(45!==gx(t,e+4))break;case 102:return dx(t,/(.+:)(.+)-([^]+)/,'$1'+rx+'$2-$3$1'+Ax+(108==gx(t,e+3)?'$3':'$2-$3'))+t;case 115:return~fx(t,'stretch')?sF(dx(t,'stretch','fill-available'),e)+t:t}break;case 4949:if(115!==gx(t,e+1))break;case 6444:switch(gx(t,mx(t)-3-(~fx(t,'!important')&&10))){case 107:return dx(t,':',':'+rx)+t;case 101:return dx(t,/(.+:)([^;!]+)(;|!.+)?/,'$1'+rx+(45===gx(t,14)?'inline-':'')+'box$3$1'+rx+'$2$3$1'+nx+'$2box$3')+t}break;case 5936:switch(gx(t,e+11)){case 114:return rx+t+nx+dx(t,/[svh]\w+-[tblr]{2}/,'tb')+t;case 108:return rx+t+nx+dx(t,/[svh]\w+-[tblr]{2}/,'tb-rl')+t;case 45:return rx+t+nx+dx(t,/[svh]\w+-[tblr]{2}/,'lr')+t}return rx+t+nx+t+t}return t}var aF,cF,lF,uF='undefined'!=typeof document,hF=uF?void 0:(aF=function(){return qx((function(){var t={};return function(e){return t[e]}}))},cF=new WeakMap,function(t){if(cF.has(t))return cF.get(t);var e=aF(t);return cF.set(t,e),e}),dF=[function(t,e,n,A){if(t.length>-1&&!t.return)switch(t.type){case sx:t.return=sF(t.value,t.length);break;case ax:return Xx([Qx(t,{value:dx(t.value,'@','@'+rx)})],A);case ox:if(t.length)return function(t,e){return t.map(e).join('')}(t.props,(function(e){switch(function(t,e){return(t=e.exec(t))?t[0]:t}(e,/(::plac\w+|:read-\w+)/)){case':read-only':case':read-write':return Xx([Qx(t,{props:[dx(e,/:(read-\w+)/,':-moz-$1')]})],A);case'::placeholder':return Xx([Qx(t,{props:[dx(e,/:(plac\w+)/,':'+rx+'input-$1')]}),Qx(t,{props:[dx(e,/:(plac\w+)/,':-moz-$1')]}),Qx(t,{props:[dx(e,/:(plac\w+)/,nx+'input-$1')]})],A)}return''}))}}],fF=function(t){var e=t.key;if('production'!==process.env.NODE_ENV&&!e)throw new Error('You have to configure `key` for your cache. Please make sure it\'s unique (and not equal to \'css\') as it\'s used for linking styles to your cache.\nIf multiple caches share the same key they might "fight" for each other\'s style elements.');if(uF&&'css'===e){var n=document.querySelectorAll('style[data-emotion]:not([data-s])');Array.prototype.forEach.call(n,(function(t){-1!==t.getAttribute('data-emotion').indexOf(' ')&&(document.head.appendChild(t),t.setAttribute('data-s',''))}))}var A=t.stylisPlugins||dF;if('production'!==process.env.NODE_ENV&&/[^a-z-]/.test(e))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+e+'" was passed');var r,i,o={},s=[];uF&&(r=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),(function(t){for(var e=t.getAttribute('data-emotion').split(' '),n=1;n<e.length;n++)o[e[n]]=!0;s.push(t)})));var a=[eF,nF];if('production'!==process.env.NODE_ENV&&a.push(function(t){return function(e,n,A){if('rule'===e.type&&!t.compat){var r=e.value.match(/(:first|:nth|:nth-last)-child/g);if(r){for(var i=e.parent?e.parent.children:A,o=i.length-1;o>=0;o--){var s=i[o];if(s.line<e.line)break;if(s.column<e.column){if(AF(s))return;break}}r.forEach((function(t){}))}}}}({get compat(){return p.compat}}),oF),uF){var c,l=[zx,'production'!==process.env.NODE_ENV?function(t){t.root||(t.return?c.insert(t.return):t.value&&t.type!==ix&&c.insert(t.value+'{}'))}:Yx((function(t){c.insert(t)}))],u=Zx(a.concat(A,l));i=function(t,e,n,A){c=n,'production'!==process.env.NODE_ENV&&void 0!==e.map&&(c={insert:function(t){n.insert(t+e.map)}}),Xx(Vx(t?t+'{'+e.styles+'}':e.styles),u),A&&(p.inserted[e.name]=!0)}}else{var h=[zx],d=Zx(a.concat(A,h)),f=hF(A)(e),g=function(t,e){var n=e.name;return void 0===f[n]&&(f[n]=Xx(Vx(t?t+'{'+e.styles+'}':e.styles),d)),f[n]};i=function(t,e,n,A){var r=e.name,i=g(t,e);return void 0===p.compat?(A&&(p.inserted[r]=!0),'development'===process.env.NODE_ENV&&void 0!==e.map?i+e.map:i):A?void(p.inserted[r]=i):i}}var p={key:e,sheet:new ex({key:e,container:r,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:i};return p.sheet.hydrate(s),p},gF={exports:{}},pF={};var mF,bF={};
334
+ /** @license React v16.13.1
335
+ * react-is.development.js
336
+ *
337
+ * Copyright (c) Facebook, Inc. and its affiliates.
338
+ *
339
+ * This source code is licensed under the MIT license found in the
340
+ * LICENSE file in the root directory of this source tree.
341
+ */'production'===process.env.NODE_ENV?gF.exports=function(){if(lF)return pF;lF=1;var t='function'==typeof Symbol&&Symbol.for,e=t?Symbol.for('react.element'):60103,n=t?Symbol.for('react.portal'):60106,A=t?Symbol.for('react.fragment'):60107,r=t?Symbol.for('react.strict_mode'):60108,i=t?Symbol.for('react.profiler'):60114,o=t?Symbol.for('react.provider'):60109,s=t?Symbol.for('react.context'):60110,a=t?Symbol.for('react.async_mode'):60111,c=t?Symbol.for('react.concurrent_mode'):60111,l=t?Symbol.for('react.forward_ref'):60112,u=t?Symbol.for('react.suspense'):60113,h=t?Symbol.for('react.suspense_list'):60120,d=t?Symbol.for('react.memo'):60115,f=t?Symbol.for('react.lazy'):60116,g=t?Symbol.for('react.block'):60121,p=t?Symbol.for('react.fundamental'):60117,m=t?Symbol.for('react.responder'):60118,b=t?Symbol.for('react.scope'):60119;function v(t){if('object'==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:switch(t=t.type){case a:case c:case A:case i:case r:case u:return t;default:switch(t=t&&t.$$typeof){case s:case l:case f:case d:case o:return t;default:return h}}case n:return h}}}function y(t){return v(t)===c}return pF.AsyncMode=a,pF.ConcurrentMode=c,pF.ContextConsumer=s,pF.ContextProvider=o,pF.Element=e,pF.ForwardRef=l,pF.Fragment=A,pF.Lazy=f,pF.Memo=d,pF.Portal=n,pF.Profiler=i,pF.StrictMode=r,pF.Suspense=u,pF.isAsyncMode=function(t){return y(t)||v(t)===a},pF.isConcurrentMode=y,pF.isContextConsumer=function(t){return v(t)===s},pF.isContextProvider=function(t){return v(t)===o},pF.isElement=function(t){return'object'==typeof t&&null!==t&&t.$$typeof===e},pF.isForwardRef=function(t){return v(t)===l},pF.isFragment=function(t){return v(t)===A},pF.isLazy=function(t){return v(t)===f},pF.isMemo=function(t){return v(t)===d},pF.isPortal=function(t){return v(t)===n},pF.isProfiler=function(t){return v(t)===i},pF.isStrictMode=function(t){return v(t)===r},pF.isSuspense=function(t){return v(t)===u},pF.isValidElementType=function(t){return'string'==typeof t||'function'==typeof t||t===A||t===c||t===i||t===r||t===u||t===h||'object'==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===o||t.$$typeof===s||t.$$typeof===l||t.$$typeof===p||t.$$typeof===m||t.$$typeof===b||t.$$typeof===g)},pF.typeOf=v,pF}():gF.exports=(mF||(mF=1,'production'!==process.env.NODE_ENV&&function(){var t='function'==typeof Symbol&&Symbol.for,e=t?Symbol.for('react.element'):60103,n=t?Symbol.for('react.portal'):60106,A=t?Symbol.for('react.fragment'):60107,r=t?Symbol.for('react.strict_mode'):60108,i=t?Symbol.for('react.profiler'):60114,o=t?Symbol.for('react.provider'):60109,s=t?Symbol.for('react.context'):60110,a=t?Symbol.for('react.async_mode'):60111,c=t?Symbol.for('react.concurrent_mode'):60111,l=t?Symbol.for('react.forward_ref'):60112,u=t?Symbol.for('react.suspense'):60113,h=t?Symbol.for('react.suspense_list'):60120,d=t?Symbol.for('react.memo'):60115,f=t?Symbol.for('react.lazy'):60116,g=t?Symbol.for('react.block'):60121,p=t?Symbol.for('react.fundamental'):60117,m=t?Symbol.for('react.responder'):60118,b=t?Symbol.for('react.scope'):60119;function v(t){if('object'==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:var g=t.type;switch(g){case a:case c:case A:case i:case r:case u:return g;default:var p=g&&g.$$typeof;switch(p){case s:case l:case f:case d:case o:return p;default:return h}}case n:return h}}}var y=a,w=c,B=s,C=o,x=e,F=l,I=A,Q=f,E=d,S=n,U=i,L=r,N=u,k=!1;function _(t){return v(t)===c}bF.AsyncMode=y,bF.ConcurrentMode=w,bF.ContextConsumer=B,bF.ContextProvider=C,bF.Element=x,bF.ForwardRef=F,bF.Fragment=I,bF.Lazy=Q,bF.Memo=E,bF.Portal=S,bF.Profiler=U,bF.StrictMode=L,bF.Suspense=N,bF.isAsyncMode=function(t){return k||(k=!0),_(t)||v(t)===a},bF.isConcurrentMode=_,bF.isContextConsumer=function(t){return v(t)===s},bF.isContextProvider=function(t){return v(t)===o},bF.isElement=function(t){return'object'==typeof t&&null!==t&&t.$$typeof===e},bF.isForwardRef=function(t){return v(t)===l},bF.isFragment=function(t){return v(t)===A},bF.isLazy=function(t){return v(t)===f},bF.isMemo=function(t){return v(t)===d},bF.isPortal=function(t){return v(t)===n},bF.isProfiler=function(t){return v(t)===i},bF.isStrictMode=function(t){return v(t)===r},bF.isSuspense=function(t){return v(t)===u},bF.isValidElementType=function(t){return'string'==typeof t||'function'==typeof t||t===A||t===c||t===i||t===r||t===u||t===h||'object'==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===o||t.$$typeof===s||t.$$typeof===l||t.$$typeof===p||t.$$typeof===m||t.$$typeof===b||t.$$typeof===g)},bF.typeOf=v}()),bF);var vF=gF.exports,yF={};yF[vF.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yF[vF.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var wF='undefined'!=typeof document;function BF(t,e,n){var A='';return n.split(' ').forEach((function(n){void 0!==t[n]?e.push(t[n]+';'):A+=n+' '})),A}var CF=function(t,e,n){var A=t.key+'-'+e.name;(!1===n||!1===wF&&void 0!==t.compat)&&void 0===t.registered[A]&&(t.registered[A]=e.styles)},xF=function(t,e,n){CF(t,e,n);var A=t.key+'-'+e.name;if(void 0===t.inserted[e.name]){var r='',i=e;do{var o=t.insert(e===i?'.'+A:'',i,t.sheet,!0);wF||void 0===o||(r+=o),i=i.next}while(void 0!==i);if(!wF&&0!==r.length)return r}};var FF={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},IF=/[A-Z]|^ms/g,QF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,EF=function(t){return 45===t.charCodeAt(1)},SF=function(t){return null!=t&&'boolean'!=typeof t},UF=qx((function(t){return EF(t)?t:t.replace(IF,'-$&').toLowerCase()})),LF=function(t,e){switch(t){case'animation':case'animationName':if('string'==typeof e)return e.replace(QF,(function(t,e,n){return TF={name:e,styles:n,next:TF},e}))}return 1===FF[t]||EF(t)||'number'!=typeof e||0===e?e:e+'px'};if('production'!==process.env.NODE_ENV){var NF=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,kF=['normal','none','initial','inherit','unset'],_F=LF,PF={};LF=function(t,e){if('content'===t&&('string'!=typeof e||-1===kF.indexOf(e)&&!NF.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||'"'!==e.charAt(0)&&'\''!==e.charAt(0))))throw new Error('You seem to be using a value for \'content\' without quotes, try replacing it with `content: \'"'+e+'"\'`');var n=_F(t,e);return''===n||EF(t)||-1===t.indexOf('-')||void 0!==PF[t]||(PF[t]=!0),n}}var OF='Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.';function MF(t,e,n){if(null==n)return'';if(void 0!==n.__emotion_styles){if('production'!==process.env.NODE_ENV&&'NO_COMPONENT_SELECTOR'===n.toString())throw new Error(OF);return n}switch(typeof n){case'boolean':return'';case'object':if(1===n.anim)return TF={name:n.name,styles:n.styles,next:TF},n.name;if(void 0!==n.styles){var A=n.next;if(void 0!==A)for(;void 0!==A;)TF={name:A.name,styles:A.styles,next:TF},A=A.next;var r=n.styles+';';return'production'!==process.env.NODE_ENV&&void 0!==n.map&&(r+=n.map),r}return function(t,e,n){var A='';if(Array.isArray(n))for(var r=0;r<n.length;r++)A+=MF(t,e,n[r])+';';else for(var i in n){var o=n[i];if('object'!=typeof o)null!=e&&void 0!==e[o]?A+=i+'{'+e[o]+'}':SF(o)&&(A+=UF(i)+':'+LF(i,o)+';');else{if('NO_COMPONENT_SELECTOR'===i&&'production'!==process.env.NODE_ENV)throw new Error(OF);if(!Array.isArray(o)||'string'!=typeof o[0]||null!=e&&void 0!==e[o[0]]){var s=MF(t,e,o);switch(i){case'animation':case'animationName':A+=UF(i)+':'+s+';';break;default:process.env.NODE_ENV,A+=i+'{'+s+'}'}}else for(var a=0;a<o.length;a++)SF(o[a])&&(A+=UF(i)+':'+LF(i,o[a])+';')}}return A}(t,e,n);case'function':if(void 0!==t){var i=TF,o=n(t);return TF=i,MF(t,e,o)}process.env.NODE_ENV;break;case'string':if('production'!==process.env.NODE_ENV){var s=[];n.replace(QF,(function(t,e,n){var A='animation'+s.length;return s.push('const '+A+' = keyframes`'+n.replace(/^@keyframes animation-\w+/,'')+'`'),'${'+A+'}'}));s.length}}if(null==e)return n;var a=e[n];return void 0!==a?a:n}var HF,TF,DF=/label:\s*([^\s;\n{]+)\s*(;|$)/g;'production'!==process.env.NODE_ENV&&(HF=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var RF=function(t,e,n){if(1===t.length&&'object'==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var A=!0,r='';TF=void 0;var i,o=t[0];null==o||void 0===o.raw?(A=!1,r+=MF(n,e,o)):('production'!==process.env.NODE_ENV&&o[0],r+=o[0]);for(var s=1;s<t.length;s++)r+=MF(n,e,t[s]),A&&('production'!==process.env.NODE_ENV&&o[s],r+=o[s]);'production'!==process.env.NODE_ENV&&(r=r.replace(HF,(function(t){return i=t,''}))),DF.lastIndex=0;for(var a,c='';null!==(a=DF.exec(r));)c+='-'+a[1];var l=function(t){for(var e,n=0,A=0,r=t.length;r>=4;++A,r-=4)e=1540483477*(65535&(e=255&t.charCodeAt(A)|(255&t.charCodeAt(++A))<<8|(255&t.charCodeAt(++A))<<16|(255&t.charCodeAt(++A))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&t.charCodeAt(A+2))<<16;case 2:n^=(255&t.charCodeAt(A+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(A)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+c;return'production'!==process.env.NODE_ENV?{name:l,styles:r,map:i,next:TF,toString:function(){return'You have tried to stringify object returned from `css` function. It isn\'t supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).'}}:{name:l,styles:r,next:TF}},VF='undefined'!=typeof document,GF=function(t){return t()},jF=!!t.useInsertionEffect&&t.useInsertionEffect,WF=VF&&jF||GF,KF=jF||t.useLayoutEffect,XF='undefined'!=typeof document,zF={}.hasOwnProperty,ZF=t.createContext('undefined'!=typeof HTMLElement?fF({key:'css'}):null);'production'!==process.env.NODE_ENV&&(ZF.displayName='EmotionCacheContext'),ZF.Provider;var YF=function(t){return c((function(e,n){var A=u(ZF);return t(e,A,n)}))};XF||(YF=function(e){return function(n){var A=u(ZF);return null===A?(A=fF({key:'css'}),t.createElement(ZF.Provider,{value:A},e(n,A))):e(n,A)}});var qF=t.createContext({});'production'!==process.env.NODE_ENV&&(qF.displayName='EmotionThemeContext');var JF=function(t){var e=t.split('.');return e[e.length-1]},$F=function(t){var e=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);return e||(e=/^([A-Za-z0-9$.]+)@/.exec(t))?JF(e[1]):void 0},tI=new Set(['renderWithHooks','processChild','finishClassComponent','renderToString']),eI=function(t){return t.replace(/\$/g,'-')},nI='__EMOTION_TYPE_PLEASE_DO_NOT_USE__',AI='__EMOTION_LABEL_PLEASE_DO_NOT_USE__',rI=function(t,e){if('production'!==process.env.NODE_ENV&&'string'==typeof e.css&&-1!==e.css.indexOf(':'))throw new Error('Strings are not allowed as css prop values, please wrap it in a css template literal from \'@emotion/react\' like this: css`'+e.css+'`');var n={};for(var A in e)zF.call(e,A)&&(n[A]=e[A]);if(n[nI]=t,'production'!==process.env.NODE_ENV&&e.css&&('object'!=typeof e.css||'string'!=typeof e.css.name||-1===e.css.name.indexOf('-'))){var r=function(t){if(t)for(var e=t.split('\n'),n=0;n<e.length;n++){var A=$F(e[n]);if(A){if(tI.has(A))break;if(/^[A-Z]/.test(A))return eI(A)}}}((new Error).stack);r&&(n[AI]=r)}return n},iI=function(e){var n=e.cache,A=e.serialized,r=e.isStringTag;CF(n,A,r);var i=WF((function(){return xF(n,A,r)}));if(!XF&&void 0!==i){for(var o,s=A.name,a=A.next;void 0!==a;)s+=' '+a.name,a=a.next;return t.createElement('style',((o={})['data-emotion']=n.key+' '+s,o.dangerouslySetInnerHTML={__html:i},o.nonce=n.sheet.nonce,o))}return null},oI=YF((function(e,n,A){var r=e.css;'string'==typeof r&&void 0!==n.registered[r]&&(r=n.registered[r]);var i=e[nI],o=[r],s='';'string'==typeof e.className?s=BF(n.registered,o,e.className):null!=e.className&&(s=e.className+' ');var a=RF(o,void 0,t.useContext(qF));if('production'!==process.env.NODE_ENV&&-1===a.name.indexOf('-')){var c=e[AI];c&&(a=RF([a,'label:'+c+';']))}s+=n.key+'-'+a.name;var l={};for(var u in e)!zF.call(e,u)||'css'===u||u===nI||'production'!==process.env.NODE_ENV&&u===AI||(l[u]=e[u]);return l.ref=A,l.className=s,t.createElement(t.Fragment,null,t.createElement(iI,{cache:n,serialized:a,isStringTag:'string'==typeof i}),t.createElement(i,l))}));'production'!==process.env.NODE_ENV&&(oI.displayName='EmotionCssPropInternal');var sI=oI,aI=function(e,n){var A=arguments;if(null==n||!zF.call(n,'css'))return t.createElement.apply(void 0,A);var r=A.length,i=new Array(r);i[0]=sI,i[1]=rI(e,n);for(var o=2;o<r;o++)i[o]=A[o];return t.createElement.apply(null,i)},cI=!1,lI=YF((function(e,n){'production'===process.env.NODE_ENV||cI||!e.className&&!e.css||(cI=!0);var A=e.styles,r=RF([A],void 0,t.useContext(qF));if(!XF){for(var i,o=r.name,s=r.styles,a=r.next;void 0!==a;)o+=' '+a.name,s+=a.styles,a=a.next;var c=!0===n.compat,l=n.insert('',{name:o,styles:s},n.sheet,c);return c?null:t.createElement('style',((i={})['data-emotion']=n.key+'-global '+o,i.dangerouslySetInnerHTML={__html:l},i.nonce=n.sheet.nonce,i))}var u=t.useRef();return KF((function(){var t=n.key+'-global',e=new n.sheet.constructor({key:t,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),A=!1,i=document.querySelector('style[data-emotion="'+t+' '+r.name+'"]');return n.sheet.tags.length&&(e.before=n.sheet.tags[0]),null!==i&&(A=!0,i.setAttribute('data-emotion',t),e.hydrate([i])),u.current=[e,A],function(){e.flush()}}),[n]),KF((function(){var t=u.current,e=t[0];if(t[1])t[1]=!1;else{if(void 0!==r.next&&xF(n,r.next,!0),e.tags.length){var A=e.tags[e.tags.length-1].nextElementSibling;e.before=A,e.flush()}n.insert('',r,e,!1)}}),[n,r.name]),null}));function uI(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return RF(e)}'production'!==process.env.NODE_ENV&&(lI.displayName='EmotionGlobal');var hI=function t(e){for(var n=e.length,A=0,r='';A<n;A++){var i=e[A];if(null!=i){var o=void 0;switch(typeof i){case'boolean':break;case'object':if(Array.isArray(i))o=t(i);else for(var s in'production'!==process.env.NODE_ENV&&void 0!==i.styles&&i.name,o='',i)i[s]&&s&&(o&&(o+=' '),o+=s);break;default:o=i}o&&(r&&(r+=' '),r+=o)}}return r};var dI=function(e){var n,A=e.cache,r=e.serializedArr,i=WF((function(){for(var t='',e=0;e<r.length;e++){var n=xF(A,r[e],!1);XF||void 0===n||(t+=n)}if(!XF)return t}));return XF||0===i.length?null:t.createElement('style',((n={})['data-emotion']=A.key+' '+r.map((function(t){return t.name})).join(' '),n.dangerouslySetInnerHTML={__html:i},n.nonce=A.sheet.nonce,n))},fI=YF((function(e,n){var A=!1,r=[],i=function(){if(A&&'production'!==process.env.NODE_ENV)throw new Error('css can only be used during render');for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var o=RF(e,n.registered);return r.push(o),CF(n,o,!1),n.key+'-'+o.name},o={css:i,cx:function(){if(A&&'production'!==process.env.NODE_ENV)throw new Error('cx can only be used during render');for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t,e,n){var A=[],r=BF(t,A,n);return A.length<2?n:r+e(A)}(n.registered,i,hI(e))},theme:t.useContext(qF)},s=e.children(o);return A=!0,t.createElement(t.Fragment,null,t.createElement(dI,{cache:n,serializedArr:r}),s)}));if('production'!==process.env.NODE_ENV&&(fI.displayName='EmotionClassNames'),'production'!==process.env.NODE_ENV){var gI='undefined'!=typeof document,pI='undefined'!=typeof jest||'undefined'!=typeof vi;if(gI&&!pI){var mI='undefined'!=typeof globalThis?globalThis:gI?window:global,bI='__EMOTION_REACT_'+'11.11.1'.split('.')[0]+'__';mI[bI],mI[bI]=!0}}var vI='undefined'!=typeof document?h:r,yI=['className','clearValue','cx','getStyles','getClassNames','getValue','hasValue','isMulti','isRtl','options','selectOption','selectProps','setValue','theme'],wI=function(){};function BI(t,e){return e?'-'===e[0]?t+e:t+'__'+e:t}function CI(t,e){for(var n=arguments.length,A=new Array(n>2?n-2:0),r=2;r<n;r++)A[r-2]=arguments[r];var i=[].concat(A);if(e&&t)for(var o in e)e.hasOwnProperty(o)&&e[o]&&i.push(''.concat(BI(t,o)));return i.filter((function(t){return t})).map((function(t){return String(t).trim()})).join(' ')}var xI=function(t){return e=t,Array.isArray(e)?t.filter(Boolean):'object'===jv(t)&&null!==t?[t]:[];var e},FI=function(t){return t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme,jC({},zC(t,yI))},II=function(t,e,n){var A=t.cx,r=t.getStyles,i=t.getClassNames,o=t.className;return{css:r(e,t),className:A(null!=n?n:{},i(e,t),o)}};function QI(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function EI(t){return QI(t)?window.pageYOffset:t.scrollTop}function SI(t,e){QI(t)?window.scrollTo(0,e):t.scrollTop=e}function UI(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wI,r=EI(t),i=e-r,o=0;!function e(){var s=function(t,e,n,A){return n*((t=t/A-1)*t*t+1)+e}(o+=10,r,i,n);SI(t,s),o<n?window.requestAnimationFrame(e):A(t)}()}function LI(t,e){var n=t.getBoundingClientRect(),A=e.getBoundingClientRect(),r=e.offsetHeight/3;A.bottom+r>n.bottom?SI(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+r,t.scrollHeight)):A.top-r<n.top&&SI(t,Math.max(e.offsetTop-r,0))}function NI(){try{return document.createEvent('TouchEvent'),!0}catch(t){return!1}}var kI=!1,_I={get passive(){return kI=!0}},PI='undefined'!=typeof window?window:{};PI.addEventListener&&PI.removeEventListener&&(PI.addEventListener('p',wI,_I),PI.removeEventListener('p',wI,!1));var OI=kI;function MI(t){return null!=t}function HI(t,e,n){return t?e:n}var TI=['children','innerProps'],DI=['children','innerProps'];function RI(t){var e=t.maxHeight,n=t.menuEl,A=t.minHeight,r=t.placement,i=t.shouldScroll,o=t.isFixedPosition,s=t.controlHeight,a=function(t){var e=getComputedStyle(t),n='absolute'===e.position,A=/(auto|scroll)/;if('fixed'===e.position)return document.documentElement;for(var r=t;r=r.parentElement;)if(e=getComputedStyle(r),(!n||'static'!==e.position)&&A.test(e.overflow+e.overflowY+e.overflowX))return r;return document.documentElement}(n),c={placement:'bottom',maxHeight:e};if(!n||!n.offsetParent)return c;var l,u=a.getBoundingClientRect().height,h=n.getBoundingClientRect(),d=h.bottom,f=h.height,g=h.top,p=n.offsetParent.getBoundingClientRect().top,m=o?window.innerHeight:QI(l=a)?window.innerHeight:l.clientHeight,b=EI(a),v=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=p-y,B=m-g,C=w+b,x=u-b-g,F=d-m+b+v,I=b+g-y,Q=160;switch(r){case'auto':case'bottom':if(B>=f)return{placement:'bottom',maxHeight:e};if(x>=f&&!o)return i&&UI(a,F,Q),{placement:'bottom',maxHeight:e};if(!o&&x>=A||o&&B>=A)return i&&UI(a,F,Q),{placement:'bottom',maxHeight:o?B-v:x-v};if('auto'===r||o){var E=e,S=o?w:C;return S>=A&&(E=Math.min(S-v-s,e)),{placement:'top',maxHeight:E}}if('bottom'===r)return i&&SI(a,F),{placement:'bottom',maxHeight:e};break;case'top':if(w>=f)return{placement:'top',maxHeight:e};if(C>=f&&!o)return i&&UI(a,I,Q),{placement:'top',maxHeight:e};if(!o&&C>=A||o&&w>=A){var U=e;return(!o&&C>=A||o&&w>=A)&&(U=o?w-y:C-y),i&&UI(a,I,Q),{placement:'top',maxHeight:U}}return{placement:'bottom',maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}var VI,GI=function(t){return'auto'===t?'bottom':t},jI=l(null),WI=function(t){var e=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,c=t.theme,l=(u(jI)||{}).setPortalPlacement,h=n(null),d=XC(A(i),2),f=d[0],g=d[1],p=XC(A(null),2),m=p[0],b=p[1],v=c.spacing.controlHeight;return vI((function(){var t=h.current;if(t){var e='fixed'===s,n=RI({maxHeight:i,menuEl:t,minHeight:r,placement:o,shouldScroll:a&&!e,isFixedPosition:e,controlHeight:v});g(n.maxHeight),b(n.placement),null==l||l(n.placement)}}),[i,o,s,a,r,l,v]),e({ref:h,placerProps:jC(jC({},t),{},{placement:m||GI(o),maxHeight:f})})},KI=function(t){var e=t.children,n=t.innerRef,A=t.innerProps;return aI('div',C({},II(t,'menu',{menu:!0}),{ref:n},A),e)},XI=function(t,e){var n=t.theme,A=n.spacing.baseUnit,r=n.colors;return jC({textAlign:'center'},e?{}:{color:r.neutral40,padding:''.concat(2*A,'px ').concat(3*A,'px')})},zI=XI,ZI=XI,YI=['size'],qI=['innerProps','isRtl','size'];var JI,$I,tQ='production'===process.env.NODE_ENV?{name:'8mmkcg',styles:'display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0'}:{name:'tj5bde-Svg',styles:'display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;',map:'/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */',toString:function(){return'You have tried to stringify object returned from `css` function. It isn\'t supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).'}},eQ=function(t){var e=t.size,n=zC(t,YI);return aI('svg',C({height:e,width:e,viewBox:'0 0 20 20','aria-hidden':'true',focusable:'false',css:tQ},n))},nQ=function(t){return aI(eQ,C({size:20},t),aI('path',{d:'M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z'}))},AQ=function(t){return aI(eQ,C({size:20},t),aI('path',{d:'M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z'}))},rQ=function(t,e){var n=t.isFocused,A=t.theme,r=A.spacing.baseUnit,i=A.colors;return jC({label:'indicatorContainer',display:'flex',transition:'color 150ms'},e?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,':hover':{color:n?i.neutral80:i.neutral40}})},iQ=rQ,oQ=rQ,sQ=function(){var t=uI.apply(void 0,arguments),e='animation-'+t.name;return{name:e,styles:'@keyframes '+e+'{'+t.styles+'}',anim:1,toString:function(){return'_EMO_'+this.name+'_'+this.styles+'_EMO_'}}}(VI||(JI=['\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n'],$I||($I=JI.slice(0)),VI=Object.freeze(Object.defineProperties(JI,{raw:{value:Object.freeze($I)}})))),aQ=function(t){var e=t.delay,n=t.offset;return aI('span',{css:uI({animation:''.concat(sQ,' 1s ease-in-out ').concat(e,'ms infinite;'),backgroundColor:'currentColor',borderRadius:'1em',display:'inline-block',marginLeft:n?'1em':void 0,height:'1em',verticalAlign:'top',width:'1em'},'production'===process.env.NODE_ENV?'':';label:LoadingDot;','production'===process.env.NODE_ENV?'':'/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */')})},cQ=function(t){var e=t.children,n=t.isDisabled,A=t.isFocused,r=t.innerRef,i=t.innerProps,o=t.menuIsOpen;return aI('div',C({ref:r},II(t,'control',{control:!0,'control--is-disabled':n,'control--is-focused':A,'control--menu-is-open':o}),i,{'aria-disabled':n||void 0}),e)},lQ=['data'],uQ=function(t){var e=t.children,n=t.cx,A=t.getStyles,r=t.getClassNames,i=t.Heading,o=t.headingProps,s=t.innerProps,a=t.label,c=t.theme,l=t.selectProps;return aI('div',C({},II(t,'group',{group:!0}),s),aI(i,C({},o,{selectProps:l,theme:c,getStyles:A,getClassNames:r,cx:n}),a),aI('div',null,e))},hQ=['innerRef','isDisabled','isHidden','inputClassName'],dQ={gridArea:'1 / 2',font:'inherit',minWidth:'2px',border:0,margin:0,outline:0,padding:0},fQ={flex:'1 1 auto',display:'inline-grid',gridArea:'1 / 1 / 2 / 3',gridTemplateColumns:'0 min-content','&:after':jC({content:'attr(data-value) " "',visibility:'hidden',whiteSpace:'pre'},dQ)},gQ=function(t){return jC({label:'input',color:'inherit',background:0,opacity:t?0:1,width:'100%'},dQ)},pQ=function(t){var e=t.children,n=t.innerProps;return aI('div',n,e)};var mQ=function(t){var e=t.children,n=t.components,A=t.data,r=t.innerProps,i=t.isDisabled,o=t.removeProps,s=t.selectProps,a=n.Container,c=n.Label,l=n.Remove;return aI(a,{data:A,innerProps:jC(jC({},II(t,'multiValue',{'multi-value':!0,'multi-value--is-disabled':i})),r),selectProps:s},aI(c,{data:A,innerProps:jC({},II(t,'multiValueLabel',{'multi-value__label':!0})),selectProps:s},e),aI(l,{data:A,innerProps:jC(jC({},II(t,'multiValueRemove',{'multi-value__remove':!0})),{},{'aria-label':'Remove '.concat(e||'option')},o),selectProps:s}))},bQ={ClearIndicator:function(t){var e=t.children,n=t.innerProps;return aI('div',C({},II(t,'clearIndicator',{indicator:!0,'clear-indicator':!0}),n),e||aI(nQ,null))},Control:cQ,DropdownIndicator:function(t){var e=t.children,n=t.innerProps;return aI('div',C({},II(t,'dropdownIndicator',{indicator:!0,'dropdown-indicator':!0}),n),e||aI(AQ,null))},DownChevron:AQ,CrossIcon:nQ,Group:uQ,GroupHeading:function(t){var e=FI(t);e.data;var n=zC(e,lQ);return aI('div',C({},II(t,'groupHeading',{'group-heading':!0}),n))},IndicatorsContainer:function(t){var e=t.children,n=t.innerProps;return aI('div',C({},II(t,'indicatorsContainer',{indicators:!0}),n),e)},IndicatorSeparator:function(t){var e=t.innerProps;return aI('span',C({},e,II(t,'indicatorSeparator',{'indicator-separator':!0})))},Input:function(t){var e=t.cx,n=t.value,A=FI(t),r=A.innerRef,i=A.isDisabled,o=A.isHidden,s=A.inputClassName,a=zC(A,hQ);return aI('div',C({},II(t,'input',{'input-container':!0}),{'data-value':n||''}),aI('input',C({className:e({input:!0},s),ref:r,style:gQ(o),disabled:i},a)))},LoadingIndicator:function(t){var e=t.innerProps,n=t.isRtl,A=t.size,r=void 0===A?4:A,i=zC(t,qI);return aI('div',C({},II(jC(jC({},i),{},{innerProps:e,isRtl:n,size:r}),'loadingIndicator',{indicator:!0,'loading-indicator':!0}),e),aI(aQ,{delay:0,offset:n}),aI(aQ,{delay:160,offset:!0}),aI(aQ,{delay:320,offset:!n}))},Menu:KI,MenuList:function(t){var e=t.children,n=t.innerProps,A=t.innerRef,r=t.isMulti;return aI('div',C({},II(t,'menuList',{'menu-list':!0,'menu-list--is-multi':r}),{ref:A},n),e)},MenuPortal:function(t){var e=t.appendTo,r=t.children,i=t.controlElement,s=t.innerProps,a=t.menuPlacement,c=t.menuPosition,l=n(null),u=n(null),h=XC(A(GI(a)),2),f=h[0],g=h[1],p=d((function(){return{setPortalPlacement:g}}),[]),b=XC(A(null),2),v=b[0],y=b[1],w=o((function(){if(i){var t=function(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}(i),e='fixed'===c?0:window.pageYOffset,n=t[f]+e;n===(null==v?void 0:v.offset)&&t.left===(null==v?void 0:v.rect.left)&&t.width===(null==v?void 0:v.rect.width)||y({offset:n,rect:t})}}),[i,c,f,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);vI((function(){w()}),[w]);var B=o((function(){'function'==typeof u.current&&(u.current(),u.current=null),i&&l.current&&(u.current=bl(i,l.current,w,{elementResize:'ResizeObserver'in window}))}),[i,w]);vI((function(){B()}),[B]);var x=o((function(t){l.current=t,B()}),[B]);if(!e&&'fixed'!==c||!v)return null;var F=aI('div',C({ref:x},II(jC(jC({},t),{},{offset:v.offset,position:c,rect:v.rect}),'menuPortal',{'menu-portal':!0}),s),r);return aI(jI.Provider,{value:p},e?m(F,e):F)},LoadingMessage:function(t){var e=t.children,n=void 0===e?'Loading...':e,A=t.innerProps,r=zC(t,DI);return aI('div',C({},II(jC(jC({},r),{},{children:n,innerProps:A}),'loadingMessage',{'menu-notice':!0,'menu-notice--loading':!0}),A),n)},NoOptionsMessage:function(t){var e=t.children,n=void 0===e?'No options':e,A=t.innerProps,r=zC(t,TI);return aI('div',C({},II(jC(jC({},r),{},{children:n,innerProps:A}),'noOptionsMessage',{'menu-notice':!0,'menu-notice--no-options':!0}),A),n)},MultiValue:mQ,MultiValueContainer:pQ,MultiValueLabel:pQ,MultiValueRemove:function(t){var e=t.children,n=t.innerProps;return aI('div',C({role:'button'},n),e||aI(nQ,{size:14}))},Option:function(t){var e=t.children,n=t.isDisabled,A=t.isFocused,r=t.isSelected,i=t.innerRef,o=t.innerProps;return aI('div',C({},II(t,'option',{option:!0,'option--is-disabled':n,'option--is-focused':A,'option--is-selected':r}),{ref:i,'aria-disabled':n},o),e)},Placeholder:function(t){var e=t.children,n=t.innerProps;return aI('div',C({},II(t,'placeholder',{placeholder:!0}),n),e)},SelectContainer:function(t){var e=t.children,n=t.innerProps,A=t.isDisabled,r=t.isRtl;return aI('div',C({},II(t,'container',{'--is-disabled':A,'--is-rtl':r}),n),e)},SingleValue:function(t){var e=t.children,n=t.isDisabled,A=t.innerProps;return aI('div',C({},II(t,'singleValue',{'single-value':!0,'single-value--is-disabled':n}),A),e)},ValueContainer:function(t){var e=t.children,n=t.innerProps,A=t.isMulti,r=t.hasValue;return aI('div',C({},II(t,'valueContainer',{'value-container':!0,'value-container--is-multi':A,'value-container--has-value':r}),n),e)}},vQ=Number.isNaN||function(t){return'number'==typeof t&&t!=t};function yQ(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(A=t[n],r=e[n],!(A===r||vQ(A)&&vQ(r)))return!1;var A,r;return!0}for(var wQ='production'===process.env.NODE_ENV?{name:'7pg0cj-a11yText',styles:'label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap'}:{name:'1f43avz-a11yText-A11yText',styles:'label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;',map:'/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */',toString:function(){return'You have tried to stringify object returned from `css` function. It isn\'t supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).'}},BQ=function(t){return aI('span',C({css:wQ},t))},CQ={guidance:function(t){var e=t.isSearchable,n=t.isMulti,A=t.tabSelectsValue,r=t.context,i=t.isInitialFocus;switch(r){case'menu':return'Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu'.concat(A?', press Tab to select the option and exit the menu':'','.');case'input':return i?''.concat(t['aria-label']||'Select',' is focused ').concat(e?',type to refine list':'',', press Down to open the menu, ').concat(n?' press left to focus selected values':''):'';case'value':return'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';default:return''}},onChange:function(t){var e=t.action,n=t.label,A=void 0===n?'':n,r=t.labels,i=t.isDisabled;switch(e){case'deselect-option':case'pop-value':case'remove-value':return'option '.concat(A,', deselected.');case'clear':return'All selected options have been cleared.';case'initial-input-focus':return'option'.concat(r.length>1?'s':'',' ').concat(r.join(','),', selected.');case'select-option':return'option '.concat(A,i?' is disabled. Select another option.':', selected.');default:return''}},onFocus:function(t){var e=t.context,n=t.focused,A=t.options,r=t.label,i=void 0===r?'':r,o=t.selectValue,s=t.isDisabled,a=t.isSelected,c=t.isAppleDevice,l=function(t,e){return t&&t.length?''.concat(t.indexOf(e)+1,' of ').concat(t.length):''};if('value'===e&&o)return'value '.concat(i,' focused, ').concat(l(o,n),'.');if('menu'===e&&c){var u=s?' disabled':'',h=''.concat(a?' selected':'').concat(u);return''.concat(i).concat(h,', ').concat(l(A,n),'.')}return''},onFilter:function(t){var e=t.inputValue,n=t.resultsMessage;return''.concat(n).concat(e?' for search term '+e:'','.')}},xQ=function(t){var e=t.ariaSelection,n=t.focusedOption,A=t.focusedValue,r=t.focusableOptions,i=t.isFocused,o=t.selectValue,s=t.selectProps,a=t.id,c=t.isAppleDevice,l=s.ariaLiveMessages,u=s.getOptionLabel,h=s.inputValue,f=s.isMulti,p=s.isOptionDisabled,m=s.isSearchable,b=s.menuIsOpen,v=s.options,y=s.screenReaderStatus,w=s.tabSelectsValue,B=s.isLoading,C=s['aria-label'],x=s['aria-live'],F=d((function(){return jC(jC({},CQ),l||{})}),[l]),I=d((function(){var t,n='';if(e&&F.onChange){var A=e.option,r=e.options,i=e.removedValue,s=e.removedValues,a=e.value,c=i||A||(t=a,Array.isArray(t)?null:t),l=c?u(c):'',h=r||s||void 0,d=h?h.map(u):[],f=jC({isDisabled:c&&p(c,o),label:l,labels:d},e);n=F.onChange(f)}return n}),[e,F,p,o,u]),Q=d((function(){var t='',e=n||A,i=!!(n&&o&&o.includes(n));if(e&&F.onFocus){var s={focused:e,label:u(e),isDisabled:p(e,o),isSelected:i,options:r,context:e===n?'menu':'value',selectValue:o,isAppleDevice:c};t=F.onFocus(s)}return t}),[n,A,u,p,F,r,o,c]),E=d((function(){var t='';if(b&&v.length&&!B&&F.onFilter){var e=y({count:r.length});t=F.onFilter({inputValue:h,resultsMessage:e})}return t}),[r,h,b,F,v,y,B]),S='initial-input-focus'===(null==e?void 0:e.action),U=d((function(){var t='';if(F.guidance){var e=A?'value':b?'menu':'input';t=F.guidance({'aria-label':C,context:e,isDisabled:n&&p(n,o),isMulti:f,isSearchable:m,tabSelectsValue:w,isInitialFocus:S})}return t}),[C,n,A,f,p,m,b,F,o,w,S]),L=aI(g,null,aI('span',{id:'aria-selection'},I),aI('span',{id:'aria-focused'},Q),aI('span',{id:'aria-results'},E),aI('span',{id:'aria-guidance'},U));return aI(g,null,aI(BQ,{id:a},S&&L),aI(BQ,{'aria-live':x,'aria-atomic':'false','aria-relevant':'additions text',role:'log'},i&&!S&&L))},FQ=[{base:'A',letters:'AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ'},{base:'AA',letters:'Ꜳ'},{base:'AE',letters:'ÆǼǢ'},{base:'AO',letters:'Ꜵ'},{base:'AU',letters:'Ꜷ'},{base:'AV',letters:'ꜸꜺ'},{base:'AY',letters:'Ꜽ'},{base:'B',letters:'BⒷBḂḄḆɃƂƁ'},{base:'C',letters:'CⒸCĆĈĊČÇḈƇȻꜾ'},{base:'D',letters:'DⒹDḊĎḌḐḒḎĐƋƊƉꝹ'},{base:'DZ',letters:'DZDŽ'},{base:'Dz',letters:'DzDž'},{base:'E',letters:'EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ'},{base:'F',letters:'FⒻFḞƑꝻ'},{base:'G',letters:'GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ'},{base:'H',letters:'HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ'},{base:'I',letters:'IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ'},{base:'J',letters:'JⒿJĴɈ'},{base:'K',letters:'KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ'},{base:'L',letters:'LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ'},{base:'LJ',letters:'LJ'},{base:'Lj',letters:'Lj'},{base:'M',letters:'MⓂMḾṀṂⱮƜ'},{base:'N',letters:'NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ'},{base:'NJ',letters:'NJ'},{base:'Nj',letters:'Nj'},{base:'O',letters:'OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ'},{base:'OI',letters:'Ƣ'},{base:'OO',letters:'Ꝏ'},{base:'OU',letters:'Ȣ'},{base:'P',letters:'PⓅPṔṖƤⱣꝐꝒꝔ'},{base:'Q',letters:'QⓆQꝖꝘɊ'},{base:'R',letters:'RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ'},{base:'S',letters:'SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ'},{base:'T',letters:'TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ'},{base:'TZ',letters:'Ꜩ'},{base:'U',letters:'UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ'},{base:'V',letters:'VⓋVṼṾƲꝞɅ'},{base:'VY',letters:'Ꝡ'},{base:'W',letters:'WⓌWẀẂŴẆẄẈⱲ'},{base:'X',letters:'XⓍXẊẌ'},{base:'Y',letters:'YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ'},{base:'Z',letters:'ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ'},{base:'a',letters:'aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ'},{base:'aa',letters:'ꜳ'},{base:'ae',letters:'æǽǣ'},{base:'ao',letters:'ꜵ'},{base:'au',letters:'ꜷ'},{base:'av',letters:'ꜹꜻ'},{base:'ay',letters:'ꜽ'},{base:'b',letters:'bⓑbḃḅḇƀƃɓ'},{base:'c',letters:'cⓒcćĉċčçḉƈȼꜿↄ'},{base:'d',letters:'dⓓdḋďḍḑḓḏđƌɖɗꝺ'},{base:'dz',letters:'dzdž'},{base:'e',letters:'eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ'},{base:'f',letters:'fⓕfḟƒꝼ'},{base:'g',letters:'gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ'},{base:'h',letters:'hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ'},{base:'hv',letters:'ƕ'},{base:'i',letters:'iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı'},{base:'j',letters:'jⓙjĵǰɉ'},{base:'k',letters:'kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ'},{base:'l',letters:'lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ'},{base:'lj',letters:'lj'},{base:'m',letters:'mⓜmḿṁṃɱɯ'},{base:'n',letters:'nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ'},{base:'nj',letters:'nj'},{base:'o',letters:'oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ'},{base:'oi',letters:'ƣ'},{base:'ou',letters:'ȣ'},{base:'oo',letters:'ꝏ'},{base:'p',letters:'pⓟpṕṗƥᵽꝑꝓꝕ'},{base:'q',letters:'qⓠqɋꝗꝙ'},{base:'r',letters:'rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ'},{base:'s',letters:'sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ'},{base:'t',letters:'tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ'},{base:'tz',letters:'ꜩ'},{base:'u',letters:'uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ'},{base:'v',letters:'vⓥvṽṿʋꝟʌ'},{base:'vy',letters:'ꝡ'},{base:'w',letters:'wⓦwẁẃŵẇẅẘẉⱳ'},{base:'x',letters:'xⓧxẋẍ'},{base:'y',letters:'yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ'},{base:'z',letters:'zⓩzźẑżžẓẕƶȥɀⱬꝣ'}],IQ=new RegExp('['+FQ.map((function(t){return t.letters})).join('')+']','g'),QQ={},EQ=0;EQ<FQ.length;EQ++)for(var SQ=FQ[EQ],UQ=0;UQ<SQ.letters.length;UQ++)QQ[SQ.letters[UQ]]=SQ.base;var LQ=function(t){return t.replace(IQ,(function(t){return QQ[t]}))},NQ=function(t,e){void 0===e&&(e=yQ);var n=null;function A(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];if(n&&n.lastThis===this&&e(A,n.lastArgs))return n.lastResult;var i=t.apply(this,A);return n={lastResult:i,lastArgs:A,lastThis:this},i}return A.clear=function(){n=null},A}(LQ),kQ=function(t){return t.replace(/^\s+|\s+$/g,'')},_Q=function(t){return''.concat(t.label,' ').concat(t.value)},PQ=['innerRef'];function OQ(t){var e=t.innerRef,n=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),A=1;A<e;A++)n[A-1]=arguments[A];var r=Object.entries(t).filter((function(t){var e=XC(t,1)[0];return!n.includes(e)}));return r.reduce((function(t,e){var n=XC(e,2),A=n[0],r=n[1];return t[A]=r,t}),{})}(zC(t,PQ),'onExited','in','enter','exit','appear');return aI('input',C({ref:e},n,{css:uI({label:'dummyInput',background:0,border:0,caretColor:'transparent',fontSize:'inherit',gridArea:'1 / 1 / 2 / 3',outline:0,padding:0,width:1,color:'transparent',left:-100,opacity:0,position:'relative',transform:'scale(.01)'},'production'===process.env.NODE_ENV?'':';label:DummyInput;','production'===process.env.NODE_ENV?'':'/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */')}))}var MQ=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};var HQ=['boxSizing','height','overflow','paddingRight','position'],TQ={boxSizing:'border-box',overflow:'hidden',position:'relative',height:'100%'};function DQ(t){t.preventDefault()}function RQ(t){t.stopPropagation()}function VQ(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;0===t?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function GQ(){return'ontouchstart'in window||navigator.maxTouchPoints}var jQ=!('undefined'==typeof window||!window.document||!window.document.createElement),WQ=0,KQ={capture:!1,passive:!1};var XQ=function(t){var e=t.target;return e.ownerDocument.activeElement&&e.ownerDocument.activeElement.blur()},zQ='production'===process.env.NODE_ENV?{name:'1kfdb0e',styles:'position:fixed;left:0;bottom:0;right:0;top:0'}:{name:'bp8cua-ScrollManager',styles:'position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;',map:'/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */',toString:function(){return'You have tried to stringify object returned from `css` function. It isn\'t supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).'}};function ZQ(t){var e=t.children,A=t.lockEnabled,i=t.captureEnabled,s=function(t){var e=t.isEnabled,A=t.onBottomArrive,i=t.onBottomLeave,s=t.onTopArrive,a=t.onTopLeave,c=n(!1),l=n(!1),u=n(0),h=n(null),d=o((function(t,e){if(null!==h.current){var n=h.current,r=n.scrollTop,o=n.scrollHeight,u=n.clientHeight,d=h.current,f=e>0,g=o-u-r,p=!1;g>e&&c.current&&(i&&i(t),c.current=!1),f&&l.current&&(a&&a(t),l.current=!1),f&&e>g?(A&&!c.current&&A(t),d.scrollTop=o,p=!0,c.current=!0):!f&&-e>r&&(s&&!l.current&&s(t),d.scrollTop=0,p=!0,l.current=!0),p&&MQ(t)}}),[A,i,s,a]),f=o((function(t){d(t,t.deltaY)}),[d]),g=o((function(t){u.current=t.changedTouches[0].clientY}),[]),p=o((function(t){var e=u.current-t.changedTouches[0].clientY;d(t,e)}),[d]),m=o((function(t){if(t){var e=!!OI&&{passive:!1};t.addEventListener('wheel',f,e),t.addEventListener('touchstart',g,e),t.addEventListener('touchmove',p,e)}}),[p,g,f]),b=o((function(t){t&&(t.removeEventListener('wheel',f,!1),t.removeEventListener('touchstart',g,!1),t.removeEventListener('touchmove',p,!1))}),[p,g,f]);return r((function(){if(e){var t=h.current;return m(t),function(){b(t)}}}),[e,m,b]),function(t){h.current=t}}({isEnabled:void 0===i||i,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),a=function(t){var e=t.isEnabled,A=t.accountForScrollbars,i=void 0===A||A,s=n({}),a=n(null),c=o((function(t){if(jQ){var e=document.body,n=e&&e.style;if(i&&HQ.forEach((function(t){var e=n&&n[t];s.current[t]=e})),i&&WQ<1){var A=parseInt(s.current.paddingRight,10)||0,r=document.body?document.body.clientWidth:0,o=window.innerWidth-r+A||0;Object.keys(TQ).forEach((function(t){var e=TQ[t];n&&(n[t]=e)})),n&&(n.paddingRight=''.concat(o,'px'))}e&&GQ()&&(e.addEventListener('touchmove',DQ,KQ),t&&(t.addEventListener('touchstart',VQ,KQ),t.addEventListener('touchmove',RQ,KQ))),WQ+=1}}),[i]),l=o((function(t){if(jQ){var e=document.body,n=e&&e.style;WQ=Math.max(WQ-1,0),i&&WQ<1&&HQ.forEach((function(t){var e=s.current[t];n&&(n[t]=e)})),e&&GQ()&&(e.removeEventListener('touchmove',DQ,KQ),t&&(t.removeEventListener('touchstart',VQ,KQ),t.removeEventListener('touchmove',RQ,KQ)))}}),[i]);return r((function(){if(e){var t=a.current;return c(t),function(){l(t)}}}),[e,c,l]),function(t){a.current=t}}({isEnabled:A});return aI(g,null,A&&aI('div',{onClick:XQ,css:zQ}),e((function(t){s(t),a(t)})))}var YQ='production'===process.env.NODE_ENV?{name:'1a0ro4n-requiredInput',styles:'label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%'}:{name:'5kkxb2-requiredInput-RequiredInput',styles:'label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;',map:'/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */',toString:function(){return'You have tried to stringify object returned from `css` function. It isn\'t supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).'}},qQ=function(t){var e=t.name,n=t.onFocus;return aI('input',{required:!0,name:e,tabIndex:-1,'aria-hidden':'true',onFocus:n,css:YQ,value:'',onChange:function(){}})};function JQ(t){var e;return'undefined'!=typeof window&&null!=window.navigator&&t.test((null===(e=window.navigator.userAgentData)||void 0===e?void 0:e.platform)||window.navigator.platform)}function $Q(){return JQ(/^Mac/i)}function tE(){return JQ(/^iPhone/i)||JQ(/^iPad/i)||$Q()&&navigator.maxTouchPoints>1}var eE,nE={clearIndicator:oQ,container:function(t){var e=t.isDisabled;return{label:'container',direction:t.isRtl?'rtl':void 0,pointerEvents:e?'none':void 0,position:'relative'}},control:function(t,e){var n=t.isDisabled,A=t.isFocused,r=t.theme,i=r.colors,o=r.borderRadius;return jC({label:'control',alignItems:'center',cursor:'default',display:'flex',flexWrap:'wrap',justifyContent:'space-between',minHeight:r.spacing.controlHeight,outline:'0 !important',position:'relative',transition:'all 100ms'},e?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:A?i.primary:i.neutral20,borderRadius:o,borderStyle:'solid',borderWidth:1,boxShadow:A?'0 0 0 1px '.concat(i.primary):void 0,'&:hover':{borderColor:A?i.primary:i.neutral30}})},dropdownIndicator:iQ,group:function(t,e){var n=t.theme.spacing;return e?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(t,e){var n=t.theme,A=n.colors,r=n.spacing;return jC({label:'group',cursor:'default',display:'block'},e?{}:{color:A.neutral40,fontSize:'75%',fontWeight:500,marginBottom:'0.25em',paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:'uppercase'})},indicatorsContainer:function(){return{alignItems:'center',alignSelf:'stretch',display:'flex',flexShrink:0}},indicatorSeparator:function(t,e){var n=t.isDisabled,A=t.theme,r=A.spacing.baseUnit,i=A.colors;return jC({label:'indicatorSeparator',alignSelf:'stretch',width:1},e?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(t,e){var n=t.isDisabled,A=t.value,r=t.theme,i=r.spacing,o=r.colors;return jC(jC({visibility:n?'hidden':'visible',transform:A?'translateZ(0)':''},fQ),e?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:o.neutral80})},loadingIndicator:function(t,e){var n=t.isFocused,A=t.size,r=t.theme,i=r.colors,o=r.spacing.baseUnit;return jC({label:'loadingIndicator',display:'flex',transition:'color 150ms',alignSelf:'center',fontSize:A,lineHeight:1,marginRight:A,textAlign:'center',verticalAlign:'middle'},e?{}:{color:n?i.neutral60:i.neutral20,padding:2*o})},loadingMessage:ZI,menu:function(t,e){var n,A=t.placement,r=t.theme,i=r.borderRadius,o=r.spacing,s=r.colors;return jC((VC(n={label:'menu'},function(t){return t?{bottom:'top',top:'bottom'}[t]:'bottom'}(A),'100%'),VC(n,'position','absolute'),VC(n,'width','100%'),VC(n,'zIndex',1),n),e?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:'0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)',marginBottom:o.menuGutter,marginTop:o.menuGutter})},menuList:function(t,e){var n=t.maxHeight,A=t.theme.spacing.baseUnit;return jC({maxHeight:n,overflowY:'auto',position:'relative',WebkitOverflowScrolling:'touch'},e?{}:{paddingBottom:A,paddingTop:A})},menuPortal:function(t){var e=t.rect,n=t.offset,A=t.position;return{left:e.left,position:A,top:n,width:e.width,zIndex:1}},multiValue:function(t,e){var n=t.theme,A=n.spacing,r=n.borderRadius,i=n.colors;return jC({label:'multiValue',display:'flex',minWidth:0},e?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:A.baseUnit/2})},multiValueLabel:function(t,e){var n=t.theme,A=n.borderRadius,r=n.colors,i=t.cropWithEllipsis;return jC({overflow:'hidden',textOverflow:i||void 0===i?'ellipsis':void 0,whiteSpace:'nowrap'},e?{}:{borderRadius:A/2,color:r.neutral80,fontSize:'85%',padding:3,paddingLeft:6})},multiValueRemove:function(t,e){var n=t.theme,A=n.spacing,r=n.borderRadius,i=n.colors,o=t.isFocused;return jC({alignItems:'center',display:'flex'},e?{}:{borderRadius:r/2,backgroundColor:o?i.dangerLight:void 0,paddingLeft:A.baseUnit,paddingRight:A.baseUnit,':hover':{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:zI,option:function(t,e){var n=t.isDisabled,A=t.isFocused,r=t.isSelected,i=t.theme,o=i.spacing,s=i.colors;return jC({label:'option',cursor:'default',display:'block',fontSize:'inherit',width:'100%',userSelect:'none',WebkitTapHighlightColor:'rgba(0, 0, 0, 0)'},e?{}:{backgroundColor:r?s.primary:A?s.primary25:'transparent',color:n?s.neutral20:r?s.neutral0:'inherit',padding:''.concat(2*o.baseUnit,'px ').concat(3*o.baseUnit,'px'),':active':{backgroundColor:n?void 0:r?s.primary:s.primary50}})},placeholder:function(t,e){var n=t.theme,A=n.spacing,r=n.colors;return jC({label:'placeholder',gridArea:'1 / 1 / 2 / 3'},e?{}:{color:r.neutral50,marginLeft:A.baseUnit/2,marginRight:A.baseUnit/2})},singleValue:function(t,e){var n=t.isDisabled,A=t.theme,r=A.spacing,i=A.colors;return jC({label:'singleValue',gridArea:'1 / 1 / 2 / 3',maxWidth:'100%',overflow:'hidden',textOverflow:'ellipsis',whiteSpace:'nowrap'},e?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(t,e){var n=t.theme.spacing,A=t.isMulti,r=t.hasValue,i=t.selectProps.controlShouldRenderValue;return jC({alignItems:'center',display:A&&r&&i?'flex':'grid',flex:1,flexWrap:'wrap',WebkitOverflowScrolling:'touch',position:'relative',overflow:'hidden'},e?{}:{padding:''.concat(n.baseUnit/2,'px ').concat(2*n.baseUnit,'px')})}},AE={borderRadius:4,colors:{primary:'#2684FF',primary75:'#4C9AFF',primary50:'#B2D4FF',primary25:'#DEEBFF',danger:'#DE350B',dangerLight:'#FFBDAD',neutral0:'hsl(0, 0%, 100%)',neutral5:'hsl(0, 0%, 95%)',neutral10:'hsl(0, 0%, 90%)',neutral20:'hsl(0, 0%, 80%)',neutral30:'hsl(0, 0%, 70%)',neutral40:'hsl(0, 0%, 60%)',neutral50:'hsl(0, 0%, 50%)',neutral60:'hsl(0, 0%, 40%)',neutral70:'hsl(0, 0%, 30%)',neutral80:'hsl(0, 0%, 20%)',neutral90:'hsl(0, 0%, 10%)'},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},rE={'aria-live':'polite',backspaceRemovesValue:!0,blurInputOnSelect:NI(),captureMenuScroll:!NI(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(t,e){if(t.data.__isNew__)return!0;var n=jC({ignoreCase:!0,ignoreAccents:!0,stringify:_Q,trim:!0,matchFrom:'any'},eE),A=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,o=n.trim,s=n.matchFrom,a=o?kQ(e):e,c=o?kQ(i(t)):i(t);return A&&(a=a.toLowerCase(),c=c.toLowerCase()),r&&(a=NQ(a),c=LQ(c)),'start'===s?c.substr(0,a.length)===a:c.indexOf(a)>-1},formatGroupLabel:function(t){return t.label},getOptionLabel:function(t){return t.label},getOptionValue:function(t){return t.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(t){return!!t.isDisabled},loadingMessage:function(){return'Loading...'},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:'bottom',menuPosition:'absolute',menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(t){return!1}}(),noOptionsMessage:function(){return'No options'},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:'Select...',screenReaderStatus:function(t){var e=t.count;return''.concat(e,' result').concat(1!==e?'s':'',' available')},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function iE(t,e,n,A){return{type:'option',data:e,isDisabled:dE(t,e,n),isSelected:fE(t,e,n),label:uE(t,e),value:hE(t,e),index:A}}function oE(t,e){return t.options.map((function(n,A){if('options'in n){var r=n.options.map((function(n,A){return iE(t,n,e,A)})).filter((function(e){return cE(t,e)}));return r.length>0?{type:'group',data:n,options:r,index:A}:void 0}var i=iE(t,n,e,A);return cE(t,i)?i:void 0})).filter(MI)}function sE(t){return t.reduce((function(t,e){return'group'===e.type?t.push.apply(t,tx(e.options.map((function(t){return t.data})))):t.push(e.data),t}),[])}function aE(t,e){return t.reduce((function(t,n){return'group'===n.type?t.push.apply(t,tx(n.options.map((function(t){return{data:t.data,id:''.concat(e,'-').concat(n.index,'-').concat(t.index)}})))):t.push({data:n.data,id:''.concat(e,'-').concat(n.index)}),t}),[])}function cE(t,e){var n=t.inputValue,A=void 0===n?'':n,r=e.data,i=e.isSelected,o=e.label,s=e.value;return(!pE(t)||!i)&&gE(t,{label:o,value:s,data:r},A)}var lE=function(t,e){var n;return(null===(n=t.find((function(t){return t.data===e})))||void 0===n?void 0:n.id)||null},uE=function(t,e){return t.getOptionLabel(e)},hE=function(t,e){return t.getOptionValue(e)};function dE(t,e,n){return'function'==typeof t.isOptionDisabled&&t.isOptionDisabled(e,n)}function fE(t,e,n){if(n.indexOf(e)>-1)return!0;if('function'==typeof t.isOptionSelected)return t.isOptionSelected(e,n);var A=hE(t,e);return n.some((function(e){return hE(t,e)===A}))}function gE(t,e,n){return!t.filterOption||t.filterOption(e,n)}var pE=function(t){var e=t.hideSelectedOptions,n=t.isMulti;return void 0===e?n:e},mE=1,bE=function(e){!function(t,e){if('function'!=typeof e&&null!==e)throw new TypeError('Super expression must either be null or a function');t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,'prototype',{writable:!1}),e&&y(t,e)}(o,f);var n,A,r,i=$C(o);function o(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')}(this,o),(e=i.call(this,t)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:''},e.blockOptionHover=!1,e.isComposing=!1,e.commonProps=void 0,e.initialTouchX=0,e.initialTouchY=0,e.openAfterFocus=!1,e.scrollToFocusedOptionOnUpdate=!1,e.userIsDragging=void 0,e.isAppleDevice=$Q()||tE(),e.controlRef=null,e.getControlRef=function(t){e.controlRef=t},e.focusedOptionRef=null,e.getFocusedOptionRef=function(t){e.focusedOptionRef=t},e.menuListRef=null,e.getMenuListRef=function(t){e.menuListRef=t},e.inputRef=null,e.getInputRef=function(t){e.inputRef=t},e.focus=e.focusInput,e.blur=e.blurInput,e.onChange=function(t,n){var A=e.props,r=A.onChange,i=A.name;n.name=i,e.ariaOnChange(t,n),r(t,n)},e.setValue=function(t,n,A){var r=e.props,i=r.closeMenuOnSelect,o=r.isMulti,s=r.inputValue;e.onInputChange('',{action:'set-value',prevInputValue:s}),i&&(e.setState({inputIsHiddenAfterUpdate:!o}),e.onMenuClose()),e.setState({clearFocusValueOnUpdate:!0}),e.onChange(t,{action:n,option:A})},e.selectOption=function(t){var n=e.props,A=n.blurInputOnSelect,r=n.isMulti,i=n.name,o=e.state.selectValue,s=r&&e.isOptionSelected(t,o),a=e.isOptionDisabled(t,o);if(s){var c=e.getOptionValue(t);e.setValue(o.filter((function(t){return e.getOptionValue(t)!==c})),'deselect-option',t)}else{if(a)return void e.ariaOnChange(t,{action:'select-option',option:t,name:i});r?e.setValue([].concat(tx(o),[t]),'select-option',t):e.setValue(t,'select-option')}A&&e.blurInput()},e.removeValue=function(t){var n=e.props.isMulti,A=e.state.selectValue,r=e.getOptionValue(t),i=A.filter((function(t){return e.getOptionValue(t)!==r})),o=HI(n,i,i[0]||null);e.onChange(o,{action:'remove-value',removedValue:t}),e.focusInput()},e.clearValue=function(){var t=e.state.selectValue;e.onChange(HI(e.props.isMulti,[],null),{action:'clear',removedValues:t})},e.popValue=function(){var t=e.props.isMulti,n=e.state.selectValue,A=n[n.length-1],r=n.slice(0,n.length-1),i=HI(t,r,r[0]||null);e.onChange(i,{action:'pop-value',removedValue:A})},e.getFocusedOptionId=function(t){return lE(e.state.focusableOptionsWithIds,t)},e.getFocusableOptionsWithIds=function(){return aE(oE(e.props,e.state.selectValue),e.getElementId('option'))},e.getValue=function(){return e.state.selectValue},e.cx=function(){for(var t=arguments.length,n=new Array(t),A=0;A<t;A++)n[A]=arguments[A];return CI.apply(void 0,[e.props.classNamePrefix].concat(n))},e.getOptionLabel=function(t){return uE(e.props,t)},e.getOptionValue=function(t){return hE(e.props,t)},e.getStyles=function(t,n){var A=e.props.unstyled,r=nE[t](n,A);r.boxSizing='border-box';var i=e.props.styles[t];return i?i(r,n):r},e.getClassNames=function(t,n){var A,r;return null===(A=(r=e.props.classNames)[t])||void 0===A?void 0:A.call(r,n)},e.getElementId=function(t){return''.concat(e.state.instancePrefix,'-').concat(t)},e.getComponents=function(){return t=e.props,jC(jC({},bQ),t.components);var t},e.buildCategorizedOptions=function(){return oE(e.props,e.state.selectValue)},e.getCategorizedOptions=function(){return e.props.menuIsOpen?e.buildCategorizedOptions():[]},e.buildFocusableOptions=function(){return sE(e.buildCategorizedOptions())},e.getFocusableOptions=function(){return e.props.menuIsOpen?e.buildFocusableOptions():[]},e.ariaOnChange=function(t,n){e.setState({ariaSelection:jC({value:t},n)})},e.onMenuMouseDown=function(t){0===t.button&&(t.stopPropagation(),t.preventDefault(),e.focusInput())},e.onMenuMouseMove=function(t){e.blockOptionHover=!1},e.onControlMouseDown=function(t){if(!t.defaultPrevented){var n=e.props.openMenuOnClick;e.state.isFocused?e.props.menuIsOpen?'INPUT'!==t.target.tagName&&'TEXTAREA'!==t.target.tagName&&e.onMenuClose():n&&e.openMenu('first'):(n&&(e.openAfterFocus=!0),e.focusInput()),'INPUT'!==t.target.tagName&&'TEXTAREA'!==t.target.tagName&&t.preventDefault()}},e.onDropdownIndicatorMouseDown=function(t){if(!(t&&'mousedown'===t.type&&0!==t.button||e.props.isDisabled)){var n=e.props,A=n.isMulti,r=n.menuIsOpen;e.focusInput(),r?(e.setState({inputIsHiddenAfterUpdate:!A}),e.onMenuClose()):e.openMenu('first'),t.preventDefault()}},e.onClearIndicatorMouseDown=function(t){t&&'mousedown'===t.type&&0!==t.button||(e.clearValue(),t.preventDefault(),e.openAfterFocus=!1,'touchend'===t.type?e.focusInput():setTimeout((function(){return e.focusInput()})))},e.onScroll=function(t){'boolean'==typeof e.props.closeMenuOnScroll?t.target instanceof HTMLElement&&QI(t.target)&&e.props.onMenuClose():'function'==typeof e.props.closeMenuOnScroll&&e.props.closeMenuOnScroll(t)&&e.props.onMenuClose()},e.onCompositionStart=function(){e.isComposing=!0},e.onCompositionEnd=function(){e.isComposing=!1},e.onTouchStart=function(t){var n=t.touches,A=n&&n.item(0);A&&(e.initialTouchX=A.clientX,e.initialTouchY=A.clientY,e.userIsDragging=!1)},e.onTouchMove=function(t){var n=t.touches,A=n&&n.item(0);if(A){var r=Math.abs(A.clientX-e.initialTouchX),i=Math.abs(A.clientY-e.initialTouchY);e.userIsDragging=r>5||i>5}},e.onTouchEnd=function(t){e.userIsDragging||(e.controlRef&&!e.controlRef.contains(t.target)&&e.menuListRef&&!e.menuListRef.contains(t.target)&&e.blurInput(),e.initialTouchX=0,e.initialTouchY=0)},e.onControlTouchEnd=function(t){e.userIsDragging||e.onControlMouseDown(t)},e.onClearIndicatorTouchEnd=function(t){e.userIsDragging||e.onClearIndicatorMouseDown(t)},e.onDropdownIndicatorTouchEnd=function(t){e.userIsDragging||e.onDropdownIndicatorMouseDown(t)},e.handleInputChange=function(t){var n=e.props.inputValue,A=t.currentTarget.value;e.setState({inputIsHiddenAfterUpdate:!1}),e.onInputChange(A,{action:'input-change',prevInputValue:n}),e.props.menuIsOpen||e.onMenuOpen()},e.onInputFocus=function(t){e.props.onFocus&&e.props.onFocus(t),e.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(e.openAfterFocus||e.props.openMenuOnFocus)&&e.openMenu('first'),e.openAfterFocus=!1},e.onInputBlur=function(t){var n=e.props.inputValue;e.menuListRef&&e.menuListRef.contains(document.activeElement)?e.inputRef.focus():(e.props.onBlur&&e.props.onBlur(t),e.onInputChange('',{action:'input-blur',prevInputValue:n}),e.onMenuClose(),e.setState({focusedValue:null,isFocused:!1}))},e.onOptionHover=function(t){if(!e.blockOptionHover&&e.state.focusedOption!==t){var n=e.getFocusableOptions().indexOf(t);e.setState({focusedOption:t,focusedOptionId:n>-1?e.getFocusedOptionId(t):null})}},e.shouldHideSelectedOptions=function(){return pE(e.props)},e.onValueInputFocus=function(t){t.preventDefault(),t.stopPropagation(),e.focus()},e.onKeyDown=function(t){var n=e.props,A=n.isMulti,r=n.backspaceRemovesValue,i=n.escapeClearsValue,o=n.inputValue,s=n.isClearable,a=n.isDisabled,c=n.menuIsOpen,l=n.onKeyDown,u=n.tabSelectsValue,h=n.openMenuOnFocus,d=e.state,f=d.focusedOption,g=d.focusedValue,p=d.selectValue;if(!(a||'function'==typeof l&&(l(t),t.defaultPrevented))){switch(e.blockOptionHover=!0,t.key){case'ArrowLeft':if(!A||o)return;e.focusValue('previous');break;case'ArrowRight':if(!A||o)return;e.focusValue('next');break;case'Delete':case'Backspace':if(o)return;if(g)e.removeValue(g);else{if(!r)return;A?e.popValue():s&&e.clearValue()}break;case'Tab':if(e.isComposing)return;if(t.shiftKey||!c||!u||!f||h&&e.isOptionSelected(f,p))return;e.selectOption(f);break;case'Enter':if(229===t.keyCode)break;if(c){if(!f)return;if(e.isComposing)return;e.selectOption(f);break}return;case'Escape':c?(e.setState({inputIsHiddenAfterUpdate:!1}),e.onInputChange('',{action:'menu-close',prevInputValue:o}),e.onMenuClose()):s&&i&&e.clearValue();break;case' ':if(o)return;if(!c){e.openMenu('first');break}if(!f)return;e.selectOption(f);break;case'ArrowUp':c?e.focusOption('up'):e.openMenu('last');break;case'ArrowDown':c?e.focusOption('down'):e.openMenu('first');break;case'PageUp':if(!c)return;e.focusOption('pageup');break;case'PageDown':if(!c)return;e.focusOption('pagedown');break;case'Home':if(!c)return;e.focusOption('first');break;case'End':if(!c)return;e.focusOption('last');break;default:return}t.preventDefault()}},e.state.instancePrefix='react-select-'+(e.props.instanceId||++mE),e.state.selectValue=xI(t.value),t.menuIsOpen&&e.state.selectValue.length){var n=e.getFocusableOptionsWithIds(),A=e.buildFocusableOptions(),r=A.indexOf(e.state.selectValue[0]);e.state.focusableOptionsWithIds=n,e.state.focusedOption=A[r],e.state.focusedOptionId=lE(n,A[r])}return e}return n=o,A=[{key:'componentDidMount',value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener('scroll',this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&LI(this.menuListRef,this.focusedOptionRef)}},{key:'componentDidUpdate',value:function(t){var e=this.props,n=e.isDisabled,A=e.menuIsOpen,r=this.state.isFocused;(r&&!n&&t.isDisabled||r&&A&&!t.menuIsOpen)&&this.focusInput(),r&&n&&!t.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!t.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(LI(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:'componentWillUnmount',value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener('scroll',this.onScroll,!0)}},{key:'onMenuOpen',value:function(){this.props.onMenuOpen()}},{key:'onMenuClose',value:function(){this.onInputChange('',{action:'menu-close',prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:'onInputChange',value:function(t,e){this.props.onInputChange(t,e)}},{key:'focusInput',value:function(){this.inputRef&&this.inputRef.focus()}},{key:'blurInput',value:function(){this.inputRef&&this.inputRef.blur()}},{key:'openMenu',value:function(t){var e=this,n=this.state,A=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),o='first'===t?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(A[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[o],focusedOptionId:this.getFocusedOptionId(i[o])},(function(){return e.onMenuOpen()}))}},{key:'focusValue',value:function(t){var e=this.state,n=e.selectValue,A=e.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(A);A||(r=-1);var i=n.length-1,o=-1;if(n.length){switch(t){case'previous':o=0===r?0:-1===r?i:r-1;break;case'next':r>-1&&r<i&&(o=r+1)}this.setState({inputIsHidden:-1!==o,focusedValue:n[o]})}}}},{key:'focusOption',value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'first',e=this.props.pageSize,n=this.state.focusedOption,A=this.getFocusableOptions();if(A.length){var r=0,i=A.indexOf(n);n||(i=-1),'up'===t?r=i>0?i-1:A.length-1:'down'===t?r=(i+1)%A.length:'pageup'===t?(r=i-e)<0&&(r=0):'pagedown'===t?(r=i+e)>A.length-1&&(r=A.length-1):'last'===t&&(r=A.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:A[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(A[r])})}}},{key:'getTheme',value:function(){return this.props.theme?'function'==typeof this.props.theme?this.props.theme(AE):jC(jC({},AE),this.props.theme):AE}},{key:'getCommonProps',value:function(){var t=this.clearValue,e=this.cx,n=this.getStyles,A=this.getClassNames,r=this.getValue,i=this.selectOption,o=this.setValue,s=this.props,a=s.isMulti,c=s.isRtl,l=s.options;return{clearValue:t,cx:e,getStyles:n,getClassNames:A,getValue:r,hasValue:this.hasValue(),isMulti:a,isRtl:c,options:l,selectOption:i,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:'hasValue',value:function(){return this.state.selectValue.length>0}},{key:'hasOptions',value:function(){return!!this.getFocusableOptions().length}},{key:'isClearable',value:function(){var t=this.props,e=t.isClearable,n=t.isMulti;return void 0===e?n:e}},{key:'isOptionDisabled',value:function(t,e){return dE(this.props,t,e)}},{key:'isOptionSelected',value:function(t,e){return fE(this.props,t,e)}},{key:'filterOption',value:function(t,e){return gE(this.props,t,e)}},{key:'formatOptionLabel',value:function(t,e){if('function'==typeof this.props.formatOptionLabel){var n=this.props.inputValue,A=this.state.selectValue;return this.props.formatOptionLabel(t,{context:e,inputValue:n,selectValue:A})}return this.getOptionLabel(t)}},{key:'formatGroupLabel',value:function(t){return this.props.formatGroupLabel(t)}},{key:'startListeningComposition',value:function(){document&&document.addEventListener&&(document.addEventListener('compositionstart',this.onCompositionStart,!1),document.addEventListener('compositionend',this.onCompositionEnd,!1))}},{key:'stopListeningComposition',value:function(){document&&document.removeEventListener&&(document.removeEventListener('compositionstart',this.onCompositionStart),document.removeEventListener('compositionend',this.onCompositionEnd))}},{key:'startListeningToTouch',value:function(){document&&document.addEventListener&&(document.addEventListener('touchstart',this.onTouchStart,!1),document.addEventListener('touchmove',this.onTouchMove,!1),document.addEventListener('touchend',this.onTouchEnd,!1))}},{key:'stopListeningToTouch',value:function(){document&&document.removeEventListener&&(document.removeEventListener('touchstart',this.onTouchStart),document.removeEventListener('touchmove',this.onTouchMove),document.removeEventListener('touchend',this.onTouchEnd))}},{key:'renderInput',value:function(){var e=this.props,n=e.isDisabled,A=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,s=e.form,a=e.menuIsOpen,c=e.required,l=this.getComponents().Input,u=this.state,h=u.inputIsHidden,d=u.ariaSelection,f=this.commonProps,g=r||this.getElementId('input'),p=jC(jC(jC({'aria-autocomplete':'list','aria-expanded':a,'aria-haspopup':!0,'aria-errormessage':this.props['aria-errormessage'],'aria-invalid':this.props['aria-invalid'],'aria-label':this.props['aria-label'],'aria-labelledby':this.props['aria-labelledby'],'aria-required':c,role:'combobox','aria-activedescendant':this.isAppleDevice?void 0:this.state.focusedOptionId||''},a&&{'aria-controls':this.getElementId('listbox')}),!A&&{'aria-readonly':!0}),this.hasValue()?'initial-input-focus'===(null==d?void 0:d.action)&&{'aria-describedby':this.getElementId('live-region')}:{'aria-describedby':this.getElementId('placeholder')});return A?t.createElement(l,C({},f,{autoCapitalize:'none',autoComplete:'off',autoCorrect:'off',id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:'false',tabIndex:o,form:s,type:'text',value:i},p)):t.createElement(OQ,C({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:wI,onFocus:this.onInputFocus,disabled:n,tabIndex:o,inputMode:'none',form:s,value:''},p))}},{key:'renderPlaceholderOrValue',value:function(){var e=this,n=this.getComponents(),A=n.MultiValue,r=n.MultiValueContainer,i=n.MultiValueLabel,o=n.MultiValueRemove,s=n.SingleValue,a=n.Placeholder,c=this.commonProps,l=this.props,u=l.controlShouldRenderValue,h=l.isDisabled,d=l.isMulti,f=l.inputValue,g=l.placeholder,p=this.state,m=p.selectValue,b=p.focusedValue,v=p.isFocused;if(!this.hasValue()||!u)return f?null:t.createElement(a,C({},c,{key:'placeholder',isDisabled:h,isFocused:v,innerProps:{id:this.getElementId('placeholder')}}),g);if(d)return m.map((function(n,s){var a=n===b,l=''.concat(e.getOptionLabel(n),'-').concat(e.getOptionValue(n));return t.createElement(A,C({},c,{components:{Container:r,Label:i,Remove:o},isFocused:a,isDisabled:h,key:l,index:s,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(t){t.preventDefault()}},data:n}),e.formatOptionLabel(n,'value'))}));if(f)return null;var y=m[0];return t.createElement(s,C({},c,{data:y,isDisabled:h}),this.formatOptionLabel(y,'value'))}},{key:'renderClearIndicator',value:function(){var e=this.getComponents().ClearIndicator,n=this.commonProps,A=this.props,r=A.isDisabled,i=A.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,'aria-hidden':'true'};return t.createElement(e,C({},n,{innerProps:s,isFocused:o}))}},{key:'renderLoadingIndicator',value:function(){var e=this.getComponents().LoadingIndicator,n=this.commonProps,A=this.props,r=A.isDisabled,i=A.isLoading,o=this.state.isFocused;return e&&i?t.createElement(e,C({},n,{innerProps:{'aria-hidden':'true'},isDisabled:r,isFocused:o})):null}},{key:'renderIndicatorSeparator',value:function(){var e=this.getComponents(),n=e.DropdownIndicator,A=e.IndicatorSeparator;if(!n||!A)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return t.createElement(A,C({},r,{isDisabled:i,isFocused:o}))}},{key:'renderDropdownIndicator',value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var n=this.commonProps,A=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,'aria-hidden':'true'};return t.createElement(e,C({},n,{innerProps:i,isDisabled:A,isFocused:r}))}},{key:'renderMenu',value:function(){var e=this,n=this.getComponents(),A=n.Group,r=n.GroupHeading,i=n.Menu,o=n.MenuList,s=n.MenuPortal,a=n.LoadingMessage,c=n.NoOptionsMessage,l=n.Option,u=this.commonProps,h=this.state.focusedOption,d=this.props,f=d.captureMenuScroll,g=d.inputValue,p=d.isLoading,m=d.loadingMessage,b=d.minMenuHeight,v=d.maxMenuHeight,y=d.menuIsOpen,w=d.menuPlacement,B=d.menuPosition,x=d.menuPortalTarget,F=d.menuShouldBlockScroll,I=d.menuShouldScrollIntoView,Q=d.noOptionsMessage,E=d.onMenuScrollToTop,S=d.onMenuScrollToBottom;if(!y)return null;var U,L=function(n,A){var r=n.type,i=n.data,o=n.isDisabled,s=n.isSelected,a=n.label,c=n.value,d=h===i,f=o?void 0:function(){return e.onOptionHover(i)},g=o?void 0:function(){return e.selectOption(i)},p=''.concat(e.getElementId('option'),'-').concat(A),m={id:p,onClick:g,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:'option','aria-selected':e.isAppleDevice?void 0:s};return t.createElement(l,C({},u,{innerProps:m,data:i,isDisabled:o,isSelected:s,key:p,label:a,type:r,value:c,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(n.data,'menu'))};if(this.hasOptions())U=this.getCategorizedOptions().map((function(n){if('group'===n.type){var i=n.data,o=n.options,s=n.index,a=''.concat(e.getElementId('group'),'-').concat(s),c=''.concat(a,'-heading');return t.createElement(A,C({},u,{key:a,data:i,options:o,Heading:r,headingProps:{id:c,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(t){return L(t,''.concat(s,'-').concat(t.index))})))}if('option'===n.type)return L(n,''.concat(n.index))}));else if(p){var N=m({inputValue:g});if(null===N)return null;U=t.createElement(a,u,N)}else{var k=Q({inputValue:g});if(null===k)return null;U=t.createElement(c,u,k)}var _={minMenuHeight:b,maxMenuHeight:v,menuPlacement:w,menuPosition:B,menuShouldScrollIntoView:I},P=t.createElement(WI,C({},u,_),(function(n){var A=n.ref,r=n.placerProps,s=r.placement,a=r.maxHeight;return t.createElement(i,C({},u,_,{innerRef:A,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:p,placement:s}),t.createElement(ZQ,{captureEnabled:f,onTopArrive:E,onBottomArrive:S,lockEnabled:F},(function(n){return t.createElement(o,C({},u,{innerRef:function(t){e.getMenuListRef(t),n(t)},innerProps:{role:'listbox','aria-multiselectable':u.isMulti,id:e.getElementId('listbox')},isLoading:p,maxHeight:a,focusedOption:h}),U)})))}));return x||'fixed'===B?t.createElement(s,C({},u,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:B}),P):P}},{key:'renderFormField',value:function(){var e=this,n=this.props,A=n.delimiter,r=n.isDisabled,i=n.isMulti,o=n.name,s=n.required,a=this.state.selectValue;if(s&&!this.hasValue()&&!r)return t.createElement(qQ,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(A){var c=a.map((function(t){return e.getOptionValue(t)})).join(A);return t.createElement('input',{name:o,type:'hidden',value:c})}var l=a.length>0?a.map((function(n,A){return t.createElement('input',{key:'i-'.concat(A),name:o,type:'hidden',value:e.getOptionValue(n)})})):t.createElement('input',{name:o,type:'hidden',value:''});return t.createElement('div',null,l)}var u=a[0]?this.getOptionValue(a[0]):'';return t.createElement('input',{name:o,type:'hidden',value:u})}}},{key:'renderLiveRegion',value:function(){var e=this.commonProps,n=this.state,A=n.ariaSelection,r=n.focusedOption,i=n.focusedValue,o=n.isFocused,s=n.selectValue,a=this.getFocusableOptions();return t.createElement(xQ,C({},e,{id:this.getElementId('live-region'),ariaSelection:A,focusedOption:r,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:a,isAppleDevice:this.isAppleDevice}))}},{key:'render',value:function(){var e=this.getComponents(),n=e.Control,A=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,a=o.id,c=o.isDisabled,l=o.menuIsOpen,u=this.state.isFocused,h=this.commonProps=this.getCommonProps();return t.createElement(r,C({},h,{className:s,innerProps:{id:a,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),t.createElement(n,C({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:l}),t.createElement(i,C({},h,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),t.createElement(A,C({},h,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:'getDerivedStateFromProps',value:function(t,e){var n=e.prevProps,A=e.clearFocusValueOnUpdate,r=e.inputIsHiddenAfterUpdate,i=e.ariaSelection,o=e.isFocused,s=e.prevWasFocused,a=e.instancePrefix,c=t.options,l=t.value,u=t.menuIsOpen,h=t.inputValue,d=t.isMulti,f=xI(l),g={};if(n&&(l!==n.value||c!==n.options||u!==n.menuIsOpen||h!==n.inputValue)){var p=u?function(t,e){return sE(oE(t,e))}(t,f):[],m=u?aE(oE(t,f),''.concat(a,'-option')):[],b=A?function(t,e){var n=t.focusedValue,A=t.selectValue.indexOf(n);if(A>-1){if(e.indexOf(n)>-1)return n;if(A<e.length)return e[A]}return null}(e,f):null,v=function(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}(e,p);g={selectValue:f,focusedOption:v,focusedOptionId:lE(m,v),focusableOptionsWithIds:m,focusedValue:b,clearFocusValueOnUpdate:!1}}var y=null!=r&&t!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},w=i,B=o&&s;return o&&!B&&(w={value:HI(d,f,f[0]||null),options:f,action:'initial-input-focus'},B=!s),'initial-input-focus'===(null==i?void 0:i.action)&&(w=null),jC(jC(jC({},g),y),{},{prevProps:t,ariaSelection:w,prevWasFocused:B})}}],A&&YC(n.prototype,A),r&&YC(n,r),Object.defineProperty(n,'prototype',{writable:!1}),o}();bE.defaultProps=rE;var vE,yE=c((function(e,n){var r=function(t){var e=t.defaultInputValue,n=void 0===e?'':e,r=t.defaultMenuIsOpen,i=void 0!==r&&r,s=t.defaultValue,a=void 0===s?null:s,c=t.inputValue,l=t.menuIsOpen,u=t.onChange,h=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,g=t.value,p=zC(t,ZC),m=XC(A(void 0!==c?c:n),2),b=m[0],v=m[1],y=XC(A(void 0!==l?l:i),2),w=y[0],B=y[1],C=XC(A(void 0!==g?g:a),2),x=C[0],F=C[1],I=o((function(t,e){'function'==typeof u&&u(t,e),F(t)}),[u]),Q=o((function(t,e){var n;'function'==typeof h&&(n=h(t,e)),v(void 0!==n?n:t)}),[h]),E=o((function(){'function'==typeof f&&f(),B(!0)}),[f]),S=o((function(){'function'==typeof d&&d(),B(!1)}),[d]),U=void 0!==c?c:b,L=void 0!==l?l:w,N=void 0!==g?g:x;return jC(jC({},p),{},{inputValue:U,menuIsOpen:L,onChange:I,onInputChange:Q,onMenuClose:S,onMenuOpen:E,value:N})}(e);return t.createElement(bE,C({ref:n},r))})),wE=yE,BE=[{value:'kb',label:'Knowledge Base'},{value:'docs',label:'Documentation'},{value:'alerts',label:'Alerts'},{value:'upi',label:'UPI'}],CE=function(){var t=A(),n=t[0],r=t[1],i=A(''),o=i[0],s=i[1],a=A(BE[0]),c=a[0],l=a[1],u=Ft({queryKey:'conversationID',queryFn:au,enabled:!n,onSuccess:function(t){r({conversationID:t.conversation_id,isNew:!0})}}),h=function(t){r(t||void 0)};return u.isLoading||u.isError?e.createElement(e.Fragment,null,u.isError?e.createElement(ku,{errorHeading:'Wait a moment',errorInfo:'GenBot is not yet configured in this environment'}):e.createElement(OC,null,e.createElement(gh,{color:'#000',loading:u.isLoading,size:75,'aria-label':'Loading Spinner','data-testid':'loader'}))):e.createElement(LC,{style:{height:'calc(100% - 5rem)'}},e.createElement(NC,null,e.createElement(MC,null,e.createElement(TC,null,'Choose Topic'),e.createElement(HC,null,e.createElement(wE,{options:BE,defaultValue:BE[0],onChange:function(t){return l(null!=t?t:BE[0])},styles:{control:function(t,e){return It(It({},t),{borderColor:e.isFocused?'grey':'#D8DEE4',borderWidth:'2px',borderRadius:'6px'})},indicatorSeparator:function(t){return It(It({},t),{display:'none'})}}}))),e.createElement(kC,null,e.createElement(_C,null,e.createElement(mC,null,e.createElement(dn,{$fullWidth:!0,placeholder:'Search Conversations',onChange:function(t){return s(t.target.value)}}),e.createElement(DC,{currentConversationInfo:n,handleSetConversationInfo:h,searchQuery:o})),e.createElement(pC,null,e.createElement(cn,{$fullWidth:!0,icon:'data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22a%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M18.92%2C11h-5.92V5.08c0-.55-.45-1-1-1s-1%2C.45-1%2C1v5.92H5.08c-.55%2C0-1%2C.45-1%2C1s.45%2C1%2C1%2C1h5.92v5.92c0%2C.55%2C.45%2C1%2C1%2C1s1-.45%2C1-1v-5.92h5.92c.55%2C0%2C1-.45%2C1-1s-.45-1-1-1Z%22%2F%3E%3C%2Fsvg%3E',iconColor:'fill-white',onClick:function(){r(void 0),u.refetch()},disabled:u.isLoading},'New Chat'))))),e.createElement(PC,null,(null==n?void 0:n.conversationID)?e.createElement(e.Fragment,null,e.createElement(cC,{handleSetConversationInfo:h,conversationID:n.conversationID,isNew:n.isNew,category:c.value})):e.createElement(OC,null,e.createElement(gh,{color:'#000',loading:u.isLoading,size:75,'aria-label':'Loading Spinner','data-testid':'loader'}))))},xE=Ue.div(vE||(vE=Lt(['\n p-6\n h-full\n bg-white\n flex\n flex-col\n'],['\n p-6\n h-full\n bg-white\n flex\n flex-col\n']))),FE=new ot,IE=function(t){var n=t.token,A=t.baseURL,r=t.handleClickBackBtn;return n&&A?(su.defaults.baseURL=A,su.defaults.auth='Bearer '.concat(n),e.createElement(vt,{client:FE},e.createElement(xE,null,e.createElement(Eu,{handleClickBackBtn:r}),e.createElement(CE,null)))):e.createElement('h1',null,'JWT Token or Base URL missing.')};
342
+ /*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */
343
+ function QE(t){return QE='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&'function'==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?'symbol':typeof t},QE(t)}function EE(t,e){return EE=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},EE(t,e)}function SE(t,e,n){return SE=function(){if('undefined'==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if('function'==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var A=[null];A.push.apply(A,e);var r=new(Function.bind.apply(t,A));return n&&EE(r,n.prototype),r},SE.apply(null,arguments)}function UE(t){return function(t){if(Array.isArray(t))return LE(t)}(t)||function(t){if('undefined'!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t['@@iterator'])return Array.from(t)}(t)||function(t,e){if(!t)return;if('string'==typeof t)return LE(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);'Object'===n&&t.constructor&&(n=t.constructor.name);if('Map'===n||'Set'===n)return Array.from(t);if('Arguments'===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LE(t,e)}(t)||function(){throw new TypeError('Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}()}function LE(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,A=new Array(e);n<e;n++)A[n]=t[n];return A}var NE=Object.hasOwnProperty,kE=Object.setPrototypeOf,_E=Object.isFrozen,PE=Object.getPrototypeOf,OE=Object.getOwnPropertyDescriptor,ME=Object.freeze,HE=Object.seal,TE=Object.create,DE='undefined'!=typeof Reflect&&Reflect,RE=DE.apply,VE=DE.construct;RE||(RE=function(t,e,n){return t.apply(e,n)}),ME||(ME=function(t){return t}),HE||(HE=function(t){return t}),VE||(VE=function(t,e){return SE(t,UE(e))});var GE=tS(Array.prototype.forEach),jE=tS(Array.prototype.pop),WE=tS(Array.prototype.push),KE=tS(String.prototype.toLowerCase),XE=tS(String.prototype.toString),zE=tS(String.prototype.match),ZE=tS(String.prototype.replace),YE=tS(String.prototype.indexOf),qE=tS(String.prototype.trim),JE=tS(RegExp.prototype.test),$E=function(t){return function(){for(var e=arguments.length,n=new Array(e),A=0;A<e;A++)n[A]=arguments[A];return VE(t,n)}}(TypeError);function tS(t){return function(e){for(var n=arguments.length,A=new Array(n>1?n-1:0),r=1;r<n;r++)A[r-1]=arguments[r];return RE(t,e,A)}}function eS(t,e,n){var A;n=null!==(A=n)&&void 0!==A?A:KE,kE&&kE(t,null);for(var r=e.length;r--;){var i=e[r];if('string'==typeof i){var o=n(i);o!==i&&(_E(e)||(e[r]=o),i=o)}t[i]=!0}return t}function nS(t){var e,n=TE(null);for(e in t)!0===RE(NE,t,[e])&&(n[e]=t[e]);return n}function AS(t,e){for(;null!==t;){var n=OE(t,e);if(n){if(n.get)return tS(n.get);if('function'==typeof n.value)return tS(n.value)}t=PE(t)}return function(t){return null}}var rS=ME(['a','abbr','acronym','address','area','article','aside','audio','b','bdi','bdo','big','blink','blockquote','body','br','button','canvas','caption','center','cite','code','col','colgroup','content','data','datalist','dd','decorator','del','details','dfn','dialog','dir','div','dl','dt','element','em','fieldset','figcaption','figure','font','footer','form','h1','h2','h3','h4','h5','h6','head','header','hgroup','hr','html','i','img','input','ins','kbd','label','legend','li','main','map','mark','marquee','menu','menuitem','meter','nav','nobr','ol','optgroup','option','output','p','picture','pre','progress','q','rp','rt','ruby','s','samp','section','select','shadow','small','source','spacer','span','strike','strong','style','sub','summary','sup','table','tbody','td','template','textarea','tfoot','th','thead','time','tr','track','tt','u','ul','var','video','wbr']),iS=ME(['svg','a','altglyph','altglyphdef','altglyphitem','animatecolor','animatemotion','animatetransform','circle','clippath','defs','desc','ellipse','filter','font','g','glyph','glyphref','hkern','image','line','lineargradient','marker','mask','metadata','mpath','path','pattern','polygon','polyline','radialgradient','rect','stop','style','switch','symbol','text','textpath','title','tref','tspan','view','vkern']),oS=ME(['feBlend','feColorMatrix','feComponentTransfer','feComposite','feConvolveMatrix','feDiffuseLighting','feDisplacementMap','feDistantLight','feFlood','feFuncA','feFuncB','feFuncG','feFuncR','feGaussianBlur','feImage','feMerge','feMergeNode','feMorphology','feOffset','fePointLight','feSpecularLighting','feSpotLight','feTile','feTurbulence']),sS=ME(['animate','color-profile','cursor','discard','fedropshadow','font-face','font-face-format','font-face-name','font-face-src','font-face-uri','foreignobject','hatch','hatchpath','mesh','meshgradient','meshpatch','meshrow','missing-glyph','script','set','solidcolor','unknown','use']),aS=ME(['math','menclose','merror','mfenced','mfrac','mglyph','mi','mlabeledtr','mmultiscripts','mn','mo','mover','mpadded','mphantom','mroot','mrow','ms','mspace','msqrt','mstyle','msub','msup','msubsup','mtable','mtd','mtext','mtr','munder','munderover']),cS=ME(['maction','maligngroup','malignmark','mlongdiv','mscarries','mscarry','msgroup','mstack','msline','msrow','semantics','annotation','annotation-xml','mprescripts','none']),lS=ME(['#text']),uS=ME(['accept','action','align','alt','autocapitalize','autocomplete','autopictureinpicture','autoplay','background','bgcolor','border','capture','cellpadding','cellspacing','checked','cite','class','clear','color','cols','colspan','controls','controlslist','coords','crossorigin','datetime','decoding','default','dir','disabled','disablepictureinpicture','disableremoteplayback','download','draggable','enctype','enterkeyhint','face','for','headers','height','hidden','high','href','hreflang','id','inputmode','integrity','ismap','kind','label','lang','list','loading','loop','low','max','maxlength','media','method','min','minlength','multiple','muted','name','nonce','noshade','novalidate','nowrap','open','optimum','pattern','placeholder','playsinline','poster','preload','pubdate','radiogroup','readonly','rel','required','rev','reversed','role','rows','rowspan','spellcheck','scope','selected','shape','size','sizes','span','srclang','start','src','srcset','step','style','summary','tabindex','title','translate','type','usemap','valign','value','width','xmlns','slot']),hS=ME(['accent-height','accumulate','additive','alignment-baseline','ascent','attributename','attributetype','azimuth','basefrequency','baseline-shift','begin','bias','by','class','clip','clippathunits','clip-path','clip-rule','color','color-interpolation','color-interpolation-filters','color-profile','color-rendering','cx','cy','d','dx','dy','diffuseconstant','direction','display','divisor','dur','edgemode','elevation','end','fill','fill-opacity','fill-rule','filter','filterunits','flood-color','flood-opacity','font-family','font-size','font-size-adjust','font-stretch','font-style','font-variant','font-weight','fx','fy','g1','g2','glyph-name','glyphref','gradientunits','gradienttransform','height','href','id','image-rendering','in','in2','k','k1','k2','k3','k4','kerning','keypoints','keysplines','keytimes','lang','lengthadjust','letter-spacing','kernelmatrix','kernelunitlength','lighting-color','local','marker-end','marker-mid','marker-start','markerheight','markerunits','markerwidth','maskcontentunits','maskunits','max','mask','media','method','mode','min','name','numoctaves','offset','operator','opacity','order','orient','orientation','origin','overflow','paint-order','path','pathlength','patterncontentunits','patterntransform','patternunits','points','preservealpha','preserveaspectratio','primitiveunits','r','rx','ry','radius','refx','refy','repeatcount','repeatdur','restart','result','rotate','scale','seed','shape-rendering','specularconstant','specularexponent','spreadmethod','startoffset','stddeviation','stitchtiles','stop-color','stop-opacity','stroke-dasharray','stroke-dashoffset','stroke-linecap','stroke-linejoin','stroke-miterlimit','stroke-opacity','stroke','stroke-width','style','surfacescale','systemlanguage','tabindex','targetx','targety','transform','transform-origin','text-anchor','text-decoration','text-rendering','textlength','type','u1','u2','unicode','values','viewbox','visibility','version','vert-adv-y','vert-origin-x','vert-origin-y','width','word-spacing','wrap','writing-mode','xchannelselector','ychannelselector','x','x1','x2','xmlns','y','y1','y2','z','zoomandpan']),dS=ME(['accent','accentunder','align','bevelled','close','columnsalign','columnlines','columnspan','denomalign','depth','dir','display','displaystyle','encoding','fence','frame','height','href','id','largeop','length','linethickness','lspace','lquote','mathbackground','mathcolor','mathsize','mathvariant','maxsize','minsize','movablelimits','notation','numalign','open','rowalign','rowlines','rowspacing','rowspan','rspace','rquote','scriptlevel','scriptminsize','scriptsizemultiplier','selection','separator','separators','stretchy','subscriptshift','supscriptshift','symmetric','voffset','width','xmlns']),fS=ME(['xlink:href','xml:id','xlink:title','xml:space','xmlns:xlink']),gS=HE(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pS=HE(/<%[\w\W]*|[\w\W]*%>/gm),mS=HE(/\${[\w\W]*}/gm),bS=HE(/^data-[\-\w.\u00B7-\uFFFF]/),vS=HE(/^aria-[\-\w]+$/),yS=HE(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wS=HE(/^(?:\w+script|data):/i),BS=HE(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),CS=HE(/^html$/i),xS=function(){return'undefined'==typeof window?null:window};var FS=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xS(),n=function(e){return t(e)};if(n.version='2.4.7',n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var A=e.document,r=e.document,i=e.DocumentFragment,o=e.HTMLTemplateElement,s=e.Node,a=e.Element,c=e.NodeFilter,l=e.NamedNodeMap,u=void 0===l?e.NamedNodeMap||e.MozNamedAttrMap:l,h=e.HTMLFormElement,d=e.DOMParser,f=e.trustedTypes,g=a.prototype,p=AS(g,'cloneNode'),m=AS(g,'nextSibling'),b=AS(g,'childNodes'),v=AS(g,'parentNode');if('function'==typeof o){var y=r.createElement('template');y.content&&y.content.ownerDocument&&(r=y.content.ownerDocument)}var w=function(t,e){if('object'!==QE(t)||'function'!=typeof t.createPolicy)return null;var n=null,A='data-tt-policy-suffix';e.currentScript&&e.currentScript.hasAttribute(A)&&(n=e.currentScript.getAttribute(A));var r='dompurify'+(n?'#'+n:'');try{return t.createPolicy(r,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return null}}(f,A),B=w?w.createHTML(''):'',C=r,x=C.implementation,F=C.createNodeIterator,I=C.createDocumentFragment,Q=C.getElementsByTagName,E=A.importNode,S={};try{S=nS(r).documentMode?r.documentMode:{}}catch(t){}var U={};n.isSupported='function'==typeof v&&x&&void 0!==x.createHTMLDocument&&9!==S;var L,N,k=gS,_=pS,P=mS,O=bS,M=vS,H=wS,T=BS,D=yS,R=null,V=eS({},[].concat(UE(rS),UE(iS),UE(oS),UE(aS),UE(lS))),G=null,j=eS({},[].concat(UE(uS),UE(hS),UE(dS),UE(fS))),W=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,X=null,z=!0,Z=!0,Y=!1,q=!0,J=!1,$=!1,tt=!1,et=!1,nt=!1,At=!1,rt=!1,it=!0,ot=!1,st=!0,at=!1,ct={},lt=null,ut=eS({},['annotation-xml','audio','colgroup','desc','foreignobject','head','iframe','math','mi','mn','mo','ms','mtext','noembed','noframes','noscript','plaintext','script','style','svg','template','thead','title','video','xmp']),ht=null,dt=eS({},['audio','video','img','source','image','track']),ft=null,gt=eS({},['alt','class','for','id','label','name','pattern','placeholder','role','summary','title','value','style','xmlns']),pt='http://www.w3.org/1998/Math/MathML',mt='http://www.w3.org/2000/svg',bt='http://www.w3.org/1999/xhtml',vt=bt,yt=!1,wt=null,Bt=eS({},[pt,mt,bt],XE),Ct=['application/xhtml+xml','text/html'],xt=null,Ft=r.createElement('form'),It=function(t){return t instanceof RegExp||t instanceof Function},Qt=function(t){xt&&xt===t||(t&&'object'===QE(t)||(t={}),t=nS(t),L=L=-1===Ct.indexOf(t.PARSER_MEDIA_TYPE)?'text/html':t.PARSER_MEDIA_TYPE,N='application/xhtml+xml'===L?XE:KE,R='ALLOWED_TAGS'in t?eS({},t.ALLOWED_TAGS,N):V,G='ALLOWED_ATTR'in t?eS({},t.ALLOWED_ATTR,N):j,wt='ALLOWED_NAMESPACES'in t?eS({},t.ALLOWED_NAMESPACES,XE):Bt,ft='ADD_URI_SAFE_ATTR'in t?eS(nS(gt),t.ADD_URI_SAFE_ATTR,N):gt,ht='ADD_DATA_URI_TAGS'in t?eS(nS(dt),t.ADD_DATA_URI_TAGS,N):dt,lt='FORBID_CONTENTS'in t?eS({},t.FORBID_CONTENTS,N):ut,K='FORBID_TAGS'in t?eS({},t.FORBID_TAGS,N):{},X='FORBID_ATTR'in t?eS({},t.FORBID_ATTR,N):{},ct='USE_PROFILES'in t&&t.USE_PROFILES,z=!1!==t.ALLOW_ARIA_ATTR,Z=!1!==t.ALLOW_DATA_ATTR,Y=t.ALLOW_UNKNOWN_PROTOCOLS||!1,q=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,J=t.SAFE_FOR_TEMPLATES||!1,$=t.WHOLE_DOCUMENT||!1,nt=t.RETURN_DOM||!1,At=t.RETURN_DOM_FRAGMENT||!1,rt=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,it=!1!==t.SANITIZE_DOM,ot=t.SANITIZE_NAMED_PROPS||!1,st=!1!==t.KEEP_CONTENT,at=t.IN_PLACE||!1,D=t.ALLOWED_URI_REGEXP||D,vt=t.NAMESPACE||bt,W=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&It(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&It(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&'boolean'==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&(Z=!1),At&&(nt=!0),ct&&(R=eS({},UE(lS)),G=[],!0===ct.html&&(eS(R,rS),eS(G,uS)),!0===ct.svg&&(eS(R,iS),eS(G,hS),eS(G,fS)),!0===ct.svgFilters&&(eS(R,oS),eS(G,hS),eS(G,fS)),!0===ct.mathMl&&(eS(R,aS),eS(G,dS),eS(G,fS))),t.ADD_TAGS&&(R===V&&(R=nS(R)),eS(R,t.ADD_TAGS,N)),t.ADD_ATTR&&(G===j&&(G=nS(G)),eS(G,t.ADD_ATTR,N)),t.ADD_URI_SAFE_ATTR&&eS(ft,t.ADD_URI_SAFE_ATTR,N),t.FORBID_CONTENTS&&(lt===ut&&(lt=nS(lt)),eS(lt,t.FORBID_CONTENTS,N)),st&&(R['#text']=!0),$&&eS(R,['html','head','body']),R.table&&(eS(R,['tbody']),delete K.tbody),ME&&ME(t),xt=t)},Et=eS({},['mi','mo','mn','ms','mtext']),St=eS({},['foreignobject','desc','title','annotation-xml']),Ut=eS({},['title','style','font','a','script']),Lt=eS({},iS);eS(Lt,oS),eS(Lt,sS);var Nt=eS({},aS);eS(Nt,cS);var kt=function(t){WE(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=B}catch(e){t.remove()}}},_t=function(t,e){try{WE(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){WE(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),'is'===t&&!G[t])if(nt||At)try{kt(e)}catch(t){}else try{e.setAttribute(t,'')}catch(t){}},Pt=function(t){var e,n;if(et)t='<remove></remove>'+t;else{var A=zE(t,/^[\r\n\t ]+/);n=A&&A[0]}'application/xhtml+xml'===L&&vt===bt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+'</body></html>');var i=w?w.createHTML(t):t;if(vt===bt)try{e=(new d).parseFromString(i,L)}catch(t){}if(!e||!e.documentElement){e=x.createDocument(vt,'template',null);try{e.documentElement.innerHTML=yt?B:i}catch(t){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),vt===bt?Q.call(e,$?'html':'body')[0]:$?e.documentElement:o},Ot=function(t){return F.call(t.ownerDocument||t,t,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Mt=function(t){return'object'===QE(s)?t instanceof s:t&&'object'===QE(t)&&'number'==typeof t.nodeType&&'string'==typeof t.nodeName},Ht=function(t,e,A){U[t]&&GE(U[t],(function(t){t.call(n,e,A,xt)}))},Tt=function(t){var e,A;if(Ht('beforeSanitizeElements',t,null),(A=t)instanceof h&&('string'!=typeof A.nodeName||'string'!=typeof A.textContent||'function'!=typeof A.removeChild||!(A.attributes instanceof u)||'function'!=typeof A.removeAttribute||'function'!=typeof A.setAttribute||'string'!=typeof A.namespaceURI||'function'!=typeof A.insertBefore||'function'!=typeof A.hasChildNodes))return kt(t),!0;if(JE(/[\u0080-\uFFFF]/,t.nodeName))return kt(t),!0;var r=N(t.nodeName);if(Ht('uponSanitizeElement',t,{tagName:r,allowedTags:R}),t.hasChildNodes()&&!Mt(t.firstElementChild)&&(!Mt(t.content)||!Mt(t.content.firstElementChild))&&JE(/<[/\w]/g,t.innerHTML)&&JE(/<[/\w]/g,t.textContent))return kt(t),!0;if('select'===r&&JE(/<template/i,t.innerHTML))return kt(t),!0;if(!R[r]||K[r]){if(!K[r]&&Rt(r)){if(W.tagNameCheck instanceof RegExp&&JE(W.tagNameCheck,r))return!1;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(r))return!1}if(st&&!lt[r]){var i=v(t)||t.parentNode,o=b(t)||t.childNodes;if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(p(o[s],!0),m(t))}return kt(t),!0}return t instanceof a&&!function(t){var e=v(t);e&&e.tagName||(e={namespaceURI:vt,tagName:'template'});var n=KE(t.tagName),A=KE(e.tagName);return!!wt[t.namespaceURI]&&(t.namespaceURI===mt?e.namespaceURI===bt?'svg'===n:e.namespaceURI===pt?'svg'===n&&('annotation-xml'===A||Et[A]):Boolean(Lt[n]):t.namespaceURI===pt?e.namespaceURI===bt?'math'===n:e.namespaceURI===mt?'math'===n&&St[A]:Boolean(Nt[n]):t.namespaceURI===bt?!(e.namespaceURI===mt&&!St[A])&&!(e.namespaceURI===pt&&!Et[A])&&!Nt[n]&&(Ut[n]||!Lt[n]):!('application/xhtml+xml'!==L||!wt[t.namespaceURI]))}(t)?(kt(t),!0):'noscript'!==r&&'noembed'!==r&&'noframes'!==r||!JE(/<\/no(script|embed|frames)/i,t.innerHTML)?(J&&3===t.nodeType&&(e=t.textContent,e=ZE(e,k,' '),e=ZE(e,_,' '),e=ZE(e,P,' '),t.textContent!==e&&(WE(n.removed,{element:t.cloneNode()}),t.textContent=e)),Ht('afterSanitizeElements',t,null),!1):(kt(t),!0)},Dt=function(t,e,n){if(it&&('id'===e||'name'===e)&&(n in r||n in Ft))return!1;if(Z&&!X[e]&&JE(O,e));else if(z&&JE(M,e));else if(!G[e]||X[e]){if(!(Rt(t)&&(W.tagNameCheck instanceof RegExp&&JE(W.tagNameCheck,t)||W.tagNameCheck instanceof Function&&W.tagNameCheck(t))&&(W.attributeNameCheck instanceof RegExp&&JE(W.attributeNameCheck,e)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(e))||'is'===e&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&JE(W.tagNameCheck,n)||W.tagNameCheck instanceof Function&&W.tagNameCheck(n))))return!1}else if(ft[e]);else if(JE(D,ZE(n,T,'')));else if('src'!==e&&'xlink:href'!==e&&'href'!==e||'script'===t||0!==YE(n,'data:')||!ht[t]){if(Y&&!JE(H,ZE(n,T,'')));else if(n)return!1}else;return!0},Rt=function(t){return t.indexOf('-')>0},Vt=function(t){var e,A,r,i;Ht('beforeSanitizeAttributes',t,null);var o=t.attributes;if(o){var s={attrName:'',attrValue:'',keepAttr:!0,allowedAttributes:G};for(i=o.length;i--;){var a=e=o[i],c=a.name,l=a.namespaceURI;if(A='value'===c?e.value:qE(e.value),r=N(c),s.attrName=r,s.attrValue=A,s.keepAttr=!0,s.forceKeepAttr=void 0,Ht('uponSanitizeAttribute',t,s),A=s.attrValue,!s.forceKeepAttr&&(_t(c,t),s.keepAttr))if(q||!JE(/\/>/i,A)){J&&(A=ZE(A,k,' '),A=ZE(A,_,' '),A=ZE(A,P,' '));var u=N(t.nodeName);if(Dt(u,r,A)){if(!ot||'id'!==r&&'name'!==r||(_t(c,t),A='user-content-'+A),w&&'object'===QE(f)&&'function'==typeof f.getAttributeType)if(l);else switch(f.getAttributeType(u,r)){case'TrustedHTML':A=w.createHTML(A);break;case'TrustedScriptURL':A=w.createScriptURL(A)}try{l?t.setAttributeNS(l,c,A):t.setAttribute(c,A),jE(n.removed)}catch(t){}}}else _t(c,t)}Ht('afterSanitizeAttributes',t,null)}},Gt=function t(e){var n,A=Ot(e);for(Ht('beforeSanitizeShadowDOM',e,null);n=A.nextNode();)Ht('uponSanitizeShadowNode',n,null),Tt(n)||(n.content instanceof i&&t(n.content),Vt(n));Ht('afterSanitizeShadowDOM',e,null)};return n.sanitize=function(t){var r,o,a,c,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((yt=!t)&&(t='\x3c!--\x3e'),'string'!=typeof t&&!Mt(t)){if('function'!=typeof t.toString)throw $E('toString is not a function');if('string'!=typeof(t=t.toString()))throw $E('dirty is not a string, aborting')}if(!n.isSupported){if('object'===QE(e.toStaticHTML)||'function'==typeof e.toStaticHTML){if('string'==typeof t)return e.toStaticHTML(t);if(Mt(t))return e.toStaticHTML(t.outerHTML)}return t}if(tt||Qt(u),n.removed=[],'string'==typeof t&&(at=!1),at){if(t.nodeName){var h=N(t.nodeName);if(!R[h]||K[h])throw $E('root node is forbidden and cannot be sanitized in-place')}}else if(t instanceof s)1===(o=(r=Pt('\x3c!----\x3e')).ownerDocument.importNode(t,!0)).nodeType&&'BODY'===o.nodeName||'HTML'===o.nodeName?r=o:r.appendChild(o);else{if(!nt&&!J&&!$&&-1===t.indexOf('<'))return w&&rt?w.createHTML(t):t;if(!(r=Pt(t)))return nt?null:rt?B:''}r&&et&&kt(r.firstChild);for(var d=Ot(at?t:r);a=d.nextNode();)3===a.nodeType&&a===c||Tt(a)||(a.content instanceof i&&Gt(a.content),Vt(a),c=a);if(c=null,at)return t;if(nt){if(At)for(l=I.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(G.shadowroot||G.shadowrootmod)&&(l=E.call(A,l,!0)),l}var f=$?r.outerHTML:r.innerHTML;return $&&R['!doctype']&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&JE(CS,r.ownerDocument.doctype.name)&&(f='<!DOCTYPE '+r.ownerDocument.doctype.name+'>\n'+f),J&&(f=ZE(f,k,' '),f=ZE(f,_,' '),f=ZE(f,P,' ')),w&&rt?w.createHTML(f):f},n.setConfig=function(t){Qt(t),tt=!0},n.clearConfig=function(){xt=null,tt=!1},n.isValidAttribute=function(t,e,n){xt||Qt({});var A=N(t),r=N(e);return Dt(A,r,n)},n.addHook=function(t,e){'function'==typeof e&&(U[t]=U[t]||[],WE(U[t],e))},n.removeHook=function(t){if(U[t])return jE(U[t])},n.removeHooks=function(t){U[t]&&(U[t]=[])},n.removeAllHooks=function(){U={}},n}(),IS=Object.freeze({__proto__:null,default:FS}),QS=function(t){return t&&t.Math===Math&&t},ES=QS('object'==typeof globalThis&&globalThis)||QS('object'==typeof window&&window)||QS('object'==typeof self&&self)||QS('object'==typeof yl&&yl)||function(){return this}()||yl||Function('return this')(),SS={},US=function(t){try{return!!t()}catch(t){return!0}},LS=!US((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),NS=!US((function(){var t=function(){}.bind();return'function'!=typeof t||t.hasOwnProperty('prototype')})),kS=NS,_S=Function.prototype.call,PS=kS?_S.bind(_S):function(){return _S.apply(_S,arguments)},OS={},MS={}.propertyIsEnumerable,HS=Object.getOwnPropertyDescriptor,TS=HS&&!MS.call({1:2},1);OS.f=TS?function(t){var e=HS(this,t);return!!e&&e.enumerable}:MS;var DS,RS,VS=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},GS=NS,jS=Function.prototype,WS=jS.call,KS=GS&&jS.bind.bind(WS,WS),XS=GS?KS:function(t){return function(){return WS.apply(t,arguments)}},zS=XS,ZS=zS({}.toString),YS=zS(''.slice),qS=function(t){return YS(ZS(t),8,-1)},JS=US,$S=qS,tU=Object,eU=XS(''.split),nU=JS((function(){return!tU('z').propertyIsEnumerable(0)}))?function(t){return'String'===$S(t)?eU(t,''):tU(t)}:tU,AU=function(t){return null==t},rU=AU,iU=TypeError,oU=function(t){if(rU(t))throw new iU('Can\'t call method on '+t);return t},sU=nU,aU=oU,cU=function(t){return sU(aU(t))},lU='object'==typeof document&&document.all,uU={all:lU,IS_HTMLDDA:void 0===lU&&void 0!==lU},hU=uU.all,dU=uU.IS_HTMLDDA?function(t){return'function'==typeof t||t===hU}:function(t){return'function'==typeof t},fU=dU,gU=uU.all,pU=uU.IS_HTMLDDA?function(t){return'object'==typeof t?null!==t:fU(t)||t===gU}:function(t){return'object'==typeof t?null!==t:fU(t)},mU=ES,bU=dU,vU=function(t,e){return arguments.length<2?(n=mU[t],bU(n)?n:void 0):mU[t]&&mU[t][e];var n},yU=XS({}.isPrototypeOf),wU='undefined'!=typeof navigator&&String(navigator.userAgent)||'',BU=ES,CU=wU,xU=BU.process,FU=BU.Deno,IU=xU&&xU.versions||FU&&FU.version,QU=IU&&IU.v8;QU&&(RS=(DS=QU.split('.'))[0]>0&&DS[0]<4?1:+(DS[0]+DS[1])),!RS&&CU&&(!(DS=CU.match(/Edge\/(\d+)/))||DS[1]>=74)&&(DS=CU.match(/Chrome\/(\d+)/))&&(RS=+DS[1]);var EU=RS,SU=EU,UU=US,LU=ES.String,NU=!!Object.getOwnPropertySymbols&&!UU((function(){var t=Symbol('symbol detection');return!LU(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&SU&&SU<41})),kU=NU&&!Symbol.sham&&'symbol'==typeof Symbol.iterator,_U=vU,PU=dU,OU=yU,MU=Object,HU=kU?function(t){return'symbol'==typeof t}:function(t){var e=_U('Symbol');return PU(e)&&OU(e.prototype,MU(t))},TU=String,DU=function(t){try{return TU(t)}catch(t){return'Object'}},RU=dU,VU=DU,GU=TypeError,jU=function(t){if(RU(t))return t;throw new GU(VU(t)+' is not a function')},WU=jU,KU=AU,XU=function(t,e){var n=t[e];return KU(n)?void 0:WU(n)},zU=PS,ZU=dU,YU=pU,qU=TypeError,JU={exports:{}},$U=ES,tL=Object.defineProperty,eL=function(t,e){try{tL($U,t,{value:e,configurable:!0,writable:!0})}catch(n){$U[t]=e}return e},nL=eL,AL='__core-js_shared__',rL=ES[AL]||nL(AL,{}),iL=rL;(JU.exports=function(t,e){return iL[t]||(iL[t]=void 0!==e?e:{})})('versions',[]).push({version:'3.33.2',mode:'global',copyright:'© 2014-2023 Denis Pushkarev (zloirock.ru)',license:'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE',source:'https://github.com/zloirock/core-js'});var oL=JU.exports,sL=oU,aL=Object,cL=function(t){return aL(sL(t))},lL=cL,uL=XS({}.hasOwnProperty),hL=Object.hasOwn||function(t,e){return uL(lL(t),e)},dL=XS,fL=0,gL=Math.random(),pL=dL(1..toString),mL=function(t){return'Symbol('+(void 0===t?'':t)+')_'+pL(++fL+gL,36)},bL=oL,vL=hL,yL=mL,wL=NU,BL=kU,CL=ES.Symbol,xL=bL('wks'),FL=BL?CL.for||CL:CL&&CL.withoutSetter||yL,IL=function(t){return vL(xL,t)||(xL[t]=wL&&vL(CL,t)?CL[t]:FL('Symbol.'+t)),xL[t]},QL=PS,EL=pU,SL=HU,UL=XU,LL=function(t,e){var n,A;if('string'===e&&ZU(n=t.toString)&&!YU(A=zU(n,t)))return A;if(ZU(n=t.valueOf)&&!YU(A=zU(n,t)))return A;if('string'!==e&&ZU(n=t.toString)&&!YU(A=zU(n,t)))return A;throw new qU('Can\'t convert object to primitive value')},NL=TypeError,kL=IL('toPrimitive'),_L=function(t,e){if(!EL(t)||SL(t))return t;var n,A=UL(t,kL);if(A){if(void 0===e&&(e='default'),n=QL(A,t,e),!EL(n)||SL(n))return n;throw new NL('Can\'t convert object to primitive value')}return void 0===e&&(e='number'),LL(t,e)},PL=HU,OL=function(t){var e=_L(t,'string');return PL(e)?e:e+''},ML=pU,HL=ES.document,TL=ML(HL)&&ML(HL.createElement),DL=function(t){return TL?HL.createElement(t):{}},RL=DL,VL=!LS&&!US((function(){return 7!==Object.defineProperty(RL('div'),'a',{get:function(){return 7}}).a})),GL=LS,jL=PS,WL=OS,KL=VS,XL=cU,zL=OL,ZL=hL,YL=VL,qL=Object.getOwnPropertyDescriptor;SS.f=GL?qL:function(t,e){if(t=XL(t),e=zL(e),YL)try{return qL(t,e)}catch(t){}if(ZL(t,e))return KL(!jL(WL.f,t,e),t[e])};var JL={},$L=LS&&US((function(){return 42!==Object.defineProperty((function(){}),'prototype',{value:42,writable:!1}).prototype})),tN=pU,eN=String,nN=TypeError,AN=function(t){if(tN(t))return t;throw new nN(eN(t)+' is not an object')},rN=LS,iN=VL,oN=$L,sN=AN,aN=OL,cN=TypeError,lN=Object.defineProperty,uN=Object.getOwnPropertyDescriptor,hN='enumerable',dN='configurable',fN='writable';JL.f=rN?oN?function(t,e,n){if(sN(t),e=aN(e),sN(n),'function'==typeof t&&'prototype'===e&&'value'in n&&fN in n&&!n[fN]){var A=uN(t,e);A&&A[fN]&&(t[e]=n.value,n={configurable:dN in n?n[dN]:A[dN],enumerable:hN in n?n[hN]:A[hN],writable:!1})}return lN(t,e,n)}:lN:function(t,e,n){if(sN(t),e=aN(e),sN(n),iN)try{return lN(t,e,n)}catch(t){}if('get'in n||'set'in n)throw new cN('Accessors not supported');return'value'in n&&(t[e]=n.value),t};var gN=JL,pN=VS,mN=LS?function(t,e,n){return gN.f(t,e,pN(1,n))}:function(t,e,n){return t[e]=n,t},bN={exports:{}},vN=LS,yN=hL,wN=Function.prototype,BN=vN&&Object.getOwnPropertyDescriptor,CN=yN(wN,'name'),xN={EXISTS:CN,PROPER:CN&&'something'===function(){}.name,CONFIGURABLE:CN&&(!vN||vN&&BN(wN,'name').configurable)},FN=dU,IN=rL,QN=XS(Function.toString);FN(IN.inspectSource)||(IN.inspectSource=function(t){return QN(t)});var EN,SN,UN,LN=IN.inspectSource,NN=dU,kN=ES.WeakMap,_N=NN(kN)&&/native code/.test(String(kN)),PN=mL,ON=oL('keys'),MN=function(t){return ON[t]||(ON[t]=PN(t))},HN={},TN=_N,DN=ES,RN=pU,VN=mN,GN=hL,jN=rL,WN=MN,KN=HN,XN='Object already initialized',zN=DN.TypeError,ZN=DN.WeakMap;if(TN||jN.state){var YN=jN.state||(jN.state=new ZN);YN.get=YN.get,YN.has=YN.has,YN.set=YN.set,EN=function(t,e){if(YN.has(t))throw new zN(XN);return e.facade=t,YN.set(t,e),e},SN=function(t){return YN.get(t)||{}},UN=function(t){return YN.has(t)}}else{var qN=WN('state');KN[qN]=!0,EN=function(t,e){if(GN(t,qN))throw new zN(XN);return e.facade=t,VN(t,qN,e),e},SN=function(t){return GN(t,qN)?t[qN]:{}},UN=function(t){return GN(t,qN)}}var JN={set:EN,get:SN,has:UN,enforce:function(t){return UN(t)?SN(t):EN(t,{})},getterFor:function(t){return function(e){var n;if(!RN(e)||(n=SN(e)).type!==t)throw new zN('Incompatible receiver, '+t+' required');return n}}},$N=XS,tk=US,ek=dU,nk=hL,Ak=LS,rk=xN.CONFIGURABLE,ik=LN,ok=JN.enforce,sk=JN.get,ak=String,ck=Object.defineProperty,lk=$N(''.slice),uk=$N(''.replace),hk=$N([].join),dk=Ak&&!tk((function(){return 8!==ck((function(){}),'length',{value:8}).length})),fk=String(String).split('String'),gk=bN.exports=function(t,e,n){'Symbol('===lk(ak(e),0,7)&&(e='['+uk(ak(e),/^Symbol\(([^)]*)\)/,'$1')+']'),n&&n.getter&&(e='get '+e),n&&n.setter&&(e='set '+e),(!nk(t,'name')||rk&&t.name!==e)&&(Ak?ck(t,'name',{value:e,configurable:!0}):t.name=e),dk&&n&&nk(n,'arity')&&t.length!==n.arity&&ck(t,'length',{value:n.arity});try{n&&nk(n,'constructor')&&n.constructor?Ak&&ck(t,'prototype',{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var A=ok(t);return nk(A,'source')||(A.source=hk(fk,'string'==typeof e?e:'')),t};Function.prototype.toString=gk((function(){return ek(this)&&sk(this).source||ik(this)}),'toString');var pk=bN.exports,mk=dU,bk=JL,vk=pk,yk=eL,wk=function(t,e,n,A){A||(A={});var r=A.enumerable,i=void 0!==A.name?A.name:e;if(mk(n)&&vk(n,i,A),A.global)r?t[e]=n:yk(e,n);else{try{A.unsafe?t[e]&&(r=!0):delete t[e]}catch(t){}r?t[e]=n:bk.f(t,e,{value:n,enumerable:!1,configurable:!A.nonConfigurable,writable:!A.nonWritable})}return t},Bk={},Ck=Math.ceil,xk=Math.floor,Fk=Math.trunc||function(t){var e=+t;return(e>0?xk:Ck)(e)},Ik=Fk,Qk=function(t){var e=+t;return e!=e||0===e?0:Ik(e)},Ek=Qk,Sk=Math.max,Uk=Math.min,Lk=function(t,e){var n=Ek(t);return n<0?Sk(n+e,0):Uk(n,e)},Nk=Qk,kk=Math.min,_k=function(t){return t>0?kk(Nk(t),9007199254740991):0},Pk=_k,Ok=function(t){return Pk(t.length)},Mk=cU,Hk=Lk,Tk=Ok,Dk=function(t){return function(e,n,A){var r,i=Mk(e),o=Tk(i),s=Hk(A,o);if(t&&n!=n){for(;o>s;)if((r=i[s++])!=r)return!0}else for(;o>s;s++)if((t||s in i)&&i[s]===n)return t||s||0;return!t&&-1}},Rk={includes:Dk(!0),indexOf:Dk(!1)},Vk=hL,Gk=cU,jk=Rk.indexOf,Wk=HN,Kk=XS([].push),Xk=function(t,e){var n,A=Gk(t),r=0,i=[];for(n in A)!Vk(Wk,n)&&Vk(A,n)&&Kk(i,n);for(;e.length>r;)Vk(A,n=e[r++])&&(~jk(i,n)||Kk(i,n));return i},zk=['constructor','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','valueOf'],Zk=Xk,Yk=zk.concat('length','prototype');Bk.f=Object.getOwnPropertyNames||function(t){return Zk(t,Yk)};var qk={};qk.f=Object.getOwnPropertySymbols;var Jk=vU,$k=Bk,t_=qk,e_=AN,n_=XS([].concat),A_=Jk('Reflect','ownKeys')||function(t){var e=$k.f(e_(t)),n=t_.f;return n?n_(e,n(t)):e},r_=hL,i_=A_,o_=SS,s_=JL,a_=US,c_=dU,l_=/#|\.prototype\./,u_=function(t,e){var n=d_[h_(t)];return n===g_||n!==f_&&(c_(e)?a_(e):!!e)},h_=u_.normalize=function(t){return String(t).replace(l_,'.').toLowerCase()},d_=u_.data={},f_=u_.NATIVE='N',g_=u_.POLYFILL='P',p_=u_,m_=ES,b_=SS.f,v_=mN,y_=wk,w_=eL,B_=function(t,e,n){for(var A=i_(e),r=s_.f,i=o_.f,o=0;o<A.length;o++){var s=A[o];r_(t,s)||n&&r_(n,s)||r(t,s,i(e,s))}},C_=p_,x_=function(t,e){var n,A,r,i,o,s=t.target,a=t.global,c=t.stat;if(n=a?m_:c?m_[s]||w_(s,{}):(m_[s]||{}).prototype)for(A in e){if(i=e[A],r=t.dontCallGetSet?(o=b_(n,A))&&o.value:n[A],!C_(a?A:s+(c?'.':'#')+A,t.forced)&&void 0!==r){if(typeof i==typeof r)continue;B_(i,r)}(t.sham||r&&r.sham)&&v_(i,'sham',!0),y_(n,A,i,t)}},F_='process'===qS(ES.process),I_=XS,Q_=jU,E_=dU,S_=String,U_=TypeError,L_=function(t,e,n){try{return I_(Q_(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},N_=AN,k_=function(t){if('object'==typeof t||E_(t))return t;throw new U_('Can\'t set '+S_(t)+' as a prototype')},__=Object.setPrototypeOf||('__proto__'in{}?function(){var t,e=!1,n={};try{(t=L_(Object.prototype,'__proto__','set'))(n,[]),e=n instanceof Array}catch(t){}return function(n,A){return N_(n),k_(A),e?t(n,A):n.__proto__=A,n}}():void 0),P_=JL.f,O_=hL,M_=IL('toStringTag'),H_=function(t,e,n){t&&!n&&(t=t.prototype),t&&!O_(t,M_)&&P_(t,M_,{configurable:!0,value:e})},T_=pk,D_=JL,R_=vU,V_=function(t,e,n){return n.get&&T_(n.get,e,{getter:!0}),n.set&&T_(n.set,e,{setter:!0}),D_.f(t,e,n)},G_=LS,j_=IL('species'),W_=yU,K_=TypeError,X_={};X_[IL('toStringTag')]='z';var z_='[object z]'===String(X_),Z_=dU,Y_=qS,q_=IL('toStringTag'),J_=Object,$_='Arguments'===Y_(function(){return arguments}()),tP=z_?Y_:function(t){var e,n,A;return void 0===t?'Undefined':null===t?'Null':'string'==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=J_(t),q_))?n:$_?Y_(e):'Object'===(A=Y_(e))&&Z_(e.callee)?'Arguments':A},eP=XS,nP=US,AP=dU,rP=tP,iP=LN,oP=function(){},sP=[],aP=vU('Reflect','construct'),cP=/^\s*(?:class|function)\b/,lP=eP(cP.exec),uP=!cP.test(oP),hP=function(t){if(!AP(t))return!1;try{return aP(oP,sP,t),!0}catch(t){return!1}},dP=function(t){if(!AP(t))return!1;switch(rP(t)){case'AsyncFunction':case'GeneratorFunction':case'AsyncGeneratorFunction':return!1}try{return uP||!!lP(cP,iP(t))}catch(t){return!0}};dP.sham=!0;var fP,gP,pP,mP,bP=!aP||nP((function(){var t;return hP(hP.call)||!hP(Object)||!hP((function(){t=!0}))||t}))?dP:hP,vP=bP,yP=DU,wP=TypeError,BP=AN,CP=function(t){if(vP(t))return t;throw new wP(yP(t)+' is not a constructor')},xP=AU,FP=IL('species'),IP=function(t,e){var n,A=BP(t).constructor;return void 0===A||xP(n=BP(A)[FP])?e:CP(n)},QP=NS,EP=Function.prototype,SP=EP.apply,UP=EP.call,LP='object'==typeof Reflect&&Reflect.apply||(QP?UP.bind(SP):function(){return UP.apply(SP,arguments)}),NP=qS,kP=XS,_P=function(t){if('Function'===NP(t))return kP(t)},PP=jU,OP=NS,MP=_P(_P.bind),HP=function(t,e){return PP(t),void 0===e?t:OP?MP(t,e):function(){return t.apply(e,arguments)}},TP=vU('document','documentElement'),DP=XS([].slice),RP=TypeError,VP=/(?:ipad|iphone|ipod).*applewebkit/i.test(wU),GP=ES,jP=LP,WP=HP,KP=dU,XP=hL,zP=US,ZP=TP,YP=DP,qP=DL,JP=function(t,e){if(t<e)throw new RP('Not enough arguments');return t},$P=VP,tO=F_,eO=GP.setImmediate,nO=GP.clearImmediate,AO=GP.process,rO=GP.Dispatch,iO=GP.Function,oO=GP.MessageChannel,sO=GP.String,aO=0,cO={},lO='onreadystatechange';zP((function(){fP=GP.location}));var uO=function(t){if(XP(cO,t)){var e=cO[t];delete cO[t],e()}},hO=function(t){return function(){uO(t)}},dO=function(t){uO(t.data)},fO=function(t){GP.postMessage(sO(t),fP.protocol+'//'+fP.host)};eO&&nO||(eO=function(t){JP(arguments.length,1);var e=KP(t)?t:iO(t),n=YP(arguments,1);return cO[++aO]=function(){jP(e,void 0,n)},gP(aO),aO},nO=function(t){delete cO[t]},tO?gP=function(t){AO.nextTick(hO(t))}:rO&&rO.now?gP=function(t){rO.now(hO(t))}:oO&&!$P?(mP=(pP=new oO).port2,pP.port1.onmessage=dO,gP=WP(mP.postMessage,mP)):GP.addEventListener&&KP(GP.postMessage)&&!GP.importScripts&&fP&&'file:'!==fP.protocol&&!zP(fO)?(gP=fO,GP.addEventListener('message',dO,!1)):gP=lO in qP('script')?function(t){ZP.appendChild(qP('script'))[lO]=function(){ZP.removeChild(this),uO(t)}}:function(t){setTimeout(hO(t),0)});var gO={set:eO,clear:nO},pO=function(){this.head=null,this.tail=null};pO.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var mO,bO,vO,yO,wO,BO=pO,CO=/ipad|iphone|ipod/i.test(wU)&&'undefined'!=typeof Pebble,xO=/web0s(?!.*chrome)/i.test(wU),FO=ES,IO=HP,QO=SS.f,EO=gO.set,SO=BO,UO=VP,LO=CO,NO=xO,kO=F_,_O=FO.MutationObserver||FO.WebKitMutationObserver,PO=FO.document,OO=FO.process,MO=FO.Promise,HO=QO(FO,'queueMicrotask'),TO=HO&&HO.value;if(!TO){var DO=new SO,RO=function(){var t,e;for(kO&&(t=OO.domain)&&t.exit();e=DO.get();)try{e()}catch(t){throw DO.head&&mO(),t}t&&t.enter()};UO||kO||NO||!_O||!PO?!LO&&MO&&MO.resolve?((yO=MO.resolve(void 0)).constructor=MO,wO=IO(yO.then,yO),mO=function(){wO(RO)}):kO?mO=function(){OO.nextTick(RO)}:(EO=IO(EO,FO),mO=function(){EO(RO)}):(bO=!0,vO=PO.createTextNode(''),new _O(RO).observe(vO,{characterData:!0}),mO=function(){vO.data=bO=!bO}),TO=function(t){DO.head||mO(),DO.add(t)}}var VO=TO,GO=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},jO=ES.Promise,WO='object'==typeof Deno&&Deno&&'object'==typeof Deno.version,KO=!WO&&!F_&&'object'==typeof window&&'object'==typeof document,XO=ES,zO=jO,ZO=dU,YO=p_,qO=LN,JO=IL,$O=KO,tM=WO,eM=EU;zO&&zO.prototype;var nM=JO('species'),AM=!1,rM=ZO(XO.PromiseRejectionEvent),iM=YO('Promise',(function(){var t=qO(zO),e=t!==String(zO);if(!e&&66===eM)return!0;if(!eM||eM<51||!/native code/.test(t)){var n=new zO((function(t){t(1)})),A=function(t){t((function(){}),(function(){}))};if((n.constructor={})[nM]=A,!(AM=n.then((function(){}))instanceof A))return!0}return!e&&($O||tM)&&!rM})),oM={CONSTRUCTOR:iM,REJECTION_EVENT:rM,SUBCLASSING:AM},sM={},aM=jU,cM=TypeError,lM=function(t){var e,n;this.promise=new t((function(t,A){if(void 0!==e||void 0!==n)throw new cM('Bad Promise constructor');e=t,n=A})),this.resolve=aM(e),this.reject=aM(n)};sM.f=function(t){return new lM(t)};var uM,hM,dM,fM=x_,gM=F_,pM=ES,mM=PS,bM=wk,vM=__,yM=H_,wM=function(t){var e=R_(t);G_&&e&&!e[j_]&&V_(e,j_,{configurable:!0,get:function(){return this}})},BM=jU,CM=dU,xM=pU,FM=function(t,e){if(W_(e,t))return t;throw new K_('Incorrect invocation')},IM=IP,QM=gO.set,EM=VO,SM=function(t,e){},UM=GO,LM=BO,NM=JN,kM=jO,_M=sM,PM='Promise',OM=oM.CONSTRUCTOR,MM=oM.REJECTION_EVENT,HM=oM.SUBCLASSING,TM=NM.getterFor(PM),DM=NM.set,RM=kM&&kM.prototype,VM=kM,GM=RM,jM=pM.TypeError,WM=pM.document,KM=pM.process,XM=_M.f,zM=XM,ZM=!!(WM&&WM.createEvent&&pM.dispatchEvent),YM='unhandledrejection',qM=function(t){var e;return!(!xM(t)||!CM(e=t.then))&&e},JM=function(t,e){var n,A,r,i=e.value,o=1===e.state,s=o?t.ok:t.fail,a=t.resolve,c=t.reject,l=t.domain;try{s?(o||(2===e.rejection&&AH(e),e.rejection=1),!0===s?n=i:(l&&l.enter(),n=s(i),l&&(l.exit(),r=!0)),n===t.promise?c(new jM('Promise-chain cycle')):(A=qM(n))?mM(A,n,a,c):a(n)):c(i)}catch(t){l&&!r&&l.exit(),c(t)}},$M=function(t,e){t.notified||(t.notified=!0,EM((function(){for(var n,A=t.reactions;n=A.get();)JM(n,t);t.notified=!1,e&&!t.rejection&&eH(t)})))},tH=function(t,e,n){var A,r;ZM?((A=WM.createEvent('Event')).promise=e,A.reason=n,A.initEvent(t,!1,!0),pM.dispatchEvent(A)):A={promise:e,reason:n},!MM&&(r=pM['on'+t])?r(A):t===YM&&SM('Unhandled promise rejection',n)},eH=function(t){mM(QM,pM,(function(){var e,n=t.facade,A=t.value;if(nH(t)&&(e=UM((function(){gM?KM.emit('unhandledRejection',A,n):tH(YM,n,A)})),t.rejection=gM||nH(t)?2:1,e.error))throw e.value}))},nH=function(t){return 1!==t.rejection&&!t.parent},AH=function(t){mM(QM,pM,(function(){var e=t.facade;gM?KM.emit('rejectionHandled',e):tH('rejectionhandled',e,t.value)}))},rH=function(t,e,n){return function(A){t(e,A,n)}},iH=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,$M(t,!0))},oH=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new jM('Promise can\'t be resolved itself');var A=qM(e);A?EM((function(){var n={done:!1};try{mM(A,e,rH(oH,n,t),rH(iH,n,t))}catch(e){iH(n,e,t)}})):(t.value=e,t.state=1,$M(t,!1))}catch(e){iH({done:!1},e,t)}}};if(OM&&(GM=(VM=function(t){FM(this,GM),BM(t),mM(uM,this);var e=TM(this);try{t(rH(oH,e),rH(iH,e))}catch(t){iH(e,t)}}).prototype,(uM=function(t){DM(this,{type:PM,done:!1,notified:!1,parent:!1,reactions:new LM,rejection:!1,state:0,value:void 0})}).prototype=bM(GM,'then',(function(t,e){var n=TM(this),A=XM(IM(this,VM));return n.parent=!0,A.ok=!CM(t)||t,A.fail=CM(e)&&e,A.domain=gM?KM.domain:void 0,0===n.state?n.reactions.add(A):EM((function(){JM(A,n)})),A.promise})),hM=function(){var t=new uM,e=TM(t);this.promise=t,this.resolve=rH(oH,e),this.reject=rH(iH,e)},_M.f=XM=function(t){return t===VM||undefined===t?new hM(t):zM(t)},CM(kM)&&RM!==Object.prototype)){dM=RM.then,HM||bM(RM,'then',(function(t,e){var n=this;return new VM((function(t,e){mM(dM,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete RM.constructor}catch(t){}vM&&vM(RM,GM)}fM({global:!0,constructor:!0,wrap:!0,forced:OM},{Promise:VM}),yM(VM,PM,!1),wM(PM);var sH={},aH=sH,cH=IL('iterator'),lH=Array.prototype,uH=tP,hH=XU,dH=AU,fH=sH,gH=IL('iterator'),pH=function(t){if(!dH(t))return hH(t,gH)||hH(t,'@@iterator')||fH[uH(t)]},mH=PS,bH=jU,vH=AN,yH=DU,wH=pH,BH=TypeError,CH=PS,xH=AN,FH=XU,IH=HP,QH=PS,EH=AN,SH=DU,UH=function(t){return void 0!==t&&(aH.Array===t||lH[cH]===t)},LH=Ok,NH=yU,kH=function(t,e){var n=arguments.length<2?wH(t):e;if(bH(n))return vH(mH(n,t));throw new BH(yH(t)+' is not iterable')},_H=pH,PH=function(t,e,n){var A,r;xH(t);try{if(!(A=FH(t,'return'))){if('throw'===e)throw n;return n}A=CH(A,t)}catch(t){r=!0,A=t}if('throw'===e)throw n;if(r)throw A;return xH(A),n},OH=TypeError,MH=function(t,e){this.stopped=t,this.result=e},HH=MH.prototype,TH=function(t,e,n){var A,r,i,o,s,a,c,l=n&&n.that,u=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),g=IH(e,l),p=function(t){return A&&PH(A,'normal',t),new MH(!0,t)},m=function(t){return u?(EH(t),f?g(t[0],t[1],p):g(t[0],t[1])):f?g(t,p):g(t)};if(h)A=t.iterator;else if(d)A=t;else{if(!(r=_H(t)))throw new OH(SH(t)+' is not iterable');if(UH(r)){for(i=0,o=LH(t);o>i;i++)if((s=m(t[i]))&&NH(HH,s))return s;return new MH(!1)}A=kH(t,r)}for(a=h?t.next:A.next;!(c=QH(a,A)).done;){try{s=m(c.value)}catch(t){PH(A,'throw',t)}if('object'==typeof s&&s&&NH(HH,s))return s}return new MH(!1)},DH=IL('iterator'),RH=!1;try{var VH=0,GH={next:function(){return{done:!!VH++}},return:function(){RH=!0}};GH[DH]=function(){return this},Array.from(GH,(function(){throw 2}))}catch(t){}var jH=jO,WH=function(t,e){try{if(!e&&!RH)return!1}catch(t){return!1}var n=!1;try{var A={};A[DH]=function(){return{next:function(){return{done:n=!0}}}},t(A)}catch(t){}return n},KH=oM.CONSTRUCTOR||!WH((function(t){jH.all(t).then(void 0,(function(){}))})),XH=PS,zH=jU,ZH=sM,YH=GO,qH=TH;x_({target:'Promise',stat:!0,forced:KH},{all:function(t){var e=this,n=ZH.f(e),A=n.resolve,r=n.reject,i=YH((function(){var n=zH(e.resolve),i=[],o=0,s=1;qH(t,(function(t){var a=o++,c=!1;s++,XH(n,e,t).then((function(t){c||(c=!0,i[a]=t,--s||A(i))}),r)})),--s||A(i)}));return i.error&&r(i.value),n.promise}});var JH=x_,$H=oM.CONSTRUCTOR,tT=jO,eT=vU,nT=dU,AT=wk,rT=tT&&tT.prototype;if(JH({target:'Promise',proto:!0,forced:$H,real:!0},{catch:function(t){return this.then(void 0,t)}}),nT(tT)){var iT=eT('Promise').prototype.catch;rT.catch!==iT&&AT(rT,'catch',iT,{unsafe:!0})}var oT=PS,sT=jU,aT=sM,cT=GO,lT=TH;x_({target:'Promise',stat:!0,forced:KH},{race:function(t){var e=this,n=aT.f(e),A=n.reject,r=cT((function(){var r=sT(e.resolve);lT(t,(function(t){oT(r,e,t).then(n.resolve,A)}))}));return r.error&&A(r.value),n.promise}});var uT=PS,hT=sM;x_({target:'Promise',stat:!0,forced:oM.CONSTRUCTOR},{reject:function(t){var e=hT.f(this);return uT(e.reject,void 0,t),e.promise}});var dT=AN,fT=pU,gT=sM,pT=x_,mT=oM.CONSTRUCTOR,bT=function(t,e){if(dT(t),fT(e)&&e.constructor===t)return e;var n=gT.f(t);return(0,n.resolve)(e),n.promise};function vT(t,e,n,A,r,i,o){try{var s=t[i](o),a=s.value}catch(t){return void n(t)}s.done?e(a):Promise.resolve(a).then(A,r)}function yT(t){return function(){var e=this,n=arguments;return new Promise((function(A,r){var i=t.apply(e,n);function o(t){vT(i,A,r,o,s,'next',t)}function s(t){vT(i,A,r,o,s,'throw',t)}o(void 0)}))}}vU('Promise'),pT({target:'Promise',stat:!0,forced:mT},{resolve:function(t){return bT(this,t)}});var wT=tP,BT=String,CT=function(t){if('Symbol'===wT(t))throw new TypeError('Cannot convert a Symbol value to a string');return BT(t)},xT=AN,FT=function(){var t=xT(this),e='';return t.hasIndices&&(e+='d'),t.global&&(e+='g'),t.ignoreCase&&(e+='i'),t.multiline&&(e+='m'),t.dotAll&&(e+='s'),t.unicode&&(e+='u'),t.unicodeSets&&(e+='v'),t.sticky&&(e+='y'),e},IT=US,QT=ES.RegExp,ET=IT((function(){var t=QT('a','y');return t.lastIndex=2,null!==t.exec('abcd')})),ST=ET||IT((function(){return!QT('a','y').sticky})),UT=ET||IT((function(){var t=QT('^r','gy');return t.lastIndex=2,null!==t.exec('str')})),LT={BROKEN_CARET:UT,MISSED_STICKY:ST,UNSUPPORTED_Y:ET},NT={},kT=Xk,_T=zk,PT=Object.keys||function(t){return kT(t,_T)},OT=LS,MT=$L,HT=JL,TT=AN,DT=cU,RT=PT;NT.f=OT&&!MT?Object.defineProperties:function(t,e){TT(t);for(var n,A=DT(e),r=RT(e),i=r.length,o=0;i>o;)HT.f(t,n=r[o++],A[n]);return t};var VT,GT=AN,jT=NT,WT=zk,KT=HN,XT=TP,zT=DL,ZT='prototype',YT='script',qT=MN('IE_PROTO'),JT=function(){},$T=function(t){return'<'+YT+'>'+t+'</'+YT+'>'},tD=function(t){t.write($T('')),t.close();var e=t.parentWindow.Object;return t=null,e},eD=function(){try{VT=new ActiveXObject('htmlfile')}catch(t){}var t,e,n;eD='undefined'!=typeof document?document.domain&&VT?tD(VT):(e=zT('iframe'),n='java'+YT+':',e.style.display='none',XT.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write($T('document.F=Object')),t.close(),t.F):tD(VT);for(var A=WT.length;A--;)delete eD[ZT][WT[A]];return eD()};KT[qT]=!0;var nD,AD,rD=Object.create||function(t,e){var n;return null!==t?(JT[ZT]=GT(t),n=new JT,JT[ZT]=null,n[qT]=t):n=eD(),void 0===e?n:jT.f(n,e)},iD=US,oD=ES.RegExp,sD=iD((function(){var t=oD('.','s');return!(t.dotAll&&t.test('\n')&&'s'===t.flags)})),aD=US,cD=ES.RegExp,lD=aD((function(){var t=cD('(?<a>b)','g');return'b'!==t.exec('b').groups.a||'bc'!=='b'.replace(t,'$<a>c')})),uD=PS,hD=XS,dD=CT,fD=FT,gD=LT,pD=rD,mD=JN.get,bD=sD,vD=lD,yD=oL('native-string-replace',String.prototype.replace),wD=RegExp.prototype.exec,BD=wD,CD=hD(''.charAt),xD=hD(''.indexOf),FD=hD(''.replace),ID=hD(''.slice),QD=(AD=/b*/g,uD(wD,nD=/a/,'a'),uD(wD,AD,'a'),0!==nD.lastIndex||0!==AD.lastIndex),ED=gD.BROKEN_CARET,SD=void 0!==/()??/.exec('')[1];(QD||SD||ED||bD||vD)&&(BD=function(t){var e,n,A,r,i,o,s,a=this,c=mD(a),l=dD(t),u=c.raw;if(u)return u.lastIndex=a.lastIndex,e=uD(BD,u,l),a.lastIndex=u.lastIndex,e;var h=c.groups,d=ED&&a.sticky,f=uD(fD,a),g=a.source,p=0,m=l;if(d&&(f=FD(f,'y',''),-1===xD(f,'g')&&(f+='g'),m=ID(l,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&'\n'!==CD(l,a.lastIndex-1))&&(g='(?: '+g+')',m=' '+m,p++),n=new RegExp('^(?:'+g+')',f)),SD&&(n=new RegExp('^'+g+'$(?!\\s)',f)),QD&&(A=a.lastIndex),r=uD(wD,d?n:a,m),d?r?(r.input=ID(r.input,p),r[0]=ID(r[0],p),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:QD&&r&&(a.lastIndex=a.global?r.index+r[0].length:A),SD&&r&&r.length>1&&uD(yD,r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r&&h)for(r.groups=o=pD(null),i=0;i<h.length;i++)o[(s=h[i])[0]]=r[s[1]];return r});var UD=BD;x_({target:'RegExp',proto:!0,forced:/./.exec!==UD},{exec:UD});var LD=_P,ND=wk,kD=UD,_D=US,PD=IL,OD=mN,MD=PD('species'),HD=RegExp.prototype,TD=function(t,e,n,A){var r=PD(t),i=!_D((function(){var e={};return e[r]=function(){return 7},7!==''[t](e)})),o=i&&!_D((function(){var e=!1,n=/a/;return'split'===t&&((n={}).constructor={},n.constructor[MD]=function(){return n},n.flags='',n[r]=/./[r]),n.exec=function(){return e=!0,null},n[r](''),!e}));if(!i||!o||n){var s=LD(/./[r]),a=e(r,''[t],(function(t,e,n,A,r){var o=LD(t),a=e.exec;return a===kD||a===HD.exec?i&&!r?{done:!0,value:s(e,n,A)}:{done:!0,value:o(n,e,A)}:{done:!1}}));ND(String.prototype,t,a[0]),ND(HD,r,a[1])}A&&OD(HD[r],'sham',!0)},DD=XS,RD=Qk,VD=CT,GD=oU,jD=DD(''.charAt),WD=DD(''.charCodeAt),KD=DD(''.slice),XD=function(t){return function(e,n){var A,r,i=VD(GD(e)),o=RD(n),s=i.length;return o<0||o>=s?t?'':void 0:(A=WD(i,o))<55296||A>56319||o+1===s||(r=WD(i,o+1))<56320||r>57343?t?jD(i,o):A:t?KD(i,o,o+2):r-56320+(A-55296<<10)+65536}},zD={codeAt:XD(!1),charAt:XD(!0)}.charAt,ZD=function(t,e,n){return e+(n?zD(t,e).length:1)},YD=PS,qD=AN,JD=dU,$D=qS,tR=UD,eR=TypeError,nR=function(t,e){var n=t.exec;if(JD(n)){var A=YD(n,t,e);return null!==A&&qD(A),A}if('RegExp'===$D(t))return YD(tR,t,e);throw new eR('RegExp#exec called on incompatible receiver')},AR=PS,rR=AN,iR=AU,oR=_k,sR=CT,aR=oU,cR=XU,lR=ZD,uR=nR;TD('match',(function(t,e,n){return[function(e){var n=aR(this),A=iR(e)?void 0:cR(e,t);return A?AR(A,e,n):new RegExp(e)[t](sR(n))},function(t){var A=rR(this),r=sR(t),i=n(e,A,r);if(i.done)return i.value;if(!A.global)return uR(A,r);var o=A.unicode;A.lastIndex=0;for(var s,a=[],c=0;null!==(s=uR(A,r));){var l=sR(s[0]);a[c]=l,''===l&&(A.lastIndex=lR(r,oR(A.lastIndex),o)),c++}return 0===c?null:a}]}));var hR=XS,dR=cL,fR=Math.floor,gR=hR(''.charAt),pR=hR(''.replace),mR=hR(''.slice),bR=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vR=/\$([$&'`]|\d{1,2})/g,yR=LP,wR=PS,BR=XS,CR=TD,xR=US,FR=AN,IR=dU,QR=AU,ER=Qk,SR=_k,UR=CT,LR=oU,NR=ZD,kR=XU,_R=function(t,e,n,A,r,i){var o=n+t.length,s=A.length,a=vR;return void 0!==r&&(r=dR(r),a=bR),pR(i,a,(function(i,a){var c;switch(gR(a,0)){case'$':return'$';case'&':return t;case'`':return mR(e,0,n);case'\'':return mR(e,o);case'<':c=r[mR(a,1,-1)];break;default:var l=+a;if(0===l)return i;if(l>s){var u=fR(l/10);return 0===u?i:u<=s?void 0===A[u-1]?gR(a,1):A[u-1]+gR(a,1):i}c=A[l-1]}return void 0===c?'':c}))},PR=nR,OR=IL('replace'),MR=Math.max,HR=Math.min,TR=BR([].concat),DR=BR([].push),RR=BR(''.indexOf),VR=BR(''.slice),GR=function(t){return void 0===t?t:String(t)},jR='$0'==='a'.replace(/./,'$0'),WR=!!/./[OR]&&''===/./[OR]('a','$0'),KR=!xR((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:'7'},t},'7'!==''.replace(t,'$<a>')}));CR('replace',(function(t,e,n){var A=WR?'$':'$0';return[function(t,n){var A=LR(this),r=QR(t)?void 0:kR(t,OR);return r?wR(r,t,A,n):wR(e,UR(A),t,n)},function(t,r){var i=FR(this),o=UR(t);if('string'==typeof r&&-1===RR(r,A)&&-1===RR(r,'$<')){var s=n(e,i,o,r);if(s.done)return s.value}var a=IR(r);a||(r=UR(r));var c,l=i.global;l&&(c=i.unicode,i.lastIndex=0);for(var u,h=[];null!==(u=PR(i,o))&&(DR(h,u),l);){''===UR(u[0])&&(i.lastIndex=NR(o,SR(i.lastIndex),c))}for(var d='',f=0,g=0;g<h.length;g++){for(var p,m=UR((u=h[g])[0]),b=MR(HR(ER(u.index),o.length),0),v=[],y=1;y<u.length;y++)DR(v,GR(u[y]));var w=u.groups;if(a){var B=TR([m],v,b,o);void 0!==w&&DR(B,w),p=UR(yR(r,void 0,B))}else p=_R(m,o,b,v,w,r);b>=f&&(d+=VR(o,f,b)+p,f=b+m.length)}return d+VR(o,f)}]}),!KR||!jR||WR);var XR,zR=pU,ZR=qS,YR=IL('match'),qR=function(t){var e;return zR(t)&&(void 0!==(e=t[YR])?!!e:'RegExp'===ZR(t))},JR=qR,$R=TypeError,tV=function(t){if(JR(t))throw new $R('The method doesn\'t accept regular expressions');return t},eV=IL('match'),nV=function(t){var e=/./;try{'/./'[t](e)}catch(n){try{return e[eV]=!1,'/./'[t](e)}catch(t){}}return!1},AV=x_,rV=_P,iV=SS.f,oV=_k,sV=CT,aV=tV,cV=oU,lV=nV,uV=rV(''.startsWith),hV=rV(''.slice),dV=Math.min,fV=lV('startsWith');AV({target:'String',proto:!0,forced:!!(fV||(XR=iV(String.prototype,'startsWith'),!XR||XR.writable))&&!fV},{startsWith:function(t){var e=sV(cV(this));aV(t);var n=oV(dV(arguments.length>1?arguments[1]:void 0,e.length)),A=sV(t);return uV?uV(e,A,n):hV(e,n,n+A.length)===A}});var gV=IL,pV=rD,mV=JL.f,bV=gV('unscopables'),vV=Array.prototype;void 0===vV[bV]&&mV(vV,bV,{configurable:!0,value:pV(null)});var yV,wV,BV,CV=!US((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),xV=hL,FV=dU,IV=cL,QV=CV,EV=MN('IE_PROTO'),SV=Object,UV=SV.prototype,LV=QV?SV.getPrototypeOf:function(t){var e=IV(t);if(xV(e,EV))return e[EV];var n=e.constructor;return FV(n)&&e instanceof n?n.prototype:e instanceof SV?UV:null},NV=US,kV=dU,_V=pU,PV=LV,OV=wk,MV=IL('iterator'),HV=!1;[].keys&&('next'in(BV=[].keys())?(wV=PV(PV(BV)))!==Object.prototype&&(yV=wV):HV=!0);var TV=!_V(yV)||NV((function(){var t={};return yV[MV].call(t)!==t}));TV&&(yV={}),kV(yV[MV])||OV(yV,MV,(function(){return this}));var DV={IteratorPrototype:yV,BUGGY_SAFARI_ITERATORS:HV},RV=DV.IteratorPrototype,VV=rD,GV=VS,jV=H_,WV=sH,KV=function(){return this},XV=x_,zV=PS,ZV=dU,YV=function(t,e,n,A){var r=e+' Iterator';return t.prototype=VV(RV,{next:GV(+!A,n)}),jV(t,r,!1),WV[r]=KV,t},qV=LV,JV=__,$V=H_,tG=mN,eG=wk,nG=sH,AG=xN.PROPER,rG=xN.CONFIGURABLE,iG=DV.IteratorPrototype,oG=DV.BUGGY_SAFARI_ITERATORS,sG=IL('iterator'),aG='keys',cG='values',lG='entries',uG=function(){return this},hG=cU,dG=function(t){vV[bV][t]=!0},fG=sH,gG=JN,pG=JL.f,mG=function(t,e,n,A,r,i,o){YV(n,e,A);var s,a,c,l=function(t){if(t===r&&g)return g;if(!oG&&t&&t in d)return d[t];switch(t){case aG:case cG:case lG:return function(){return new n(this,t)}}return function(){return new n(this)}},u=e+' Iterator',h=!1,d=t.prototype,f=d[sG]||d['@@iterator']||r&&d[r],g=!oG&&f||l(r),p='Array'===e&&d.entries||f;if(p&&(s=qV(p.call(new t)))!==Object.prototype&&s.next&&(qV(s)!==iG&&(JV?JV(s,iG):ZV(s[sG])||eG(s,sG,uG)),$V(s,u,!0)),AG&&r===cG&&f&&f.name!==cG&&(rG?tG(d,'name',cG):(h=!0,g=function(){return zV(f,this)})),r)if(a={values:l(cG),keys:i?g:l(aG),entries:l(lG)},o)for(c in a)(oG||h||!(c in d))&&eG(d,c,a[c]);else XV({target:e,proto:!0,forced:oG||h},a);return d[sG]!==g&&eG(d,sG,g,{name:r}),nG[e]=g,a},bG=function(t,e){return{value:t,done:e}},vG=LS,yG='Array Iterator',wG=gG.set,BG=gG.getterFor(yG),CG=mG(Array,'Array',(function(t,e){wG(this,{type:yG,target:hG(t),index:0,kind:e})}),(function(){var t=BG(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,bG(void 0,!0);switch(t.kind){case'keys':return bG(n,!1);case'values':return bG(e[n],!1)}return bG([n,e[n]],!1)}),'values'),xG=fG.Arguments=fG.Array;if(dG('keys'),dG('values'),dG('entries'),vG&&'values'!==xG.name)try{pG(xG,'name',{value:'values'})}catch(t){}var FG=DL('span').classList,IG=FG&&FG.constructor&&FG.constructor.prototype,QG=IG===Object.prototype?void 0:IG,EG=ES,SG={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},UG=QG,LG=CG,NG=mN,kG=IL,_G=kG('iterator'),PG=kG('toStringTag'),OG=LG.values,MG=function(t,e){if(t){if(t[_G]!==OG)try{NG(t,_G,OG)}catch(e){t[_G]=OG}if(t[PG]||NG(t,PG,e),SG[e])for(var n in LG)if(t[n]!==LG[n])try{NG(t,n,LG[n])}catch(e){t[n]=LG[n]}}};for(var HG in SG)MG(EG[HG]&&EG[HG].prototype,HG);MG(UG,'DOMTokenList');var TG=jU,DG=cL,RG=nU,VG=Ok,GG=TypeError,jG=function(t){return function(e,n,A,r){TG(n);var i=DG(e),o=RG(i),s=VG(i),a=t?s-1:0,c=t?-1:1;if(A<2)for(;;){if(a in o){r=o[a],a+=c;break}if(a+=c,t?a<0:s<=a)throw new GG('Reduce of empty array with no initial value')}for(;t?a>=0:s>a;a+=c)a in o&&(r=n(r,o[a],a,i));return r}},WG={left:jG(!1),right:jG(!0)},KG=US,XG=function(t,e){var n=[][t];return!!n&&KG((function(){n.call(null,e||function(){return 1},1)}))},zG=WG.left;x_({target:'Array',proto:!0,forced:!F_&&EU>79&&EU<83||!XG('reduce')},{reduce:function(t){var e=arguments.length;return zG(this,t,e,e>1?arguments[1]:void 0)}});var ZG=x_,YG=_P,qG=SS.f,JG=_k,$G=CT,tj=tV,ej=oU,nj=nV,Aj=YG(''.endsWith),rj=YG(''.slice),ij=Math.min,oj=nj('endsWith'),sj=!oj&&!!function(){var t=qG(String.prototype,'endsWith');return t&&!t.writable}();ZG({target:'String',proto:!0,forced:!sj&&!oj},{endsWith:function(t){var e=$G(ej(this));tj(t);var n=arguments.length>1?arguments[1]:void 0,A=e.length,r=void 0===n?A:ij(JG(n),A),i=$G(t);return Aj?Aj(e,i,r):rj(e,r-i.length,r)===i}});var aj=OL,cj=JL,lj=VS,uj=Lk,hj=Ok,dj=function(t,e,n){var A=aj(e);A in t?cj.f(t,A,lj(0,n)):t[A]=n},fj=Array,gj=Math.max,pj=LP,mj=PS,bj=XS,vj=TD,yj=AN,wj=AU,Bj=qR,Cj=oU,xj=IP,Fj=ZD,Ij=_k,Qj=CT,Ej=XU,Sj=function(t,e,n){for(var A=hj(t),r=uj(e,A),i=uj(void 0===n?A:n,A),o=fj(gj(i-r,0)),s=0;r<i;r++,s++)dj(o,s,t[r]);return o.length=s,o},Uj=nR,Lj=UD,Nj=US,kj=LT.UNSUPPORTED_Y,_j=4294967295,Pj=Math.min,Oj=[].push,Mj=bj(/./.exec),Hj=bj(Oj),Tj=bj(''.slice),Dj=!Nj((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n='ab'.split(t);return 2!==n.length||'a'!==n[0]||'b'!==n[1]}));vj('split',(function(t,e,n){var A;return A='c'==='abbc'.split(/(b)*/)[1]||4!=='test'.split(/(?:)/,-1).length||2!=='ab'.split(/(?:ab)*/).length||4!=='.'.split(/(.?)(.?)/).length||'.'.split(/()()/).length>1||''.split(/.?/).length?function(t,n){var A=Qj(Cj(this)),r=void 0===n?_j:n>>>0;if(0===r)return[];if(void 0===t)return[A];if(!Bj(t))return mj(e,A,t,r);for(var i,o,s,a=[],c=(t.ignoreCase?'i':'')+(t.multiline?'m':'')+(t.unicode?'u':'')+(t.sticky?'y':''),l=0,u=new RegExp(t.source,c+'g');(i=mj(Lj,u,A))&&!((o=u.lastIndex)>l&&(Hj(a,Tj(A,l,i.index)),i.length>1&&i.index<A.length&&pj(Oj,a,Sj(i,1)),s=i[0].length,l=o,a.length>=r));)u.lastIndex===i.index&&u.lastIndex++;return l===A.length?!s&&Mj(u,'')||Hj(a,''):Hj(a,Tj(A,l)),a.length>r?Sj(a,0,r):a}:'0'.split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:mj(e,this,t,n)}:e,[function(e,n){var r=Cj(this),i=wj(e)?void 0:Ej(e,t);return i?mj(i,e,r,n):mj(A,Qj(r),e,n)},function(t,r){var i=yj(this),o=Qj(t),s=n(A,i,o,r,A!==e);if(s.done)return s.value;var a=xj(i,RegExp),c=i.unicode,l=(i.ignoreCase?'i':'')+(i.multiline?'m':'')+(i.unicode?'u':'')+(kj?'g':'y'),u=new a(kj?'^(?:'+i.source+')':i,l),h=void 0===r?_j:r>>>0;if(0===h)return[];if(0===o.length)return null===Uj(u,o)?[o]:[];for(var d=0,f=0,g=[];f<o.length;){u.lastIndex=kj?0:f;var p,m=Uj(u,kj?Tj(o,f):o);if(null===m||(p=Pj(Ij(u.lastIndex+(kj?f:0)),o.length))===d)f=Fj(o,f,c);else{if(Hj(g,Tj(o,d,f)),g.length===h)return g;for(var b=1;b<=m.length-1;b++)if(Hj(g,m[b]),g.length===h)return g;f=d=p}}return Hj(g,Tj(o,d)),g}]}),!Dj,kj);var Rj={exports:{}},Vj={exports:{}};(function(){var t,e,n,A,r,i;'undefined'!=typeof performance&&null!==performance&&performance.now?Vj.exports=function(){return performance.now()}:'undefined'!=typeof process&&null!==process&&process.hrtime?(Vj.exports=function(){return(t()-r)/1e6},e=process.hrtime,A=(t=function(){var t;return 1e9*(t=e())[0]+t[1]})(),i=1e9*process.uptime(),r=A-i):Date.now?(Vj.exports=function(){return Date.now()-n},n=Date.now()):(Vj.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(yl);for(var Gj=Vj.exports,jj='undefined'==typeof window?yl:window,Wj=['moz','webkit'],Kj='AnimationFrame',Xj=jj['request'+Kj],zj=jj['cancel'+Kj]||jj['cancelRequest'+Kj],Zj=0;!Xj&&Zj<Wj.length;Zj++)Xj=jj[Wj[Zj]+'Request'+Kj],zj=jj[Wj[Zj]+'Cancel'+Kj]||jj[Wj[Zj]+'CancelRequest'+Kj];if(!Xj||!zj){var Yj=0,qj=0,Jj=[];Xj=function(t){if(0===Jj.length){var e=Gj(),n=Math.max(0,16.666666666666668-(e-Yj));Yj=n+e,setTimeout((function(){var t=Jj.slice(0);Jj.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(Yj)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(n))}return Jj.push({handle:++qj,callback:t,cancelled:!1}),qj},zj=function(t){for(var e=0;e<Jj.length;e++)Jj[e].handle===t&&(Jj[e].cancelled=!0)}}Rj.exports=function(t){return Xj.call(jj,t)},Rj.exports.cancel=function(){zj.apply(jj,arguments)},Rj.exports.polyfill=function(t){t||(t=jj),t.requestAnimationFrame=Xj,t.cancelAnimationFrame=zj};var $j=wl(Rj.exports),tW='\t\n\v\f\r                 \u2028\u2029\ufeff',eW=oU,nW=CT,AW=tW,rW=XS(''.replace),iW=RegExp('^['+AW+']+'),oW=RegExp('(^|[^'+AW+'])['+AW+']+$'),sW=function(t){return function(e){var n=nW(eW(e));return 1&t&&(n=rW(n,iW,'')),2&t&&(n=rW(n,oW,'$1')),n}},aW={start:sW(1),end:sW(2),trim:sW(3)},cW=xN.PROPER,lW=US,uW=tW,hW=aW.trim;x_({target:'String',proto:!0,forced:function(t){return lW((function(){return!!uW[t]()||'​…᠎'!=='​…᠎'[t]()||cW&&uW[t].name!==t}))}('trim')},{trim:function(){return hW(this)}});var dW=function(t){this.ok=!1,this.alpha=1,'#'==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,'')).toLowerCase();var e={aliceblue:'f0f8ff',antiquewhite:'faebd7',aqua:'00ffff',aquamarine:'7fffd4',azure:'f0ffff',beige:'f5f5dc',bisque:'ffe4c4',black:'000000',blanchedalmond:'ffebcd',blue:'0000ff',blueviolet:'8a2be2',brown:'a52a2a',burlywood:'deb887',cadetblue:'5f9ea0',chartreuse:'7fff00',chocolate:'d2691e',coral:'ff7f50',cornflowerblue:'6495ed',cornsilk:'fff8dc',crimson:'dc143c',cyan:'00ffff',darkblue:'00008b',darkcyan:'008b8b',darkgoldenrod:'b8860b',darkgray:'a9a9a9',darkgreen:'006400',darkkhaki:'bdb76b',darkmagenta:'8b008b',darkolivegreen:'556b2f',darkorange:'ff8c00',darkorchid:'9932cc',darkred:'8b0000',darksalmon:'e9967a',darkseagreen:'8fbc8f',darkslateblue:'483d8b',darkslategray:'2f4f4f',darkturquoise:'00ced1',darkviolet:'9400d3',deeppink:'ff1493',deepskyblue:'00bfff',dimgray:'696969',dodgerblue:'1e90ff',feldspar:'d19275',firebrick:'b22222',floralwhite:'fffaf0',forestgreen:'228b22',fuchsia:'ff00ff',gainsboro:'dcdcdc',ghostwhite:'f8f8ff',gold:'ffd700',goldenrod:'daa520',gray:'808080',green:'008000',greenyellow:'adff2f',honeydew:'f0fff0',hotpink:'ff69b4',indianred:'cd5c5c',indigo:'4b0082',ivory:'fffff0',khaki:'f0e68c',lavender:'e6e6fa',lavenderblush:'fff0f5',lawngreen:'7cfc00',lemonchiffon:'fffacd',lightblue:'add8e6',lightcoral:'f08080',lightcyan:'e0ffff',lightgoldenrodyellow:'fafad2',lightgrey:'d3d3d3',lightgreen:'90ee90',lightpink:'ffb6c1',lightsalmon:'ffa07a',lightseagreen:'20b2aa',lightskyblue:'87cefa',lightslateblue:'8470ff',lightslategray:'778899',lightsteelblue:'b0c4de',lightyellow:'ffffe0',lime:'00ff00',limegreen:'32cd32',linen:'faf0e6',magenta:'ff00ff',maroon:'800000',mediumaquamarine:'66cdaa',mediumblue:'0000cd',mediumorchid:'ba55d3',mediumpurple:'9370d8',mediumseagreen:'3cb371',mediumslateblue:'7b68ee',mediumspringgreen:'00fa9a',mediumturquoise:'48d1cc',mediumvioletred:'c71585',midnightblue:'191970',mintcream:'f5fffa',mistyrose:'ffe4e1',moccasin:'ffe4b5',navajowhite:'ffdead',navy:'000080',oldlace:'fdf5e6',olive:'808000',olivedrab:'6b8e23',orange:'ffa500',orangered:'ff4500',orchid:'da70d6',palegoldenrod:'eee8aa',palegreen:'98fb98',paleturquoise:'afeeee',palevioletred:'d87093',papayawhip:'ffefd5',peachpuff:'ffdab9',peru:'cd853f',pink:'ffc0cb',plum:'dda0dd',powderblue:'b0e0e6',purple:'800080',rebeccapurple:'663399',red:'ff0000',rosybrown:'bc8f8f',royalblue:'4169e1',saddlebrown:'8b4513',salmon:'fa8072',sandybrown:'f4a460',seagreen:'2e8b57',seashell:'fff5ee',sienna:'a0522d',silver:'c0c0c0',skyblue:'87ceeb',slateblue:'6a5acd',slategray:'708090',snow:'fffafa',springgreen:'00ff7f',steelblue:'4682b4',tan:'d2b48c',teal:'008080',thistle:'d8bfd8',tomato:'ff6347',turquoise:'40e0d0',violet:'ee82ee',violetred:'d02090',wheat:'f5deb3',white:'ffffff',whitesmoke:'f5f5f5',yellow:'ffff00',yellowgreen:'9acd32'};t=e[t]||t;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:['rgba(123, 234, 45, 0.8)','rgba(255,234,245,1.0)'],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:['rgb(123, 234, 45)','rgb(255,234,245)'],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:['#00ff00','336699'],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:['#fb0','f0f'],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],A=0;A<n.length;A++){var r=n[A].re,i=n[A].process,o=r.exec(t);if(o){var s=i(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return'rgb('+this.r+', '+this.g+', '+this.b+')'},this.toRGBA=function(){return'rgba('+this.r+', '+this.g+', '+this.b+', '+this.alpha+')'},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t='0'+t),1==e.length&&(e='0'+e),1==n.length&&(n='0'+n),'#'+t+e+n},this.getHelpXML=function(){for(var t=new Array,A=0;A<n.length;A++)for(var r=n[A].example,i=0;i<r.length;i++)t[t.length]=r[i];for(var o in e)t[t.length]=o;var s=document.createElement('ul');s.setAttribute('id','rgbcolor-examples');for(A=0;A<t.length;A++)try{var a=document.createElement('li'),c=new RGBColor(t[A]),l=document.createElement('div');l.style.cssText='margin: 3px; border: 1px solid black; background:'+c.toHex()+'; color:'+c.toHex(),l.appendChild(document.createTextNode('test'));var u=document.createTextNode(' '+t[A]+' -> '+c.toRGB()+' -> '+c.toHex());a.appendChild(l),a.appendChild(u),s.appendChild(a)}catch(t){}return s}},fW=wl(dW),gW=x_,pW=Rk.indexOf,mW=XG,bW=_P([].indexOf),vW=!!bW&&1/bW([1],1,-0)<0;gW({target:'Array',proto:!0,forced:vW||!mW('indexOf')},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return vW?bW(this,t,e)||0:pW(this,t,e)}});var yW=x_,wW=tV,BW=oU,CW=CT,xW=nV,FW=XS(''.indexOf);yW({target:'String',proto:!0,forced:!xW('includes')},{includes:function(t){return!!~FW(CW(BW(this)),CW(wW(t)),arguments.length>1?arguments[1]:void 0)}});var IW=qS,QW=x_,EW=Array.isArray||function(t){return'Array'===IW(t)},SW=XS([].reverse),UW=[1,2];QW({target:'Array',proto:!0,forced:String(UW)===String(UW.reverse())},{reverse:function(){return EW(this)&&(this.length=this.length),SW(this)}});
344
+ /*! *****************************************************************************
345
+ Copyright (c) Microsoft Corporation.
346
+
347
+ Permission to use, copy, modify, and/or distribute this software for any
348
+ purpose with or without fee is hereby granted.
349
+
350
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
351
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
352
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
353
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
354
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
355
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
356
+ PERFORMANCE OF THIS SOFTWARE.
357
+ ***************************************************************************** */
358
+ var LW=function(t,e){return(LW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function NW(t,e){if('function'!=typeof e&&null!==e)throw new TypeError('Class extends value '+String(e)+' is not a constructor or null');function n(){this.constructor=t}LW(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function kW(t,e){var n=t[0],A=t[1];return[n*Math.cos(e)-A*Math.sin(e),n*Math.sin(e)+A*Math.cos(e)]}function _W(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;n++)if('number'!=typeof t[n])throw new Error('assertNumbers arguments['+n+'] is not a number. '+typeof t[n]+' == typeof '+t[n]);return!0}var PW=Math.PI;function OW(t,e,n){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var A=t.rX,r=t.rY,i=t.x,o=t.y;A=Math.abs(t.rX),r=Math.abs(t.rY);var s=kW([(e-i)/2,(n-o)/2],-t.xRot/180*PW),a=s[0],c=s[1],l=Math.pow(a,2)/Math.pow(A,2)+Math.pow(c,2)/Math.pow(r,2);1<l&&(A*=Math.sqrt(l),r*=Math.sqrt(l)),t.rX=A,t.rY=r;var u=Math.pow(A,2)*Math.pow(c,2)+Math.pow(r,2)*Math.pow(a,2),h=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(A,2)*Math.pow(r,2)-u)/u)),d=A*c/r*h,f=-r*a/A*h,g=kW([d,f],t.xRot/180*PW);t.cX=g[0]+(e+i)/2,t.cY=g[1]+(n+o)/2,t.phi1=Math.atan2((c-f)/r,(a-d)/A),t.phi2=Math.atan2((-c-f)/r,(-a-d)/A),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*PW),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*PW),t.phi1*=180/PW,t.phi2*=180/PW}function MW(t,e,n){_W(t,e,n);var A=t*t+e*e-n*n;if(0>A)return[];if(0===A)return[[t*n/(t*t+e*e),e*n/(t*t+e*e)]];var r=Math.sqrt(A);return[[(t*n+e*r)/(t*t+e*e),(e*n-t*r)/(t*t+e*e)],[(t*n-e*r)/(t*t+e*e),(e*n+t*r)/(t*t+e*e)]]}var HW,TW=Math.PI/180;function DW(t,e,n){return(1-n)*t+n*e}function RW(t,e,n,A){return t+Math.cos(A/180*PW)*e+Math.sin(A/180*PW)*n}function VW(t,e,n,A){var r=1e-6,i=e-t,o=n-e,s=3*i+3*(A-n)-6*o,a=6*(o-i),c=3*i;return Math.abs(s)<r?[-c/a]:function(t,e,n){void 0===n&&(n=1e-6);var A=t*t/4-e;if(A<-n)return[];if(A<=n)return[-t/2];var r=Math.sqrt(A);return[-t/2-r,-t/2+r]}(a/s,c/s,r)}function GW(t,e,n,A,r){var i=1-r;return t*(i*i*i)+e*(3*i*i*r)+n*(3*i*r*r)+A*(r*r*r)}!function(t){function e(){return r((function(t,e,n){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=n),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=n),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=n),t.relative=!1),t}))}function n(){var t=NaN,e=NaN,n=NaN,A=NaN;return r((function(r,i,o){return r.type&ZW.SMOOTH_CURVE_TO&&(r.type=ZW.CURVE_TO,t=isNaN(t)?i:t,e=isNaN(e)?o:e,r.x1=r.relative?i-t:2*i-t,r.y1=r.relative?o-e:2*o-e),r.type&ZW.CURVE_TO?(t=r.relative?i+r.x2:r.x2,e=r.relative?o+r.y2:r.y2):(t=NaN,e=NaN),r.type&ZW.SMOOTH_QUAD_TO&&(r.type=ZW.QUAD_TO,n=isNaN(n)?i:n,A=isNaN(A)?o:A,r.x1=r.relative?i-n:2*i-n,r.y1=r.relative?o-A:2*o-A),r.type&ZW.QUAD_TO?(n=r.relative?i+r.x1:r.x1,A=r.relative?o+r.y1:r.y1):(n=NaN,A=NaN),r}))}function A(){var t=NaN,e=NaN;return r((function(n,A,r){if(n.type&ZW.SMOOTH_QUAD_TO&&(n.type=ZW.QUAD_TO,t=isNaN(t)?A:t,e=isNaN(e)?r:e,n.x1=n.relative?A-t:2*A-t,n.y1=n.relative?r-e:2*r-e),n.type&ZW.QUAD_TO){t=n.relative?A+n.x1:n.x1,e=n.relative?r+n.y1:n.y1;var i=n.x1,o=n.y1;n.type=ZW.CURVE_TO,n.x1=((n.relative?0:A)+2*i)/3,n.y1=((n.relative?0:r)+2*o)/3,n.x2=(n.x+2*i)/3,n.y2=(n.y+2*o)/3}else t=NaN,e=NaN;return n}))}function r(t){var e=0,n=0,A=NaN,r=NaN;return function(i){if(isNaN(A)&&!(i.type&ZW.MOVE_TO))throw new Error('path must start with moveto');var o=t(i,e,n,A,r);return i.type&ZW.CLOSE_PATH&&(e=A,n=r),void 0!==i.x&&(e=i.relative?e+i.x:i.x),void 0!==i.y&&(n=i.relative?n+i.y:i.y),i.type&ZW.MOVE_TO&&(A=e,r=n),o}}function i(t,e,n,A,i,o){return _W(t,e,n,A,i,o),r((function(r,s,a,c){var l=r.x1,u=r.x2,h=r.relative&&!isNaN(c),d=void 0!==r.x?r.x:h?0:s,f=void 0!==r.y?r.y:h?0:a;function g(t){return t*t}r.type&ZW.HORIZ_LINE_TO&&0!==e&&(r.type=ZW.LINE_TO,r.y=r.relative?0:a),r.type&ZW.VERT_LINE_TO&&0!==n&&(r.type=ZW.LINE_TO,r.x=r.relative?0:s),void 0!==r.x&&(r.x=r.x*t+f*n+(h?0:i)),void 0!==r.y&&(r.y=d*e+r.y*A+(h?0:o)),void 0!==r.x1&&(r.x1=r.x1*t+r.y1*n+(h?0:i)),void 0!==r.y1&&(r.y1=l*e+r.y1*A+(h?0:o)),void 0!==r.x2&&(r.x2=r.x2*t+r.y2*n+(h?0:i)),void 0!==r.y2&&(r.y2=u*e+r.y2*A+(h?0:o));var p=t*A-e*n;if(void 0!==r.xRot&&(1!==t||0!==e||0!==n||1!==A))if(0===p)delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag,r.type=ZW.LINE_TO;else{var m=r.xRot*Math.PI/180,b=Math.sin(m),v=Math.cos(m),y=1/g(r.rX),w=1/g(r.rY),B=g(v)*y+g(b)*w,C=2*b*v*(y-w),x=g(b)*y+g(v)*w,F=B*A*A-C*e*A+x*e*e,I=C*(t*A+e*n)-2*(B*n*A+x*t*e),Q=B*n*n-C*t*n+x*t*t,E=(Math.atan2(I,F-Q)+Math.PI)%Math.PI/2,S=Math.sin(E),U=Math.cos(E);r.rX=Math.abs(p)/Math.sqrt(F*g(U)+I*S*U+Q*g(S)),r.rY=Math.abs(p)/Math.sqrt(F*g(S)-I*S*U+Q*g(U)),r.xRot=180*E/Math.PI}return void 0!==r.sweepFlag&&0>p&&(r.sweepFlag=+!r.sweepFlag),r}))}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),_W(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return r((function(t,e,n){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=n),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=n),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=n),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,n){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),r((function(A,r,i,o,s){if(isNaN(o)&&!(A.type&ZW.MOVE_TO))throw new Error('path must start with moveto');return e&&A.type&ZW.HORIZ_LINE_TO&&(A.type=ZW.LINE_TO,A.y=A.relative?0:i),n&&A.type&ZW.VERT_LINE_TO&&(A.type=ZW.LINE_TO,A.x=A.relative?0:r),t&&A.type&ZW.CLOSE_PATH&&(A.type=ZW.LINE_TO,A.x=A.relative?o-r:o,A.y=A.relative?s-i:s),A.type&ZW.ARC&&(0===A.rX||0===A.rY)&&(A.type=ZW.LINE_TO,delete A.rX,delete A.rY,delete A.xRot,delete A.lArcFlag,delete A.sweepFlag),A}))},t.NORMALIZE_ST=n,t.QT_TO_C=A,t.INFO=r,t.SANITIZE=function(t){void 0===t&&(t=0),_W(t);var e=NaN,n=NaN,A=NaN,i=NaN;return r((function(r,o,s,a,c){var l=Math.abs,u=!1,h=0,d=0;if(r.type&ZW.SMOOTH_CURVE_TO&&(h=isNaN(e)?0:o-e,d=isNaN(n)?0:s-n),r.type&(ZW.CURVE_TO|ZW.SMOOTH_CURVE_TO)?(e=r.relative?o+r.x2:r.x2,n=r.relative?s+r.y2:r.y2):(e=NaN,n=NaN),r.type&ZW.SMOOTH_QUAD_TO?(A=isNaN(A)?o:2*o-A,i=isNaN(i)?s:2*s-i):r.type&ZW.QUAD_TO?(A=r.relative?o+r.x1:r.x1,i=r.relative?s+r.y1:r.y2):(A=NaN,i=NaN),r.type&ZW.LINE_COMMANDS||r.type&ZW.ARC&&(0===r.rX||0===r.rY||!r.lArcFlag)||r.type&ZW.CURVE_TO||r.type&ZW.SMOOTH_CURVE_TO||r.type&ZW.QUAD_TO||r.type&ZW.SMOOTH_QUAD_TO){var f=void 0===r.x?0:r.relative?r.x:r.x-o,g=void 0===r.y?0:r.relative?r.y:r.y-s;h=isNaN(A)?void 0===r.x1?h:r.relative?r.x:r.x1-o:A-o,d=isNaN(i)?void 0===r.y1?d:r.relative?r.y:r.y1-s:i-s;var p=void 0===r.x2?0:r.relative?r.x:r.x2-o,m=void 0===r.y2?0:r.relative?r.y:r.y2-s;l(f)<=t&&l(g)<=t&&l(h)<=t&&l(d)<=t&&l(p)<=t&&l(m)<=t&&(u=!0)}return r.type&ZW.CLOSE_PATH&&l(o-a)<=t&&l(s-c)<=t&&(u=!0),u?[]:r}))},t.MATRIX=i,t.ROTATE=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=0),_W(t,e,n);var A=Math.sin(t),r=Math.cos(t);return i(r,A,-A,r,e-e*r+n*A,n-e*A-n*r)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),_W(t,e),i(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),_W(t,e),i(t,0,0,e,0,0)},t.SKEW_X=function(t){return _W(t),i(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return _W(t),i(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),_W(t),i(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),_W(t),i(1,0,0,-1,0,t)},t.A_TO_C=function(){return r((function(t,e,n){return ZW.ARC===t.type?function(t,e,n){var A,r,i,o;t.cX||OW(t,e,n);for(var s=Math.min(t.phi1,t.phi2),a=Math.max(t.phi1,t.phi2)-s,c=Math.ceil(a/90),l=new Array(c),u=e,h=n,d=0;d<c;d++){var f=DW(t.phi1,t.phi2,d/c),g=DW(t.phi1,t.phi2,(d+1)/c),p=g-f,m=4/3*Math.tan(p*TW/4),b=[Math.cos(f*TW)-m*Math.sin(f*TW),Math.sin(f*TW)+m*Math.cos(f*TW)],v=b[0],y=b[1],w=[Math.cos(g*TW),Math.sin(g*TW)],B=w[0],C=w[1],x=[B+m*Math.sin(g*TW),C-m*Math.cos(g*TW)],F=x[0],I=x[1];l[d]={relative:t.relative,type:ZW.CURVE_TO};var Q=function(e,n){var A=kW([e*t.rX,n*t.rY],t.xRot),r=A[0],i=A[1];return[t.cX+r,t.cY+i]};A=Q(v,y),l[d].x1=A[0],l[d].y1=A[1],r=Q(F,I),l[d].x2=r[0],l[d].y2=r[1],i=Q(B,C),l[d].x=i[0],l[d].y=i[1],t.relative&&(l[d].x1-=u,l[d].y1-=h,l[d].x2-=u,l[d].y2-=h,l[d].x-=u,l[d].y-=h),u=(o=[l[d].x,l[d].y])[0],h=o[1]}return l}(t,t.relative?0:e,t.relative?0:n):t}))},t.ANNOTATE_ARCS=function(){return r((function(t,e,n){return t.relative&&(e=0,n=0),ZW.ARC===t.type&&OW(t,e,n),t}))},t.CLONE=function(){return function(t){var e={};for(var n in t)e[n]=t[n];return e}},t.CALCULATE_BOUNDS=function(){var t=e(),i=A(),o=n(),s=r((function(e,n,A){var r=o(i(t(function(t){var e={};for(var n in t)e[n]=t[n];return e}(e))));function a(t){t>s.maxX&&(s.maxX=t),t<s.minX&&(s.minX=t)}function c(t){t>s.maxY&&(s.maxY=t),t<s.minY&&(s.minY=t)}if(r.type&ZW.DRAWING_COMMANDS&&(a(n),c(A)),r.type&ZW.HORIZ_LINE_TO&&a(r.x),r.type&ZW.VERT_LINE_TO&&c(r.y),r.type&ZW.LINE_TO&&(a(r.x),c(r.y)),r.type&ZW.CURVE_TO){a(r.x),c(r.y);for(var l=0,u=VW(n,r.x1,r.x2,r.x);l<u.length;l++)0<(Q=u[l])&&1>Q&&a(GW(n,r.x1,r.x2,r.x,Q));for(var h=0,d=VW(A,r.y1,r.y2,r.y);h<d.length;h++)0<(Q=d[h])&&1>Q&&c(GW(A,r.y1,r.y2,r.y,Q))}if(r.type&ZW.ARC){a(r.x),c(r.y),OW(r,n,A);for(var f=r.xRot/180*Math.PI,g=Math.cos(f)*r.rX,p=Math.sin(f)*r.rX,m=-Math.sin(f)*r.rY,b=Math.cos(f)*r.rY,v=r.phi1<r.phi2?[r.phi1,r.phi2]:-180>r.phi2?[r.phi2+360,r.phi1+360]:[r.phi2,r.phi1],y=v[0],w=v[1],B=function(t){var e=t[0],n=t[1],A=180*Math.atan2(n,e)/Math.PI;return A<y?A+360:A},C=0,x=MW(m,-g,0).map(B);C<x.length;C++)(Q=x[C])>y&&Q<w&&a(RW(r.cX,g,m,Q));for(var F=0,I=MW(b,-p,0).map(B);F<I.length;F++){var Q;(Q=I[F])>y&&Q<w&&c(RW(r.cY,p,b,Q))}}return e}));return s.minX=1/0,s.maxX=-1/0,s.minY=1/0,s.maxY=-1/0,s}}(HW||(HW={}));var jW,WW=function(){function t(){}return t.prototype.round=function(t){return this.transform(HW.ROUND(t))},t.prototype.toAbs=function(){return this.transform(HW.TO_ABS())},t.prototype.toRel=function(){return this.transform(HW.TO_REL())},t.prototype.normalizeHVZ=function(t,e,n){return this.transform(HW.NORMALIZE_HVZ(t,e,n))},t.prototype.normalizeST=function(){return this.transform(HW.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(HW.QT_TO_C())},t.prototype.aToC=function(){return this.transform(HW.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(HW.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(HW.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(HW.SCALE(t,e))},t.prototype.rotate=function(t,e,n){return this.transform(HW.ROTATE(t,e,n))},t.prototype.matrix=function(t,e,n,A,r,i){return this.transform(HW.MATRIX(t,e,n,A,r,i))},t.prototype.skewX=function(t){return this.transform(HW.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(HW.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(HW.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(HW.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(HW.ANNOTATE_ARCS())},t}(),KW=function(t){return' '===t||'\t'===t||'\r'===t||'\n'===t},XW=function(t){return'0'.charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<='9'.charCodeAt(0)},zW=function(t){function e(){var e=t.call(this)||this;return e.curNumber='',e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return NW(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(' ',t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError('Unterminated command at the path end.');return t},e.prototype.parse=function(t,e){var n=this;void 0===e&&(e=[]);for(var A=function(t){e.push(t),n.curArgs.length=0,n.canParseCommandOrComma=!0},r=0;r<t.length;r++){var i=t[r],o=!(this.curCommandType!==ZW.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||'0'!==this.curNumber&&'1'!==this.curNumber),s=XW(i)&&('0'===this.curNumber&&'0'===i||o);if(!XW(i)||s)if('e'!==i&&'E'!==i)if('-'!==i&&'+'!==i||!this.curNumberHasExp||this.curNumberHasExpDigits)if('.'!==i||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&-1!==this.curCommandType){var a=Number(this.curNumber);if(isNaN(a))throw new SyntaxError('Invalid number ending at '+r);if(this.curCommandType===ZW.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>a)throw new SyntaxError('Expected positive number, got "'+a+'" at index "'+r+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&'0'!==this.curNumber&&'1'!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+r+'"');this.curArgs.push(a),this.curArgs.length===YW[this.curCommandType]&&(ZW.HORIZ_LINE_TO===this.curCommandType?A({type:ZW.HORIZ_LINE_TO,relative:this.curCommandRelative,x:a}):ZW.VERT_LINE_TO===this.curCommandType?A({type:ZW.VERT_LINE_TO,relative:this.curCommandRelative,y:a}):this.curCommandType===ZW.MOVE_TO||this.curCommandType===ZW.LINE_TO||this.curCommandType===ZW.SMOOTH_QUAD_TO?(A({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),ZW.MOVE_TO===this.curCommandType&&(this.curCommandType=ZW.LINE_TO)):this.curCommandType===ZW.CURVE_TO?A({type:ZW.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===ZW.SMOOTH_CURVE_TO?A({type:ZW.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ZW.QUAD_TO?A({type:ZW.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ZW.ARC&&A({type:ZW.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber='',this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!KW(i))if(','===i&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if('+'!==i&&'-'!==i&&'.'!==i)if(s)this.curNumber=i,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError('Unterminated command at index '+r+'.');if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+i+'" at index '+r+'. Command cannot follow comma');if(this.canParseCommandOrComma=!1,'z'!==i&&'Z'!==i)if('h'===i||'H'===i)this.curCommandType=ZW.HORIZ_LINE_TO,this.curCommandRelative='h'===i;else if('v'===i||'V'===i)this.curCommandType=ZW.VERT_LINE_TO,this.curCommandRelative='v'===i;else if('m'===i||'M'===i)this.curCommandType=ZW.MOVE_TO,this.curCommandRelative='m'===i;else if('l'===i||'L'===i)this.curCommandType=ZW.LINE_TO,this.curCommandRelative='l'===i;else if('c'===i||'C'===i)this.curCommandType=ZW.CURVE_TO,this.curCommandRelative='c'===i;else if('s'===i||'S'===i)this.curCommandType=ZW.SMOOTH_CURVE_TO,this.curCommandRelative='s'===i;else if('q'===i||'Q'===i)this.curCommandType=ZW.QUAD_TO,this.curCommandRelative='q'===i;else if('t'===i||'T'===i)this.curCommandType=ZW.SMOOTH_QUAD_TO,this.curCommandRelative='t'===i;else{if('a'!==i&&'A'!==i)throw new SyntaxError('Unexpected character "'+i+'" at index '+r+'.');this.curCommandType=ZW.ARC,this.curCommandRelative='a'===i}else e.push({type:ZW.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=i,this.curNumberHasDecimal='.'===i}else this.curNumber+=i,this.curNumberHasDecimal=!0;else this.curNumber+=i;else this.curNumber+=i,this.curNumberHasExp=!0;else this.curNumber+=i,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,n){void 0===n&&(n=[]);for(var A=0,r=Object.getPrototypeOf(this).parse.call(this,e);A<r.length;A++){var i=r[A],o=t(i);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}}})},e}(WW),ZW=function(t){function e(n){var A=t.call(this)||this;return A.commands='string'==typeof n?e.parse(n):n,A}return NW(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=HW.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],n=0,A=this.commands;n<A.length;n++){var r=t(A[n]);Array.isArray(r)?e.push.apply(e,r):e.push(r)}return this.commands=e,this},e.encode=function(t){return function(t){var e='';Array.isArray(t)||(t=[t]);for(var n=0;n<t.length;n++){var A=t[n];if(A.type===ZW.CLOSE_PATH)e+='z';else if(A.type===ZW.HORIZ_LINE_TO)e+=(A.relative?'h':'H')+A.x;else if(A.type===ZW.VERT_LINE_TO)e+=(A.relative?'v':'V')+A.y;else if(A.type===ZW.MOVE_TO)e+=(A.relative?'m':'M')+A.x+' '+A.y;else if(A.type===ZW.LINE_TO)e+=(A.relative?'l':'L')+A.x+' '+A.y;else if(A.type===ZW.CURVE_TO)e+=(A.relative?'c':'C')+A.x1+' '+A.y1+' '+A.x2+' '+A.y2+' '+A.x+' '+A.y;else if(A.type===ZW.SMOOTH_CURVE_TO)e+=(A.relative?'s':'S')+A.x2+' '+A.y2+' '+A.x+' '+A.y;else if(A.type===ZW.QUAD_TO)e+=(A.relative?'q':'Q')+A.x1+' '+A.y1+' '+A.x+' '+A.y;else if(A.type===ZW.SMOOTH_QUAD_TO)e+=(A.relative?'t':'T')+A.x+' '+A.y;else{if(A.type!==ZW.ARC)throw new Error('Unexpected command type "'+A.type+'" at index '+n+'.');e+=(A.relative?'a':'A')+A.rX+' '+A.rY+' '+A.xRot+' '+ +A.lArcFlag+' '+ +A.sweepFlag+' '+A.x+' '+A.y}}return e}(t)},e.parse=function(t){var e=new zW,n=[];return e.parse(t,n),e.finish(n),n},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(WW),YW=((jW={})[ZW.MOVE_TO]=2,jW[ZW.LINE_TO]=2,jW[ZW.HORIZ_LINE_TO]=1,jW[ZW.VERT_LINE_TO]=1,jW[ZW.CLOSE_PATH]=0,jW[ZW.QUAD_TO]=4,jW[ZW.SMOOTH_QUAD_TO]=2,jW[ZW.CURVE_TO]=6,jW[ZW.SMOOTH_CURVE_TO]=4,jW[ZW.ARC]=7,jW),qW=PS,JW=hL,$W=yU,tK=FT,eK=RegExp.prototype,nK=xN.PROPER,AK=wk,rK=AN,iK=CT,oK=US,sK=function(t){var e=t.flags;return void 0!==e||'flags'in eK||JW(t,'flags')||!$W(eK,t)?e:qW(tK,t)},aK='toString',cK=RegExp.prototype[aK],lK=oK((function(){return'/a/b'!==cK.call({source:'a',flags:'b'})})),uK=nK&&cK.name!==aK;function hK(t){return hK='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&'function'==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?'symbol':typeof t},hK(t)}(lK||uK)&&AK(RegExp.prototype,aK,(function(){var t=rK(this);return'/'+iK(t.source)+'/'+iK(sK(t))}),{unsafe:!0});
359
+ /**
360
+ * StackBlur - a fast almost Gaussian Blur For Canvas
361
+ *
362
+ * In case you find this class useful - especially in commercial projects -
363
+ * I am not totally unhappy for a small donation to my PayPal account
364
+ * mario@quasimondo.de
365
+ *
366
+ * Or support me on flattr:
367
+ * {@link https://flattr.com/thing/72791/StackBlur-a-fast-almost-Gaussian-Blur-Effect-for-CanvasJavascript}.
368
+ *
369
+ * @module StackBlur
370
+ * @author Mario Klingemann
371
+ * Contact: mario@quasimondo.com
372
+ * Website: {@link http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html}
373
+ * Twitter: @quasimondo
374
+ *
375
+ * @copyright (c) 2010 Mario Klingemann
376
+ *
377
+ * Permission is hereby granted, free of charge, to any person
378
+ * obtaining a copy of this software and associated documentation
379
+ * files (the "Software"), to deal in the Software without
380
+ * restriction, including without limitation the rights to use,
381
+ * copy, modify, merge, publish, distribute, sublicense, and/or sell
382
+ * copies of the Software, and to permit persons to whom the
383
+ * Software is furnished to do so, subject to the following
384
+ * conditions:
385
+ *
386
+ * The above copyright notice and this permission notice shall be
387
+ * included in all copies or substantial portions of the Software.
388
+ *
389
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
390
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
391
+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
392
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
393
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
394
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
395
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
396
+ * OTHER DEALINGS IN THE SOFTWARE.
397
+ */
398
+ var dK=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],fK=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function gK(t,e,n,A,r,i){if(!(isNaN(i)||i<1)){i|=0;var o=function(t,e,n,A,r){if('string'==typeof t&&(t=document.getElementById(t)),!t||'object'!==hK(t)||!('getContext'in t))throw new TypeError('Expecting canvas with `getContext` method in processCanvasRGB(A) calls!');var i=t.getContext('2d');try{return i.getImageData(e,n,A,r)}catch(t){throw new Error('unable to access image data: '+t)}}(t,e,n,A,r);o=function(t,e,n,A,r,i){for(var o,s=t.data,a=2*i+1,c=A-1,l=r-1,u=i+1,h=u*(u+1)/2,d=new pK,f=d,g=1;g<a;g++)f=f.next=new pK,g===u&&(o=f);f.next=d;for(var p=null,m=null,b=0,v=0,y=dK[i],w=fK[i],B=0;B<r;B++){f=d;for(var C=s[v],x=s[v+1],F=s[v+2],I=s[v+3],Q=0;Q<u;Q++)f.r=C,f.g=x,f.b=F,f.a=I,f=f.next;for(var E=0,S=0,U=0,L=0,N=u*C,k=u*x,_=u*F,P=u*I,O=h*C,M=h*x,H=h*F,T=h*I,D=1;D<u;D++){var R=v+((c<D?c:D)<<2),V=s[R],G=s[R+1],j=s[R+2],W=s[R+3],K=u-D;O+=(f.r=V)*K,M+=(f.g=G)*K,H+=(f.b=j)*K,T+=(f.a=W)*K,E+=V,S+=G,U+=j,L+=W,f=f.next}p=d,m=o;for(var X=0;X<A;X++){var z=T*y>>w;if(s[v+3]=z,0!==z){var Z=255/z;s[v]=(O*y>>w)*Z,s[v+1]=(M*y>>w)*Z,s[v+2]=(H*y>>w)*Z}else s[v]=s[v+1]=s[v+2]=0;O-=N,M-=k,H-=_,T-=P,N-=p.r,k-=p.g,_-=p.b,P-=p.a;var Y=X+i+1;Y=b+(Y<c?Y:c)<<2,O+=E+=p.r=s[Y],M+=S+=p.g=s[Y+1],H+=U+=p.b=s[Y+2],T+=L+=p.a=s[Y+3],p=p.next;var q=m,J=q.r,$=q.g,tt=q.b,et=q.a;N+=J,k+=$,_+=tt,P+=et,E-=J,S-=$,U-=tt,L-=et,m=m.next,v+=4}b+=A}for(var nt=0;nt<A;nt++){var At=s[v=nt<<2],rt=s[v+1],it=s[v+2],ot=s[v+3],st=u*At,at=u*rt,ct=u*it,lt=u*ot,ut=h*At,ht=h*rt,dt=h*it,ft=h*ot;f=d;for(var gt=0;gt<u;gt++)f.r=At,f.g=rt,f.b=it,f.a=ot,f=f.next;for(var pt=A,mt=0,bt=0,vt=0,yt=0,wt=1;wt<=i;wt++){v=pt+nt<<2;var Bt=u-wt;ut+=(f.r=At=s[v])*Bt,ht+=(f.g=rt=s[v+1])*Bt,dt+=(f.b=it=s[v+2])*Bt,ft+=(f.a=ot=s[v+3])*Bt,yt+=At,mt+=rt,bt+=it,vt+=ot,f=f.next,wt<l&&(pt+=A)}v=nt,p=d,m=o;for(var Ct=0;Ct<r;Ct++){var xt=v<<2;s[xt+3]=ot=ft*y>>w,ot>0?(ot=255/ot,s[xt]=(ut*y>>w)*ot,s[xt+1]=(ht*y>>w)*ot,s[xt+2]=(dt*y>>w)*ot):s[xt]=s[xt+1]=s[xt+2]=0,ut-=st,ht-=at,dt-=ct,ft-=lt,st-=p.r,at-=p.g,ct-=p.b,lt-=p.a,xt=nt+((xt=Ct+u)<l?xt:l)*A<<2,ut+=yt+=p.r=s[xt],ht+=mt+=p.g=s[xt+1],dt+=bt+=p.b=s[xt+2],ft+=vt+=p.a=s[xt+3],p=p.next,st+=At=m.r,at+=rt=m.g,ct+=it=m.b,lt+=ot=m.a,yt-=At,mt-=rt,bt-=it,vt-=ot,m=m.next,v+=A}}return t}(o,0,0,A,r,i),t.getContext('2d').putImageData(o,e,n)}}var pK=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')}(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};var mK=Object.freeze({__proto__:null,offscreen:function(){var{DOMParser:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:(t,e)=>new OffscreenCanvas(t,e),createImage:t=>yT((function*(){var e=yield fetch(t),n=yield e.blob();return yield createImageBitmap(n)}))()};return'undefined'==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(e,'DOMParser'),e},node:function(t){var{DOMParser:e,canvas:n,fetch:A}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:A,createCanvas:n.createCanvas,createImage:n.loadImage}}});function bK(t){return t.replace(/(?!\u3000)\s+/gm,' ')}function vK(t){return t.replace(/^[\n \t]+/,'')}function yK(t){return t.replace(/[\n \t]+$/,'')}function wK(t){return((t||'').match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var BK=/^[A-Z-]+$/;function CK(t){return BK.test(t)?t.toLowerCase():t}function xK(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function FK(t){if(!t.startsWith('rgb'))return t;var e=3;return t.replace(/\d+(\.\d+)?/g,((t,n)=>e--&&n?String(Math.round(parseFloat(t))):t))}var IK=/(\[[^\]]+\])/g,QK=/(#[^\s+>~.[:]+)/g,EK=/(\.[^\s+>~.[:]+)/g,SK=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,UK=/(:[\w-]+\([^)]*\))/gi,LK=/(:[^\s+>~.[:]+)/g,NK=/([^\s+>~.[:]+)/g;function kK(t,e){var n=e.exec(t);return n?[t.replace(e,' '),n.length]:[t,0]}function _K(t){var e=[0,0,0],n=t.replace(/:not\(([^)]*)\)/g,' $1 ').replace(/{[\s\S]*/gm,' '),A=0;return[n,A]=kK(n,IK),e[1]+=A,[n,A]=kK(n,QK),e[0]+=A,[n,A]=kK(n,EK),e[1]+=A,[n,A]=kK(n,SK),e[2]+=A,[n,A]=kK(n,UK),e[1]+=A,[n,A]=kK(n,LK),e[1]+=A,n=n.replace(/[*\s+>~]/g,' ').replace(/[#.]/g,' '),[n,A]=kK(n,NK),e[2]+=A,e.join('')}var PK=1e-8;function OK(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function MK(t,e){return(t[0]*e[0]+t[1]*e[1])/(OK(t)*OK(e))}function HK(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(MK(t,e))}function TK(t){return t*t*t}function DK(t){return 3*t*t*(1-t)}function RK(t){return 3*t*(1-t)*(1-t)}function VK(t){return(1-t)*(1-t)*(1-t)}function GK(t){return t*t}function jK(t){return 2*t*(1-t)}function WK(t){return(1-t)*(1-t)}class KK{constructor(t,e,n){this.document=t,this.name=e,this.value=n,this.isNormalizedColor=!1}static empty(t){return new KK(t,'EMPTY','')}split(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:' ',{document:e,name:n}=this;return bK(this.getString()).trim().split(t).map((t=>new KK(e,n,t)))}hasValue(t){var{value:e}=this;return null!==e&&''!==e&&(t||0!==e)&&void 0!==e}isString(t){var{value:e}=this,n='string'==typeof e;return n&&t?t.test(e):n}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith('px'):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return void 0===t||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);var{value:e}=this,n=parseFloat(e);return this.isString(/%$/)&&(n/=100),n}getString(t){return void 0===t||this.hasValue()?void 0===this.value?'':String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=FK(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,'')}getPixels(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[n,A]='boolean'==typeof t?[void 0,t]:[t],{viewPort:r}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(r.computeSize('x'),r.computeSize('y'));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(r.computeSize('x'),r.computeSize('y'));case this.isString(/vw$/):return this.getNumber()/100*r.computeSize('x');case this.isString(/vh$/):return this.getNumber()/100*r.computeSize('y');case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&A:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*r.computeSize(n);default:var i=this.getNumber();return e&&i<1?i*r.computeSize(n):i}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var n=this.getDefinition();if(!n)return null;if('function'==typeof n.createGradient)return n.createGradient(this.document.ctx,t,e);if('function'==typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var A=n.getAttribute('patternTransform');n=n.getHrefAttribute().getDefinition(),A.hasValue()&&n.getAttribute('patternTransform',!0).setValue(A.value)}return n.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?KK.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),n=e.length,A=0,r=0;r<n&&(','===e[r]&&A++,3!==A);r++);if(t.hasValue()&&this.isString()&&3!==A){var i=new fW(e);i.ok&&(i.alpha=t.getNumber(),e=i.toRGBA())}return new KK(this.document,this.name,e)}}KK.textBaselineMapping={baseline:'alphabetic','before-edge':'top','text-before-edge':'top',middle:'middle',central:'middle','after-edge':'bottom','text-after-edge':'bottom',ideographic:'ideographic',alphabetic:'alphabetic',hanging:'hanging',mathematical:'alphabetic'};class XK{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,e){this.viewPorts.push({width:t,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return'number'==typeof t?t:'x'===t?this.width:'y'===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class zK{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[n=e,A=e]=wK(t);return new zK(n,A)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[n=e,A=n]=wK(t);return new zK(n,A)}static parsePath(t){for(var e=wK(t),n=e.length,A=[],r=0;r<n;r+=2)A.push(new zK(e[r],e[r+1]));return A}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:n}=this,A=e*t[0]+n*t[2]+t[4],r=e*t[1]+n*t[3]+t[5];this.x=A,this.y=r}}class ZK{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:t,onClick:e,onMouseMove:n}=this,A=t.ctx.canvas;A.onclick=e,A.onmousemove=n,this.working=!0}}stop(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:n}=this,{style:A}=t.ctx.canvas;A&&(A.cursor=''),e.forEach(((t,e)=>{for(var{run:A}=t,r=n[e];r;)A(r),r=r.parent})),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:n,eventElements:A}=this;n.forEach(((n,r)=>{var{x:i,y:o}=n;!A[r]&&e.isPointInPath&&e.isPointInPath(i,o)&&(A[r]=t)}))}}checkBoundingBox(t,e){if(this.working&&e){var{events:n,eventElements:A}=this;n.forEach(((n,r)=>{var{x:i,y:o}=n;!A[r]&&e.isPointInBox(i,o)&&(A[r]=t)}))}}mapXY(t,e){for(var{window:n,ctx:A}=this.screen,r=new zK(t,e),i=A.canvas;i;)r.x-=i.offsetLeft,r.y-=i.offsetTop,i=i.offsetParent;return n.scrollX&&(r.x+=n.scrollX),n.scrollY&&(r.y+=n.scrollY),r}onClick(t){var{x:e,y:n}=this.mapXY(t.clientX,t.clientY);this.events.push({type:'onclick',x:e,y:n,run(t){t.onClick&&t.onClick()}})}onMouseMove(t){var{x:e,y:n}=this.mapXY(t.clientX,t.clientY);this.events.push({type:'onmousemove',x:e,y:n,run(t){t.onMouseMove&&t.onMouseMove()}})}}var YK='undefined'!=typeof window?window:null,qK='undefined'!=typeof fetch?fetch.bind(void 0):null;class JK{constructor(t){var{fetch:e=qK,window:n=YK}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new XK,this.mouse=new ZK(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every((t=>t()));return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle='rgba(0,0,0,0)',t.lineCap='butt',t.lineJoin='miter',t.miterLimit=4}setViewBox(t){var{document:e,ctx:n,aspectRatio:A,width:r,desiredWidth:i,height:o,desiredHeight:s,minX:a=0,minY:c=0,refX:l,refY:u,clip:h=!1,clipX:d=0,clipY:f=0}=t,g=bK(A).replace(/^defer\s/,''),[p,m]=g.split(' '),b=p||'xMidYMid',v=m||'meet',y=r/i,w=o/s,B=Math.min(y,w),C=Math.max(y,w),x=i,F=s;'meet'===v&&(x*=B,F*=B),'slice'===v&&(x*=C,F*=C);var I=new KK(e,'refX',l),Q=new KK(e,'refY',u),E=I.hasValue()&&Q.hasValue();if(E&&n.translate(-B*I.getPixels('x'),-B*Q.getPixels('y')),h){var S=B*d,U=B*f;n.beginPath(),n.moveTo(S,U),n.lineTo(r,U),n.lineTo(r,o),n.lineTo(S,o),n.closePath(),n.clip()}if(!E){var L='meet'===v&&B===w,N='slice'===v&&C===w,k='meet'===v&&B===y,_='slice'===v&&C===y;b.startsWith('xMid')&&(L||N)&&n.translate(r/2-x/2,0),b.endsWith('YMid')&&(k||_)&&n.translate(0,o/2-F/2),b.startsWith('xMax')&&(L||N)&&n.translate(r-x,0),b.endsWith('YMax')&&(k||_)&&n.translate(0,o-F)}switch(!0){case'none'===b:n.scale(y,w);break;case'meet'===v:n.scale(B,B);break;case'slice'===v:n.scale(C,C)}n.translate(-a,-c)}start(t){var{enableRedraw:e=!1,ignoreMouse:n=!1,ignoreAnimation:A=!1,ignoreDimensions:r=!1,ignoreClear:i=!1,forceRedraw:o,scaleWidth:s,scaleHeight:a,offsetX:c,offsetY:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:u,mouse:h}=this,d=1e3/u;if(this.frameDuration=d,this.readyPromise=new Promise((t=>{this.resolveReady=t})),this.isReady()&&this.render(t,r,i,s,a,c,l),e){var f=Date.now(),g=f,p=0,m=()=>{f=Date.now(),(p=f-g)>=d&&(g=f-p%d,this.shouldUpdate(A,o)&&(this.render(t,r,i,s,a,c,l),h.runEvents())),this.intervalId=$j(m)};n||h.start(),this.intervalId=$j(m)}}stop(){this.intervalId&&($j.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:n}=this,A=this.animations.reduce(((t,e)=>e.update(n)||t),!1);if(A)return!0}return!('function'!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(t,e,n,A,r,i,o){var{CLIENT_WIDTH:s,CLIENT_HEIGHT:a,viewPort:c,ctx:l,isFirstRender:u}=this,h=l.canvas;c.clear(),h.width&&h.height?c.setCurrent(h.width,h.height):c.setCurrent(s,a);var d=t.getStyle('width'),f=t.getStyle('height');!e&&(u||'number'!=typeof A&&'number'!=typeof r)&&(d.hasValue()&&(h.width=d.getPixels('x'),h.style&&(h.style.width=''.concat(h.width,'px'))),f.hasValue()&&(h.height=f.getPixels('y'),h.style&&(h.style.height=''.concat(h.height,'px'))));var g=h.clientWidth||h.width,p=h.clientHeight||h.height;if(e&&d.hasValue()&&f.hasValue()&&(g=d.getPixels('x'),p=f.getPixels('y')),c.setCurrent(g,p),'number'==typeof i&&t.getAttribute('x',!0).setValue(i),'number'==typeof o&&t.getAttribute('y',!0).setValue(o),'number'==typeof A||'number'==typeof r){var m=wK(t.getAttribute('viewBox').getString()),b=0,v=0;if('number'==typeof A){var y=t.getStyle('width');y.hasValue()?b=y.getPixels('x')/A:isNaN(m[2])||(b=m[2]/A)}if('number'==typeof r){var w=t.getStyle('height');w.hasValue()?v=w.getPixels('y')/r:isNaN(m[3])||(v=m[3]/r)}b||(b=v),v||(v=b),t.getAttribute('width',!0).setValue(A),t.getAttribute('height',!0).setValue(r);var B=t.getStyle('transform',!0,!0);B.setValue(''.concat(B.getString(),' scale(').concat(1/b,', ').concat(1/v,')'))}n||l.clearRect(0,0,g,p),t.render(l),u&&(this.isFirstRender=!1)}}JK.defaultWindow=YK,JK.defaultFetch=qK;var{defaultFetch:$K}=JK,tX='undefined'!=typeof DOMParser?DOMParser:null;class eX{constructor(){var{fetch:t=$K,DOMParser:e=tX}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return yT((function*(){return t.startsWith('<')?e.parseFromString(t):e.load(t)}))()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,'image/svg+xml'))}catch(n){return this.checkDocument(e.parseFromString(t,'text/xml'))}}checkDocument(t){var e=t.getElementsByTagName('parsererror')[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return yT((function*(){var n=yield e.fetch(t),A=yield n.text();return e.parseFromString(A)}))()}}class nX{constructor(t,e){this.type='translate',this.point=null,this.point=zK.parse(e)}apply(t){var{x:e,y:n}=this.point;t.translate(e||0,n||0)}unapply(t){var{x:e,y:n}=this.point;t.translate(-1*e||0,-1*n||0)}applyToPoint(t){var{x:e,y:n}=this.point;t.applyTransform([1,0,0,1,e||0,n||0])}}class AX{constructor(t,e,n){this.type='rotate',this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var A=wK(e);this.angle=new KK(t,'angle',A[0]),this.originX=n[0],this.originY=n[1],this.cx=A[1]||0,this.cy=A[2]||0}apply(t){var{cx:e,cy:n,originX:A,originY:r,angle:i}=this,o=e+A.getPixels('x'),s=n+r.getPixels('y');t.translate(o,s),t.rotate(i.getRadians()),t.translate(-o,-s)}unapply(t){var{cx:e,cy:n,originX:A,originY:r,angle:i}=this,o=e+A.getPixels('x'),s=n+r.getPixels('y');t.translate(o,s),t.rotate(-1*i.getRadians()),t.translate(-o,-s)}applyToPoint(t){var{cx:e,cy:n,angle:A}=this,r=A.getRadians();t.applyTransform([1,0,0,1,e||0,n||0]),t.applyTransform([Math.cos(r),Math.sin(r),-Math.sin(r),Math.cos(r),0,0]),t.applyTransform([1,0,0,1,-e||0,-n||0])}}class rX{constructor(t,e,n){this.type='scale',this.scale=null,this.originX=null,this.originY=null;var A=zK.parseScale(e);0!==A.x&&0!==A.y||(A.x=PK,A.y=PK),this.scale=A,this.originX=n[0],this.originY=n[1]}apply(t){var{scale:{x:e,y:n},originX:A,originY:r}=this,i=A.getPixels('x'),o=r.getPixels('y');t.translate(i,o),t.scale(e,n||e),t.translate(-i,-o)}unapply(t){var{scale:{x:e,y:n},originX:A,originY:r}=this,i=A.getPixels('x'),o=r.getPixels('y');t.translate(i,o),t.scale(1/e,1/n||e),t.translate(-i,-o)}applyToPoint(t){var{x:e,y:n}=this.scale;t.applyTransform([e||0,0,0,n||0,0,0])}}class iX{constructor(t,e,n){this.type='matrix',this.matrix=[],this.originX=null,this.originY=null,this.matrix=wK(e),this.originX=n[0],this.originY=n[1]}apply(t){var{originX:e,originY:n,matrix:A}=this,r=e.getPixels('x'),i=n.getPixels('y');t.translate(r,i),t.transform(A[0],A[1],A[2],A[3],A[4],A[5]),t.translate(-r,-i)}unapply(t){var{originX:e,originY:n,matrix:A}=this,r=A[0],i=A[2],o=A[4],s=A[1],a=A[3],c=A[5],l=1/(r*(1*a-0*c)-i*(1*s-0*c)+o*(0*s-0*a)),u=e.getPixels('x'),h=n.getPixels('y');t.translate(u,h),t.transform(l*(1*a-0*c),l*(0*c-1*s),l*(0*o-1*i),l*(1*r-0*o),l*(i*c-o*a),l*(o*s-r*c)),t.translate(-u,-h)}applyToPoint(t){t.applyTransform(this.matrix)}}class oX extends iX{constructor(t,e,n){super(t,e,n),this.type='skew',this.angle=null,this.angle=new KK(t,'angle',e)}}class sX extends oX{constructor(t,e,n){super(t,e,n),this.type='skewX',this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class aX extends oX{constructor(t,e,n){super(t,e,n),this.type='skewY',this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class cX{constructor(t,e,n){this.document=t,this.transforms=[];var A=function(t){return bK(t).trim().replace(/\)([a-zA-Z])/g,') $1').replace(/\)(\s?,\s?)/g,') ').split(/\s(?=[a-z])/)}(e);A.forEach((t=>{if('none'!==t){var[e,A]=function(t){var[e,n]=t.split('(');return[e.trim(),n.trim().replace(')','')]}(t),r=cX.transformTypes[e];void 0!==r&&this.transforms.push(new r(this.document,A,n))}}))}static fromElement(t,e){var n=e.getStyle('transform',!1,!0),[A,r=A]=e.getStyle('transform-origin',!1,!0).split(),i=[A,r];return n.hasValue()?new cX(t,n.getString(),i):null}apply(t){for(var{transforms:e}=this,n=e.length,A=0;A<n;A++)e[A].apply(t)}unapply(t){for(var{transforms:e}=this,n=e.length-1;n>=0;n--)e[n].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,n=e.length,A=0;A<n;A++)e[A].applyToPoint(t)}}cX.transformTypes={translate:nX,rotate:AX,scale:rX,matrix:iX,skewX:sX,skewY:aX};let lX=class t{constructor(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=t,this.node=e,this.captureTextNodes=n,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue='',this.parent=null,this.children=[],e&&1===e.nodeType){if(Array.from(e.attributes).forEach((e=>{var n=CK(e.nodeName);this.attributes[n]=new KK(t,n,e.value)})),this.addStylesFromStyleDefinition(),this.getAttribute('style').hasValue()){var A=this.getAttribute('style').getString().split(';').map((t=>t.trim()));A.forEach((e=>{if(e){var[n,A]=e.split(':').map((t=>t.trim()));this.styles[n]=new KK(t,n,A)}}))}var{definitions:r}=t,i=this.getAttribute('id');i.hasValue()&&(r[i.getString()]||(r[i.getString()]=this)),Array.from(e.childNodes).forEach((e=>{if(1===e.nodeType)this.addChild(e);else if(n&&(3===e.nodeType||4===e.nodeType)){var A=t.createTextNode(e);A.getText().length>0&&this.addChild(A)}}))}}getAttribute(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.attributes[t];if(!n&&e){var A=new KK(this.document,t,'');return this.attributes[t]=A,A}return n||KK.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if('href'===t||t.endsWith(':href'))return this.attributes[t];return KK.empty(this.document)}getStyle(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=this.styles[t];if(A)return A;var r=this.getAttribute(t);if(null!=r&&r.hasValue())return this.styles[t]=r,r;if(!n){var{parent:i}=this;if(i){var o=i.getStyle(t);if(null!=o&&o.hasValue())return o}}if(e){var s=new KK(this.document,t,'');return this.styles[t]=s,s}return A||KK.empty(this.document)}render(t){if('none'!==this.getStyle('display').getString()&&'hidden'!==this.getStyle('visibility').getString()){if(t.save(),this.getStyle('mask').hasValue()){var e=this.getStyle('mask').getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if('none'!==this.getStyle('filter').getValue('none')){var n=this.getStyle('filter').getDefinition();n&&(this.applyEffects(t),n.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=cX.fromElement(this.document,this);e&&e.apply(t);var n=this.getStyle('clip-path',!1,!0);if(n.hasValue()){var A=n.getDefinition();A&&A.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach((e=>{e.render(t)}))}addChild(e){var n=e instanceof t?e:this.document.createElement(e);n.parent=this,t.ignoreChildTypes.includes(n.type)||this.children.push(n)}matchesSelector(t){var e,{node:n}=this;if('function'==typeof n.matches)return n.matches(t);var A=null===(e=n.getAttribute)||void 0===e?void 0:e.call(n,'class');return!(!A||''===A)&&A.split(' ').some((e=>'.'.concat(e)===t))}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var n in t)if(!n.startsWith('@')&&this.matchesSelector(n)){var A=t[n],r=e[n];if(A)for(var i in A){var o=this.stylesSpecificity[i];void 0===o&&(o='000'),r>=o&&(this.styles[i]=A[i],this.stylesSpecificity[i]=r)}}}removeStyles(t,e){return e.reduce(((e,n)=>{var A=t.getStyle(n);if(!A.hasValue())return e;var r=A.getString();return A.setValue(''),[...e,[n,r]]}),[])}restoreStyles(t,e){e.forEach((e=>{var[n,A]=e;t.getStyle(n,!0).setValue(A)}))}isFirstChild(){var t;return 0===(null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this))}};lX.ignoreChildTypes=['title'];class uX extends lX{constructor(t,e,n){super(t,e,n)}}function hX(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function dX(t){return'undefined'==typeof process?t:t.trim().split(',').map(hX).join(',')}function fX(t){if(!t)return'';var e=t.trim().toLowerCase();switch(e){case'normal':case'italic':case'oblique':case'inherit':case'initial':case'unset':return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:''}}function gX(t){if(!t)return'';var e=t.trim().toLowerCase();switch(e){case'normal':case'bold':case'lighter':case'bolder':case'inherit':case'initial':case'unset':return e;default:return/^[\d.]+$/.test(e)?e:''}}class pX{constructor(t,e,n,A,r,i){var o=i?'string'==typeof i?pX.parse(i):i:{};this.fontFamily=r||o.fontFamily,this.fontSize=A||o.fontSize,this.fontStyle=t||o.fontStyle,this.fontWeight=n||o.fontWeight,this.fontVariant=e||o.fontVariant}static parse(){var t=arguments.length>1?arguments[1]:void 0,e='',n='',A='',r='',i='',o=bK(arguments.length>0&&void 0!==arguments[0]?arguments[0]:'').trim().split(' '),s={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach((t=>{switch(!0){case!s.fontStyle&&pX.styles.includes(t):'inherit'!==t&&(e=t),s.fontStyle=!0;break;case!s.fontVariant&&pX.variants.includes(t):'inherit'!==t&&(n=t),s.fontStyle=!0,s.fontVariant=!0;break;case!s.fontWeight&&pX.weights.includes(t):'inherit'!==t&&(A=t),s.fontStyle=!0,s.fontVariant=!0,s.fontWeight=!0;break;case!s.fontSize:'inherit'!==t&&([r]=t.split('/')),s.fontStyle=!0,s.fontVariant=!0,s.fontWeight=!0,s.fontSize=!0;break;default:'inherit'!==t&&(i+=t)}})),new pX(e,n,A,r,i,t)}toString(){return[fX(this.fontStyle),this.fontVariant,gX(this.fontWeight),this.fontSize,dX(this.fontFamily)].join(' ').trim()}}pX.styles='normal|italic|oblique|inherit',pX.variants='normal|small-caps|inherit',pX.weights='normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit';class mX{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=n,this.y2=A,this.addPoint(t,e),this.addPoint(n,A)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:n,x2:A,y2:r}=t;this.addPoint(e,n),this.addPoint(A,r)}}sumCubic(t,e,n,A,r){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*n+3*(1-t)*Math.pow(t,2)*A+Math.pow(t,3)*r}bezierCurveAdd(t,e,n,A,r){var i=6*e-12*n+6*A,o=-3*e+9*n-9*A+3*r,s=3*n-3*e;if(0!==o){var a=Math.pow(i,2)-4*s*o;if(!(a<0)){var c=(-i+Math.sqrt(a))/(2*o);0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,n,A,r)):this.addY(this.sumCubic(c,e,n,A,r)));var l=(-i-Math.sqrt(a))/(2*o);0<l&&l<1&&(t?this.addX(this.sumCubic(l,e,n,A,r)):this.addY(this.sumCubic(l,e,n,A,r)))}}else{if(0===i)return;var u=-s/i;0<u&&u<1&&(t?this.addX(this.sumCubic(u,e,n,A,r)):this.addY(this.sumCubic(u,e,n,A,r)))}}addBezierCurve(t,e,n,A,r,i,o,s){this.addPoint(t,e),this.addPoint(o,s),this.bezierCurveAdd(!0,t,n,r,o),this.bezierCurveAdd(!1,e,A,i,s)}addQuadraticCurve(t,e,n,A,r,i){var o=t+2/3*(n-t),s=e+2/3*(A-e),a=o+1/3*(r-t),c=s+1/3*(i-e);this.addBezierCurve(t,e,o,a,s,c,r,i)}isPointInBox(t,e){var{x1:n,y1:A,x2:r,y2:i}=this;return n<=t&&t<=r&&A<=e&&e<=i}}class bX extends ZW{constructor(t){super(t.replace(/([+\-.])\s+/gm,'$1').replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,'')),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new zK(0,0),this.control=new zK(0,0),this.current=new zK(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:e}=this;return t>=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'x',e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'y',n=new zK(this.command[t],this.command[e]);return this.makeAbsolute(n)}getAsControlPoint(t,e){var n=this.getPoint(t,e);return this.control=n,n}getAsCurrentPoint(t,e){var n=this.getPoint(t,e);return this.current=n,n}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==ZW.CURVE_TO&&t!==ZW.SMOOTH_CURVE_TO&&t!==ZW.QUAD_TO&&t!==ZW.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:n},control:{x:A,y:r}}=this;return new zK(2*e-A,2*n-r)}makeAbsolute(t){if(this.command.relative){var{x:e,y:n}=this.current;t.x+=e,t.y+=n}return t}addMarker(t,e,n){var{points:A,angles:r}=this;n&&r.length>0&&!r[r.length-1]&&(r[r.length-1]=A[A.length-1].angleTo(n)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,n=0;n<e;n++)if(!t[n])for(var A=n+1;A<e;A++)if(t[A]){t[n]=t[A];break}return t}}class vX extends lX{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,e=this;e;){var n=e.getStyle('opacity',!1,!0);n.hasValue(!0)&&(t*=n.getNumber()),e=e.parent}return t}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var n=this.getStyle('fill'),A=this.getStyle('fill-opacity'),r=this.getStyle('stroke'),i=this.getStyle('stroke-opacity');if(n.isUrlDefinition()){var o=n.getFillStyleDefinition(this,A);o&&(t.fillStyle=o)}else if(n.hasValue()){'currentColor'===n.getString()&&n.setValue(this.getStyle('color').getColor());var s=n.getColor();'inherit'!==s&&(t.fillStyle='none'===s?'rgba(0,0,0,0)':s)}if(A.hasValue()){var a=new KK(this.document,'fill',t.fillStyle).addOpacity(A).getColor();t.fillStyle=a}if(r.isUrlDefinition()){var c=r.getFillStyleDefinition(this,i);c&&(t.strokeStyle=c)}else if(r.hasValue()){'currentColor'===r.getString()&&r.setValue(this.getStyle('color').getColor());var l=r.getString();'inherit'!==l&&(t.strokeStyle='none'===l?'rgba(0,0,0,0)':l)}if(i.hasValue()){var u=new KK(this.document,'stroke',t.strokeStyle).addOpacity(i).getString();t.strokeStyle=u}var h=this.getStyle('stroke-width');if(h.hasValue()){var d=h.getPixels();t.lineWidth=d||PK}var f=this.getStyle('stroke-linecap'),g=this.getStyle('stroke-linejoin'),p=this.getStyle('stroke-miterlimit'),m=this.getStyle('stroke-dasharray'),b=this.getStyle('stroke-dashoffset');if(f.hasValue()&&(t.lineCap=f.getString()),g.hasValue()&&(t.lineJoin=g.getString()),p.hasValue()&&(t.miterLimit=p.getNumber()),m.hasValue()&&'none'!==m.getString()){var v=wK(m.getString());void 0!==t.setLineDash?t.setLineDash(v):void 0!==t.webkitLineDash?t.webkitLineDash=v:void 0===t.mozDash||1===v.length&&0===v[0]||(t.mozDash=v);var y=b.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=y:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=y:void 0!==t.mozDashOffset&&(t.mozDashOffset=y)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var w=this.getStyle('font'),B=this.getStyle('font-style'),C=this.getStyle('font-variant'),x=this.getStyle('font-weight'),F=this.getStyle('font-size'),I=this.getStyle('font-family'),Q=new pX(B.getString(),C.getString(),x.getString(),F.hasValue()?''.concat(F.getPixels(!0),'px'):'',I.getString(),pX.parse(w.getString(),t.font));B.setValue(Q.fontStyle),C.setValue(Q.fontVariant),x.setValue(Q.fontWeight),F.setValue(Q.fontSize),I.setValue(Q.fontFamily),t.font=Q.toString(),F.isPixels()&&(this.document.emSize=F.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class yX extends vX{constructor(t,e,n){super(t,e,n),this.type='path',this.pathParser=null,this.pathParser=new bX(this.getAttribute('d').getString())}path(t){var{pathParser:e}=this,n=new mX;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case bX.MOVE_TO:this.pathM(t,n);break;case bX.LINE_TO:this.pathL(t,n);break;case bX.HORIZ_LINE_TO:this.pathH(t,n);break;case bX.VERT_LINE_TO:this.pathV(t,n);break;case bX.CURVE_TO:this.pathC(t,n);break;case bX.SMOOTH_CURVE_TO:this.pathS(t,n);break;case bX.QUAD_TO:this.pathQ(t,n);break;case bX.SMOOTH_QUAD_TO:this.pathT(t,n);break;case bX.ARC:this.pathA(t,n);break;case bX.CLOSE_PATH:this.pathZ(t,n)}return n}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),n=t.getMarkerAngles(),A=e.map(((t,e)=>[t,n[e]]));return A}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle('fill-rule');''!==t.fillStyle&&('inherit'!==e.getString('inherit')?t.fill(e.getString()):t.fill()),''!==t.strokeStyle&&('non-scaling-stroke'===this.getAttribute('vector-effect').getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var n=this.getMarkers();if(n){var A=n.length-1,r=this.getStyle('marker-start'),i=this.getStyle('marker-mid'),o=this.getStyle('marker-end');if(r.isUrlDefinition()){var s=r.getDefinition(),[a,c]=n[0];s.render(t,a,c)}if(i.isUrlDefinition())for(var l=i.getDefinition(),u=1;u<A;u++){var[h,d]=n[u];l.render(t,h,d)}if(o.isUrlDefinition()){var f=o.getDefinition(),[g,p]=n[A];f.render(t,g,p)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:n}=this,{point:A}=yX.pathM(n),{x:r,y:i}=A;n.addMarker(A),e.addPoint(r,i),t&&t.moveTo(r,i)}static pathL(t){var{current:e}=t;return{current:e,point:t.getAsCurrentPoint()}}pathL(t,e){var{pathParser:n}=this,{current:A,point:r}=yX.pathL(n),{x:i,y:o}=r;n.addMarker(r,A),e.addPoint(i,o),t&&t.lineTo(i,o)}static pathH(t){var{current:e,command:n}=t,A=new zK((n.relative?e.x:0)+n.x,e.y);return t.current=A,{current:e,point:A}}pathH(t,e){var{pathParser:n}=this,{current:A,point:r}=yX.pathH(n),{x:i,y:o}=r;n.addMarker(r,A),e.addPoint(i,o),t&&t.lineTo(i,o)}static pathV(t){var{current:e,command:n}=t,A=new zK(e.x,(n.relative?e.y:0)+n.y);return t.current=A,{current:e,point:A}}pathV(t,e){var{pathParser:n}=this,{current:A,point:r}=yX.pathV(n),{x:i,y:o}=r;n.addMarker(r,A),e.addPoint(i,o),t&&t.lineTo(i,o)}static pathC(t){var{current:e}=t;return{current:e,point:t.getPoint('x1','y1'),controlPoint:t.getAsControlPoint('x2','y2'),currentPoint:t.getAsCurrentPoint()}}pathC(t,e){var{pathParser:n}=this,{current:A,point:r,controlPoint:i,currentPoint:o}=yX.pathC(n);n.addMarker(o,i,r),e.addBezierCurve(A.x,A.y,r.x,r.y,i.x,i.y,o.x,o.y),t&&t.bezierCurveTo(r.x,r.y,i.x,i.y,o.x,o.y)}static pathS(t){var{current:e}=t;return{current:e,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint('x2','y2'),currentPoint:t.getAsCurrentPoint()}}pathS(t,e){var{pathParser:n}=this,{current:A,point:r,controlPoint:i,currentPoint:o}=yX.pathS(n);n.addMarker(o,i,r),e.addBezierCurve(A.x,A.y,r.x,r.y,i.x,i.y,o.x,o.y),t&&t.bezierCurveTo(r.x,r.y,i.x,i.y,o.x,o.y)}static pathQ(t){var{current:e}=t;return{current:e,controlPoint:t.getAsControlPoint('x1','y1'),currentPoint:t.getAsCurrentPoint()}}pathQ(t,e){var{pathParser:n}=this,{current:A,controlPoint:r,currentPoint:i}=yX.pathQ(n);n.addMarker(i,r,r),e.addQuadraticCurve(A.x,A.y,r.x,r.y,i.x,i.y),t&&t.quadraticCurveTo(r.x,r.y,i.x,i.y)}static pathT(t){var{current:e}=t,n=t.getReflectedControlPoint();return t.control=n,{current:e,controlPoint:n,currentPoint:t.getAsCurrentPoint()}}pathT(t,e){var{pathParser:n}=this,{current:A,controlPoint:r,currentPoint:i}=yX.pathT(n);n.addMarker(i,r,r),e.addQuadraticCurve(A.x,A.y,r.x,r.y,i.x,i.y),t&&t.quadraticCurveTo(r.x,r.y,i.x,i.y)}static pathA(t){var{current:e,command:n}=t,{rX:A,rY:r,xRot:i,lArcFlag:o,sweepFlag:s}=n,a=i*(Math.PI/180),c=t.getAsCurrentPoint(),l=new zK(Math.cos(a)*(e.x-c.x)/2+Math.sin(a)*(e.y-c.y)/2,-Math.sin(a)*(e.x-c.x)/2+Math.cos(a)*(e.y-c.y)/2),u=Math.pow(l.x,2)/Math.pow(A,2)+Math.pow(l.y,2)/Math.pow(r,2);u>1&&(A*=Math.sqrt(u),r*=Math.sqrt(u));var h=(o===s?-1:1)*Math.sqrt((Math.pow(A,2)*Math.pow(r,2)-Math.pow(A,2)*Math.pow(l.y,2)-Math.pow(r,2)*Math.pow(l.x,2))/(Math.pow(A,2)*Math.pow(l.y,2)+Math.pow(r,2)*Math.pow(l.x,2)));isNaN(h)&&(h=0);var d=new zK(h*A*l.y/r,h*-r*l.x/A),f=new zK((e.x+c.x)/2+Math.cos(a)*d.x-Math.sin(a)*d.y,(e.y+c.y)/2+Math.sin(a)*d.x+Math.cos(a)*d.y),g=HK([1,0],[(l.x-d.x)/A,(l.y-d.y)/r]),p=[(l.x-d.x)/A,(l.y-d.y)/r],m=[(-l.x-d.x)/A,(-l.y-d.y)/r],b=HK(p,m);return MK(p,m)<=-1&&(b=Math.PI),MK(p,m)>=1&&(b=0),{currentPoint:c,rX:A,rY:r,sweepFlag:s,xAxisRotation:a,centp:f,a1:g,ad:b}}pathA(t,e){var{pathParser:n}=this,{currentPoint:A,rX:r,rY:i,sweepFlag:o,xAxisRotation:s,centp:a,a1:c,ad:l}=yX.pathA(n),u=1-o?1:-1,h=c+u*(l/2),d=new zK(a.x+r*Math.cos(h),a.y+i*Math.sin(h));if(n.addMarkerAngle(d,h-u*Math.PI/2),n.addMarkerAngle(A,h-u*Math.PI),e.addPoint(A.x,A.y),t&&!isNaN(c)&&!isNaN(l)){var f=r>i?r:i,g=r>i?1:r/i,p=r>i?i/r:1;t.translate(a.x,a.y),t.rotate(s),t.scale(g,p),t.arc(0,0,f,c,c+l,Boolean(1-o)),t.scale(1/g,1/p),t.rotate(-s),t.translate(-a.x,-a.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){yX.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class wX extends yX{constructor(t,e,n){super(t,e,n),this.type='glyph',this.horizAdvX=this.getAttribute('horiz-adv-x').getNumber(),this.unicode=this.getAttribute('unicode').getString(),this.arabicForm=this.getAttribute('arabic-form').getString()}}class BX extends vX{constructor(t,e,n){super(t,e,new.target===BX||n),this.type='text',this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(t,e);var n=this.getStyle('dominant-baseline').getTextBaseline()||this.getStyle('alignment-baseline').getTextBaseline();n&&(t.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if('text'!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach(((n,A)=>{var r=this.getChildBoundingBox(t,this,this,A);e?e.addBoundingBox(r):e=r})),e}getFontSize(){var{document:t,parent:e}=this,n=pX.parse(t.ctx.font).fontSize;return e.getStyle('font-size').getNumber(n)}getTElementBoundingBox(t){var e=this.getFontSize();return new mX(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,n){var A=e[n],r=null;if(t.isArabic){var i=e.length,o=e[n-1],s=e[n+1],a='isolated';if((0===n||' '===o)&&n<i-1&&' '!==s&&(a='terminal'),n>0&&' '!==o&&n<i-1&&' '!==s&&(a='medial'),n>0&&' '!==o&&(n===i-1||' '===s)&&(a='initial'),void 0!==t.glyphs[A]){var c=t.glyphs[A];r=c instanceof wX?c:c[a]}}else r=t.glyphs[A];return r||(r=t.missingGlyph),r}getText(){return''}getTextFromNode(t){var e=t||this.node,n=Array.from(e.parentNode.childNodes),A=n.indexOf(e),r=n.length-1,i=bK(e.textContent||'');return 0===A&&(i=vK(i)),A===r&&(i=yK(i)),i}renderChildren(t){if('text'===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach(((e,n)=>{this.renderChild(t,this,this,n)}));var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:n}=this,A=this.getText(),r=n.getStyle('font-family').getDefinition();if(r)for(var{unitsPerEm:i}=r.fontFace,o=pX.parse(e.ctx.font),s=n.getStyle('font-size').getNumber(o.fontSize),a=n.getStyle('font-style').getString(o.fontStyle),c=s/i,l=r.isRTL?A.split('').reverse().join(''):A,u=wK(n.getAttribute('dx').getString()),h=l.length,d=0;d<h;d++){var f=this.getGlyph(r,l,d);t.translate(this.x,this.y),t.scale(c,-c);var g=t.lineWidth;t.lineWidth=t.lineWidth*i/s,'italic'===a&&t.transform(1,0,.4,1,0,0),f.render(t),'italic'===a&&t.transform(1,0,-.4,1,0,0),t.lineWidth=g,t.scale(1/c,-1/c),t.translate(-this.x,-this.y),this.x+=s*(f.horizAdvX||r.horizAdvX)/i,void 0===u[d]||isNaN(u[d])||(this.x+=u[d])}else{var{x:p,y:m}=this;t.fillStyle&&t.fillText(A,p,m),t.strokeStyle&&t.strokeText(A,p,m)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],e=t.getStyle('text-anchor').getString('start'),n=0;n='start'===e?t.x-this.minX:'end'===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var A=this.textChunkStart;A<this.leafTexts.length;A++)this.leafTexts[A].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(t){this.children.forEach(((e,n)=>{this.adjustChildCoordinatesRecursiveCore(t,this,this,n)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,n,A){var r=n.children[A];r.children.length>0?r.children.forEach(((n,A)=>{e.adjustChildCoordinatesRecursiveCore(t,e,r,A)})):this.adjustChildCoordinates(t,e,n,A)}adjustChildCoordinates(t,e,n,A){var r=n.children[A];if('function'!=typeof r.measureText)return r;t.save(),r.setContext(t,!0);var i=r.getAttribute('x'),o=r.getAttribute('y'),s=r.getAttribute('dx'),a=r.getAttribute('dy'),c=r.getStyle('font-family').getDefinition(),l=Boolean(c)&&c.isRTL;0===A&&(i.hasValue()||i.setValue(r.getInheritedAttribute('x')),o.hasValue()||o.setValue(r.getInheritedAttribute('y')),s.hasValue()||s.setValue(r.getInheritedAttribute('dx')),a.hasValue()||a.setValue(r.getInheritedAttribute('dy')));var u=r.measureText(t);return l&&(e.x-=u),i.hasValue()?(e.applyAnchoring(),r.x=i.getPixels('x'),s.hasValue()&&(r.x+=s.getPixels('x'))):(s.hasValue()&&(e.x+=s.getPixels('x')),r.x=e.x),e.x=r.x,l||(e.x+=u),o.hasValue()?(r.y=o.getPixels('y'),a.hasValue()&&(r.y+=a.getPixels('y'))):(a.hasValue()&&(e.y+=a.getPixels('y')),r.y=e.y),e.y=r.y,e.leafTexts.push(r),e.minX=Math.min(e.minX,r.x,r.x+u),e.maxX=Math.max(e.maxX,r.x,r.x+u),r.clearContext(t),t.restore(),r}getChildBoundingBox(t,e,n,A){var r=n.children[A];if('function'!=typeof r.getBoundingBox)return null;var i=r.getBoundingBox(t);return i?(r.children.forEach(((n,A)=>{var o=e.getChildBoundingBox(t,e,r,A);i.addBoundingBox(o)})),i):null}renderChild(t,e,n,A){var r=n.children[A];r.render(t),r.children.forEach(((n,A)=>{e.renderChild(t,e,r,A)}))}measureText(t){var{measureCache:e}=this;if(~e)return e;var n=this.getText(),A=this.measureTargetText(t,n);return this.measureCache=A,A}measureTargetText(t,e){if(!e.length)return 0;var{parent:n}=this,A=n.getStyle('font-family').getDefinition();if(A){for(var r=this.getFontSize(),i=A.isRTL?e.split('').reverse().join(''):e,o=wK(n.getAttribute('dx').getString()),s=i.length,a=0,c=0;c<s;c++){a+=(this.getGlyph(A,i,c).horizAdvX||A.horizAdvX)*r/A.fontFace.unitsPerEm,void 0===o[c]||isNaN(o[c])||(a+=o[c])}return a}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var{width:l}=t.measureText(e);return this.clearContext(t),t.restore(),l}getInheritedAttribute(t){for(var e=this;e instanceof BX&&e.isFirstChild();){var n=e.parent.getAttribute(t);if(n.hasValue(!0))return n.getValue('0');e=e.parent}return null}}class CX extends BX{constructor(t,e,n){super(t,e,new.target===CX||n),this.type='tspan',this.text=this.children.length>0?'':this.getTextFromNode()}getText(){return this.text}}class xX extends CX{constructor(){super(...arguments),this.type='textNode'}}let FX=class extends vX{constructor(){super(...arguments),this.type='svg',this.root=!1}setContext(t){var e,{document:n}=this,{screen:A,window:r}=n,i=t.canvas;if(A.setDefaults(t),i.style&&void 0!==t.font&&r&&void 0!==r.getComputedStyle){t.font=r.getComputedStyle(i).getPropertyValue('font');var o=new KK(n,'fontSize',pX.parse(t.font).fontSize);o.hasValue()&&(n.rootEmSize=o.getPixels('y'),n.emSize=n.rootEmSize)}this.getAttribute('x').hasValue()||this.getAttribute('x',!0).setValue(0),this.getAttribute('y').hasValue()||this.getAttribute('y',!0).setValue(0);var{width:s,height:a}=A.viewPort;this.getStyle('width').hasValue()||this.getStyle('width',!0).setValue('100%'),this.getStyle('height').hasValue()||this.getStyle('height',!0).setValue('100%'),this.getStyle('color').hasValue()||this.getStyle('color',!0).setValue('black');var c=this.getAttribute('refX'),l=this.getAttribute('refY'),u=this.getAttribute('viewBox'),h=u.hasValue()?wK(u.getString()):null,d=!this.root&&'visible'!==this.getStyle('overflow').getValue('hidden'),f=0,g=0,p=0,m=0;h&&(f=h[0],g=h[1]),this.root||(s=this.getStyle('width').getPixels('x'),a=this.getStyle('height').getPixels('y'),'marker'===this.type&&(p=f,m=g,f=0,g=0)),A.viewPort.setCurrent(s,a),!this.node||this.parent&&'foreignObject'!==(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName)||!this.getStyle('transform',!1,!0).hasValue()||this.getStyle('transform-origin',!1,!0).hasValue()||this.getStyle('transform-origin',!0,!0).setValue('50% 50%'),super.setContext(t),t.translate(this.getAttribute('x').getPixels('x'),this.getAttribute('y').getPixels('y')),h&&(s=h[2],a=h[3]),n.setViewBox({ctx:t,aspectRatio:this.getAttribute('preserveAspectRatio').getString(),width:A.viewPort.width,desiredWidth:s,height:A.viewPort.height,desiredHeight:a,minX:f,minY:g,refX:c.getValue(),refY:l.getValue(),clip:d,clipX:p,clipY:m}),h&&(A.viewPort.removeCurrent(),A.viewPort.setCurrent(s,a))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=this.getAttribute('width',!0),r=this.getAttribute('height',!0),i=this.getAttribute('viewBox'),o=this.getAttribute('style'),s=A.getNumber(0),a=r.getNumber(0);if(n)if('string'==typeof n)this.getAttribute('preserveAspectRatio',!0).setValue(n);else{var c=this.getAttribute('preserveAspectRatio');c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,'$1'))}if(A.setValue(t),r.setValue(e),i.hasValue()||i.setValue('0 0 '.concat(s||t,' ').concat(a||e)),o.hasValue()){var l=this.getStyle('width'),u=this.getStyle('height');l.hasValue()&&l.setValue(''.concat(t,'px')),u.hasValue()&&u.setValue(''.concat(e,'px'))}}};class IX extends yX{constructor(){super(...arguments),this.type='rect'}path(t){var e=this.getAttribute('x').getPixels('x'),n=this.getAttribute('y').getPixels('y'),A=this.getStyle('width',!1,!0).getPixels('x'),r=this.getStyle('height',!1,!0).getPixels('y'),i=this.getAttribute('rx'),o=this.getAttribute('ry'),s=i.getPixels('x'),a=o.getPixels('y');if(i.hasValue()&&!o.hasValue()&&(a=s),o.hasValue()&&!i.hasValue()&&(s=a),s=Math.min(s,A/2),a=Math.min(a,r/2),t){var c=(Math.sqrt(2)-1)/3*4;t.beginPath(),r>0&&A>0&&(t.moveTo(e+s,n),t.lineTo(e+A-s,n),t.bezierCurveTo(e+A-s+c*s,n,e+A,n+a-c*a,e+A,n+a),t.lineTo(e+A,n+r-a),t.bezierCurveTo(e+A,n+r-a+c*a,e+A-s+c*s,n+r,e+A-s,n+r),t.lineTo(e+s,n+r),t.bezierCurveTo(e+s-c*s,n+r,e,n+r-a+c*a,e,n+r-a),t.lineTo(e,n+a),t.bezierCurveTo(e,n+a-c*a,e+s-c*s,n,e+s,n),t.closePath())}return new mX(e,n,e+A,n+r)}getMarkers(){return null}}class QX extends yX{constructor(){super(...arguments),this.type='circle'}path(t){var e=this.getAttribute('cx').getPixels('x'),n=this.getAttribute('cy').getPixels('y'),A=this.getAttribute('r').getPixels();return t&&A>0&&(t.beginPath(),t.arc(e,n,A,0,2*Math.PI,!1),t.closePath()),new mX(e-A,n-A,e+A,n+A)}getMarkers(){return null}}class EX extends yX{constructor(){super(...arguments),this.type='ellipse'}path(t){var e=(Math.sqrt(2)-1)/3*4,n=this.getAttribute('rx').getPixels('x'),A=this.getAttribute('ry').getPixels('y'),r=this.getAttribute('cx').getPixels('x'),i=this.getAttribute('cy').getPixels('y');return t&&n>0&&A>0&&(t.beginPath(),t.moveTo(r+n,i),t.bezierCurveTo(r+n,i+e*A,r+e*n,i+A,r,i+A),t.bezierCurveTo(r-e*n,i+A,r-n,i+e*A,r-n,i),t.bezierCurveTo(r-n,i-e*A,r-e*n,i-A,r,i-A),t.bezierCurveTo(r+e*n,i-A,r+n,i-e*A,r+n,i),t.closePath()),new mX(r-n,i-A,r+n,i+A)}getMarkers(){return null}}class SX extends yX{constructor(){super(...arguments),this.type='line'}getPoints(){return[new zK(this.getAttribute('x1').getPixels('x'),this.getAttribute('y1').getPixels('y')),new zK(this.getAttribute('x2').getPixels('x'),this.getAttribute('y2').getPixels('y'))]}path(t){var[{x:e,y:n},{x:A,y:r}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,n),t.lineTo(A,r)),new mX(e,n,A,r)}getMarkers(){var[t,e]=this.getPoints(),n=t.angleTo(e);return[[t,n],[e,n]]}}class UX extends yX{constructor(t,e,n){super(t,e,n),this.type='polyline',this.points=[],this.points=zK.parsePath(this.getAttribute('points').getString())}path(t){var{points:e}=this,[{x:n,y:A}]=e,r=new mX(n,A);return t&&(t.beginPath(),t.moveTo(n,A)),e.forEach((e=>{var{x:n,y:A}=e;r.addPoint(n,A),t&&t.lineTo(n,A)})),r}getMarkers(){var{points:t}=this,e=t.length-1,n=[];return t.forEach(((A,r)=>{r!==e&&n.push([A,A.angleTo(t[r+1])])})),n.length>0&&n.push([t[t.length-1],n[n.length-1][1]]),n}}class LX extends UX{constructor(){super(...arguments),this.type='polygon'}path(t){var e=super.path(t),[{x:n,y:A}]=this.points;return t&&(t.lineTo(n,A),t.closePath()),e}}class NX extends lX{constructor(){super(...arguments),this.type='pattern'}createPattern(t,e,n){var A=this.getStyle('width').getPixels('x',!0),r=this.getStyle('height').getPixels('y',!0),i=new FX(this.document,null);i.attributes.viewBox=new KK(this.document,'viewBox',this.getAttribute('viewBox').getValue()),i.attributes.width=new KK(this.document,'width',''.concat(A,'px')),i.attributes.height=new KK(this.document,'height',''.concat(r,'px')),i.attributes.transform=new KK(this.document,'transform',this.getAttribute('patternTransform').getValue()),i.children=this.children;var o=this.document.createCanvas(A,r),s=o.getContext('2d'),a=this.getAttribute('x'),c=this.getAttribute('y');a.hasValue()&&c.hasValue()&&s.translate(a.getPixels('x',!0),c.getPixels('y',!0)),n.hasValue()?this.styles['fill-opacity']=n:Reflect.deleteProperty(this.styles,'fill-opacity');for(var l=-1;l<=1;l++)for(var u=-1;u<=1;u++)s.save(),i.attributes.x=new KK(this.document,'x',l*o.width),i.attributes.y=new KK(this.document,'y',u*o.height),i.render(s),s.restore();return t.createPattern(o,'repeat')}}class kX extends lX{constructor(){super(...arguments),this.type='marker'}render(t,e,n){if(e){var{x:A,y:r}=e,i=this.getAttribute('orient').getString('auto'),o=this.getAttribute('markerUnits').getString('strokeWidth');t.translate(A,r),'auto'===i&&t.rotate(n),'strokeWidth'===o&&t.scale(t.lineWidth,t.lineWidth),t.save();var s=new FX(this.document,null);s.type=this.type,s.attributes.viewBox=new KK(this.document,'viewBox',this.getAttribute('viewBox').getValue()),s.attributes.refX=new KK(this.document,'refX',this.getAttribute('refX').getValue()),s.attributes.refY=new KK(this.document,'refY',this.getAttribute('refY').getValue()),s.attributes.width=new KK(this.document,'width',this.getAttribute('markerWidth').getValue()),s.attributes.height=new KK(this.document,'height',this.getAttribute('markerHeight').getValue()),s.attributes.overflow=new KK(this.document,'overflow',this.getAttribute('overflow').getValue()),s.attributes.fill=new KK(this.document,'fill',this.getAttribute('fill').getColor('black')),s.attributes.stroke=new KK(this.document,'stroke',this.getAttribute('stroke').getValue('none')),s.children=this.children,s.render(t),t.restore(),'strokeWidth'===o&&t.scale(1/t.lineWidth,1/t.lineWidth),'auto'===i&&t.rotate(-n),t.translate(-A,-r)}}}class _X extends lX{constructor(){super(...arguments),this.type='defs'}render(){}}class PX extends vX{constructor(){super(...arguments),this.type='g'}getBoundingBox(t){var e=new mX;return this.children.forEach((n=>{e.addBoundingBox(n.getBoundingBox(t))})),e}}class OX extends lX{constructor(t,e,n){super(t,e,n),this.attributesToInherit=['gradientUnits'],this.stops=[];var{stops:A,children:r}=this;r.forEach((t=>{'stop'===t.type&&A.push(t)}))}getGradientUnits(){return this.getAttribute('gradientUnits').getString('objectBoundingBox')}createGradient(t,e,n){var A=this;this.getHrefAttribute().hasValue()&&(A=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(A));var{stops:r}=A,i=this.getGradient(t,e);if(!i)return this.addParentOpacity(n,r[r.length-1].color);if(r.forEach((t=>{i.addColorStop(t.offset,this.addParentOpacity(n,t.color))})),this.getAttribute('gradientTransform').hasValue()){var{document:o}=this,{MAX_VIRTUAL_PIXELS:s,viewPort:a}=o.screen,[c]=a.viewPorts,l=new IX(o,null);l.attributes.x=new KK(o,'x',-s/3),l.attributes.y=new KK(o,'y',-s/3),l.attributes.width=new KK(o,'width',s),l.attributes.height=new KK(o,'height',s);var u=new PX(o,null);u.attributes.transform=new KK(o,'transform',this.getAttribute('gradientTransform').getValue()),u.children=[l];var h=new FX(o,null);h.attributes.x=new KK(o,'x',0),h.attributes.y=new KK(o,'y',0),h.attributes.width=new KK(o,'width',c.width),h.attributes.height=new KK(o,'height',c.height),h.children=[u];var d=o.createCanvas(c.width,c.height),f=d.getContext('2d');return f.fillStyle=i,h.render(f),f.createPattern(d,'no-repeat')}return i}inheritStopContainer(t){this.attributesToInherit.forEach((e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())}))}addParentOpacity(t,e){return t.hasValue()?new KK(this.document,'color',e).addOpacity(t).getColor():e}}class MX extends OX{constructor(t,e,n){super(t,e,n),this.type='linearGradient',this.attributesToInherit.push('x1','y1','x2','y2')}getGradient(t,e){var n='objectBoundingBox'===this.getGradientUnits(),A=n?e.getBoundingBox(t):null;if(n&&!A)return null;this.getAttribute('x1').hasValue()||this.getAttribute('y1').hasValue()||this.getAttribute('x2').hasValue()||this.getAttribute('y2').hasValue()||(this.getAttribute('x1',!0).setValue(0),this.getAttribute('y1',!0).setValue(0),this.getAttribute('x2',!0).setValue(1),this.getAttribute('y2',!0).setValue(0));var r=n?A.x+A.width*this.getAttribute('x1').getNumber():this.getAttribute('x1').getPixels('x'),i=n?A.y+A.height*this.getAttribute('y1').getNumber():this.getAttribute('y1').getPixels('y'),o=n?A.x+A.width*this.getAttribute('x2').getNumber():this.getAttribute('x2').getPixels('x'),s=n?A.y+A.height*this.getAttribute('y2').getNumber():this.getAttribute('y2').getPixels('y');return r===o&&i===s?null:t.createLinearGradient(r,i,o,s)}}class HX extends OX{constructor(t,e,n){super(t,e,n),this.type='radialGradient',this.attributesToInherit.push('cx','cy','r','fx','fy','fr')}getGradient(t,e){var n='objectBoundingBox'===this.getGradientUnits(),A=e.getBoundingBox(t);if(n&&!A)return null;this.getAttribute('cx').hasValue()||this.getAttribute('cx',!0).setValue('50%'),this.getAttribute('cy').hasValue()||this.getAttribute('cy',!0).setValue('50%'),this.getAttribute('r').hasValue()||this.getAttribute('r',!0).setValue('50%');var r=n?A.x+A.width*this.getAttribute('cx').getNumber():this.getAttribute('cx').getPixels('x'),i=n?A.y+A.height*this.getAttribute('cy').getNumber():this.getAttribute('cy').getPixels('y'),o=r,s=i;this.getAttribute('fx').hasValue()&&(o=n?A.x+A.width*this.getAttribute('fx').getNumber():this.getAttribute('fx').getPixels('x')),this.getAttribute('fy').hasValue()&&(s=n?A.y+A.height*this.getAttribute('fy').getNumber():this.getAttribute('fy').getPixels('y'));var a=n?(A.width+A.height)/2*this.getAttribute('r').getNumber():this.getAttribute('r').getPixels(),c=this.getAttribute('fr').getPixels();return t.createRadialGradient(o,s,c,r,i,a)}}class TX extends lX{constructor(t,e,n){super(t,e,n),this.type='stop';var A=Math.max(0,Math.min(1,this.getAttribute('offset').getNumber())),r=this.getStyle('stop-opacity'),i=this.getStyle('stop-color',!0);''===i.getString()&&i.setValue('#000'),r.hasValue()&&(i=i.addOpacity(r)),this.offset=A,this.color=i.getColor()}}class DX extends lX{constructor(t,e,n){super(t,e,n),this.type='animate',this.duration=0,this.initialValue=null,this.initialUnits='',this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute('begin').getMilliseconds(),this.maxDuration=this.begin+this.getAttribute('dur').getMilliseconds(),this.from=this.getAttribute('from'),this.to=this.getAttribute('to'),this.values=new KK(t,'values',null);var A=this.getAttribute('values');A.hasValue()&&this.values.setValue(A.getString().split(';'))}getProperty(){var t=this.getAttribute('attributeType').getString(),e=this.getAttribute('attributeName').getString();return'CSS'===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:n,to:A}=this.getProgress(),r=n.getNumber()+(A.getNumber()-n.getNumber())*e;return'%'===t&&(r*=100),''.concat(r).concat(t)}update(t){var{parent:e}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var A=this.getAttribute('fill').getString('remove');if('indefinite'===this.getAttribute('repeatCount').getString()||'indefinite'===this.getAttribute('repeatDur').getString())this.duration=0;else if('freeze'!==A||this.frozen){if('remove'===A&&!this.removed)return this.removed=!0,n.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=n.getString();return!1}this.duration+=t;var r=!1;if(this.begin<this.duration){var i=this.calcValue(),o=this.getAttribute('type');if(o.hasValue()){var s=o.getString();i=''.concat(s,'(').concat(i,')')}n.setValue(i),r=!0}return r}getProgress(){var{document:t,values:e}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var A=n.progress*(e.getValue().length-1),r=Math.floor(A),i=Math.ceil(A);n.from=new KK(t,'from',parseFloat(e.getValue()[r])),n.to=new KK(t,'to',parseFloat(e.getValue()[i])),n.progress=(A-r)/(i-r)}else n.from=this.from,n.to=this.to;return n}}class RX extends DX{constructor(){super(...arguments),this.type='animateColor'}calcValue(){var{progress:t,from:e,to:n}=this.getProgress(),A=new fW(e.getColor()),r=new fW(n.getColor());if(A.ok&&r.ok){var i=A.r+(r.r-A.r)*t,o=A.g+(r.g-A.g)*t,s=A.b+(r.b-A.b)*t;return'rgb('.concat(Math.floor(i),', ').concat(Math.floor(o),', ').concat(Math.floor(s),')')}return this.getAttribute('from').getColor()}}class VX extends DX{constructor(){super(...arguments),this.type='animateTransform'}calcValue(){var{progress:t,from:e,to:n}=this.getProgress(),A=wK(e.getString()),r=wK(n.getString()),i=A.map(((e,n)=>e+(r[n]-e)*t)).join(' ');return i}}class GX extends lX{constructor(t,e,n){super(t,e,n),this.type='font',this.glyphs={},this.horizAdvX=this.getAttribute('horiz-adv-x').getNumber();var{definitions:A}=t,{children:r}=this;for(var i of r)switch(i.type){case'font-face':this.fontFace=i;var o=i.getStyle('font-family');o.hasValue()&&(A[o.getString()]=this);break;case'missing-glyph':this.missingGlyph=i;break;case'glyph':var s=i;s.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[s.unicode]&&(this.glyphs[s.unicode]={}),this.glyphs[s.unicode][s.arabicForm]=s):this.glyphs[s.unicode]=s}}render(){}}class jX extends lX{constructor(t,e,n){super(t,e,n),this.type='font-face',this.ascent=this.getAttribute('ascent').getNumber(),this.descent=this.getAttribute('descent').getNumber(),this.unitsPerEm=this.getAttribute('units-per-em').getNumber()}}class WX extends yX{constructor(){super(...arguments),this.type='missing-glyph',this.horizAdvX=0}}class KX extends BX{constructor(){super(...arguments),this.type='tref'}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return''}}class XX extends BX{constructor(t,e,n){super(t,e,n),this.type='a';var{childNodes:A}=e,r=A[0],i=A.length>0&&Array.from(A).every((t=>3===t.nodeType));this.hasText=i,this.text=i?this.getTextFromNode(r):''}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:n,y:A}=this,{mouse:r}=e.screen,i=new KK(e,'fontSize',pX.parse(e.ctx.font).fontSize);r.isWorking()&&r.checkBoundingBox(this,new mX(n,A-i.getPixels('y'),n+this.measureText(t),A))}else if(this.children.length>0){var o=new PX(this.document,null);o.children=this.children,o.parent=this,o.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor='pointer'}}function zX(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,A)}return n}function ZX(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zX(Object(n),!0).forEach((function(e){VC(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zX(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}class YX extends BX{constructor(t,e,n){super(t,e,n),this.type='textPath',this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([['',0]]);var A=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(A)}getText(){return this.text}path(t){var{dataArray:e}=this;t&&t.beginPath(),e.forEach((e=>{var{type:n,points:A}=e;switch(n){case bX.LINE_TO:t&&t.lineTo(A[0],A[1]);break;case bX.MOVE_TO:t&&t.moveTo(A[0],A[1]);break;case bX.CURVE_TO:t&&t.bezierCurveTo(A[0],A[1],A[2],A[3],A[4],A[5]);break;case bX.QUAD_TO:t&&t.quadraticCurveTo(A[0],A[1],A[2],A[3]);break;case bX.ARC:var[r,i,o,s,a,c,l,u]=A,h=o>s?o:s,d=o>s?1:o/s,f=o>s?s/o:1;t&&(t.translate(r,i),t.rotate(l),t.scale(d,f),t.arc(0,0,h,a,a+c,Boolean(1-u)),t.scale(1/d,1/f),t.rotate(-l),t.translate(-r,-i));break;case bX.CLOSE_PATH:t&&t.closePath()}}))}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle('text-decoration').getString(),n=this.getFontSize(),{glyphInfo:A}=this,r=t.fillStyle;'underline'===e&&t.beginPath(),A.forEach(((A,r)=>{var{p0:i,p1:o,rotation:s,text:a}=A;t.save(),t.translate(i.x,i.y),t.rotate(s),t.fillStyle&&t.fillText(a,0,0),t.strokeStyle&&t.strokeText(a,0,0),t.restore(),'underline'===e&&(0===r&&t.moveTo(i.x,i.y+n/8),t.lineTo(o.x,o.y+n/5))})),'underline'===e&&(t.lineWidth=n/20,t.strokeStyle=r,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,n,A,r,i,o,s,a){var c=i,l=this.measureText(t,s);' '===s&&'justify'===e&&n<A&&(l+=(A-n)/r),a>-1&&(c+=this.getLetterSpacingAt(a));var u=this.textHeight/20,h=this.getEquidistantPointOnPath(c,u,0),d=this.getEquidistantPointOnPath(c+l,u,0),f={p0:h,p1:d},g=h&&d?Math.atan2(d.y-h.y,d.x-h.x):0;if(o){var p=Math.cos(Math.PI/2+g)*o,m=Math.cos(-g)*o;f.p0=ZX(ZX({},h),{},{x:h.x+p,y:h.y+m}),f.p1=ZX(ZX({},d),{},{x:d.x+p,y:d.y+m})}return{offset:c+=l,segment:f,rotation:g}}measureText(t,e){var{measuresCache:n}=this,A=e||this.getText();if(n.has(A))return n.get(A);var r=this.measureTargetText(t,A);return n.set(A,r),r}setTextData(t){if(!this.glyphInfo){var e=this.getText(),n=e.split(''),A=e.split(' ').length-1,r=this.parent.getAttribute('dx').split().map((t=>t.getPixels('x'))),i=this.parent.getAttribute('dy').getPixels('y'),o=this.parent.getStyle('text-anchor').getString('start'),s=this.getStyle('letter-spacing'),a=this.parent.getStyle('letter-spacing'),c=0;s.hasValue()&&'inherit'!==s.getValue()?s.hasValue()&&'initial'!==s.getValue()&&'unset'!==s.getValue()&&(c=s.getPixels()):c=a.getPixels();var l=[],u=e.length;this.letterSpacingCache=l;for(var h=0;h<u;h++)l.push(void 0!==r[h]?r[h]:c);var d=l.reduce(((t,e,n)=>0===n?0:t+e||0),0),f=this.measureText(t),g=Math.max(f+d,0);this.textWidth=f,this.textHeight=this.getFontSize(),this.glyphInfo=[];var p=this.getPathLength(),m=this.getStyle('startOffset').getNumber(0)*p,b=0;'middle'!==o&&'center'!==o||(b=-g/2),'end'!==o&&'right'!==o||(b=-g),b+=m,n.forEach(((e,r)=>{var{offset:s,segment:a,rotation:c}=this.findSegmentToFitChar(t,o,g,p,A,b,i,e,r);b=s,a.p0&&a.p1&&this.glyphInfo.push({text:n[r],p0:a.p0,p1:a.p1,rotation:c})}))}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:n}=t;for(n.reset();!n.isEnd();){var{current:A}=n,r=A?A.x:0,i=A?A.y:0,o=n.next(),s=o.type,a=[];switch(o.type){case bX.MOVE_TO:this.pathM(n,a);break;case bX.LINE_TO:s=this.pathL(n,a);break;case bX.HORIZ_LINE_TO:s=this.pathH(n,a);break;case bX.VERT_LINE_TO:s=this.pathV(n,a);break;case bX.CURVE_TO:this.pathC(n,a);break;case bX.SMOOTH_CURVE_TO:s=this.pathS(n,a);break;case bX.QUAD_TO:this.pathQ(n,a);break;case bX.SMOOTH_QUAD_TO:s=this.pathT(n,a);break;case bX.ARC:a=this.pathA(n);break;case bX.CLOSE_PATH:yX.pathZ(n)}o.type!==bX.CLOSE_PATH?e.push({type:s,points:a,start:{x:r,y:i},pathLength:this.calcLength(r,i,s,a)}):e.push({type:bX.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:n,y:A}=yX.pathM(t).point;e.push(n,A)}pathL(t,e){var{x:n,y:A}=yX.pathL(t).point;return e.push(n,A),bX.LINE_TO}pathH(t,e){var{x:n,y:A}=yX.pathH(t).point;return e.push(n,A),bX.LINE_TO}pathV(t,e){var{x:n,y:A}=yX.pathV(t).point;return e.push(n,A),bX.LINE_TO}pathC(t,e){var{point:n,controlPoint:A,currentPoint:r}=yX.pathC(t);e.push(n.x,n.y,A.x,A.y,r.x,r.y)}pathS(t,e){var{point:n,controlPoint:A,currentPoint:r}=yX.pathS(t);return e.push(n.x,n.y,A.x,A.y,r.x,r.y),bX.CURVE_TO}pathQ(t,e){var{controlPoint:n,currentPoint:A}=yX.pathQ(t);e.push(n.x,n.y,A.x,A.y)}pathT(t,e){var{controlPoint:n,currentPoint:A}=yX.pathT(t);return e.push(n.x,n.y,A.x,A.y),bX.QUAD_TO}pathA(t){var{rX:e,rY:n,sweepFlag:A,xAxisRotation:r,centp:i,a1:o,ad:s}=yX.pathA(t);return 0===A&&s>0&&(s-=2*Math.PI),1===A&&s<0&&(s+=2*Math.PI),[i.x,i.y,e,n,o,s,r,A]}calcLength(t,e,n,A){var r=0,i=null,o=null,s=0;switch(n){case bX.LINE_TO:return this.getLineLength(t,e,A[0],A[1]);case bX.CURVE_TO:for(r=0,i=this.getPointOnCubicBezier(0,t,e,A[0],A[1],A[2],A[3],A[4],A[5]),s=.01;s<=1;s+=.01)o=this.getPointOnCubicBezier(s,t,e,A[0],A[1],A[2],A[3],A[4],A[5]),r+=this.getLineLength(i.x,i.y,o.x,o.y),i=o;return r;case bX.QUAD_TO:for(r=0,i=this.getPointOnQuadraticBezier(0,t,e,A[0],A[1],A[2],A[3]),s=.01;s<=1;s+=.01)o=this.getPointOnQuadraticBezier(s,t,e,A[0],A[1],A[2],A[3]),r+=this.getLineLength(i.x,i.y,o.x,o.y),i=o;return r;case bX.ARC:r=0;var a=A[4],c=A[5],l=A[4]+c,u=Math.PI/180;if(Math.abs(a-l)<u&&(u=Math.abs(a-l)),i=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],a,0),c<0)for(s=a-u;s>l;s-=u)o=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],s,0),r+=this.getLineLength(i.x,i.y,o.x,o.y),i=o;else for(s=a+u;s<l;s+=u)o=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],s,0),r+=this.getLineLength(i.x,i.y,o.x,o.y),i=o;return o=this.getPointOnEllipticalArc(A[0],A[1],A[2],A[3],l,0),r+=this.getLineLength(i.x,i.y,o.x,o.y)}return 0}getPointOnLine(t,e,n,A,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:n,s=(r-n)/(A-e+PK),a=Math.sqrt(t*t/(1+s*s));A<e&&(a*=-1);var c=s*a,l=null;if(A===e)l={x:i,y:o+c};else if((o-n)/(i-e+PK)===s)l={x:i+a,y:o+c};else{var u,h,d=this.getLineLength(e,n,A,r);if(d<PK)return null;var f=(i-e)*(A-e)+(o-n)*(r-n);u=e+(f/=d*d)*(A-e),h=n+f*(r-n);var g=this.getLineLength(i,o,u,h),p=Math.sqrt(t*t-g*g);a=Math.sqrt(p*p/(1+s*s)),A<e&&(a*=-1),l={x:u+a,y:h+(c=s*a)}}return l}getPointOnPath(t){var e=this.getPathLength(),n=0,A=null;if(t<-5e-5||t-5e-5>e)return null;var{dataArray:r}=this;for(var i of r){if(!i||!(i.pathLength<5e-5||n+i.pathLength+5e-5<t)){var o=t-n,s=0;switch(i.type){case bX.LINE_TO:A=this.getPointOnLine(o,i.start.x,i.start.y,i.points[0],i.points[1],i.start.x,i.start.y);break;case bX.ARC:var a=i.points[4],c=i.points[5],l=i.points[4]+c;if(s=a+o/i.pathLength*c,c<0&&s<l||c>=0&&s>l)break;A=this.getPointOnEllipticalArc(i.points[0],i.points[1],i.points[2],i.points[3],s,i.points[6]);break;case bX.CURVE_TO:(s=o/i.pathLength)>1&&(s=1),A=this.getPointOnCubicBezier(s,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3],i.points[4],i.points[5]);break;case bX.QUAD_TO:(s=o/i.pathLength)>1&&(s=1),A=this.getPointOnQuadraticBezier(s,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3])}if(A)return A;break}n+=i.pathLength}return null}getLineLength(t,e,n,A){return Math.sqrt((n-t)*(n-t)+(A-e)*(A-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((t,e)=>e.pathLength>0?t+e.pathLength:t),0)),this.pathLength}getPointOnCubicBezier(t,e,n,A,r,i,o,s,a){return{x:s*TK(t)+i*DK(t)+A*RK(t)+e*VK(t),y:a*TK(t)+o*DK(t)+r*RK(t)+n*VK(t)}}getPointOnQuadraticBezier(t,e,n,A,r,i,o){return{x:i*GK(t)+A*jK(t)+e*WK(t),y:o*GK(t)+r*jK(t)+n*WK(t)}}getPointOnEllipticalArc(t,e,n,A,r,i){var o=Math.cos(i),s=Math.sin(i),a=n*Math.cos(r),c=A*Math.sin(r);return{x:t+(a*o-c*s),y:e+(a*s+c*o)}}buildEquidistantCache(t,e){var n=this.getPathLength(),A=e||.25,r=t||n/100;if(!this.equidistantCache||this.equidistantCache.step!==r||this.equidistantCache.precision!==A){this.equidistantCache={step:r,precision:A,points:[]};for(var i=0,o=0;o<=n;o+=A){var s=this.getPointOnPath(o),a=this.getPointOnPath(o+A);s&&a&&((i+=this.getLineLength(s.x,s.y,a.x,a.y))>=r&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:o}),i-=r))}}}getEquidistantPointOnPath(t,e,n){if(this.buildEquidistantCache(e,n),t<0||t-this.getPathLength()>5e-5)return null;var A=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[A]||null}}var qX=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class JX extends vX{constructor(t,e,n){super(t,e,n),this.type='image',this.loaded=!1;var A=this.getHrefAttribute().getString();if(A){var r=A.endsWith('.svg')||/^\s*data:image\/svg\+xml/i.test(A);t.images.push(this),r?this.loadSvg(A):this.loadImage(A),this.isSvg=r}}loadImage(t){var e=this;return yT((function*(){try{var n=yield e.document.createImage(t);e.image=n}catch(t){}e.loaded=!0}))()}loadSvg(t){var e=this;return yT((function*(){var n=qX.exec(t);if(n){var A=n[5];'base64'===n[4]?e.image=atob(A):e.image=decodeURIComponent(A)}else try{var r=yield e.document.fetch(t),i=yield r.text();e.image=i}catch(t){}e.loaded=!0}))()}renderChildren(t){var{document:e,image:n,loaded:A}=this,r=this.getAttribute('x').getPixels('x'),i=this.getAttribute('y').getPixels('y'),o=this.getStyle('width').getPixels('x'),s=this.getStyle('height').getPixels('y');if(A&&n&&o&&s){if(t.save(),t.translate(r,i),this.isSvg){var a=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:o,scaleHeight:s});a.document.documentElement.parent=this,a.render()}else{var c=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute('preserveAspectRatio').getString(),width:o,desiredWidth:c.width,height:s,desiredHeight:c.height}),this.loaded&&(void 0===c.complete||c.complete)&&t.drawImage(c,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute('x').getPixels('x'),e=this.getAttribute('y').getPixels('y'),n=this.getStyle('width').getPixels('x'),A=this.getStyle('height').getPixels('y');return new mX(t,e,t+n,e+A)}}class $X extends vX{constructor(){super(...arguments),this.type='symbol'}render(t){}}class tz{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var n=this;return yT((function*(){try{var{document:A}=n,r=(yield A.canvg.parser.load(e)).getElementsByTagName('font');Array.from(r).forEach((e=>{var n=A.createElement(e);A.definitions[t]=n}))}catch(t){}n.loaded=!0}))()}}class ez extends lX{constructor(t,e,n){super(t,e,n),this.type='style';var A=bK(Array.from(e.childNodes).map((t=>t.textContent)).join('').replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,'').replace(/@import.*;/g,''));A.split('}').forEach((e=>{var n=e.trim();if(n){var A=n.split('{'),r=A[0].split(','),i=A[1].split(';');r.forEach((e=>{var n=e.trim();if(n){var A=t.styles[n]||{};if(i.forEach((e=>{var n=e.indexOf(':'),r=e.substr(0,n).trim(),i=e.substr(n+1,e.length-n).trim();r&&i&&(A[r]=new KK(t,r,i))})),t.styles[n]=A,t.stylesSpecificity[n]=_K(n),'@font-face'===n){var r=A['font-family'].getString().replace(/"|'/g,'');A.src.getString().split(',').forEach((e=>{if(e.indexOf('format("svg")')>0){var n=xK(e);n&&new tz(t).load(r,n)}}))}}}))}}))}}ez.parseExternalUrl=xK;class nz extends vX{constructor(){super(...arguments),this.type='use'}setContext(t){super.setContext(t);var e=this.getAttribute('x'),n=this.getAttribute('y');e.hasValue()&&t.translate(e.getPixels('x'),0),n.hasValue()&&t.translate(0,n.getPixels('y'))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:n}=this;if(n){var A=n;if('symbol'===n.type&&((A=new FX(e,null)).attributes.viewBox=new KK(e,'viewBox',n.getAttribute('viewBox').getString()),A.attributes.preserveAspectRatio=new KK(e,'preserveAspectRatio',n.getAttribute('preserveAspectRatio').getString()),A.attributes.overflow=new KK(e,'overflow',n.getAttribute('overflow').getString()),A.children=n.children,n.styles.opacity=new KK(e,'opacity',this.calculateOpacity())),'svg'===A.type){var r=this.getStyle('width',!1,!0),i=this.getStyle('height',!1,!0);r.hasValue()&&(A.attributes.width=new KK(e,'width',r.getString())),i.hasValue()&&(A.attributes.height=new KK(e,'height',i.getString()))}var o=A.parent;A.parent=this,A.render(t),A.parent=o}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return cX.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function Az(t,e,n,A,r,i){return t[n*A*4+4*e+i]}function rz(t,e,n,A,r,i,o){t[n*A*4+4*e+i]=o}function iz(t,e,n){return t[e]*n}function oz(t,e,n,A){return e+Math.cos(t)*n+Math.sin(t)*A}class sz extends lX{constructor(t,e,n){super(t,e,n),this.type='feColorMatrix';var A=wK(this.getAttribute('values').getString());switch(this.getAttribute('type').getString('matrix')){case'saturate':var r=A[0];A=[.213+.787*r,.715-.715*r,.072-.072*r,0,0,.213-.213*r,.715+.285*r,.072-.072*r,0,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,0,1,0,0,0,0,0,1];break;case'hueRotate':var i=A[0]*Math.PI/180;A=[oz(i,.213,.787,-.213),oz(i,.715,-.715,-.715),oz(i,.072,-.072,.928),0,0,oz(i,.213,-.213,.143),oz(i,.715,.285,.14),oz(i,.072,-.072,-.283),0,0,oz(i,.213,-.213,-.787),oz(i,.715,-.715,.715),oz(i,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case'luminanceToAlpha':A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=A,this.includeOpacity=this.getAttribute('includeOpacity').hasValue()}apply(t,e,n,A,r){for(var{includeOpacity:i,matrix:o}=this,s=t.getImageData(0,0,A,r),a=0;a<r;a++)for(var c=0;c<A;c++){var l=Az(s.data,c,a,A,0,0),u=Az(s.data,c,a,A,0,1),h=Az(s.data,c,a,A,0,2),d=Az(s.data,c,a,A,0,3),f=iz(o,0,l)+iz(o,1,u)+iz(o,2,h)+iz(o,3,d)+iz(o,4,1),g=iz(o,5,l)+iz(o,6,u)+iz(o,7,h)+iz(o,8,d)+iz(o,9,1),p=iz(o,10,l)+iz(o,11,u)+iz(o,12,h)+iz(o,13,d)+iz(o,14,1),m=iz(o,15,l)+iz(o,16,u)+iz(o,17,h)+iz(o,18,d)+iz(o,19,1);i&&(f=0,g=0,p=0,m*=d/255),rz(s.data,c,a,A,0,0,f),rz(s.data,c,a,A,0,1,g),rz(s.data,c,a,A,0,2,p),rz(s.data,c,a,A,0,3,m)}t.clearRect(0,0,A,r),t.putImageData(s,0,0)}}class az extends lX{constructor(){super(...arguments),this.type='mask'}apply(t,e){var{document:n}=this,A=this.getAttribute('x').getPixels('x'),r=this.getAttribute('y').getPixels('y'),i=this.getStyle('width').getPixels('x'),o=this.getStyle('height').getPixels('y');if(!i&&!o){var s=new mX;this.children.forEach((e=>{s.addBoundingBox(e.getBoundingBox(t))})),A=Math.floor(s.x1),r=Math.floor(s.y1),i=Math.floor(s.width),o=Math.floor(s.height)}var a=this.removeStyles(e,az.ignoreStyles),c=n.createCanvas(A+i,r+o),l=c.getContext('2d');n.screen.setDefaults(l),this.renderChildren(l),new sz(n,{nodeType:1,childNodes:[],attributes:[{nodeName:'type',value:'luminanceToAlpha'},{nodeName:'includeOpacity',value:'true'}]}).apply(l,0,0,A+i,r+o);var u=n.createCanvas(A+i,r+o),h=u.getContext('2d');n.screen.setDefaults(h),e.render(h),h.globalCompositeOperation='destination-in',h.fillStyle=l.createPattern(c,'no-repeat'),h.fillRect(0,0,A+i,r+o),t.fillStyle=h.createPattern(u,'no-repeat'),t.fillRect(0,0,A+i,r+o),this.restoreStyles(e,a)}render(t){}}az.ignoreStyles=['mask','transform','clip-path'];var cz=()=>{};class lz extends lX{constructor(){super(...arguments),this.type='clipPath'}apply(t){var{document:e}=this,n=Reflect.getPrototypeOf(t),{beginPath:A,closePath:r}=t;n&&(n.beginPath=cz,n.closePath=cz),Reflect.apply(A,t,[]),this.children.forEach((A=>{if(void 0!==A.path){var i=void 0!==A.elementTransform?A.elementTransform():null;i||(i=cX.fromElement(e,A)),i&&i.apply(t),A.path(t),n&&(n.closePath=r),i&&i.unapply(t)}})),Reflect.apply(r,t,[]),t.clip(),n&&(n.beginPath=A,n.closePath=r)}render(t){}}class uz extends lX{constructor(){super(...arguments),this.type='filter'}apply(t,e){var{document:n,children:A}=this,r=e.getBoundingBox(t);if(r){var i=0,o=0;A.forEach((t=>{var e=t.extraFilterDistance||0;i=Math.max(i,e),o=Math.max(o,e)}));var s=Math.floor(r.width),a=Math.floor(r.height),c=s+2*i,l=a+2*o;if(!(c<1||l<1)){var u=Math.floor(r.x),h=Math.floor(r.y),d=this.removeStyles(e,uz.ignoreStyles),f=n.createCanvas(c,l),g=f.getContext('2d');n.screen.setDefaults(g),g.translate(-u+i,-h+o),e.render(g),A.forEach((t=>{'function'==typeof t.apply&&t.apply(g,0,0,c,l)})),t.drawImage(f,0,0,c,l,u-i,h-o,c,l),this.restoreStyles(e,d)}}}render(t){}}uz.ignoreStyles=['filter','transform','clip-path'];class hz extends lX{constructor(t,e,n){super(t,e,n),this.type='feDropShadow',this.addStylesFromStyleDefinition()}apply(t,e,n,A,r){}}class dz extends lX{constructor(){super(...arguments),this.type='feMorphology'}apply(t,e,n,A,r){}}class fz extends lX{constructor(){super(...arguments),this.type='feComposite'}apply(t,e,n,A,r){}}class gz extends lX{constructor(t,e,n){super(t,e,n),this.type='feGaussianBlur',this.blurRadius=Math.floor(this.getAttribute('stdDeviation').getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,n,A,r){var{document:i,blurRadius:o}=this,s=i.window?i.window.document.body:null,a=t.canvas;a.id=i.getUniqueId(),s&&(a.style.display='none',s.appendChild(a)),gK(a,e,n,A,r,o),s&&s.removeChild(a)}}class pz extends lX{constructor(){super(...arguments),this.type='title'}}class mz extends lX{constructor(){super(...arguments),this.type='desc'}}var bz={svg:FX,rect:IX,circle:QX,ellipse:EX,line:SX,polyline:UX,polygon:LX,path:yX,pattern:NX,marker:kX,defs:_X,linearGradient:MX,radialGradient:HX,stop:TX,animate:DX,animateColor:RX,animateTransform:VX,font:GX,'font-face':jX,'missing-glyph':WX,glyph:wX,text:BX,tspan:CX,tref:KX,a:XX,textPath:YX,image:JX,g:PX,symbol:$X,style:ez,use:nz,mask:az,clipPath:lz,filter:uz,feDropShadow:hz,feMorphology:dz,feComposite:fz,feColorMatrix:sz,feGaussianBlur:gz,title:pz,desc:mz};function vz(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,A)}return n}function yz(){return yz=yT((function*(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement('img');return e&&(n.crossOrigin='Anonymous'),new Promise(((e,A)=>{n.onload=()=>{e(n)},n.onerror=(t,e,n,r,i)=>{A(i)},n.src=t}))})),yz.apply(this,arguments)}class wz{constructor(t){var{rootEmSize:e=12,emSize:n=12,createCanvas:A=wz.createCanvas,createImage:r=wz.createImage,anonymousCrossOrigin:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=n,this.createCanvas=A,this.createImage=this.bindCreateImage(r,i),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return'boolean'==typeof e?(n,A)=>t(n,'boolean'==typeof A?A:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return'canvg'.concat(++this.uniqueId)}isImagesLoaded(){return this.images.every((t=>t.loaded))}isFontsLoaded(){return this.fonts.every((t=>t.loaded))}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,''),n=wz.elementTypes[e];return void 0!==n?new n(this,t):new uX(this,t)}createTextNode(t){return new xX(this,t)}setViewBox(t){this.screen.setViewBox(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vz(Object(n),!0).forEach((function(e){VC(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vz(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({document:this},t))}}function Bz(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,A)}return n}function Cz(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bz(Object(n),!0).forEach((function(e){VC(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bz(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}wz.createCanvas=function(t,e){var n=document.createElement('canvas');return n.width=t,n.height=e,n},wz.createImage=function(t){return yz.apply(this,arguments)},wz.elementTypes=bz;class xz{constructor(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new eX(n),this.screen=new JK(t,n),this.options=n;var A=new wz(this,n),r=A.createDocumentElement(e);this.document=A,this.documentElement=r}static from(t,e){var n=arguments;return yT((function*(){var A=n.length>2&&void 0!==n[2]?n[2]:{},r=new eX(A),i=yield r.parse(e);return new xz(t,i,A)}))()}static fromString(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},A=new eX(n).parseFromString(e);return new xz(t,A,n)}fork(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return xz.from(t,e,Cz(Cz({},this.options),n))}forkString(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return xz.fromString(t,e,Cz(Cz({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return yT((function*(){var n=t.length>0&&void 0!==t[0]?t[0]:{};e.start(Cz({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield e.ready(),e.stop()}))()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:n,options:A}=this;n.start(e,Cz(Cz({enableRedraw:!0},A),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,n)}}var Fz=Object.freeze({__proto__:null,AElement:XX,AnimateColorElement:RX,AnimateElement:DX,AnimateTransformElement:VX,BoundingBox:mX,CB1:TK,CB2:DK,CB3:RK,CB4:VK,Canvg:xz,CircleElement:QX,ClipPathElement:lz,DefsElement:_X,DescElement:mz,Document:wz,Element:lX,EllipseElement:EX,FeColorMatrixElement:sz,FeCompositeElement:fz,FeDropShadowElement:hz,FeGaussianBlurElement:gz,FeMorphologyElement:dz,FilterElement:uz,Font:pX,FontElement:GX,FontFaceElement:jX,GElement:PX,GlyphElement:wX,GradientElement:OX,ImageElement:JX,LineElement:SX,LinearGradientElement:MX,MarkerElement:kX,MaskElement:az,Matrix:iX,MissingGlyphElement:WX,Mouse:ZK,PSEUDO_ZERO:PK,Parser:eX,PathElement:yX,PathParser:bX,PatternElement:NX,Point:zK,PolygonElement:LX,PolylineElement:UX,Property:KK,QB1:GK,QB2:jK,QB3:WK,RadialGradientElement:HX,RectElement:IX,RenderedElement:vX,Rotate:AX,SVGElement:FX,SVGFontLoader:tz,Scale:rX,Screen:JK,Skew:oX,SkewX:sX,SkewY:aX,StopElement:TX,StyleElement:ez,SymbolElement:$X,TRefElement:KX,TSpanElement:CX,TextElement:BX,TextPathElement:YX,TitleElement:pz,Transform:cX,Translate:nX,UnknownElement:uX,UseElement:nz,ViewPort:XK,compressSpaces:bK,default:xz,getSelectorSpecificity:_K,normalizeAttributeName:CK,normalizeColor:FK,parseExternalUrl:xK,presets:mK,toNumbers:wK,trimLeft:vK,trimRight:yK,vectorMagnitude:OK,vectorsAngle:HK,vectorsRatio:MK});export{IE as VuChat};