mangoose-xempp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +85 -0
- package/package.json +16 -0
- package/templates/LMS/README.md +162 -0
- package/templates/LMS/backend/.env.example +7 -0
- package/templates/LMS/backend/config/db.js +14 -0
- package/templates/LMS/backend/database/schema.sql +50 -0
- package/templates/LMS/backend/middleware/auth.js +19 -0
- package/templates/LMS/backend/package-lock.json +2314 -0
- package/templates/LMS/backend/package.json +22 -0
- package/templates/LMS/backend/routes/auth.js +99 -0
- package/templates/LMS/backend/routes/books.js +119 -0
- package/templates/LMS/backend/routes/borrowings.js +157 -0
- package/templates/LMS/backend/routes/members.js +109 -0
- package/templates/LMS/backend/routes/reports.js +222 -0
- package/templates/LMS/backend/server.js +34 -0
- package/templates/LMS/frontend/index.html +13 -0
- package/templates/LMS/frontend/package-lock.json +2990 -0
- package/templates/LMS/frontend/package.json +26 -0
- package/templates/LMS/frontend/postcss.config.js +6 -0
- package/templates/LMS/frontend/src/App.jsx +53 -0
- package/templates/LMS/frontend/src/components/Layout.jsx +61 -0
- package/templates/LMS/frontend/src/components/Modal.jsx +15 -0
- package/templates/LMS/frontend/src/context/AuthContext.jsx +49 -0
- package/templates/LMS/frontend/src/index.css +30 -0
- package/templates/LMS/frontend/src/main.jsx +16 -0
- package/templates/LMS/frontend/src/pages/Books.jsx +183 -0
- package/templates/LMS/frontend/src/pages/Borrowings.jsx +192 -0
- package/templates/LMS/frontend/src/pages/Dashboard.jsx +98 -0
- package/templates/LMS/frontend/src/pages/Login.jsx +79 -0
- package/templates/LMS/frontend/src/pages/Members.jsx +167 -0
- package/templates/LMS/frontend/src/pages/Register.jsx +78 -0
- package/templates/LMS/frontend/src/pages/Reports.jsx +177 -0
- package/templates/LMS/frontend/src/services/api.js +28 -0
- package/templates/LMS/frontend/tailwind.config.js +23 -0
- package/templates/LMS/frontend/vite.config.js +15 -0
- package/templates/ecms/README.md +130 -0
- package/templates/ecms/backend/.env.example +6 -0
- package/templates/ecms/backend/config/db.js +14 -0
- package/templates/ecms/backend/database/schema.sql +41 -0
- package/templates/ecms/backend/middleware/auth.js +19 -0
- package/templates/ecms/backend/package-lock.json +1493 -0
- package/templates/ecms/backend/package.json +21 -0
- package/templates/ecms/backend/routes/auth.js +39 -0
- package/templates/ecms/backend/routes/customers.js +103 -0
- package/templates/ecms/backend/routes/dashboard.js +41 -0
- package/templates/ecms/backend/routes/products.js +92 -0
- package/templates/ecms/backend/routes/reports.js +113 -0
- package/templates/ecms/backend/routes/sales.js +88 -0
- package/templates/ecms/backend/scripts/seed.js +56 -0
- package/templates/ecms/backend/server.js +36 -0
- package/templates/ecms/frontend/index.html +16 -0
- package/templates/ecms/frontend/package-lock.json +2072 -0
- package/templates/ecms/frontend/package.json +23 -0
- package/templates/ecms/frontend/src/App.jsx +46 -0
- package/templates/ecms/frontend/src/components/Layout.css +251 -0
- package/templates/ecms/frontend/src/components/Layout.jsx +93 -0
- package/templates/ecms/frontend/src/context/AuthContext.jsx +43 -0
- package/templates/ecms/frontend/src/index.css +347 -0
- package/templates/ecms/frontend/src/main.jsx +16 -0
- package/templates/ecms/frontend/src/pages/Customers.jsx +227 -0
- package/templates/ecms/frontend/src/pages/Dashboard.css +453 -0
- package/templates/ecms/frontend/src/pages/Dashboard.jsx +220 -0
- package/templates/ecms/frontend/src/pages/Login.css +151 -0
- package/templates/ecms/frontend/src/pages/Login.jsx +98 -0
- package/templates/ecms/frontend/src/pages/Products.css +316 -0
- package/templates/ecms/frontend/src/pages/Products.jsx +366 -0
- package/templates/ecms/frontend/src/pages/Reports.css +82 -0
- package/templates/ecms/frontend/src/pages/Reports.jsx +326 -0
- package/templates/ecms/frontend/src/pages/Sales.jsx +204 -0
- package/templates/ecms/frontend/src/services/api.js +63 -0
- package/templates/ecms/frontend/vite.config.js +15 -0
- package/templates/epms/dist/assets/chunk-DECur_0Z.js +1 -0
- package/templates/epms/dist/assets/html2canvas-BioCIJao.js +5 -0
- package/templates/epms/dist/assets/index-DXthWaFo.js +97 -0
- package/templates/epms/dist/assets/index-Dr_-fhCi.css +1 -0
- package/templates/epms/dist/assets/index.es-CT2S0Jlh.js +5 -0
- package/templates/epms/dist/assets/purify.es-BIPMmIPG.js +2 -0
- package/templates/epms/dist/assets/typeof-DmQ5kzpc.js +1 -0
- package/templates/epms/dist/favicon.svg +1 -0
- package/templates/epms/dist/icons.svg +24 -0
- package/templates/epms/dist/index.html +16 -0
- package/templates/epms/frontend/EXAM_UI_NOTE.md +35 -0
- package/templates/epms/frontend/README.md +16 -0
- package/templates/epms/frontend/eslint.config.js +29 -0
- package/templates/epms/frontend/index.html +13 -0
- package/templates/epms/frontend/package-lock.json +4287 -0
- package/templates/epms/frontend/package.json +34 -0
- package/templates/epms/frontend/postcss.config.js +6 -0
- package/templates/epms/frontend/public/favicon.svg +1 -0
- package/templates/epms/frontend/public/icons.svg +24 -0
- package/templates/epms/frontend/src/App.css +184 -0
- package/templates/epms/frontend/src/App.jsx +38 -0
- package/templates/epms/frontend/src/PrivateRoute.jsx +9 -0
- package/templates/epms/frontend/src/assets/hero.png +0 -0
- package/templates/epms/frontend/src/assets/react.svg +1 -0
- package/templates/epms/frontend/src/assets/vite.svg +1 -0
- package/templates/epms/frontend/src/index.css +98 -0
- package/templates/epms/frontend/src/main.jsx +10 -0
- package/templates/epms/frontend/src/pages/Dashboard.jsx +56 -0
- package/templates/epms/frontend/src/pages/Department.jsx +80 -0
- package/templates/epms/frontend/src/pages/Employee.jsx +108 -0
- package/templates/epms/frontend/src/pages/Login.jsx +66 -0
- package/templates/epms/frontend/src/pages/Salary.jsx +289 -0
- package/templates/epms/frontend/src/pages/has.jsx +0 -0
- package/templates/epms/frontend/tailwind.config.js +11 -0
- package/templates/epms/frontend/vite.config.js +6 -0
- package/templates/epms/models/Department.js +9 -0
- package/templates/epms/models/Employee.js +22 -0
- package/templates/epms/models/Salary.js +12 -0
- package/templates/epms/node_modules/.bin/nodemon +16 -0
- package/templates/epms/node_modules/.bin/nodemon.cmd +17 -0
- package/templates/epms/node_modules/.bin/nodemon.ps1 +28 -0
- package/templates/epms/node_modules/.bin/nodetouch +16 -0
- package/templates/epms/node_modules/.bin/nodetouch.cmd +17 -0
- package/templates/epms/node_modules/.bin/nodetouch.ps1 +28 -0
- package/templates/epms/node_modules/.bin/semver +16 -0
- package/templates/epms/node_modules/.bin/semver.cmd +17 -0
- package/templates/epms/node_modules/.bin/semver.ps1 +28 -0
- package/templates/epms/node_modules/.package-lock.json +1357 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/LICENSE +22 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/.esm-wrapper.mjs +4 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/browser.d.ts +5 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/browser.d.ts.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/browser.js +12 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/browser.js.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-data-browser.d.ts +3 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-data-browser.d.ts.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-data-browser.js +5 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-data-browser.js.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-data.d.ts +3 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-data.d.ts.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-data.js +5 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-data.js.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-src.d.ts +7 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-src.d.ts.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-src.js +881 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/code-points-src.js.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/generate-code-points.d.ts +2 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/generate-code-points.d.ts.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/generate-code-points.js +83 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/generate-code-points.js.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/index.d.ts +11 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/index.d.ts.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/index.js +65 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/index.js.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/memory-code-points.d.ts +10 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/memory-code-points.d.ts.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/memory-code-points.js +32 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/memory-code-points.js.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/node.d.ts +10 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/node.d.ts.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/node.js +15 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/node.js.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/util.d.ts +2 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/util.d.ts.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/util.js +11 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/dist/util.js.map +1 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/package.json +87 -0
- package/templates/epms/node_modules/@mongodb-js/saslprep/readme.md +29 -0
- package/templates/epms/node_modules/@types/webidl-conversions/LICENSE +21 -0
- package/templates/epms/node_modules/@types/webidl-conversions/README.md +15 -0
- package/templates/epms/node_modules/@types/webidl-conversions/index.d.ts +91 -0
- package/templates/epms/node_modules/@types/webidl-conversions/package.json +30 -0
- package/templates/epms/node_modules/@types/whatwg-url/LICENSE +21 -0
- package/templates/epms/node_modules/@types/whatwg-url/README.md +15 -0
- package/templates/epms/node_modules/@types/whatwg-url/index.d.ts +172 -0
- package/templates/epms/node_modules/@types/whatwg-url/lib/URL-impl.d.ts +22 -0
- package/templates/epms/node_modules/@types/whatwg-url/lib/URL.d.ts +66 -0
- package/templates/epms/node_modules/@types/whatwg-url/lib/URLSearchParams-impl.d.ts +20 -0
- package/templates/epms/node_modules/@types/whatwg-url/lib/URLSearchParams.d.ts +92 -0
- package/templates/epms/node_modules/@types/whatwg-url/package.json +38 -0
- package/templates/epms/node_modules/@types/whatwg-url/webidl2js-wrapper.d.ts +4 -0
- package/templates/epms/node_modules/accepts/HISTORY.md +250 -0
- package/templates/epms/node_modules/accepts/LICENSE +23 -0
- package/templates/epms/node_modules/accepts/README.md +140 -0
- package/templates/epms/node_modules/accepts/index.js +238 -0
- package/templates/epms/node_modules/accepts/package.json +47 -0
- package/templates/epms/node_modules/anymatch/LICENSE +15 -0
- package/templates/epms/node_modules/anymatch/README.md +87 -0
- package/templates/epms/node_modules/anymatch/index.d.ts +20 -0
- package/templates/epms/node_modules/anymatch/index.js +104 -0
- package/templates/epms/node_modules/anymatch/package.json +48 -0
- package/templates/epms/node_modules/balanced-match/LICENSE.md +23 -0
- package/templates/epms/node_modules/balanced-match/README.md +57 -0
- package/templates/epms/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
- package/templates/epms/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
- package/templates/epms/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/templates/epms/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
- package/templates/epms/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/templates/epms/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
- package/templates/epms/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
- package/templates/epms/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/templates/epms/node_modules/balanced-match/dist/esm/index.js.map +1 -0
- package/templates/epms/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/templates/epms/node_modules/balanced-match/package.json +68 -0
- package/templates/epms/node_modules/binary-extensions/binary-extensions.json +263 -0
- package/templates/epms/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
- package/templates/epms/node_modules/binary-extensions/index.d.ts +14 -0
- package/templates/epms/node_modules/binary-extensions/index.js +1 -0
- package/templates/epms/node_modules/binary-extensions/license +10 -0
- package/templates/epms/node_modules/binary-extensions/package.json +40 -0
- package/templates/epms/node_modules/binary-extensions/readme.md +25 -0
- package/templates/epms/node_modules/body-parser/LICENSE +23 -0
- package/templates/epms/node_modules/body-parser/README.md +494 -0
- package/templates/epms/node_modules/body-parser/index.js +71 -0
- package/templates/epms/node_modules/body-parser/lib/read.js +247 -0
- package/templates/epms/node_modules/body-parser/lib/types/json.js +158 -0
- package/templates/epms/node_modules/body-parser/lib/types/raw.js +42 -0
- package/templates/epms/node_modules/body-parser/lib/types/text.js +36 -0
- package/templates/epms/node_modules/body-parser/lib/types/urlencoded.js +142 -0
- package/templates/epms/node_modules/body-parser/lib/utils.js +98 -0
- package/templates/epms/node_modules/body-parser/package.json +52 -0
- package/templates/epms/node_modules/brace-expansion/LICENSE +23 -0
- package/templates/epms/node_modules/brace-expansion/README.md +94 -0
- package/templates/epms/node_modules/brace-expansion/dist/commonjs/index.d.ts +6 -0
- package/templates/epms/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
- package/templates/epms/node_modules/brace-expansion/dist/commonjs/index.js +201 -0
- package/templates/epms/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
- package/templates/epms/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/templates/epms/node_modules/brace-expansion/dist/esm/index.d.ts +6 -0
- package/templates/epms/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
- package/templates/epms/node_modules/brace-expansion/dist/esm/index.js +197 -0
- package/templates/epms/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
- package/templates/epms/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/templates/epms/node_modules/brace-expansion/package.json +64 -0
- package/templates/epms/node_modules/braces/LICENSE +21 -0
- package/templates/epms/node_modules/braces/README.md +586 -0
- package/templates/epms/node_modules/braces/index.js +170 -0
- package/templates/epms/node_modules/braces/lib/compile.js +60 -0
- package/templates/epms/node_modules/braces/lib/constants.js +57 -0
- package/templates/epms/node_modules/braces/lib/expand.js +113 -0
- package/templates/epms/node_modules/braces/lib/parse.js +331 -0
- package/templates/epms/node_modules/braces/lib/stringify.js +32 -0
- package/templates/epms/node_modules/braces/lib/utils.js +122 -0
- package/templates/epms/node_modules/braces/package.json +77 -0
- package/templates/epms/node_modules/bson/LICENSE.md +201 -0
- package/templates/epms/node_modules/bson/README.md +291 -0
- package/templates/epms/node_modules/bson/bson.d.ts +1770 -0
- package/templates/epms/node_modules/bson/etc/prepare.js +19 -0
- package/templates/epms/node_modules/bson/lib/bson.bundle.js +4750 -0
- package/templates/epms/node_modules/bson/lib/bson.bundle.js.map +1 -0
- package/templates/epms/node_modules/bson/lib/bson.cjs +4745 -0
- package/templates/epms/node_modules/bson/lib/bson.cjs.map +1 -0
- package/templates/epms/node_modules/bson/lib/bson.mjs +4712 -0
- package/templates/epms/node_modules/bson/lib/bson.mjs.map +1 -0
- package/templates/epms/node_modules/bson/lib/bson.node.mjs +4712 -0
- package/templates/epms/node_modules/bson/lib/bson.node.mjs.map +1 -0
- package/templates/epms/node_modules/bson/lib/bson.rn.cjs +4755 -0
- package/templates/epms/node_modules/bson/lib/bson.rn.cjs.map +1 -0
- package/templates/epms/node_modules/bson/package.json +118 -0
- package/templates/epms/node_modules/bson/src/binary.ts +751 -0
- package/templates/epms/node_modules/bson/src/bson.ts +255 -0
- package/templates/epms/node_modules/bson/src/bson_value.ts +55 -0
- package/templates/epms/node_modules/bson/src/code.ts +69 -0
- package/templates/epms/node_modules/bson/src/constants.ts +147 -0
- package/templates/epms/node_modules/bson/src/db_ref.ts +128 -0
- package/templates/epms/node_modules/bson/src/decimal128.ts +855 -0
- package/templates/epms/node_modules/bson/src/double.ts +115 -0
- package/templates/epms/node_modules/bson/src/error.ts +105 -0
- package/templates/epms/node_modules/bson/src/extended_json.ts +533 -0
- package/templates/epms/node_modules/bson/src/index.ts +19 -0
- package/templates/epms/node_modules/bson/src/int_32.ts +101 -0
- package/templates/epms/node_modules/bson/src/long.ts +1240 -0
- package/templates/epms/node_modules/bson/src/max_key.ts +31 -0
- package/templates/epms/node_modules/bson/src/min_key.ts +31 -0
- package/templates/epms/node_modules/bson/src/objectid.ts +382 -0
- package/templates/epms/node_modules/bson/src/parse_utf8.ts +35 -0
- package/templates/epms/node_modules/bson/src/parser/calculate_size.ts +218 -0
- package/templates/epms/node_modules/bson/src/parser/deserializer.ts +627 -0
- package/templates/epms/node_modules/bson/src/parser/on_demand/index.ts +32 -0
- package/templates/epms/node_modules/bson/src/parser/on_demand/parse_to_elements.ts +190 -0
- package/templates/epms/node_modules/bson/src/parser/serializer.ts +954 -0
- package/templates/epms/node_modules/bson/src/parser/utils.ts +69 -0
- package/templates/epms/node_modules/bson/src/regexp.ts +114 -0
- package/templates/epms/node_modules/bson/src/symbol.ts +55 -0
- package/templates/epms/node_modules/bson/src/timestamp.ts +176 -0
- package/templates/epms/node_modules/bson/src/utils/byte_utils.ts +80 -0
- package/templates/epms/node_modules/bson/src/utils/latin.ts +104 -0
- package/templates/epms/node_modules/bson/src/utils/node_byte_utils.ts +193 -0
- package/templates/epms/node_modules/bson/src/utils/number_utils.ts +204 -0
- package/templates/epms/node_modules/bson/src/utils/string_utils.ts +44 -0
- package/templates/epms/node_modules/bson/src/utils/web_byte_utils.ts +304 -0
- package/templates/epms/node_modules/bytes/History.md +97 -0
- package/templates/epms/node_modules/bytes/LICENSE +23 -0
- package/templates/epms/node_modules/bytes/Readme.md +152 -0
- package/templates/epms/node_modules/bytes/index.js +170 -0
- package/templates/epms/node_modules/bytes/package.json +42 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/templates/epms/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/templates/epms/node_modules/call-bound/.eslintrc +13 -0
- package/templates/epms/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/call-bound/.nycrc +9 -0
- package/templates/epms/node_modules/call-bound/CHANGELOG.md +42 -0
- package/templates/epms/node_modules/call-bound/LICENSE +21 -0
- package/templates/epms/node_modules/call-bound/README.md +53 -0
- package/templates/epms/node_modules/call-bound/index.d.ts +94 -0
- package/templates/epms/node_modules/call-bound/index.js +19 -0
- package/templates/epms/node_modules/call-bound/package.json +99 -0
- package/templates/epms/node_modules/call-bound/test/index.js +61 -0
- package/templates/epms/node_modules/call-bound/tsconfig.json +10 -0
- package/templates/epms/node_modules/chokidar/LICENSE +21 -0
- package/templates/epms/node_modules/chokidar/README.md +308 -0
- package/templates/epms/node_modules/chokidar/index.js +973 -0
- package/templates/epms/node_modules/chokidar/lib/constants.js +66 -0
- package/templates/epms/node_modules/chokidar/lib/fsevents-handler.js +526 -0
- package/templates/epms/node_modules/chokidar/lib/nodefs-handler.js +654 -0
- package/templates/epms/node_modules/chokidar/package.json +70 -0
- package/templates/epms/node_modules/chokidar/types/index.d.ts +192 -0
- package/templates/epms/node_modules/content-disposition/LICENSE +22 -0
- package/templates/epms/node_modules/content-disposition/README.md +141 -0
- package/templates/epms/node_modules/content-disposition/index.js +536 -0
- package/templates/epms/node_modules/content-disposition/package.json +40 -0
- package/templates/epms/node_modules/content-type/HISTORY.md +29 -0
- package/templates/epms/node_modules/content-type/LICENSE +22 -0
- package/templates/epms/node_modules/content-type/README.md +94 -0
- package/templates/epms/node_modules/content-type/index.js +225 -0
- package/templates/epms/node_modules/content-type/package.json +42 -0
- package/templates/epms/node_modules/cookie/LICENSE +24 -0
- package/templates/epms/node_modules/cookie/README.md +317 -0
- package/templates/epms/node_modules/cookie/SECURITY.md +25 -0
- package/templates/epms/node_modules/cookie/index.js +335 -0
- package/templates/epms/node_modules/cookie/package.json +44 -0
- package/templates/epms/node_modules/cookie-signature/History.md +70 -0
- package/templates/epms/node_modules/cookie-signature/LICENSE +22 -0
- package/templates/epms/node_modules/cookie-signature/Readme.md +23 -0
- package/templates/epms/node_modules/cookie-signature/index.js +47 -0
- package/templates/epms/node_modules/cookie-signature/package.json +24 -0
- package/templates/epms/node_modules/cors/LICENSE +22 -0
- package/templates/epms/node_modules/cors/README.md +277 -0
- package/templates/epms/node_modules/cors/lib/index.js +238 -0
- package/templates/epms/node_modules/cors/package.json +42 -0
- package/templates/epms/node_modules/debug/LICENSE +20 -0
- package/templates/epms/node_modules/debug/README.md +481 -0
- package/templates/epms/node_modules/debug/package.json +64 -0
- package/templates/epms/node_modules/debug/src/browser.js +272 -0
- package/templates/epms/node_modules/debug/src/common.js +292 -0
- package/templates/epms/node_modules/debug/src/index.js +10 -0
- package/templates/epms/node_modules/debug/src/node.js +263 -0
- package/templates/epms/node_modules/depd/History.md +103 -0
- package/templates/epms/node_modules/depd/LICENSE +22 -0
- package/templates/epms/node_modules/depd/Readme.md +280 -0
- package/templates/epms/node_modules/depd/index.js +538 -0
- package/templates/epms/node_modules/depd/lib/browser/index.js +77 -0
- package/templates/epms/node_modules/depd/package.json +45 -0
- package/templates/epms/node_modules/dunder-proto/.eslintrc +5 -0
- package/templates/epms/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/dunder-proto/.nycrc +13 -0
- package/templates/epms/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/templates/epms/node_modules/dunder-proto/LICENSE +21 -0
- package/templates/epms/node_modules/dunder-proto/README.md +54 -0
- package/templates/epms/node_modules/dunder-proto/get.d.ts +5 -0
- package/templates/epms/node_modules/dunder-proto/get.js +30 -0
- package/templates/epms/node_modules/dunder-proto/package.json +76 -0
- package/templates/epms/node_modules/dunder-proto/set.d.ts +5 -0
- package/templates/epms/node_modules/dunder-proto/set.js +35 -0
- package/templates/epms/node_modules/dunder-proto/test/get.js +34 -0
- package/templates/epms/node_modules/dunder-proto/test/index.js +4 -0
- package/templates/epms/node_modules/dunder-proto/test/set.js +50 -0
- package/templates/epms/node_modules/dunder-proto/tsconfig.json +9 -0
- package/templates/epms/node_modules/ee-first/LICENSE +22 -0
- package/templates/epms/node_modules/ee-first/README.md +80 -0
- package/templates/epms/node_modules/ee-first/index.js +95 -0
- package/templates/epms/node_modules/ee-first/package.json +29 -0
- package/templates/epms/node_modules/encodeurl/LICENSE +22 -0
- package/templates/epms/node_modules/encodeurl/README.md +109 -0
- package/templates/epms/node_modules/encodeurl/index.js +60 -0
- package/templates/epms/node_modules/encodeurl/package.json +40 -0
- package/templates/epms/node_modules/es-define-property/.eslintrc +13 -0
- package/templates/epms/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/es-define-property/.nycrc +9 -0
- package/templates/epms/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/templates/epms/node_modules/es-define-property/LICENSE +21 -0
- package/templates/epms/node_modules/es-define-property/README.md +49 -0
- package/templates/epms/node_modules/es-define-property/index.d.ts +3 -0
- package/templates/epms/node_modules/es-define-property/index.js +14 -0
- package/templates/epms/node_modules/es-define-property/package.json +81 -0
- package/templates/epms/node_modules/es-define-property/test/index.js +56 -0
- package/templates/epms/node_modules/es-define-property/tsconfig.json +10 -0
- package/templates/epms/node_modules/es-errors/.eslintrc +5 -0
- package/templates/epms/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/es-errors/CHANGELOG.md +40 -0
- package/templates/epms/node_modules/es-errors/LICENSE +21 -0
- package/templates/epms/node_modules/es-errors/README.md +55 -0
- package/templates/epms/node_modules/es-errors/eval.d.ts +3 -0
- package/templates/epms/node_modules/es-errors/eval.js +4 -0
- package/templates/epms/node_modules/es-errors/index.d.ts +3 -0
- package/templates/epms/node_modules/es-errors/index.js +4 -0
- package/templates/epms/node_modules/es-errors/package.json +80 -0
- package/templates/epms/node_modules/es-errors/range.d.ts +3 -0
- package/templates/epms/node_modules/es-errors/range.js +4 -0
- package/templates/epms/node_modules/es-errors/ref.d.ts +3 -0
- package/templates/epms/node_modules/es-errors/ref.js +4 -0
- package/templates/epms/node_modules/es-errors/syntax.d.ts +3 -0
- package/templates/epms/node_modules/es-errors/syntax.js +4 -0
- package/templates/epms/node_modules/es-errors/test/index.js +19 -0
- package/templates/epms/node_modules/es-errors/tsconfig.json +49 -0
- package/templates/epms/node_modules/es-errors/type.d.ts +3 -0
- package/templates/epms/node_modules/es-errors/type.js +4 -0
- package/templates/epms/node_modules/es-errors/uri.d.ts +3 -0
- package/templates/epms/node_modules/es-errors/uri.js +4 -0
- package/templates/epms/node_modules/es-object-atoms/.eslintrc +16 -0
- package/templates/epms/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/templates/epms/node_modules/es-object-atoms/LICENSE +21 -0
- package/templates/epms/node_modules/es-object-atoms/README.md +63 -0
- package/templates/epms/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/templates/epms/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/templates/epms/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/templates/epms/node_modules/es-object-atoms/ToObject.js +10 -0
- package/templates/epms/node_modules/es-object-atoms/index.d.ts +3 -0
- package/templates/epms/node_modules/es-object-atoms/index.js +4 -0
- package/templates/epms/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/templates/epms/node_modules/es-object-atoms/isObject.js +6 -0
- package/templates/epms/node_modules/es-object-atoms/package.json +80 -0
- package/templates/epms/node_modules/es-object-atoms/test/index.js +38 -0
- package/templates/epms/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/templates/epms/node_modules/escape-html/LICENSE +24 -0
- package/templates/epms/node_modules/escape-html/Readme.md +43 -0
- package/templates/epms/node_modules/escape-html/index.js +78 -0
- package/templates/epms/node_modules/escape-html/package.json +24 -0
- package/templates/epms/node_modules/etag/HISTORY.md +83 -0
- package/templates/epms/node_modules/etag/LICENSE +22 -0
- package/templates/epms/node_modules/etag/README.md +159 -0
- package/templates/epms/node_modules/etag/index.js +131 -0
- package/templates/epms/node_modules/etag/package.json +47 -0
- package/templates/epms/node_modules/express/LICENSE +24 -0
- package/templates/epms/node_modules/express/Readme.md +276 -0
- package/templates/epms/node_modules/express/index.js +11 -0
- package/templates/epms/node_modules/express/lib/application.js +631 -0
- package/templates/epms/node_modules/express/lib/express.js +81 -0
- package/templates/epms/node_modules/express/lib/request.js +514 -0
- package/templates/epms/node_modules/express/lib/response.js +1053 -0
- package/templates/epms/node_modules/express/lib/utils.js +271 -0
- package/templates/epms/node_modules/express/lib/view.js +205 -0
- package/templates/epms/node_modules/express/package.json +99 -0
- package/templates/epms/node_modules/fill-range/LICENSE +21 -0
- package/templates/epms/node_modules/fill-range/README.md +237 -0
- package/templates/epms/node_modules/fill-range/index.js +248 -0
- package/templates/epms/node_modules/fill-range/package.json +74 -0
- package/templates/epms/node_modules/finalhandler/HISTORY.md +239 -0
- package/templates/epms/node_modules/finalhandler/LICENSE +22 -0
- package/templates/epms/node_modules/finalhandler/README.md +150 -0
- package/templates/epms/node_modules/finalhandler/index.js +293 -0
- package/templates/epms/node_modules/finalhandler/package.json +47 -0
- package/templates/epms/node_modules/forwarded/HISTORY.md +21 -0
- package/templates/epms/node_modules/forwarded/LICENSE +22 -0
- package/templates/epms/node_modules/forwarded/README.md +57 -0
- package/templates/epms/node_modules/forwarded/index.js +90 -0
- package/templates/epms/node_modules/forwarded/package.json +45 -0
- package/templates/epms/node_modules/fresh/HISTORY.md +80 -0
- package/templates/epms/node_modules/fresh/LICENSE +23 -0
- package/templates/epms/node_modules/fresh/README.md +117 -0
- package/templates/epms/node_modules/fresh/index.js +136 -0
- package/templates/epms/node_modules/fresh/package.json +46 -0
- package/templates/epms/node_modules/function-bind/.eslintrc +21 -0
- package/templates/epms/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/templates/epms/node_modules/function-bind/.nycrc +13 -0
- package/templates/epms/node_modules/function-bind/CHANGELOG.md +136 -0
- package/templates/epms/node_modules/function-bind/LICENSE +20 -0
- package/templates/epms/node_modules/function-bind/README.md +46 -0
- package/templates/epms/node_modules/function-bind/implementation.js +84 -0
- package/templates/epms/node_modules/function-bind/index.js +5 -0
- package/templates/epms/node_modules/function-bind/package.json +87 -0
- package/templates/epms/node_modules/function-bind/test/.eslintrc +9 -0
- package/templates/epms/node_modules/function-bind/test/index.js +252 -0
- package/templates/epms/node_modules/get-intrinsic/.eslintrc +42 -0
- package/templates/epms/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/get-intrinsic/.nycrc +9 -0
- package/templates/epms/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/templates/epms/node_modules/get-intrinsic/LICENSE +21 -0
- package/templates/epms/node_modules/get-intrinsic/README.md +71 -0
- package/templates/epms/node_modules/get-intrinsic/index.js +378 -0
- package/templates/epms/node_modules/get-intrinsic/package.json +97 -0
- package/templates/epms/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/templates/epms/node_modules/get-proto/.eslintrc +10 -0
- package/templates/epms/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/get-proto/.nycrc +9 -0
- package/templates/epms/node_modules/get-proto/CHANGELOG.md +21 -0
- package/templates/epms/node_modules/get-proto/LICENSE +21 -0
- package/templates/epms/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/templates/epms/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/templates/epms/node_modules/get-proto/README.md +50 -0
- package/templates/epms/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/templates/epms/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/templates/epms/node_modules/get-proto/index.d.ts +5 -0
- package/templates/epms/node_modules/get-proto/index.js +27 -0
- package/templates/epms/node_modules/get-proto/package.json +81 -0
- package/templates/epms/node_modules/get-proto/test/index.js +68 -0
- package/templates/epms/node_modules/get-proto/tsconfig.json +9 -0
- package/templates/epms/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/templates/epms/node_modules/glob-parent/LICENSE +15 -0
- package/templates/epms/node_modules/glob-parent/README.md +137 -0
- package/templates/epms/node_modules/glob-parent/index.js +42 -0
- package/templates/epms/node_modules/glob-parent/package.json +48 -0
- package/templates/epms/node_modules/gopd/.eslintrc +16 -0
- package/templates/epms/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/gopd/CHANGELOG.md +45 -0
- package/templates/epms/node_modules/gopd/LICENSE +21 -0
- package/templates/epms/node_modules/gopd/README.md +40 -0
- package/templates/epms/node_modules/gopd/gOPD.d.ts +1 -0
- package/templates/epms/node_modules/gopd/gOPD.js +4 -0
- package/templates/epms/node_modules/gopd/index.d.ts +5 -0
- package/templates/epms/node_modules/gopd/index.js +15 -0
- package/templates/epms/node_modules/gopd/package.json +77 -0
- package/templates/epms/node_modules/gopd/test/index.js +36 -0
- package/templates/epms/node_modules/gopd/tsconfig.json +9 -0
- package/templates/epms/node_modules/has-flag/index.js +8 -0
- package/templates/epms/node_modules/has-flag/license +9 -0
- package/templates/epms/node_modules/has-flag/package.json +44 -0
- package/templates/epms/node_modules/has-flag/readme.md +70 -0
- package/templates/epms/node_modules/has-symbols/.eslintrc +11 -0
- package/templates/epms/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/has-symbols/.nycrc +9 -0
- package/templates/epms/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/templates/epms/node_modules/has-symbols/LICENSE +21 -0
- package/templates/epms/node_modules/has-symbols/README.md +46 -0
- package/templates/epms/node_modules/has-symbols/index.d.ts +3 -0
- package/templates/epms/node_modules/has-symbols/index.js +14 -0
- package/templates/epms/node_modules/has-symbols/package.json +111 -0
- package/templates/epms/node_modules/has-symbols/shams.d.ts +3 -0
- package/templates/epms/node_modules/has-symbols/shams.js +45 -0
- package/templates/epms/node_modules/has-symbols/test/index.js +22 -0
- package/templates/epms/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/templates/epms/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/templates/epms/node_modules/has-symbols/test/tests.js +58 -0
- package/templates/epms/node_modules/has-symbols/tsconfig.json +10 -0
- package/templates/epms/node_modules/hasown/.eslintrc +5 -0
- package/templates/epms/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/hasown/.nycrc +13 -0
- package/templates/epms/node_modules/hasown/CHANGELOG.md +40 -0
- package/templates/epms/node_modules/hasown/LICENSE +21 -0
- package/templates/epms/node_modules/hasown/README.md +40 -0
- package/templates/epms/node_modules/hasown/index.d.ts +3 -0
- package/templates/epms/node_modules/hasown/index.js +8 -0
- package/templates/epms/node_modules/hasown/package.json +92 -0
- package/templates/epms/node_modules/hasown/tsconfig.json +6 -0
- package/templates/epms/node_modules/http-errors/HISTORY.md +186 -0
- package/templates/epms/node_modules/http-errors/LICENSE +23 -0
- package/templates/epms/node_modules/http-errors/README.md +169 -0
- package/templates/epms/node_modules/http-errors/index.js +290 -0
- package/templates/epms/node_modules/http-errors/package.json +54 -0
- package/templates/epms/node_modules/iconv-lite/LICENSE +21 -0
- package/templates/epms/node_modules/iconv-lite/README.md +138 -0
- package/templates/epms/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/templates/epms/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/templates/epms/node_modules/iconv-lite/encodings/index.js +23 -0
- package/templates/epms/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/templates/epms/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/templates/epms/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/templates/epms/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/templates/epms/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/templates/epms/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/templates/epms/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/templates/epms/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/templates/epms/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/templates/epms/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/templates/epms/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/templates/epms/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/templates/epms/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/templates/epms/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/templates/epms/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/templates/epms/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/templates/epms/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/templates/epms/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/templates/epms/node_modules/iconv-lite/lib/index.js +182 -0
- package/templates/epms/node_modules/iconv-lite/lib/streams.js +105 -0
- package/templates/epms/node_modules/iconv-lite/package.json +70 -0
- package/templates/epms/node_modules/iconv-lite/types/encodings.d.ts +423 -0
- package/templates/epms/node_modules/ignore-by-default/LICENSE +14 -0
- package/templates/epms/node_modules/ignore-by-default/README.md +26 -0
- package/templates/epms/node_modules/ignore-by-default/index.js +12 -0
- package/templates/epms/node_modules/ignore-by-default/package.json +34 -0
- package/templates/epms/node_modules/inherits/LICENSE +16 -0
- package/templates/epms/node_modules/inherits/README.md +42 -0
- package/templates/epms/node_modules/inherits/inherits.js +9 -0
- package/templates/epms/node_modules/inherits/inherits_browser.js +27 -0
- package/templates/epms/node_modules/inherits/package.json +29 -0
- package/templates/epms/node_modules/ipaddr.js/LICENSE +19 -0
- package/templates/epms/node_modules/ipaddr.js/README.md +233 -0
- package/templates/epms/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/templates/epms/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/templates/epms/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/templates/epms/node_modules/ipaddr.js/package.json +35 -0
- package/templates/epms/node_modules/is-binary-path/index.d.ts +17 -0
- package/templates/epms/node_modules/is-binary-path/index.js +7 -0
- package/templates/epms/node_modules/is-binary-path/license +9 -0
- package/templates/epms/node_modules/is-binary-path/package.json +40 -0
- package/templates/epms/node_modules/is-binary-path/readme.md +34 -0
- package/templates/epms/node_modules/is-extglob/LICENSE +21 -0
- package/templates/epms/node_modules/is-extglob/README.md +107 -0
- package/templates/epms/node_modules/is-extglob/index.js +20 -0
- package/templates/epms/node_modules/is-extglob/package.json +69 -0
- package/templates/epms/node_modules/is-glob/LICENSE +21 -0
- package/templates/epms/node_modules/is-glob/README.md +206 -0
- package/templates/epms/node_modules/is-glob/index.js +150 -0
- package/templates/epms/node_modules/is-glob/package.json +81 -0
- package/templates/epms/node_modules/is-number/LICENSE +21 -0
- package/templates/epms/node_modules/is-number/README.md +187 -0
- package/templates/epms/node_modules/is-number/index.js +18 -0
- package/templates/epms/node_modules/is-number/package.json +82 -0
- package/templates/epms/node_modules/is-promise/LICENSE +19 -0
- package/templates/epms/node_modules/is-promise/index.d.ts +2 -0
- package/templates/epms/node_modules/is-promise/index.js +6 -0
- package/templates/epms/node_modules/is-promise/index.mjs +3 -0
- package/templates/epms/node_modules/is-promise/package.json +30 -0
- package/templates/epms/node_modules/is-promise/readme.md +33 -0
- package/templates/epms/node_modules/kareem/.nyc_output/fa57d6c4-9e78-4624-9229-f77b87a07481.json +1 -0
- package/templates/epms/node_modules/kareem/.nyc_output/processinfo/fa57d6c4-9e78-4624-9229-f77b87a07481.json +1 -0
- package/templates/epms/node_modules/kareem/.nyc_output/processinfo/index.json +1 -0
- package/templates/epms/node_modules/kareem/CHANGELOG.md +840 -0
- package/templates/epms/node_modules/kareem/LICENSE +202 -0
- package/templates/epms/node_modules/kareem/README.md +385 -0
- package/templates/epms/node_modules/kareem/SECURITY.md +5 -0
- package/templates/epms/node_modules/kareem/coverage/lcov-report/base.css +224 -0
- package/templates/epms/node_modules/kareem/coverage/lcov-report/block-navigation.js +87 -0
- package/templates/epms/node_modules/kareem/coverage/lcov-report/favicon.png +0 -0
- package/templates/epms/node_modules/kareem/coverage/lcov-report/index.html +116 -0
- package/templates/epms/node_modules/kareem/coverage/lcov-report/index.js.html +1603 -0
- package/templates/epms/node_modules/kareem/coverage/lcov-report/prettify.css +1 -0
- package/templates/epms/node_modules/kareem/coverage/lcov-report/prettify.js +2 -0
- package/templates/epms/node_modules/kareem/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/templates/epms/node_modules/kareem/coverage/lcov-report/sorter.js +196 -0
- package/templates/epms/node_modules/kareem/coverage/lcov.info +423 -0
- package/templates/epms/node_modules/kareem/index.d.ts +31 -0
- package/templates/epms/node_modules/kareem/index.js +539 -0
- package/templates/epms/node_modules/kareem/package.json +28 -0
- package/templates/epms/node_modules/math-intrinsics/.eslintrc +16 -0
- package/templates/epms/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/templates/epms/node_modules/math-intrinsics/LICENSE +21 -0
- package/templates/epms/node_modules/math-intrinsics/README.md +50 -0
- package/templates/epms/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/templates/epms/node_modules/math-intrinsics/abs.js +4 -0
- package/templates/epms/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/templates/epms/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/templates/epms/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/templates/epms/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/templates/epms/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/templates/epms/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/templates/epms/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/templates/epms/node_modules/math-intrinsics/floor.js +4 -0
- package/templates/epms/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/templates/epms/node_modules/math-intrinsics/isFinite.js +12 -0
- package/templates/epms/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/templates/epms/node_modules/math-intrinsics/isInteger.js +16 -0
- package/templates/epms/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/templates/epms/node_modules/math-intrinsics/isNaN.js +6 -0
- package/templates/epms/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/templates/epms/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/templates/epms/node_modules/math-intrinsics/max.d.ts +1 -0
- package/templates/epms/node_modules/math-intrinsics/max.js +4 -0
- package/templates/epms/node_modules/math-intrinsics/min.d.ts +1 -0
- package/templates/epms/node_modules/math-intrinsics/min.js +4 -0
- package/templates/epms/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/templates/epms/node_modules/math-intrinsics/mod.js +9 -0
- package/templates/epms/node_modules/math-intrinsics/package.json +86 -0
- package/templates/epms/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/templates/epms/node_modules/math-intrinsics/pow.js +4 -0
- package/templates/epms/node_modules/math-intrinsics/round.d.ts +1 -0
- package/templates/epms/node_modules/math-intrinsics/round.js +4 -0
- package/templates/epms/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/templates/epms/node_modules/math-intrinsics/sign.js +11 -0
- package/templates/epms/node_modules/math-intrinsics/test/index.js +192 -0
- package/templates/epms/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/templates/epms/node_modules/media-typer/HISTORY.md +50 -0
- package/templates/epms/node_modules/media-typer/LICENSE +22 -0
- package/templates/epms/node_modules/media-typer/README.md +93 -0
- package/templates/epms/node_modules/media-typer/index.js +143 -0
- package/templates/epms/node_modules/media-typer/package.json +33 -0
- package/templates/epms/node_modules/memory-pager/.travis.yml +4 -0
- package/templates/epms/node_modules/memory-pager/LICENSE +21 -0
- package/templates/epms/node_modules/memory-pager/README.md +65 -0
- package/templates/epms/node_modules/memory-pager/index.js +160 -0
- package/templates/epms/node_modules/memory-pager/package.json +24 -0
- package/templates/epms/node_modules/memory-pager/test.js +80 -0
- package/templates/epms/node_modules/merge-descriptors/index.d.ts +11 -0
- package/templates/epms/node_modules/merge-descriptors/index.js +26 -0
- package/templates/epms/node_modules/merge-descriptors/license +11 -0
- package/templates/epms/node_modules/merge-descriptors/package.json +50 -0
- package/templates/epms/node_modules/merge-descriptors/readme.md +55 -0
- package/templates/epms/node_modules/mime-db/HISTORY.md +541 -0
- package/templates/epms/node_modules/mime-db/LICENSE +23 -0
- package/templates/epms/node_modules/mime-db/README.md +109 -0
- package/templates/epms/node_modules/mime-db/db.json +9342 -0
- package/templates/epms/node_modules/mime-db/index.js +12 -0
- package/templates/epms/node_modules/mime-db/package.json +56 -0
- package/templates/epms/node_modules/mime-types/HISTORY.md +428 -0
- package/templates/epms/node_modules/mime-types/LICENSE +23 -0
- package/templates/epms/node_modules/mime-types/README.md +126 -0
- package/templates/epms/node_modules/mime-types/index.js +211 -0
- package/templates/epms/node_modules/mime-types/mimeScore.js +57 -0
- package/templates/epms/node_modules/mime-types/package.json +49 -0
- package/templates/epms/node_modules/minimatch/LICENSE.md +55 -0
- package/templates/epms/node_modules/minimatch/README.md +528 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/ast.d.ts +22 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/index.d.ts +174 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/templates/epms/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
- package/templates/epms/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/templates/epms/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/ast.d.ts +22 -0
- package/templates/epms/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/ast.js +841 -0
- package/templates/epms/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
- package/templates/epms/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/templates/epms/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
- package/templates/epms/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/templates/epms/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/index.d.ts +174 -0
- package/templates/epms/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/index.js +1114 -0
- package/templates/epms/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/package.json +3 -0
- package/templates/epms/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
- package/templates/epms/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- package/templates/epms/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/templates/epms/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- package/templates/epms/node_modules/minimatch/package.json +73 -0
- package/templates/epms/node_modules/mongodb/LICENSE.md +201 -0
- package/templates/epms/node_modules/mongodb/README.md +355 -0
- package/templates/epms/node_modules/mongodb/etc/prepare.js +12 -0
- package/templates/epms/node_modules/mongodb/lib/admin.js +136 -0
- package/templates/epms/node_modules/mongodb/lib/admin.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/bson.js +85 -0
- package/templates/epms/node_modules/mongodb/lib/bson.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/bulk/common.js +835 -0
- package/templates/epms/node_modules/mongodb/lib/bulk/common.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/bulk/ordered.js +67 -0
- package/templates/epms/node_modules/mongodb/lib/bulk/ordered.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/bulk/unordered.js +92 -0
- package/templates/epms/node_modules/mongodb/lib/bulk/unordered.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/change_stream.js +513 -0
- package/templates/epms/node_modules/mongodb/lib/change_stream.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.js +272 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/client_encryption.js +609 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/client_encryption.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/errors.js +138 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/errors.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.js +85 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/providers/aws.js +23 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/providers/aws.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/providers/azure.js +132 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/providers/azure.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/providers/gcp.js +16 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/providers/gcp.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/providers/index.js +43 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/providers/index.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/state_machine.js +427 -0
- package/templates/epms/node_modules/mongodb/lib/client-side-encryption/state_machine.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/auth_provider.js +51 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/auth_provider.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/aws4.js +161 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/aws4.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.js +103 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/gssapi.js +155 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/gssapi.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongo_credentials.js +169 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongo_credentials.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_aws.js +128 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_aws.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.js +84 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.js +62 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.js +141 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.js +44 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.js +39 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.js +122 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.js +32 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.js +52 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.js +23 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.js +73 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/plain.js +26 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/plain.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/providers.js +22 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/providers.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/scram.js +254 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/scram.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/x509.js +36 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/auth/x509.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/command_monitoring_events.js +223 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/command_monitoring_events.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/commands.js +535 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/commands.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/connect.js +397 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/connect.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/connection.js +571 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/connection.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/connection_pool.js +558 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/connection_pool.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/connection_pool_events.js +190 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/connection_pool_events.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/errors.js +108 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/errors.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/handshake/client_metadata.js +242 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/handshake/client_metadata.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/metrics.js +62 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/metrics.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/stream_description.js +70 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/stream_description.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/compression.js +178 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/compression.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/constants.js +21 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/constants.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/on_data.js +111 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/on_data.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.js +222 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/responses.js +315 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/responses.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/shared.js +35 -0
- package/templates/epms/node_modules/mongodb/lib/cmap/wire_protocol/shared.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/collection.js +751 -0
- package/templates/epms/node_modules/mongodb/lib/collection.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/connection_string.js +1090 -0
- package/templates/epms/node_modules/mongodb/lib/connection_string.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/constants.js +170 -0
- package/templates/epms/node_modules/mongodb/lib/constants.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/abstract_cursor.js +924 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/abstract_cursor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/aggregation_cursor.js +164 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/aggregation_cursor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/change_stream_cursor.js +104 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/change_stream_cursor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.js +52 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/explainable_cursor.js +36 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/explainable_cursor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/find_cursor.js +399 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/find_cursor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/list_collections_cursor.js +34 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/list_collections_cursor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/list_indexes_cursor.js +32 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/list_indexes_cursor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js +14 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/run_command_cursor.js +94 -0
- package/templates/epms/node_modules/mongodb/lib/cursor/run_command_cursor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/db.js +419 -0
- package/templates/epms/node_modules/mongodb/lib/db.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/deps.js +112 -0
- package/templates/epms/node_modules/mongodb/lib/deps.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/encrypter.js +106 -0
- package/templates/epms/node_modules/mongodb/lib/encrypter.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/error.js +1380 -0
- package/templates/epms/node_modules/mongodb/lib/error.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/explain.js +59 -0
- package/templates/epms/node_modules/mongodb/lib/explain.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/gridfs/download.js +305 -0
- package/templates/epms/node_modules/mongodb/lib/gridfs/download.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/gridfs/index.js +164 -0
- package/templates/epms/node_modules/mongodb/lib/gridfs/index.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/gridfs/upload.js +358 -0
- package/templates/epms/node_modules/mongodb/lib/gridfs/upload.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/index.js +193 -0
- package/templates/epms/node_modules/mongodb/lib/index.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/mongo_client.js +557 -0
- package/templates/epms/node_modules/mongodb/lib/mongo_client.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/mongo_client_auth_providers.js +80 -0
- package/templates/epms/node_modules/mongodb/lib/mongo_client_auth_providers.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/mongo_logger.js +655 -0
- package/templates/epms/node_modules/mongodb/lib/mongo_logger.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/mongo_types.js +56 -0
- package/templates/epms/node_modules/mongodb/lib/mongo_types.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/aggregate.js +90 -0
- package/templates/epms/node_modules/mongodb/lib/operations/aggregate.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.js +51 -0
- package/templates/epms/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.js +340 -0
- package/templates/epms/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/client_bulk_write/common.js +3 -0
- package/templates/epms/node_modules/mongodb/lib/operations/client_bulk_write/common.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/client_bulk_write/executor.js +120 -0
- package/templates/epms/node_modules/mongodb/lib/operations/client_bulk_write/executor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.js +204 -0
- package/templates/epms/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/command.js +83 -0
- package/templates/epms/node_modules/mongodb/lib/operations/command.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/count.js +45 -0
- package/templates/epms/node_modules/mongodb/lib/operations/count.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/create_collection.js +109 -0
- package/templates/epms/node_modules/mongodb/lib/operations/create_collection.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/delete.js +125 -0
- package/templates/epms/node_modules/mongodb/lib/operations/delete.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/distinct.js +61 -0
- package/templates/epms/node_modules/mongodb/lib/operations/distinct.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/drop.js +93 -0
- package/templates/epms/node_modules/mongodb/lib/operations/drop.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/end_sessions.js +34 -0
- package/templates/epms/node_modules/mongodb/lib/operations/end_sessions.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/estimated_document_count.js +41 -0
- package/templates/epms/node_modules/mongodb/lib/operations/estimated_document_count.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/execute_operation.js +239 -0
- package/templates/epms/node_modules/mongodb/lib/operations/execute_operation.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/find.js +148 -0
- package/templates/epms/node_modules/mongodb/lib/operations/find.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/find_and_modify.js +158 -0
- package/templates/epms/node_modules/mongodb/lib/operations/find_and_modify.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/get_more.js +62 -0
- package/templates/epms/node_modules/mongodb/lib/operations/get_more.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/indexes.js +186 -0
- package/templates/epms/node_modules/mongodb/lib/operations/indexes.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/insert.js +70 -0
- package/templates/epms/node_modules/mongodb/lib/operations/insert.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/kill_cursors.js +43 -0
- package/templates/epms/node_modules/mongodb/lib/operations/kill_cursors.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/list_collections.js +53 -0
- package/templates/epms/node_modules/mongodb/lib/operations/list_collections.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/list_databases.js +40 -0
- package/templates/epms/node_modules/mongodb/lib/operations/list_databases.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/operation.js +102 -0
- package/templates/epms/node_modules/mongodb/lib/operations/operation.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/profiling_level.js +43 -0
- package/templates/epms/node_modules/mongodb/lib/operations/profiling_level.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/remove_user.js +27 -0
- package/templates/epms/node_modules/mongodb/lib/operations/remove_user.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/rename.js +38 -0
- package/templates/epms/node_modules/mongodb/lib/operations/rename.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/run_command.js +47 -0
- package/templates/epms/node_modules/mongodb/lib/operations/run_command.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/search_indexes/create.js +33 -0
- package/templates/epms/node_modules/mongodb/lib/operations/search_indexes/create.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/search_indexes/drop.js +43 -0
- package/templates/epms/node_modules/mongodb/lib/operations/search_indexes/drop.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/search_indexes/update.js +35 -0
- package/templates/epms/node_modules/mongodb/lib/operations/search_indexes/update.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/set_profiling_level.js +53 -0
- package/templates/epms/node_modules/mongodb/lib/operations/set_profiling_level.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/stats.js +27 -0
- package/templates/epms/node_modules/mongodb/lib/operations/stats.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/update.js +188 -0
- package/templates/epms/node_modules/mongodb/lib/operations/update.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/operations/validate_collection.js +37 -0
- package/templates/epms/node_modules/mongodb/lib/operations/validate_collection.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/read_concern.js +73 -0
- package/templates/epms/node_modules/mongodb/lib/read_concern.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/read_preference.js +191 -0
- package/templates/epms/node_modules/mongodb/lib/read_preference.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/common.js +49 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/common.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/events.js +146 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/events.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/monitor.js +544 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/monitor.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/server.js +404 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/server.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/server_description.js +204 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/server_description.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/server_selection.js +294 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/server_selection.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/server_selection_events.js +85 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/server_selection_events.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/srv_polling.js +108 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/srv_polling.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/topology.js +652 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/topology.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/topology_description.js +383 -0
- package/templates/epms/node_modules/mongodb/lib/sdam/topology_description.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sessions.js +892 -0
- package/templates/epms/node_modules/mongodb/lib/sessions.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/sort.js +103 -0
- package/templates/epms/node_modules/mongodb/lib/sort.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/timeout.js +296 -0
- package/templates/epms/node_modules/mongodb/lib/timeout.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/transactions.js +135 -0
- package/templates/epms/node_modules/mongodb/lib/transactions.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/utils.js +1178 -0
- package/templates/epms/node_modules/mongodb/lib/utils.js.map +1 -0
- package/templates/epms/node_modules/mongodb/lib/write_concern.js +100 -0
- package/templates/epms/node_modules/mongodb/lib/write_concern.js.map +1 -0
- package/templates/epms/node_modules/mongodb/mongodb.d.ts +9018 -0
- package/templates/epms/node_modules/mongodb/package.json +173 -0
- package/templates/epms/node_modules/mongodb/src/admin.ts +173 -0
- package/templates/epms/node_modules/mongodb/src/bson.ts +149 -0
- package/templates/epms/node_modules/mongodb/src/bulk/common.ts +1251 -0
- package/templates/epms/node_modules/mongodb/src/bulk/ordered.ts +83 -0
- package/templates/epms/node_modules/mongodb/src/bulk/unordered.ts +115 -0
- package/templates/epms/node_modules/mongodb/src/change_stream.ts +1160 -0
- package/templates/epms/node_modules/mongodb/src/client-side-encryption/auto_encrypter.ts +469 -0
- package/templates/epms/node_modules/mongodb/src/client-side-encryption/client_encryption.ts +1150 -0
- package/templates/epms/node_modules/mongodb/src/client-side-encryption/errors.ts +144 -0
- package/templates/epms/node_modules/mongodb/src/client-side-encryption/mongocryptd_manager.ts +100 -0
- package/templates/epms/node_modules/mongodb/src/client-side-encryption/providers/aws.ts +33 -0
- package/templates/epms/node_modules/mongodb/src/client-side-encryption/providers/azure.ts +181 -0
- package/templates/epms/node_modules/mongodb/src/client-side-encryption/providers/gcp.ts +16 -0
- package/templates/epms/node_modules/mongodb/src/client-side-encryption/providers/index.ts +207 -0
- package/templates/epms/node_modules/mongodb/src/client-side-encryption/state_machine.ts +651 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/auth_provider.ts +77 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/aws4.ts +207 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/aws_temporary_credentials.ts +129 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/gssapi.ts +203 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongo_credentials.ts +292 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongodb_aws.ts +179 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongodb_oidc/automated_callback_workflow.ts +88 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongodb_oidc/azure_machine_workflow.ts +73 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongodb_oidc/callback_workflow.ts +188 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongodb_oidc/command_builders.ts +53 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongodb_oidc/gcp_machine_workflow.ts +46 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongodb_oidc/human_callback_workflow.ts +141 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongodb_oidc/k8s_machine_workflow.ts +31 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongodb_oidc/token_cache.ts +62 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongodb_oidc/token_machine_workflow.ts +22 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/mongodb_oidc.ts +185 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/plain.ts +25 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/providers.ts +22 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/scram.ts +344 -0
- package/templates/epms/node_modules/mongodb/src/cmap/auth/x509.ts +43 -0
- package/templates/epms/node_modules/mongodb/src/cmap/command_monitoring_events.ts +316 -0
- package/templates/epms/node_modules/mongodb/src/cmap/commands.ts +788 -0
- package/templates/epms/node_modules/mongodb/src/cmap/connect.ts +536 -0
- package/templates/epms/node_modules/mongodb/src/cmap/connection.ts +931 -0
- package/templates/epms/node_modules/mongodb/src/cmap/connection_pool.ts +831 -0
- package/templates/epms/node_modules/mongodb/src/cmap/connection_pool_events.ts +300 -0
- package/templates/epms/node_modules/mongodb/src/cmap/errors.ts +119 -0
- package/templates/epms/node_modules/mongodb/src/cmap/handshake/client_metadata.ts +353 -0
- package/templates/epms/node_modules/mongodb/src/cmap/metrics.ts +58 -0
- package/templates/epms/node_modules/mongodb/src/cmap/stream_description.ts +96 -0
- package/templates/epms/node_modules/mongodb/src/cmap/wire_protocol/compression.ts +211 -0
- package/templates/epms/node_modules/mongodb/src/cmap/wire_protocol/constants.ts +17 -0
- package/templates/epms/node_modules/mongodb/src/cmap/wire_protocol/on_data.ts +139 -0
- package/templates/epms/node_modules/mongodb/src/cmap/wire_protocol/on_demand/document.ts +358 -0
- package/templates/epms/node_modules/mongodb/src/cmap/wire_protocol/responses.ts +393 -0
- package/templates/epms/node_modules/mongodb/src/cmap/wire_protocol/shared.ts +48 -0
- package/templates/epms/node_modules/mongodb/src/collection.ts +1314 -0
- package/templates/epms/node_modules/mongodb/src/connection_string.ts +1297 -0
- package/templates/epms/node_modules/mongodb/src/constants.ts +176 -0
- package/templates/epms/node_modules/mongodb/src/cursor/abstract_cursor.ts +1247 -0
- package/templates/epms/node_modules/mongodb/src/cursor/aggregation_cursor.ts +245 -0
- package/templates/epms/node_modules/mongodb/src/cursor/change_stream_cursor.ts +171 -0
- package/templates/epms/node_modules/mongodb/src/cursor/client_bulk_write_cursor.ts +83 -0
- package/templates/epms/node_modules/mongodb/src/cursor/explainable_cursor.ts +51 -0
- package/templates/epms/node_modules/mongodb/src/cursor/find_cursor.ts +497 -0
- package/templates/epms/node_modules/mongodb/src/cursor/list_collections_cursor.ts +50 -0
- package/templates/epms/node_modules/mongodb/src/cursor/list_indexes_cursor.ts +37 -0
- package/templates/epms/node_modules/mongodb/src/cursor/list_search_indexes_cursor.ts +20 -0
- package/templates/epms/node_modules/mongodb/src/cursor/run_command_cursor.ts +178 -0
- package/templates/epms/node_modules/mongodb/src/db.ts +621 -0
- package/templates/epms/node_modules/mongodb/src/deps.ts +227 -0
- package/templates/epms/node_modules/mongodb/src/encrypter.ts +127 -0
- package/templates/epms/node_modules/mongodb/src/error.ts +1567 -0
- package/templates/epms/node_modules/mongodb/src/explain.ts +124 -0
- package/templates/epms/node_modules/mongodb/src/gridfs/download.ts +483 -0
- package/templates/epms/node_modules/mongodb/src/gridfs/index.ts +264 -0
- package/templates/epms/node_modules/mongodb/src/gridfs/upload.ts +537 -0
- package/templates/epms/node_modules/mongodb/src/index.ts +633 -0
- package/templates/epms/node_modules/mongodb/src/mongo_client.ts +1155 -0
- package/templates/epms/node_modules/mongodb/src/mongo_client_auth_providers.ts +87 -0
- package/templates/epms/node_modules/mongodb/src/mongo_logger.ts +1081 -0
- package/templates/epms/node_modules/mongodb/src/mongo_types.ts +678 -0
- package/templates/epms/node_modules/mongodb/src/operations/aggregate.ts +153 -0
- package/templates/epms/node_modules/mongodb/src/operations/client_bulk_write/client_bulk_write.ts +72 -0
- package/templates/epms/node_modules/mongodb/src/operations/client_bulk_write/command_builder.ts +487 -0
- package/templates/epms/node_modules/mongodb/src/operations/client_bulk_write/common.ts +276 -0
- package/templates/epms/node_modules/mongodb/src/operations/client_bulk_write/executor.ts +149 -0
- package/templates/epms/node_modules/mongodb/src/operations/client_bulk_write/results_merger.ts +260 -0
- package/templates/epms/node_modules/mongodb/src/operations/command.ts +171 -0
- package/templates/epms/node_modules/mongodb/src/operations/count.ts +74 -0
- package/templates/epms/node_modules/mongodb/src/operations/create_collection.ts +218 -0
- package/templates/epms/node_modules/mongodb/src/operations/delete.ts +183 -0
- package/templates/epms/node_modules/mongodb/src/operations/distinct.ts +92 -0
- package/templates/epms/node_modules/mongodb/src/operations/drop.ts +130 -0
- package/templates/epms/node_modules/mongodb/src/operations/end_sessions.ts +44 -0
- package/templates/epms/node_modules/mongodb/src/operations/estimated_document_count.ts +61 -0
- package/templates/epms/node_modules/mongodb/src/operations/execute_operation.ts +319 -0
- package/templates/epms/node_modules/mongodb/src/operations/find.ts +254 -0
- package/templates/epms/node_modules/mongodb/src/operations/find_and_modify.ts +319 -0
- package/templates/epms/node_modules/mongodb/src/operations/get_more.ts +108 -0
- package/templates/epms/node_modules/mongodb/src/operations/indexes.ts +418 -0
- package/templates/epms/node_modules/mongodb/src/operations/insert.ts +108 -0
- package/templates/epms/node_modules/mongodb/src/operations/kill_cursors.ts +64 -0
- package/templates/epms/node_modules/mongodb/src/operations/list_collections.ts +108 -0
- package/templates/epms/node_modules/mongodb/src/operations/list_databases.ts +68 -0
- package/templates/epms/node_modules/mongodb/src/operations/operation.ts +181 -0
- package/templates/epms/node_modules/mongodb/src/operations/profiling_level.ts +46 -0
- package/templates/epms/node_modules/mongodb/src/operations/remove_user.ts +36 -0
- package/templates/epms/node_modules/mongodb/src/operations/rename.ts +60 -0
- package/templates/epms/node_modules/mongodb/src/operations/run_command.ts +79 -0
- package/templates/epms/node_modules/mongodb/src/operations/search_indexes/create.ts +56 -0
- package/templates/epms/node_modules/mongodb/src/operations/search_indexes/drop.ts +58 -0
- package/templates/epms/node_modules/mongodb/src/operations/search_indexes/update.ts +45 -0
- package/templates/epms/node_modules/mongodb/src/operations/set_profiling_level.ts +74 -0
- package/templates/epms/node_modules/mongodb/src/operations/stats.ts +37 -0
- package/templates/epms/node_modules/mongodb/src/operations/update.ts +318 -0
- package/templates/epms/node_modules/mongodb/src/operations/validate_collection.ts +50 -0
- package/templates/epms/node_modules/mongodb/src/read_concern.ts +88 -0
- package/templates/epms/node_modules/mongodb/src/read_preference.ts +256 -0
- package/templates/epms/node_modules/mongodb/src/sdam/common.ts +74 -0
- package/templates/epms/node_modules/mongodb/src/sdam/events.ts +219 -0
- package/templates/epms/node_modules/mongodb/src/sdam/monitor.ts +771 -0
- package/templates/epms/node_modules/mongodb/src/sdam/server.ts +595 -0
- package/templates/epms/node_modules/mongodb/src/sdam/server_description.ts +297 -0
- package/templates/epms/node_modules/mongodb/src/sdam/server_selection.ts +415 -0
- package/templates/epms/node_modules/mongodb/src/sdam/server_selection_events.ts +142 -0
- package/templates/epms/node_modules/mongodb/src/sdam/srv_polling.ts +146 -0
- package/templates/epms/node_modules/mongodb/src/sdam/topology.ts +1100 -0
- package/templates/epms/node_modules/mongodb/src/sdam/topology_description.ts +548 -0
- package/templates/epms/node_modules/mongodb/src/sessions.ts +1244 -0
- package/templates/epms/node_modules/mongodb/src/sort.ts +141 -0
- package/templates/epms/node_modules/mongodb/src/timeout.ts +405 -0
- package/templates/epms/node_modules/mongodb/src/transactions.ts +181 -0
- package/templates/epms/node_modules/mongodb/src/utils.ts +1448 -0
- package/templates/epms/node_modules/mongodb/src/write_concern.ts +183 -0
- package/templates/epms/node_modules/mongodb/tsconfig.json +46 -0
- package/templates/epms/node_modules/mongodb-connection-string-url/.esm-wrapper.mjs +6 -0
- package/templates/epms/node_modules/mongodb-connection-string-url/LICENSE +192 -0
- package/templates/epms/node_modules/mongodb-connection-string-url/README.md +25 -0
- package/templates/epms/node_modules/mongodb-connection-string-url/lib/index.d.ts +63 -0
- package/templates/epms/node_modules/mongodb-connection-string-url/lib/index.js +239 -0
- package/templates/epms/node_modules/mongodb-connection-string-url/lib/index.js.map +1 -0
- package/templates/epms/node_modules/mongodb-connection-string-url/lib/redact.d.ts +7 -0
- package/templates/epms/node_modules/mongodb-connection-string-url/lib/redact.js +97 -0
- package/templates/epms/node_modules/mongodb-connection-string-url/lib/redact.js.map +1 -0
- package/templates/epms/node_modules/mongodb-connection-string-url/package.json +71 -0
- package/templates/epms/node_modules/mongoose/LICENSE.md +22 -0
- package/templates/epms/node_modules/mongoose/README.md +395 -0
- package/templates/epms/node_modules/mongoose/SECURITY.md +1 -0
- package/templates/epms/node_modules/mongoose/eslint.config.mjs +198 -0
- package/templates/epms/node_modules/mongoose/index.js +64 -0
- package/templates/epms/node_modules/mongoose/lib/aggregate.js +1226 -0
- package/templates/epms/node_modules/mongoose/lib/cast/bigint.js +46 -0
- package/templates/epms/node_modules/mongoose/lib/cast/boolean.js +32 -0
- package/templates/epms/node_modules/mongoose/lib/cast/date.js +41 -0
- package/templates/epms/node_modules/mongoose/lib/cast/decimal128.js +39 -0
- package/templates/epms/node_modules/mongoose/lib/cast/double.js +50 -0
- package/templates/epms/node_modules/mongoose/lib/cast/int32.js +36 -0
- package/templates/epms/node_modules/mongoose/lib/cast/number.js +42 -0
- package/templates/epms/node_modules/mongoose/lib/cast/objectid.js +29 -0
- package/templates/epms/node_modules/mongoose/lib/cast/string.js +37 -0
- package/templates/epms/node_modules/mongoose/lib/cast/uuid.js +35 -0
- package/templates/epms/node_modules/mongoose/lib/cast.js +436 -0
- package/templates/epms/node_modules/mongoose/lib/collection.js +321 -0
- package/templates/epms/node_modules/mongoose/lib/connection.js +1853 -0
- package/templates/epms/node_modules/mongoose/lib/connectionState.js +26 -0
- package/templates/epms/node_modules/mongoose/lib/constants.js +73 -0
- package/templates/epms/node_modules/mongoose/lib/cursor/aggregationCursor.js +466 -0
- package/templates/epms/node_modules/mongoose/lib/cursor/changeStream.js +218 -0
- package/templates/epms/node_modules/mongoose/lib/cursor/queryCursor.js +625 -0
- package/templates/epms/node_modules/mongoose/lib/document.js +5659 -0
- package/templates/epms/node_modules/mongoose/lib/driver.js +15 -0
- package/templates/epms/node_modules/mongoose/lib/drivers/SPEC.md +4 -0
- package/templates/epms/node_modules/mongoose/lib/drivers/node-mongodb-native/bulkWriteResult.js +5 -0
- package/templates/epms/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js +420 -0
- package/templates/epms/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js +519 -0
- package/templates/epms/node_modules/mongoose/lib/drivers/node-mongodb-native/index.js +10 -0
- package/templates/epms/node_modules/mongoose/lib/error/browserMissingSchema.js +29 -0
- package/templates/epms/node_modules/mongoose/lib/error/bulkSaveIncompleteError.js +44 -0
- package/templates/epms/node_modules/mongoose/lib/error/bulkWriteError.js +41 -0
- package/templates/epms/node_modules/mongoose/lib/error/cast.js +158 -0
- package/templates/epms/node_modules/mongoose/lib/error/createCollectionsError.js +26 -0
- package/templates/epms/node_modules/mongoose/lib/error/divergentArray.js +40 -0
- package/templates/epms/node_modules/mongoose/lib/error/eachAsyncMultiError.js +41 -0
- package/templates/epms/node_modules/mongoose/lib/error/index.js +237 -0
- package/templates/epms/node_modules/mongoose/lib/error/invalidSchemaOption.js +32 -0
- package/templates/epms/node_modules/mongoose/lib/error/messages.js +47 -0
- package/templates/epms/node_modules/mongoose/lib/error/missingSchema.js +33 -0
- package/templates/epms/node_modules/mongoose/lib/error/mongooseError.js +13 -0
- package/templates/epms/node_modules/mongoose/lib/error/notFound.js +47 -0
- package/templates/epms/node_modules/mongoose/lib/error/objectExpected.js +31 -0
- package/templates/epms/node_modules/mongoose/lib/error/objectParameter.js +31 -0
- package/templates/epms/node_modules/mongoose/lib/error/overwriteModel.js +31 -0
- package/templates/epms/node_modules/mongoose/lib/error/parallelSave.js +33 -0
- package/templates/epms/node_modules/mongoose/lib/error/parallelValidate.js +33 -0
- package/templates/epms/node_modules/mongoose/lib/error/serverSelection.js +62 -0
- package/templates/epms/node_modules/mongoose/lib/error/setOptionError.js +103 -0
- package/templates/epms/node_modules/mongoose/lib/error/strict.js +35 -0
- package/templates/epms/node_modules/mongoose/lib/error/strictPopulate.js +31 -0
- package/templates/epms/node_modules/mongoose/lib/error/syncIndexes.js +30 -0
- package/templates/epms/node_modules/mongoose/lib/error/validation.js +97 -0
- package/templates/epms/node_modules/mongoose/lib/error/validator.js +100 -0
- package/templates/epms/node_modules/mongoose/lib/error/version.js +38 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/aggregate/prepareDiscriminatorPipeline.js +39 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/aggregate/stringifyFunctionOperators.js +50 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/arrayDepth.js +33 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/buildMiddlewareFilter.js +24 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/clone.js +236 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/common.js +127 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/cursor/eachAsync.js +225 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/discriminator/applyEmbeddedDiscriminators.js +36 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.js +16 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.js +12 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/discriminator/getConstructor.js +29 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.js +28 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.js +27 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/discriminator/mergeDiscriminatorSchema.js +96 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/document/applyDefaults.js +132 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/document/applyTimestamps.js +106 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/document/applyVirtuals.js +147 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.js +45 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/document/compile.js +241 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/document/getDeepestSubdocumentForPath.js +38 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/document/getEmbeddedDiscriminatorPath.js +53 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/document/handleSpreadDoc.js +35 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/document/isInPathsToSave.js +24 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/each.js +25 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/error/combinePathErrors.js +22 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/firstKey.js +8 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/get.js +65 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/getConstructorName.js +16 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.js +18 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/getFunctionName.js +10 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/immediate.js +16 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/indexes/applySchemaCollation.js +13 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/indexes/decorateDiscriminatorIndexOptions.js +14 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/indexes/getRelatedIndexes.js +63 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.js +18 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/indexes/isIndexEqual.js +95 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/indexes/isIndexSpecEqual.js +32 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/indexes/isTextIndex.js +16 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/indexes/isTimeseriesIndex.js +16 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/isAsyncFunction.js +9 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/isBsonType.js +15 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/isMongooseObject.js +22 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/isObject.js +16 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/isPOJO.js +12 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/isPromise.js +6 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/isSimpleValidator.js +22 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/minimize.js +41 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/model/applyDefaultsToPOJO.js +52 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/model/applyHooks.js +151 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/model/applyMethods.js +70 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/model/applyStaticHooks.js +33 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/model/applyStatics.js +13 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/model/castBulkWrite.js +322 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/model/decorateBulkWriteResult.js +8 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/model/discriminator.js +265 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/model/pushNestedArrayPaths.js +15 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/omitUndefined.js +20 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/once.js +12 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/parallelLimit.js +37 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/path/parentPaths.js +18 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/path/setDottedPath.js +33 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/pluralize.js +95 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/assignRawDocsToIdStructure.js +129 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/assignVals.js +360 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/createPopulateQueryFilter.js +97 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/getModelsMapForPopulate.js +894 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/getSchemaTypes.js +229 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/getVirtual.js +103 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.js +7 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.js +40 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/markArraySubdocsPopulated.js +49 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/modelNamesFromRefPath.js +74 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.js +31 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/setPopulatedVirtualValue.js +33 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/skipPopulateValue.js +10 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/populate/validateRef.js +19 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/printJestWarning.js +21 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/processConnectionOptions.js +65 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/projection/applyProjection.js +83 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/projection/hasIncludedChildren.js +41 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js +18 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/projection/isExclusive.js +37 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/projection/isInclusive.js +39 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/projection/isNestedProjection.js +8 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/projection/isPathExcluded.js +40 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.js +28 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/projection/isSubpath.js +14 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/projection/parseProjection.js +38 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/applyGlobalOption.js +29 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/cast$expr.js +287 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/castFilterPath.js +54 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/castUpdate.js +643 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/getEmbeddedDiscriminatorPath.js +103 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/handleImmutable.js +44 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/handleReadPreferenceAliases.js +23 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js +23 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/isOperator.js +14 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/sanitizeFilter.js +41 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/sanitizeProjection.js +14 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/selectPopulatedFields.js +62 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/trusted.js +13 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/query/validOps.js +3 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/addAutoId.js +7 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/applyBuiltinPlugins.js +12 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/applyPlugins.js +55 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/applyReadConcern.js +20 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/applyWriteConcern.js +39 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.js +12 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/getIndexes.js +171 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/getKeysInSchemaOrder.js +28 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/getPath.js +43 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/getSubdocumentStrictValue.js +32 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/handleIdOption.js +20 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js +24 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/idGetter.js +34 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schema/merge.js +36 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/schematype/handleImmutable.js +50 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/setDefaultsOnInsert.js +174 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/specialProperties.js +3 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/symbols.js +20 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/timers.js +3 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/timestamps/setDocumentTimestamps.js +26 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/timestamps/setupTimestamps.js +132 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/topology/allServersUnknown.js +12 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/topology/isAtlas.js +31 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/topology/isSSLError.js +16 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/update/applyTimestampsToChildren.js +193 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/update/applyTimestampsToUpdate.js +131 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/update/castArrayFilters.js +113 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/update/decorateUpdateWithVersionKey.js +35 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/update/modifiedPaths.js +33 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/update/moveImmutableProperties.js +53 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/update/removeUnusedArrayFilters.js +37 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.js +27 -0
- package/templates/epms/node_modules/mongoose/lib/helpers/updateValidators.js +186 -0
- package/templates/epms/node_modules/mongoose/lib/index.js +17 -0
- package/templates/epms/node_modules/mongoose/lib/internal.js +46 -0
- package/templates/epms/node_modules/mongoose/lib/model.js +5205 -0
- package/templates/epms/node_modules/mongoose/lib/modifiedPathsSnapshot.js +9 -0
- package/templates/epms/node_modules/mongoose/lib/mongoose.js +1435 -0
- package/templates/epms/node_modules/mongoose/lib/options/populateOptions.js +36 -0
- package/templates/epms/node_modules/mongoose/lib/options/propertyOptions.js +8 -0
- package/templates/epms/node_modules/mongoose/lib/options/saveOptions.js +16 -0
- package/templates/epms/node_modules/mongoose/lib/options/schemaArrayOptions.js +78 -0
- package/templates/epms/node_modules/mongoose/lib/options/schemaBufferOptions.js +38 -0
- package/templates/epms/node_modules/mongoose/lib/options/schemaDateOptions.js +71 -0
- package/templates/epms/node_modules/mongoose/lib/options/schemaDocumentArrayOptions.js +91 -0
- package/templates/epms/node_modules/mongoose/lib/options/schemaMapOptions.js +43 -0
- package/templates/epms/node_modules/mongoose/lib/options/schemaNumberOptions.js +101 -0
- package/templates/epms/node_modules/mongoose/lib/options/schemaObjectIdOptions.js +64 -0
- package/templates/epms/node_modules/mongoose/lib/options/schemaStringOptions.js +138 -0
- package/templates/epms/node_modules/mongoose/lib/options/schemaSubdocumentOptions.js +89 -0
- package/templates/epms/node_modules/mongoose/lib/options/schemaTypeOptions.js +244 -0
- package/templates/epms/node_modules/mongoose/lib/options/schemaUnionOptions.js +32 -0
- package/templates/epms/node_modules/mongoose/lib/options/virtualOptions.js +164 -0
- package/templates/epms/node_modules/mongoose/lib/options.js +18 -0
- package/templates/epms/node_modules/mongoose/lib/plugins/index.js +5 -0
- package/templates/epms/node_modules/mongoose/lib/plugins/saveSubdocs.js +94 -0
- package/templates/epms/node_modules/mongoose/lib/plugins/sharding.js +101 -0
- package/templates/epms/node_modules/mongoose/lib/plugins/trackTransaction.js +89 -0
- package/templates/epms/node_modules/mongoose/lib/query.js +5760 -0
- package/templates/epms/node_modules/mongoose/lib/queryHelpers.js +395 -0
- package/templates/epms/node_modules/mongoose/lib/schema/array.js +700 -0
- package/templates/epms/node_modules/mongoose/lib/schema/bigint.js +280 -0
- package/templates/epms/node_modules/mongoose/lib/schema/boolean.js +330 -0
- package/templates/epms/node_modules/mongoose/lib/schema/buffer.js +341 -0
- package/templates/epms/node_modules/mongoose/lib/schema/date.js +465 -0
- package/templates/epms/node_modules/mongoose/lib/schema/decimal128.js +261 -0
- package/templates/epms/node_modules/mongoose/lib/schema/documentArray.js +664 -0
- package/templates/epms/node_modules/mongoose/lib/schema/documentArrayElement.js +136 -0
- package/templates/epms/node_modules/mongoose/lib/schema/double.js +244 -0
- package/templates/epms/node_modules/mongoose/lib/schema/index.js +32 -0
- package/templates/epms/node_modules/mongoose/lib/schema/int32.js +287 -0
- package/templates/epms/node_modules/mongoose/lib/schema/map.js +194 -0
- package/templates/epms/node_modules/mongoose/lib/schema/mixed.js +146 -0
- package/templates/epms/node_modules/mongoose/lib/schema/number.js +508 -0
- package/templates/epms/node_modules/mongoose/lib/schema/objectId.js +331 -0
- package/templates/epms/node_modules/mongoose/lib/schema/operators/bitwise.js +38 -0
- package/templates/epms/node_modules/mongoose/lib/schema/operators/exists.js +12 -0
- package/templates/epms/node_modules/mongoose/lib/schema/operators/geospatial.js +107 -0
- package/templates/epms/node_modules/mongoose/lib/schema/operators/helpers.js +32 -0
- package/templates/epms/node_modules/mongoose/lib/schema/operators/text.js +39 -0
- package/templates/epms/node_modules/mongoose/lib/schema/operators/type.js +20 -0
- package/templates/epms/node_modules/mongoose/lib/schema/string.js +731 -0
- package/templates/epms/node_modules/mongoose/lib/schema/subdocument.js +434 -0
- package/templates/epms/node_modules/mongoose/lib/schema/symbols.js +5 -0
- package/templates/epms/node_modules/mongoose/lib/schema/union.js +163 -0
- package/templates/epms/node_modules/mongoose/lib/schema/uuid.js +303 -0
- package/templates/epms/node_modules/mongoose/lib/schema.js +3225 -0
- package/templates/epms/node_modules/mongoose/lib/schemaType.js +1875 -0
- package/templates/epms/node_modules/mongoose/lib/stateMachine.js +229 -0
- package/templates/epms/node_modules/mongoose/lib/types/array/index.js +119 -0
- package/templates/epms/node_modules/mongoose/lib/types/array/isMongooseArray.js +5 -0
- package/templates/epms/node_modules/mongoose/lib/types/array/methods/index.js +1095 -0
- package/templates/epms/node_modules/mongoose/lib/types/arraySubdocument.js +208 -0
- package/templates/epms/node_modules/mongoose/lib/types/buffer.js +294 -0
- package/templates/epms/node_modules/mongoose/lib/types/decimal128.js +13 -0
- package/templates/epms/node_modules/mongoose/lib/types/documentArray/index.js +113 -0
- package/templates/epms/node_modules/mongoose/lib/types/documentArray/isMongooseDocumentArray.js +5 -0
- package/templates/epms/node_modules/mongoose/lib/types/documentArray/methods/index.js +415 -0
- package/templates/epms/node_modules/mongoose/lib/types/double.js +13 -0
- package/templates/epms/node_modules/mongoose/lib/types/index.js +23 -0
- package/templates/epms/node_modules/mongoose/lib/types/map.js +368 -0
- package/templates/epms/node_modules/mongoose/lib/types/objectid.js +41 -0
- package/templates/epms/node_modules/mongoose/lib/types/subdocument.js +443 -0
- package/templates/epms/node_modules/mongoose/lib/types/uuid.js +13 -0
- package/templates/epms/node_modules/mongoose/lib/utils.js +1064 -0
- package/templates/epms/node_modules/mongoose/lib/validOptions.js +43 -0
- package/templates/epms/node_modules/mongoose/lib/virtualType.js +204 -0
- package/templates/epms/node_modules/mongoose/package.json +139 -0
- package/templates/epms/node_modules/mongoose/tstyche.json +6 -0
- package/templates/epms/node_modules/mongoose/types/aggregate.d.ts +185 -0
- package/templates/epms/node_modules/mongoose/types/augmentations.d.ts +9 -0
- package/templates/epms/node_modules/mongoose/types/callback.d.ts +8 -0
- package/templates/epms/node_modules/mongoose/types/collection.d.ts +49 -0
- package/templates/epms/node_modules/mongoose/types/connection.d.ts +297 -0
- package/templates/epms/node_modules/mongoose/types/cursor.d.ts +67 -0
- package/templates/epms/node_modules/mongoose/types/document.d.ts +328 -0
- package/templates/epms/node_modules/mongoose/types/error.d.ts +143 -0
- package/templates/epms/node_modules/mongoose/types/expressions.d.ts +3053 -0
- package/templates/epms/node_modules/mongoose/types/helpers.d.ts +32 -0
- package/templates/epms/node_modules/mongoose/types/index.d.ts +1161 -0
- package/templates/epms/node_modules/mongoose/types/indexes.d.ts +97 -0
- package/templates/epms/node_modules/mongoose/types/inferhydrateddoctype.d.ts +135 -0
- package/templates/epms/node_modules/mongoose/types/inferrawdoctype.d.ts +182 -0
- package/templates/epms/node_modules/mongoose/types/inferschematype.d.ts +379 -0
- package/templates/epms/node_modules/mongoose/types/middlewares.d.ts +66 -0
- package/templates/epms/node_modules/mongoose/types/models.d.ts +1265 -0
- package/templates/epms/node_modules/mongoose/types/mongooseoptions.d.ts +232 -0
- package/templates/epms/node_modules/mongoose/types/pipelinestage.d.ts +334 -0
- package/templates/epms/node_modules/mongoose/types/populate.d.ts +97 -0
- package/templates/epms/node_modules/mongoose/types/query.d.ts +972 -0
- package/templates/epms/node_modules/mongoose/types/schemaoptions.d.ts +284 -0
- package/templates/epms/node_modules/mongoose/types/schematypes.d.ts +657 -0
- package/templates/epms/node_modules/mongoose/types/session.d.ts +32 -0
- package/templates/epms/node_modules/mongoose/types/types.d.ts +109 -0
- package/templates/epms/node_modules/mongoose/types/utility.d.ts +175 -0
- package/templates/epms/node_modules/mongoose/types/validation.d.ts +39 -0
- package/templates/epms/node_modules/mongoose/types/virtuals.d.ts +14 -0
- package/templates/epms/node_modules/mpath/.travis.yml +9 -0
- package/templates/epms/node_modules/mpath/History.md +88 -0
- package/templates/epms/node_modules/mpath/LICENSE +22 -0
- package/templates/epms/node_modules/mpath/README.md +278 -0
- package/templates/epms/node_modules/mpath/SECURITY.md +5 -0
- package/templates/epms/node_modules/mpath/index.js +3 -0
- package/templates/epms/node_modules/mpath/lib/index.js +336 -0
- package/templates/epms/node_modules/mpath/lib/stringToParts.js +48 -0
- package/templates/epms/node_modules/mpath/package.json +144 -0
- package/templates/epms/node_modules/mpath/test/.eslintrc.yml +4 -0
- package/templates/epms/node_modules/mpath/test/index.js +1879 -0
- package/templates/epms/node_modules/mpath/test/stringToParts.js +30 -0
- package/templates/epms/node_modules/mquery/.github/ISSUE_TEMPLATE.md +11 -0
- package/templates/epms/node_modules/mquery/.github/PULL_REQUEST_TEMPLATE.md +9 -0
- package/templates/epms/node_modules/mquery/History.md +393 -0
- package/templates/epms/node_modules/mquery/LICENSE +22 -0
- package/templates/epms/node_modules/mquery/README.md +1387 -0
- package/templates/epms/node_modules/mquery/SECURITY.md +1 -0
- package/templates/epms/node_modules/mquery/lib/collection/collection.js +47 -0
- package/templates/epms/node_modules/mquery/lib/collection/index.js +13 -0
- package/templates/epms/node_modules/mquery/lib/collection/node.js +128 -0
- package/templates/epms/node_modules/mquery/lib/env.js +22 -0
- package/templates/epms/node_modules/mquery/lib/mquery.js +2748 -0
- package/templates/epms/node_modules/mquery/lib/permissions.js +93 -0
- package/templates/epms/node_modules/mquery/lib/utils.js +297 -0
- package/templates/epms/node_modules/mquery/package.json +35 -0
- package/templates/epms/node_modules/ms/index.js +162 -0
- package/templates/epms/node_modules/ms/license.md +21 -0
- package/templates/epms/node_modules/ms/package.json +38 -0
- package/templates/epms/node_modules/ms/readme.md +59 -0
- package/templates/epms/node_modules/negotiator/HISTORY.md +114 -0
- package/templates/epms/node_modules/negotiator/LICENSE +24 -0
- package/templates/epms/node_modules/negotiator/README.md +212 -0
- package/templates/epms/node_modules/negotiator/index.js +83 -0
- package/templates/epms/node_modules/negotiator/lib/charset.js +169 -0
- package/templates/epms/node_modules/negotiator/lib/encoding.js +205 -0
- package/templates/epms/node_modules/negotiator/lib/language.js +179 -0
- package/templates/epms/node_modules/negotiator/lib/mediaType.js +294 -0
- package/templates/epms/node_modules/negotiator/package.json +43 -0
- package/templates/epms/node_modules/nodemon/.prettierrc.json +3 -0
- package/templates/epms/node_modules/nodemon/LICENSE +21 -0
- package/templates/epms/node_modules/nodemon/README.md +439 -0
- package/templates/epms/node_modules/nodemon/bin/nodemon.js +16 -0
- package/templates/epms/node_modules/nodemon/bin/windows-kill.exe +0 -0
- package/templates/epms/node_modules/nodemon/doc/cli/authors.txt +8 -0
- package/templates/epms/node_modules/nodemon/doc/cli/config.txt +44 -0
- package/templates/epms/node_modules/nodemon/doc/cli/help.txt +29 -0
- package/templates/epms/node_modules/nodemon/doc/cli/logo.txt +20 -0
- package/templates/epms/node_modules/nodemon/doc/cli/options.txt +36 -0
- package/templates/epms/node_modules/nodemon/doc/cli/topics.txt +8 -0
- package/templates/epms/node_modules/nodemon/doc/cli/usage.txt +3 -0
- package/templates/epms/node_modules/nodemon/doc/cli/whoami.txt +9 -0
- package/templates/epms/node_modules/nodemon/index.d.ts +124 -0
- package/templates/epms/node_modules/nodemon/jsconfig.json +7 -0
- package/templates/epms/node_modules/nodemon/lib/cli/index.js +49 -0
- package/templates/epms/node_modules/nodemon/lib/cli/parse.js +230 -0
- package/templates/epms/node_modules/nodemon/lib/config/command.js +43 -0
- package/templates/epms/node_modules/nodemon/lib/config/defaults.js +34 -0
- package/templates/epms/node_modules/nodemon/lib/config/exec.js +240 -0
- package/templates/epms/node_modules/nodemon/lib/config/index.js +93 -0
- package/templates/epms/node_modules/nodemon/lib/config/load.js +225 -0
- package/templates/epms/node_modules/nodemon/lib/help/index.js +27 -0
- package/templates/epms/node_modules/nodemon/lib/index.js +1 -0
- package/templates/epms/node_modules/nodemon/lib/monitor/index.js +4 -0
- package/templates/epms/node_modules/nodemon/lib/monitor/match.js +288 -0
- package/templates/epms/node_modules/nodemon/lib/monitor/run.js +562 -0
- package/templates/epms/node_modules/nodemon/lib/monitor/signals.js +34 -0
- package/templates/epms/node_modules/nodemon/lib/monitor/watch.js +244 -0
- package/templates/epms/node_modules/nodemon/lib/nodemon.js +317 -0
- package/templates/epms/node_modules/nodemon/lib/rules/add.js +89 -0
- package/templates/epms/node_modules/nodemon/lib/rules/index.js +53 -0
- package/templates/epms/node_modules/nodemon/lib/rules/parse.js +43 -0
- package/templates/epms/node_modules/nodemon/lib/spawn.js +74 -0
- package/templates/epms/node_modules/nodemon/lib/utils/bus.js +44 -0
- package/templates/epms/node_modules/nodemon/lib/utils/clone.js +40 -0
- package/templates/epms/node_modules/nodemon/lib/utils/colour.js +26 -0
- package/templates/epms/node_modules/nodemon/lib/utils/index.js +103 -0
- package/templates/epms/node_modules/nodemon/lib/utils/log.js +82 -0
- package/templates/epms/node_modules/nodemon/lib/utils/merge.js +47 -0
- package/templates/epms/node_modules/nodemon/lib/version.js +100 -0
- package/templates/epms/node_modules/nodemon/package.json +78 -0
- package/templates/epms/node_modules/normalize-path/LICENSE +21 -0
- package/templates/epms/node_modules/normalize-path/README.md +127 -0
- package/templates/epms/node_modules/normalize-path/index.js +35 -0
- package/templates/epms/node_modules/normalize-path/package.json +77 -0
- package/templates/epms/node_modules/object-assign/index.js +90 -0
- package/templates/epms/node_modules/object-assign/license +21 -0
- package/templates/epms/node_modules/object-assign/package.json +42 -0
- package/templates/epms/node_modules/object-assign/readme.md +61 -0
- package/templates/epms/node_modules/object-inspect/.eslintrc +53 -0
- package/templates/epms/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/object-inspect/.nycrc +13 -0
- package/templates/epms/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/templates/epms/node_modules/object-inspect/LICENSE +21 -0
- package/templates/epms/node_modules/object-inspect/example/all.js +23 -0
- package/templates/epms/node_modules/object-inspect/example/circular.js +6 -0
- package/templates/epms/node_modules/object-inspect/example/fn.js +5 -0
- package/templates/epms/node_modules/object-inspect/example/inspect.js +10 -0
- package/templates/epms/node_modules/object-inspect/index.js +544 -0
- package/templates/epms/node_modules/object-inspect/package-support.json +20 -0
- package/templates/epms/node_modules/object-inspect/package.json +105 -0
- package/templates/epms/node_modules/object-inspect/readme.markdown +84 -0
- package/templates/epms/node_modules/object-inspect/test/bigint.js +58 -0
- package/templates/epms/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/templates/epms/node_modules/object-inspect/test/circular.js +16 -0
- package/templates/epms/node_modules/object-inspect/test/deep.js +12 -0
- package/templates/epms/node_modules/object-inspect/test/element.js +53 -0
- package/templates/epms/node_modules/object-inspect/test/err.js +48 -0
- package/templates/epms/node_modules/object-inspect/test/fakes.js +29 -0
- package/templates/epms/node_modules/object-inspect/test/fn.js +76 -0
- package/templates/epms/node_modules/object-inspect/test/global.js +17 -0
- package/templates/epms/node_modules/object-inspect/test/has.js +15 -0
- package/templates/epms/node_modules/object-inspect/test/holes.js +15 -0
- package/templates/epms/node_modules/object-inspect/test/indent-option.js +271 -0
- package/templates/epms/node_modules/object-inspect/test/inspect.js +139 -0
- package/templates/epms/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/templates/epms/node_modules/object-inspect/test/number.js +58 -0
- package/templates/epms/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/templates/epms/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/templates/epms/node_modules/object-inspect/test/undef.js +12 -0
- package/templates/epms/node_modules/object-inspect/test/values.js +261 -0
- package/templates/epms/node_modules/object-inspect/test-core-js.js +26 -0
- package/templates/epms/node_modules/object-inspect/util.inspect.js +1 -0
- package/templates/epms/node_modules/on-finished/HISTORY.md +98 -0
- package/templates/epms/node_modules/on-finished/LICENSE +23 -0
- package/templates/epms/node_modules/on-finished/README.md +162 -0
- package/templates/epms/node_modules/on-finished/index.js +234 -0
- package/templates/epms/node_modules/on-finished/package.json +39 -0
- package/templates/epms/node_modules/once/LICENSE +15 -0
- package/templates/epms/node_modules/once/README.md +79 -0
- package/templates/epms/node_modules/once/once.js +42 -0
- package/templates/epms/node_modules/once/package.json +33 -0
- package/templates/epms/node_modules/parseurl/HISTORY.md +58 -0
- package/templates/epms/node_modules/parseurl/LICENSE +24 -0
- package/templates/epms/node_modules/parseurl/README.md +133 -0
- package/templates/epms/node_modules/parseurl/index.js +158 -0
- package/templates/epms/node_modules/parseurl/package.json +40 -0
- package/templates/epms/node_modules/path-to-regexp/LICENSE +21 -0
- package/templates/epms/node_modules/path-to-regexp/Readme.md +224 -0
- package/templates/epms/node_modules/path-to-regexp/dist/index.d.ts +147 -0
- package/templates/epms/node_modules/path-to-regexp/dist/index.js +431 -0
- package/templates/epms/node_modules/path-to-regexp/dist/index.js.map +1 -0
- package/templates/epms/node_modules/path-to-regexp/package.json +64 -0
- package/templates/epms/node_modules/picomatch/LICENSE +21 -0
- package/templates/epms/node_modules/picomatch/README.md +716 -0
- package/templates/epms/node_modules/picomatch/index.js +3 -0
- package/templates/epms/node_modules/picomatch/lib/constants.js +184 -0
- package/templates/epms/node_modules/picomatch/lib/parse.js +1392 -0
- package/templates/epms/node_modules/picomatch/lib/picomatch.js +342 -0
- package/templates/epms/node_modules/picomatch/lib/scan.js +391 -0
- package/templates/epms/node_modules/picomatch/lib/utils.js +64 -0
- package/templates/epms/node_modules/picomatch/package.json +81 -0
- package/templates/epms/node_modules/proxy-addr/HISTORY.md +161 -0
- package/templates/epms/node_modules/proxy-addr/LICENSE +22 -0
- package/templates/epms/node_modules/proxy-addr/README.md +139 -0
- package/templates/epms/node_modules/proxy-addr/index.js +327 -0
- package/templates/epms/node_modules/proxy-addr/package.json +47 -0
- package/templates/epms/node_modules/pstree.remy/.travis.yml +8 -0
- package/templates/epms/node_modules/pstree.remy/LICENSE +7 -0
- package/templates/epms/node_modules/pstree.remy/README.md +26 -0
- package/templates/epms/node_modules/pstree.remy/lib/index.js +37 -0
- package/templates/epms/node_modules/pstree.remy/lib/tree.js +37 -0
- package/templates/epms/node_modules/pstree.remy/lib/utils.js +53 -0
- package/templates/epms/node_modules/pstree.remy/package.json +33 -0
- package/templates/epms/node_modules/pstree.remy/tests/fixtures/index.js +13 -0
- package/templates/epms/node_modules/pstree.remy/tests/fixtures/out1 +10 -0
- package/templates/epms/node_modules/pstree.remy/tests/fixtures/out2 +29 -0
- package/templates/epms/node_modules/pstree.remy/tests/index.test.js +51 -0
- package/templates/epms/node_modules/punycode/LICENSE-MIT.txt +20 -0
- package/templates/epms/node_modules/punycode/README.md +148 -0
- package/templates/epms/node_modules/punycode/package.json +58 -0
- package/templates/epms/node_modules/punycode/punycode.es6.js +444 -0
- package/templates/epms/node_modules/punycode/punycode.js +443 -0
- package/templates/epms/node_modules/qs/.editorconfig +46 -0
- package/templates/epms/node_modules/qs/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/qs/.github/SECURITY.md +11 -0
- package/templates/epms/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/templates/epms/node_modules/qs/.nycrc +13 -0
- package/templates/epms/node_modules/qs/CHANGELOG.md +812 -0
- package/templates/epms/node_modules/qs/LICENSE.md +29 -0
- package/templates/epms/node_modules/qs/README.md +758 -0
- package/templates/epms/node_modules/qs/dist/qs.js +141 -0
- package/templates/epms/node_modules/qs/eslint.config.mjs +56 -0
- package/templates/epms/node_modules/qs/lib/formats.js +23 -0
- package/templates/epms/node_modules/qs/lib/index.js +11 -0
- package/templates/epms/node_modules/qs/lib/parse.js +373 -0
- package/templates/epms/node_modules/qs/lib/stringify.js +356 -0
- package/templates/epms/node_modules/qs/lib/utils.js +342 -0
- package/templates/epms/node_modules/qs/package.json +94 -0
- package/templates/epms/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/templates/epms/node_modules/qs/test/parse.js +1654 -0
- package/templates/epms/node_modules/qs/test/stringify.js +1319 -0
- package/templates/epms/node_modules/qs/test/utils.js +432 -0
- package/templates/epms/node_modules/range-parser/HISTORY.md +56 -0
- package/templates/epms/node_modules/range-parser/LICENSE +23 -0
- package/templates/epms/node_modules/range-parser/README.md +84 -0
- package/templates/epms/node_modules/range-parser/index.js +162 -0
- package/templates/epms/node_modules/range-parser/package.json +44 -0
- package/templates/epms/node_modules/raw-body/LICENSE +22 -0
- package/templates/epms/node_modules/raw-body/README.md +223 -0
- package/templates/epms/node_modules/raw-body/index.d.ts +85 -0
- package/templates/epms/node_modules/raw-body/index.js +336 -0
- package/templates/epms/node_modules/raw-body/package.json +46 -0
- package/templates/epms/node_modules/readdirp/LICENSE +21 -0
- package/templates/epms/node_modules/readdirp/README.md +122 -0
- package/templates/epms/node_modules/readdirp/index.d.ts +43 -0
- package/templates/epms/node_modules/readdirp/index.js +287 -0
- package/templates/epms/node_modules/readdirp/package.json +122 -0
- package/templates/epms/node_modules/router/HISTORY.md +228 -0
- package/templates/epms/node_modules/router/LICENSE +23 -0
- package/templates/epms/node_modules/router/README.md +416 -0
- package/templates/epms/node_modules/router/index.js +748 -0
- package/templates/epms/node_modules/router/lib/layer.js +247 -0
- package/templates/epms/node_modules/router/lib/route.js +242 -0
- package/templates/epms/node_modules/router/package.json +44 -0
- package/templates/epms/node_modules/safer-buffer/LICENSE +21 -0
- package/templates/epms/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/templates/epms/node_modules/safer-buffer/Readme.md +156 -0
- package/templates/epms/node_modules/safer-buffer/dangerous.js +58 -0
- package/templates/epms/node_modules/safer-buffer/package.json +34 -0
- package/templates/epms/node_modules/safer-buffer/safer.js +77 -0
- package/templates/epms/node_modules/safer-buffer/tests.js +406 -0
- package/templates/epms/node_modules/semver/LICENSE +15 -0
- package/templates/epms/node_modules/semver/README.md +665 -0
- package/templates/epms/node_modules/semver/bin/semver.js +191 -0
- package/templates/epms/node_modules/semver/classes/comparator.js +143 -0
- package/templates/epms/node_modules/semver/classes/index.js +7 -0
- package/templates/epms/node_modules/semver/classes/range.js +557 -0
- package/templates/epms/node_modules/semver/classes/semver.js +333 -0
- package/templates/epms/node_modules/semver/functions/clean.js +8 -0
- package/templates/epms/node_modules/semver/functions/cmp.js +54 -0
- package/templates/epms/node_modules/semver/functions/coerce.js +62 -0
- package/templates/epms/node_modules/semver/functions/compare-build.js +9 -0
- package/templates/epms/node_modules/semver/functions/compare-loose.js +5 -0
- package/templates/epms/node_modules/semver/functions/compare.js +7 -0
- package/templates/epms/node_modules/semver/functions/diff.js +60 -0
- package/templates/epms/node_modules/semver/functions/eq.js +5 -0
- package/templates/epms/node_modules/semver/functions/gt.js +5 -0
- package/templates/epms/node_modules/semver/functions/gte.js +5 -0
- package/templates/epms/node_modules/semver/functions/inc.js +21 -0
- package/templates/epms/node_modules/semver/functions/lt.js +5 -0
- package/templates/epms/node_modules/semver/functions/lte.js +5 -0
- package/templates/epms/node_modules/semver/functions/major.js +5 -0
- package/templates/epms/node_modules/semver/functions/minor.js +5 -0
- package/templates/epms/node_modules/semver/functions/neq.js +5 -0
- package/templates/epms/node_modules/semver/functions/parse.js +18 -0
- package/templates/epms/node_modules/semver/functions/patch.js +5 -0
- package/templates/epms/node_modules/semver/functions/prerelease.js +8 -0
- package/templates/epms/node_modules/semver/functions/rcompare.js +5 -0
- package/templates/epms/node_modules/semver/functions/rsort.js +5 -0
- package/templates/epms/node_modules/semver/functions/satisfies.js +12 -0
- package/templates/epms/node_modules/semver/functions/sort.js +5 -0
- package/templates/epms/node_modules/semver/functions/valid.js +8 -0
- package/templates/epms/node_modules/semver/index.js +91 -0
- package/templates/epms/node_modules/semver/internal/constants.js +37 -0
- package/templates/epms/node_modules/semver/internal/debug.js +11 -0
- package/templates/epms/node_modules/semver/internal/identifiers.js +29 -0
- package/templates/epms/node_modules/semver/internal/lrucache.js +42 -0
- package/templates/epms/node_modules/semver/internal/parse-options.js +17 -0
- package/templates/epms/node_modules/semver/internal/re.js +223 -0
- package/templates/epms/node_modules/semver/package.json +78 -0
- package/templates/epms/node_modules/semver/preload.js +4 -0
- package/templates/epms/node_modules/semver/range.bnf +16 -0
- package/templates/epms/node_modules/semver/ranges/gtr.js +6 -0
- package/templates/epms/node_modules/semver/ranges/intersects.js +9 -0
- package/templates/epms/node_modules/semver/ranges/ltr.js +6 -0
- package/templates/epms/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/templates/epms/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/templates/epms/node_modules/semver/ranges/min-version.js +63 -0
- package/templates/epms/node_modules/semver/ranges/outside.js +82 -0
- package/templates/epms/node_modules/semver/ranges/simplify.js +49 -0
- package/templates/epms/node_modules/semver/ranges/subset.js +249 -0
- package/templates/epms/node_modules/semver/ranges/to-comparators.js +10 -0
- package/templates/epms/node_modules/semver/ranges/valid.js +13 -0
- package/templates/epms/node_modules/send/LICENSE +23 -0
- package/templates/epms/node_modules/send/README.md +317 -0
- package/templates/epms/node_modules/send/index.js +997 -0
- package/templates/epms/node_modules/send/package.json +63 -0
- package/templates/epms/node_modules/serve-static/LICENSE +25 -0
- package/templates/epms/node_modules/serve-static/README.md +253 -0
- package/templates/epms/node_modules/serve-static/index.js +208 -0
- package/templates/epms/node_modules/serve-static/package.json +44 -0
- package/templates/epms/node_modules/setprototypeof/LICENSE +13 -0
- package/templates/epms/node_modules/setprototypeof/README.md +31 -0
- package/templates/epms/node_modules/setprototypeof/index.d.ts +2 -0
- package/templates/epms/node_modules/setprototypeof/index.js +17 -0
- package/templates/epms/node_modules/setprototypeof/package.json +38 -0
- package/templates/epms/node_modules/setprototypeof/test/index.js +24 -0
- package/templates/epms/node_modules/side-channel/.editorconfig +9 -0
- package/templates/epms/node_modules/side-channel/.eslintrc +12 -0
- package/templates/epms/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/side-channel/.nycrc +13 -0
- package/templates/epms/node_modules/side-channel/CHANGELOG.md +110 -0
- package/templates/epms/node_modules/side-channel/LICENSE +21 -0
- package/templates/epms/node_modules/side-channel/README.md +61 -0
- package/templates/epms/node_modules/side-channel/index.d.ts +14 -0
- package/templates/epms/node_modules/side-channel/index.js +43 -0
- package/templates/epms/node_modules/side-channel/package.json +85 -0
- package/templates/epms/node_modules/side-channel/test/index.js +104 -0
- package/templates/epms/node_modules/side-channel/tsconfig.json +9 -0
- package/templates/epms/node_modules/side-channel-list/.editorconfig +9 -0
- package/templates/epms/node_modules/side-channel-list/.eslintrc +11 -0
- package/templates/epms/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/side-channel-list/.nycrc +13 -0
- package/templates/epms/node_modules/side-channel-list/CHANGELOG.md +36 -0
- package/templates/epms/node_modules/side-channel-list/LICENSE +21 -0
- package/templates/epms/node_modules/side-channel-list/README.md +62 -0
- package/templates/epms/node_modules/side-channel-list/index.d.ts +13 -0
- package/templates/epms/node_modules/side-channel-list/index.js +111 -0
- package/templates/epms/node_modules/side-channel-list/list.d.ts +14 -0
- package/templates/epms/node_modules/side-channel-list/package.json +77 -0
- package/templates/epms/node_modules/side-channel-list/test/index.js +154 -0
- package/templates/epms/node_modules/side-channel-list/tsconfig.json +9 -0
- package/templates/epms/node_modules/side-channel-map/.editorconfig +9 -0
- package/templates/epms/node_modules/side-channel-map/.eslintrc +11 -0
- package/templates/epms/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/side-channel-map/.nycrc +13 -0
- package/templates/epms/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/templates/epms/node_modules/side-channel-map/LICENSE +21 -0
- package/templates/epms/node_modules/side-channel-map/README.md +62 -0
- package/templates/epms/node_modules/side-channel-map/index.d.ts +15 -0
- package/templates/epms/node_modules/side-channel-map/index.js +68 -0
- package/templates/epms/node_modules/side-channel-map/package.json +80 -0
- package/templates/epms/node_modules/side-channel-map/test/index.js +114 -0
- package/templates/epms/node_modules/side-channel-map/tsconfig.json +9 -0
- package/templates/epms/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/templates/epms/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/templates/epms/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/templates/epms/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/templates/epms/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/templates/epms/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/templates/epms/node_modules/side-channel-weakmap/README.md +62 -0
- package/templates/epms/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/templates/epms/node_modules/side-channel-weakmap/index.js +84 -0
- package/templates/epms/node_modules/side-channel-weakmap/package.json +87 -0
- package/templates/epms/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/templates/epms/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/templates/epms/node_modules/sift/MIT-LICENSE.txt +20 -0
- package/templates/epms/node_modules/sift/README.md +465 -0
- package/templates/epms/node_modules/sift/es/index.js +632 -0
- package/templates/epms/node_modules/sift/es/index.js.map +1 -0
- package/templates/epms/node_modules/sift/es5m/index.js +743 -0
- package/templates/epms/node_modules/sift/es5m/index.js.map +1 -0
- package/templates/epms/node_modules/sift/index.d.ts +4 -0
- package/templates/epms/node_modules/sift/index.js +4 -0
- package/templates/epms/node_modules/sift/lib/core.d.ts +116 -0
- package/templates/epms/node_modules/sift/lib/index.d.ts +6 -0
- package/templates/epms/node_modules/sift/lib/index.js +781 -0
- package/templates/epms/node_modules/sift/lib/index.js.map +1 -0
- package/templates/epms/node_modules/sift/lib/operations.d.ts +88 -0
- package/templates/epms/node_modules/sift/lib/utils.d.ts +11 -0
- package/templates/epms/node_modules/sift/package.json +61 -0
- package/templates/epms/node_modules/sift/sift.csp.min.js +778 -0
- package/templates/epms/node_modules/sift/sift.csp.min.js.map +1 -0
- package/templates/epms/node_modules/sift/sift.min.js +2 -0
- package/templates/epms/node_modules/sift/sift.min.js.map +1 -0
- package/templates/epms/node_modules/sift/src/core.ts +494 -0
- package/templates/epms/node_modules/sift/src/index.ts +54 -0
- package/templates/epms/node_modules/sift/src/operations.ts +422 -0
- package/templates/epms/node_modules/sift/src/utils.ts +74 -0
- package/templates/epms/node_modules/simple-update-notifier/LICENSE +21 -0
- package/templates/epms/node_modules/simple-update-notifier/README.md +82 -0
- package/templates/epms/node_modules/simple-update-notifier/build/index.d.ts +13 -0
- package/templates/epms/node_modules/simple-update-notifier/build/index.js +210 -0
- package/templates/epms/node_modules/simple-update-notifier/package.json +100 -0
- package/templates/epms/node_modules/simple-update-notifier/src/borderedText.ts +12 -0
- package/templates/epms/node_modules/simple-update-notifier/src/cache.spec.ts +17 -0
- package/templates/epms/node_modules/simple-update-notifier/src/cache.ts +44 -0
- package/templates/epms/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +35 -0
- package/templates/epms/node_modules/simple-update-notifier/src/getDistVersion.ts +29 -0
- package/templates/epms/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +82 -0
- package/templates/epms/node_modules/simple-update-notifier/src/hasNewVersion.ts +40 -0
- package/templates/epms/node_modules/simple-update-notifier/src/index.spec.ts +27 -0
- package/templates/epms/node_modules/simple-update-notifier/src/index.ts +34 -0
- package/templates/epms/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +12 -0
- package/templates/epms/node_modules/simple-update-notifier/src/types.ts +8 -0
- package/templates/epms/node_modules/sparse-bitfield/.travis.yml +6 -0
- package/templates/epms/node_modules/sparse-bitfield/LICENSE +21 -0
- package/templates/epms/node_modules/sparse-bitfield/README.md +62 -0
- package/templates/epms/node_modules/sparse-bitfield/index.js +95 -0
- package/templates/epms/node_modules/sparse-bitfield/package.json +27 -0
- package/templates/epms/node_modules/sparse-bitfield/test.js +79 -0
- package/templates/epms/node_modules/statuses/HISTORY.md +87 -0
- package/templates/epms/node_modules/statuses/LICENSE +23 -0
- package/templates/epms/node_modules/statuses/README.md +139 -0
- package/templates/epms/node_modules/statuses/codes.json +65 -0
- package/templates/epms/node_modules/statuses/index.js +146 -0
- package/templates/epms/node_modules/statuses/package.json +49 -0
- package/templates/epms/node_modules/supports-color/browser.js +5 -0
- package/templates/epms/node_modules/supports-color/index.js +131 -0
- package/templates/epms/node_modules/supports-color/license +9 -0
- package/templates/epms/node_modules/supports-color/package.json +53 -0
- package/templates/epms/node_modules/supports-color/readme.md +66 -0
- package/templates/epms/node_modules/to-regex-range/LICENSE +21 -0
- package/templates/epms/node_modules/to-regex-range/README.md +305 -0
- package/templates/epms/node_modules/to-regex-range/index.js +288 -0
- package/templates/epms/node_modules/to-regex-range/package.json +88 -0
- package/templates/epms/node_modules/toidentifier/HISTORY.md +9 -0
- package/templates/epms/node_modules/toidentifier/LICENSE +21 -0
- package/templates/epms/node_modules/toidentifier/README.md +61 -0
- package/templates/epms/node_modules/toidentifier/index.js +32 -0
- package/templates/epms/node_modules/toidentifier/package.json +38 -0
- package/templates/epms/node_modules/touch/LICENSE +15 -0
- package/templates/epms/node_modules/touch/README.md +52 -0
- package/templates/epms/node_modules/touch/bin/nodetouch.js +112 -0
- package/templates/epms/node_modules/touch/index.js +224 -0
- package/templates/epms/node_modules/touch/package.json +25 -0
- package/templates/epms/node_modules/tr46/LICENSE.md +21 -0
- package/templates/epms/node_modules/tr46/README.md +76 -0
- package/templates/epms/node_modules/tr46/index.js +344 -0
- package/templates/epms/node_modules/tr46/lib/mappingTable.json +1 -0
- package/templates/epms/node_modules/tr46/lib/regexes.js +29 -0
- package/templates/epms/node_modules/tr46/lib/statusMapping.js +9 -0
- package/templates/epms/node_modules/tr46/package.json +44 -0
- package/templates/epms/node_modules/type-is/HISTORY.md +292 -0
- package/templates/epms/node_modules/type-is/LICENSE +23 -0
- package/templates/epms/node_modules/type-is/README.md +198 -0
- package/templates/epms/node_modules/type-is/index.js +250 -0
- package/templates/epms/node_modules/type-is/package.json +47 -0
- package/templates/epms/node_modules/undefsafe/.github/workflows/release.yml +25 -0
- package/templates/epms/node_modules/undefsafe/.jscsrc +13 -0
- package/templates/epms/node_modules/undefsafe/.jshintrc +16 -0
- package/templates/epms/node_modules/undefsafe/.travis.yml +18 -0
- package/templates/epms/node_modules/undefsafe/LICENSE +22 -0
- package/templates/epms/node_modules/undefsafe/README.md +63 -0
- package/templates/epms/node_modules/undefsafe/example.js +14 -0
- package/templates/epms/node_modules/undefsafe/lib/undefsafe.js +125 -0
- package/templates/epms/node_modules/undefsafe/package.json +34 -0
- package/templates/epms/node_modules/unpipe/HISTORY.md +4 -0
- package/templates/epms/node_modules/unpipe/LICENSE +22 -0
- package/templates/epms/node_modules/unpipe/README.md +43 -0
- package/templates/epms/node_modules/unpipe/index.js +69 -0
- package/templates/epms/node_modules/unpipe/package.json +27 -0
- package/templates/epms/node_modules/vary/HISTORY.md +39 -0
- package/templates/epms/node_modules/vary/LICENSE +22 -0
- package/templates/epms/node_modules/vary/README.md +101 -0
- package/templates/epms/node_modules/vary/index.js +149 -0
- package/templates/epms/node_modules/vary/package.json +43 -0
- package/templates/epms/node_modules/webidl-conversions/LICENSE.md +12 -0
- package/templates/epms/node_modules/webidl-conversions/README.md +99 -0
- package/templates/epms/node_modules/webidl-conversions/lib/index.js +450 -0
- package/templates/epms/node_modules/webidl-conversions/package.json +35 -0
- package/templates/epms/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/templates/epms/node_modules/whatwg-url/README.md +106 -0
- package/templates/epms/node_modules/whatwg-url/index.js +27 -0
- package/templates/epms/node_modules/whatwg-url/lib/Function.js +42 -0
- package/templates/epms/node_modules/whatwg-url/lib/URL-impl.js +233 -0
- package/templates/epms/node_modules/whatwg-url/lib/URL.js +499 -0
- package/templates/epms/node_modules/whatwg-url/lib/URLSearchParams-impl.js +135 -0
- package/templates/epms/node_modules/whatwg-url/lib/URLSearchParams.js +505 -0
- package/templates/epms/node_modules/whatwg-url/lib/VoidFunction.js +26 -0
- package/templates/epms/node_modules/whatwg-url/lib/encoding.js +16 -0
- package/templates/epms/node_modules/whatwg-url/lib/infra.js +26 -0
- package/templates/epms/node_modules/whatwg-url/lib/percent-encoding.js +142 -0
- package/templates/epms/node_modules/whatwg-url/lib/url-state-machine.js +1274 -0
- package/templates/epms/node_modules/whatwg-url/lib/urlencoded.js +89 -0
- package/templates/epms/node_modules/whatwg-url/lib/utils.js +190 -0
- package/templates/epms/node_modules/whatwg-url/package.json +53 -0
- package/templates/epms/node_modules/whatwg-url/webidl2js-wrapper.js +7 -0
- package/templates/epms/node_modules/wrappy/LICENSE +15 -0
- package/templates/epms/node_modules/wrappy/README.md +36 -0
- package/templates/epms/node_modules/wrappy/package.json +29 -0
- package/templates/epms/node_modules/wrappy/wrappy.js +33 -0
- package/templates/epms/package-lock.json +1382 -0
- package/templates/epms/package.json +21 -0
- package/templates/epms/routes/department.js +9 -0
- package/templates/epms/routes/employee.js +24 -0
- package/templates/epms/routes/salary.js +38 -0
- package/templates/epms/server.js +29 -0
- package/templates/epms/test.js +3 -0
- package/templates/hsms/README.md +145 -0
- package/templates/hsms/TODO.md +8 -0
- package/templates/hsms/backend/.env.example +9 -0
- package/templates/hsms/backend/config/db.js +14 -0
- package/templates/hsms/backend/database/schema.sql +55 -0
- package/templates/hsms/backend/database/seed.js +53 -0
- package/templates/hsms/backend/middleware/auth.js +30 -0
- package/templates/hsms/backend/package-lock.json +1129 -0
- package/templates/hsms/backend/package.json +19 -0
- package/templates/hsms/backend/routes/appointments.js +157 -0
- package/templates/hsms/backend/routes/auth.js +119 -0
- package/templates/hsms/backend/routes/medicalReports.js +126 -0
- package/templates/hsms/backend/routes/patients.js +103 -0
- package/templates/hsms/backend/routes/reports.js +60 -0
- package/templates/hsms/backend/server.js +43 -0
- package/templates/hsms/frontend/package-lock.json +17224 -0
- package/templates/hsms/frontend/package.json +23 -0
- package/templates/hsms/frontend/public/index.html +17 -0
- package/templates/hsms/frontend/src/App.js +91 -0
- package/templates/hsms/frontend/src/components/Layout.js +58 -0
- package/templates/hsms/frontend/src/components/PrivateRoute.js +25 -0
- package/templates/hsms/frontend/src/components/trail.txt +39 -0
- package/templates/hsms/frontend/src/context/AuthContext.js +98 -0
- package/templates/hsms/frontend/src/index.css +581 -0
- package/templates/hsms/frontend/src/index.js +17 -0
- package/templates/hsms/frontend/src/pages/Appointments.js +250 -0
- package/templates/hsms/frontend/src/pages/Dashboard.js +116 -0
- package/templates/hsms/frontend/src/pages/Login.js +73 -0
- package/templates/hsms/frontend/src/pages/MedicalReports.js +217 -0
- package/templates/hsms/frontend/src/pages/Patients.js +195 -0
- package/templates/hsms/frontend/src/pages/Register.js +98 -0
- package/templates/hsms/frontend/src/pages/Reports.js +170 -0
- package/templates/hsms/frontend/src/services/api.js +15 -0
- package/templates/hsms/package.json +13 -0
- package/templates/inve/README.md +132 -0
- package/templates/inve/backend/.env.example +7 -0
- package/templates/inve/backend/package-lock.json +2155 -0
- package/templates/inve/backend/package.json +24 -0
- package/templates/inve/backend/src/config/db.js +14 -0
- package/templates/inve/backend/src/config/initDb.js +81 -0
- package/templates/inve/backend/src/controllers/authController.js +141 -0
- package/templates/inve/backend/src/controllers/categoryController.js +81 -0
- package/templates/inve/backend/src/controllers/productController.js +207 -0
- package/templates/inve/backend/src/controllers/reportController.js +287 -0
- package/templates/inve/backend/src/controllers/stockController.js +47 -0
- package/templates/inve/backend/src/middleware/auth.js +29 -0
- package/templates/inve/backend/src/routes/authRoutes.js +12 -0
- package/templates/inve/backend/src/routes/categoryRoutes.js +14 -0
- package/templates/inve/backend/src/routes/productRoutes.js +23 -0
- package/templates/inve/backend/src/routes/reportRoutes.js +23 -0
- package/templates/inve/backend/src/routes/stockRoutes.js +10 -0
- package/templates/inve/backend/src/server.js +38 -0
- package/templates/inve/backend/src/utils/passwordValidator.js +35 -0
- package/templates/inve/frontend/index.html +13 -0
- package/templates/inve/frontend/package-lock.json +2785 -0
- package/templates/inve/frontend/package.json +27 -0
- package/templates/inve/frontend/postcss.config.js +6 -0
- package/templates/inve/frontend/src/App.jsx +44 -0
- package/templates/inve/frontend/src/components/Alert.jsx +23 -0
- package/templates/inve/frontend/src/components/Layout.jsx +114 -0
- package/templates/inve/frontend/src/components/Modal.jsx +28 -0
- package/templates/inve/frontend/src/components/ProtectedRoute.jsx +22 -0
- package/templates/inve/frontend/src/context/AuthContext.jsx +63 -0
- package/templates/inve/frontend/src/index.css +33 -0
- package/templates/inve/frontend/src/main.jsx +16 -0
- package/templates/inve/frontend/src/pages/Categories.jsx +137 -0
- package/templates/inve/frontend/src/pages/Dashboard.jsx +142 -0
- package/templates/inve/frontend/src/pages/Login.jsx +94 -0
- package/templates/inve/frontend/src/pages/Products.jsx +341 -0
- package/templates/inve/frontend/src/pages/Register.jsx +174 -0
- package/templates/inve/frontend/src/pages/Reports.jsx +285 -0
- package/templates/inve/frontend/src/pages/StockMovements.jsx +131 -0
- package/templates/inve/frontend/src/services/api.js +32 -0
- package/templates/inve/frontend/src/utils/helpers.js +51 -0
- package/templates/inve/frontend/tailwind.config.js +23 -0
- package/templates/inve/frontend/vite.config.js +15 -0
- package/templates/sfms/README.md +111 -0
- package/templates/sfms/client/index.html +19 -0
- package/templates/sfms/client/package-lock.json +3140 -0
- package/templates/sfms/client/package.json +30 -0
- package/templates/sfms/client/postcss.config.js +6 -0
- package/templates/sfms/client/public/favicon.svg +5 -0
- package/templates/sfms/client/src/App.jsx +52 -0
- package/templates/sfms/client/src/api/axios.js +30 -0
- package/templates/sfms/client/src/components/AuthLayout.jsx +50 -0
- package/templates/sfms/client/src/components/Layout.jsx +124 -0
- package/templates/sfms/client/src/components/Modal.jsx +24 -0
- package/templates/sfms/client/src/components/ProtectedRoute.jsx +15 -0
- package/templates/sfms/client/src/components/StatCard.jsx +15 -0
- package/templates/sfms/client/src/context/AuthContext.jsx +62 -0
- package/templates/sfms/client/src/index.css +38 -0
- package/templates/sfms/client/src/main.jsx +24 -0
- package/templates/sfms/client/src/pages/Dashboard.jsx +262 -0
- package/templates/sfms/client/src/pages/Departments.jsx +140 -0
- package/templates/sfms/client/src/pages/Employees.jsx +260 -0
- package/templates/sfms/client/src/pages/Login.jsx +81 -0
- package/templates/sfms/client/src/pages/Payroll.jsx +186 -0
- package/templates/sfms/client/src/pages/Register.jsx +118 -0
- package/templates/sfms/client/src/pages/StudentPayments.jsx +313 -0
- package/templates/sfms/client/src/pages/Students.jsx +255 -0
- package/templates/sfms/client/src/utils/format.js +45 -0
- package/templates/sfms/client/tailwind.config.js +51 -0
- package/templates/sfms/client/vite.config.js +15 -0
- package/templates/sfms/package-lock.json +304 -0
- package/templates/sfms/package.json +15 -0
- package/templates/sfms/server/.env.example +5 -0
- package/templates/sfms/server/package-lock.json +1153 -0
- package/templates/sfms/server/package.json +22 -0
- package/templates/sfms/server/src/bootstrap.js +16 -0
- package/templates/sfms/server/src/config/db.js +7 -0
- package/templates/sfms/server/src/index.js +46 -0
- package/templates/sfms/server/src/middleware/auth.js +25 -0
- package/templates/sfms/server/src/middleware/errorHandler.js +9 -0
- package/templates/sfms/server/src/models/Department.js +14 -0
- package/templates/sfms/server/src/models/Employee.js +59 -0
- package/templates/sfms/server/src/models/Payroll.js +38 -0
- package/templates/sfms/server/src/models/Student.js +28 -0
- package/templates/sfms/server/src/models/StudentPayment.js +40 -0
- package/templates/sfms/server/src/models/User.js +25 -0
- package/templates/sfms/server/src/routes/authRoutes.js +65 -0
- package/templates/sfms/server/src/routes/dashboardRoutes.js +98 -0
- package/templates/sfms/server/src/routes/departmentRoutes.js +59 -0
- package/templates/sfms/server/src/routes/employeeRoutes.js +75 -0
- package/templates/sfms/server/src/routes/payrollRoutes.js +136 -0
- package/templates/sfms/server/src/routes/studentPaymentRoutes.js +124 -0
- package/templates/sfms/server/src/routes/studentRoutes.js +93 -0
- package/templates/sfms/server/src/seed.js +204 -0
- package/templates/sfms/server/src/utils/payrollCalc.js +33 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/html2canvas-BioCIJao.js","assets/chunk-DECur_0Z.js","assets/index.es-CT2S0Jlh.js","assets/typeof-DmQ5kzpc.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e,r as t,t as n}from"./chunk-DECur_0Z.js";import{t as r}from"./typeof-DmQ5kzpc.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var i=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.5`})),a=n(((e,t)=>{t.exports=i()})),o=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),s=n(((e,t)=>{t.exports=o()})),c=n((e=>{var t=a();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=i.p;try{if(c.T=null,i.p=2,e)return e()}finally{c.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.5`})),l=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=c()})),u=n((e=>{var t=s(),n=a(),r=l();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(c(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return f(a),e;if(o===r)return f(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},R=[],z=-1;function B(e){return{current:e}}function te(e){0>z||(e.current=R[z],R[z]=null,z--)}function V(e,t){z++,R[z]=e.current,e.current=t}var ne=B(null),re=B(null),ie=B(null),ae=B(null);function oe(e,t){switch(V(ie,t),V(re,e),V(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Kd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}te(ne),V(ne,e)}function se(){te(ne),te(re),te(ie)}function ce(e){e.memoizedState!==null&&V(ae,e);var t=ne.current,n=Kd(t,e.type);t!==n&&(V(re,e),V(ne,n))}function le(e){re.current===e&&(te(ne),te(re)),ae.current===e&&(te(ae),Q._currentValue=ee)}var H,ue;function de(e){if(H===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);H=t&&t[1]||``,ue=-1<e.stack.indexOf(`
|
|
3
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
+
`+H+e+ue}var fe=!1;function pe(e,t){if(!e||fe)return``;fe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
+
`),l=s.split(`
|
|
6
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{fe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?de(n):``}function me(e,t){switch(e.tag){case 26:case 27:case 5:return de(e.type);case 16:return de(`Lazy`);case 13:return e.child!==t&&t!==null?de(`Suspense Fallback`):de(`Suspense`);case 19:return de(`SuspenseList`);case 0:case 15:return pe(e.type,!1);case 11:return pe(e.type.render,!1);case 1:return pe(e.type,!0);case 31:return de(`Activity`);default:return``}}function he(e){try{var t=``,n=null;do t+=me(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
+
Error generating stack: `+e.message+`
|
|
9
|
+
`+e.stack}}var ge=Object.prototype.hasOwnProperty,_e=t.unstable_scheduleCallback,ve=t.unstable_cancelCallback,ye=t.unstable_shouldYield,be=t.unstable_requestPaint,xe=t.unstable_now,Se=t.unstable_getCurrentPriorityLevel,Ce=t.unstable_ImmediatePriority,we=t.unstable_UserBlockingPriority,Te=t.unstable_NormalPriority,Ee=t.unstable_LowPriority,De=t.unstable_IdlePriority,Oe=t.log,ke=t.unstable_setDisableYieldValue,Ae=null,U=null;function je(e){if(typeof Oe==`function`&&ke(e),U&&typeof U.setStrictMode==`function`)try{U.setStrictMode(Ae,e)}catch{}}var Me=Math.clz32?Math.clz32:Fe,Ne=Math.log,Pe=Math.LN2;function Fe(e){return e>>>=0,e===0?32:31-(Ne(e)/Pe|0)|0}var W=256,Ie=262144,Le=4194304;function Re(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ze(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Re(n))):i=Re(o):i=Re(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Re(n))):i=Re(o)):i=Re(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Be(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function G(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ve(){var e=Le;return Le<<=1,!(Le&62914560)&&(Le=4194304),e}function He(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ue(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function We(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Me(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ge(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ge(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Me(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ke(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Me(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function qe(e,t){var n=t&-t;return n=n&42?1:Je(n),(n&(e.suspendedLanes|t))===0?n:0}function Je(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ye(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Xe(){var e=L.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function Ze(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Qe=Math.random().toString(36).slice(2),$e=`__reactFiber$`+Qe,et=`__reactProps$`+Qe,tt=`__reactContainer$`+Qe,nt=`__reactEvents$`+Qe,rt=`__reactListeners$`+Qe,it=`__reactHandles$`+Qe,at=`__reactResources$`+Qe,ot=`__reactMarker$`+Qe;function st(e){delete e[$e],delete e[et],delete e[nt],delete e[rt],delete e[it]}function ct(e){var t=e[$e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[$e]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hf(e);e!==null;){if(n=e[$e])return n;e=hf(e)}return t}e=n,n=e.parentNode}return null}function lt(e){if(e=e[$e]||e[tt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ut(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function dt(e){var t=e[at];return t||=e[at]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ft(e){e[ot]=!0}var pt=new Set,mt={};function ht(e,t){gt(e,t),gt(e+`Capture`,t)}function gt(e,t){for(mt[e]=t,e=0;e<t.length;e++)pt.add(t[e])}var _t=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),vt={},yt={};function bt(e){return ge.call(yt,e)?!0:ge.call(vt,e)?!1:_t.test(e)?yt[e]=!0:(vt[e]=!0,!1)}function xt(e,t,n){if(bt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function St(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Ct(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function wt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Tt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Et(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dt(e){if(!e._valueTracker){var t=Tt(e)?`checked`:`value`;e._valueTracker=Et(e,t,``+e[t])}}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Tt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Ot(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var kt=/[\n"\\]/g;function At(e){return e.replace(kt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function jt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+wt(t)):e.value!==``+wt(t)&&(e.value=``+wt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Nt(e,o,wt(n)):Nt(e,o,wt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+wt(s):e.removeAttribute(`name`)}function Mt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Dt(e);return}n=n==null?``:``+wt(n),t=t==null?n:``+wt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Dt(e)}function Nt(e,t,n){t===`number`&&Ot(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Pt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+wt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ft(e,t,n){if(t!=null&&(t=``+wt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+wt(n)}function It(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(F(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=wt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Dt(e)}function Lt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Rt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function zt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Rt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Bt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&zt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&zt(e,o,t[o])}function Vt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Ht=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Ut=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Wt(e){return Ut.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Gt(){}var Kt=null;function qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jt=null,Yt=null;function Xt(e){var t=lt(e);if(t&&(e=t.stateNode)){var n=e[et]||null;a:switch(e=t.stateNode,t.type){case`input`:if(jt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+At(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[et]||null;if(!a)throw Error(i(90));jt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&K(r)}break a;case`textarea`:Ft(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Pt(e,!!n.multiple,t,!1)}}}var Zt=!1;function Qt(e,t,n){if(Zt)return e(t,n);Zt=!0;try{return e(t)}finally{if(Zt=!1,(Jt!==null||Yt!==null)&&(xu(),Jt&&(t=Jt,e=Yt,Yt=Jt=null,Xt(t),e)))for(t=0;t<e.length;t++)Xt(e[t])}}function $t(e,t){var n=e.stateNode;if(n===null)return null;var r=n[et]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var en=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),tn=!1;if(en)try{var nn={};Object.defineProperty(nn,`passive`,{get:function(){tn=!0}}),window.addEventListener(`test`,nn,nn),window.removeEventListener(`test`,nn,nn)}catch{tn=!1}var rn=null,an=null,on=null;function sn(){if(on)return on;var e,t=an,n=t.length,r,i=`value`in rn?rn.value:rn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return on=i.slice(e,1<r?1-r:void 0)}function cn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ln(){return!0}function un(){return!1}function dn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?ln:un,this.isPropagationStopped=un,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=ln)},persist:function(){},isPersistent:ln}),t}var fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=dn(fn),mn=h({},fn,{view:0,detail:0}),hn=dn(mn),gn,_n,vn,yn=h({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==vn&&(vn&&e.type===`mousemove`?(gn=e.screenX-vn.screenX,_n=e.screenY-vn.screenY):_n=gn=0,vn=e),gn)},movementY:function(e){return`movementY`in e?e.movementY:_n}}),bn=dn(yn),xn=dn(h({},yn,{dataTransfer:0})),Sn=dn(h({},mn,{relatedTarget:0})),Cn=dn(h({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=dn(h({},fn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Tn=dn(h({},fn,{data:0})),En={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Dn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},q={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=q[e])?!!t[e]:!1}function kn(){return On}var An=dn(h({},mn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=cn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Dn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return e.type===`keypress`?cn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?cn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),jn=dn(h({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=dn(h({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Nn=dn(h({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=dn(h({},yn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Fn=dn(h({},fn,{newState:0,oldState:0})),In=[9,13,27,32],Ln=en&&`CompositionEvent`in window,Rn=null;en&&`documentMode`in document&&(Rn=document.documentMode);var zn=en&&`TextEvent`in window&&!Rn,Bn=en&&(!Ln||Rn&&8<Rn&&11>=Rn),Vn=` `,Hn=!1;function Un(e,t){switch(e){case`keyup`:return In.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Wn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Gn=!1;function Kn(e,t){switch(e){case`compositionend`:return Wn(t);case`keypress`:return t.which===32?(Hn=!0,Vn):null;case`textInput`:return e=t.data,e===Vn&&Hn?null:e;default:return null}}function qn(e,t){if(Gn)return e===`compositionend`||!Ln&&Un(e,t)?(e=sn(),on=an=rn=null,Gn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Bn&&t.locale!==`ko`?null:t.data;default:return null}}var Jn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Jn[e.type]:t===`textarea`}function Xn(e,t,n,r){Jt?Yt?Yt.push(r):Yt=[r]:Jt=r,t=kd(t,`onChange`),0<t.length&&(n=new pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Zn=null,Qn=null;function $n(e){xd(e,0)}function er(e){if(K(ut(e)))return e}function tr(e,t){if(e===`change`)return t}var nr=!1;if(en){var rr;if(en){var ir=`oninput`in document;if(!ir){var ar=document.createElement(`div`);ar.setAttribute(`oninput`,`return;`),ir=typeof ar.oninput==`function`}rr=ir}else rr=!1;nr=rr&&(!document.documentMode||9<document.documentMode)}function or(){Zn&&(Zn.detachEvent(`onpropertychange`,sr),Qn=Zn=null)}function sr(e){if(e.propertyName===`value`&&er(Qn)){var t=[];Xn(t,Qn,e,qt(e)),Qt($n,t)}}function cr(e,t,n){e===`focusin`?(or(),Zn=t,Qn=n,Zn.attachEvent(`onpropertychange`,sr)):e===`focusout`&&or()}function lr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return er(Qn)}function ur(e,t){if(e===`click`)return er(t)}function dr(e,t){if(e===`input`||e===`change`)return er(t)}function fr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var pr=typeof Object.is==`function`?Object.is:fr;function mr(e,t){if(pr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ge.call(t,i)||!pr(e[i],t[i]))return!1}return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gr(e,t){var n=hr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=hr(n)}}function _r(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_r(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ot(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ot(e.document)}return t}function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var br=en&&`documentMode`in document&&11>=document.documentMode,xr=null,Sr=null,Cr=null,wr=!1;function Tr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wr||xr==null||xr!==Ot(r)||(r=xr,`selectionStart`in r&&yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Cr&&mr(Cr,r)||(Cr=r,r=kd(Sr,`onSelect`),0<r.length&&(t=new pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Dr={animationend:Er(`Animation`,`AnimationEnd`),animationiteration:Er(`Animation`,`AnimationIteration`),animationstart:Er(`Animation`,`AnimationStart`),transitionrun:Er(`Transition`,`TransitionRun`),transitionstart:Er(`Transition`,`TransitionStart`),transitioncancel:Er(`Transition`,`TransitionCancel`),transitionend:Er(`Transition`,`TransitionEnd`)},Or={},kr={};en&&(kr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),`TransitionEvent`in window||delete Dr.transitionend.transition);function Ar(e){if(Or[e])return Or[e];if(!Dr[e])return e;var t=Dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kr)return Or[e]=t[n];return e}var jr=Ar(`animationend`),Mr=Ar(`animationiteration`),Nr=Ar(`animationstart`),Pr=Ar(`transitionrun`),Fr=Ar(`transitionstart`),Ir=Ar(`transitioncancel`),Lr=Ar(`transitionend`),Rr=new Map,zr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);zr.push(`scrollEnd`);function Br(e,t){Rr.set(e,t),ht(t,[e])}var J=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Y=[],Vr=0,Hr=0;function Ur(){for(var e=Vr,t=Hr=Vr=0;t<e;){var n=Y[t];Y[t++]=null;var r=Y[t];Y[t++]=null;var i=Y[t];Y[t++]=null;var a=Y[t];if(Y[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&qr(n,i,a)}}function Wr(e,t,n,r){Y[Vr++]=e,Y[Vr++]=t,Y[Vr++]=n,Y[Vr++]=r,Hr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Gr(e,t,n,r){return Wr(e,t,n,r),Jr(e)}function Kr(e,t){return Wr(e,null,null,t),Jr(e)}function qr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Me(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Jr(e){if(50<fu)throw fu=0,pu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Yr={};function Xr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zr(e,t,n,r){return new Xr(e,t,n,r)}function Qr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $r(e,t){var n=e.alternate;return n===null?(n=Zr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ei(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ti(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)Qr(e)&&(s=1);else if(typeof e==`string`)s=Kf(e,n,ne.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=Zr(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return ni(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=Zr(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=Zr(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=Zr(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Zr(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ni(e,t,n,r){return e=Zr(7,e,r,t),e.lanes=n,e}function ri(e,t,n){return e=Zr(6,e,null,t),e.lanes=n,e}function ii(e){var t=Zr(18,null,null,0);return t.stateNode=e,t}function ai(e,t,n){return t=Zr(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var oi=new WeakMap;function si(e,t){if(typeof e==`object`&&e){var n=oi.get(e);return n===void 0?(t={value:e,source:t,stack:he(t)},oi.set(e,t),t):n}return{value:e,source:t,stack:he(t)}}var ci=[],li=0,ui=null,di=0,fi=[],pi=0,mi=null,hi=1,gi=``;function _i(e,t){ci[li++]=di,ci[li++]=ui,ui=e,di=t}function vi(e,t,n){fi[pi++]=hi,fi[pi++]=gi,fi[pi++]=mi,mi=e;var r=hi;e=gi;var i=32-Me(r)-1;r&=~(1<<i),n+=1;var a=32-Me(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,hi=1<<32-Me(t)+i|n<<i|r,gi=a+e}else hi=1<<a|n<<i|r,gi=e}function yi(e){e.return!==null&&(_i(e,1),vi(e,1,0))}function bi(e){for(;e===ui;)ui=ci[--li],ci[li]=null,di=ci[--li],ci[li]=null;for(;e===mi;)mi=fi[--pi],fi[pi]=null,gi=fi[--pi],fi[pi]=null,hi=fi[--pi],fi[pi]=null}function xi(e,t){fi[pi++]=hi,fi[pi++]=gi,fi[pi++]=mi,hi=t.id,gi=t.overflow,mi=e}var Si=null,Ci=null,wi=!1,Ti=null,Ei=!1,Di=Error(i(519));function Oi(e){throw Pi(si(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Di}function ki(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[$e]=e,t[et]=r,n){case`dialog`:Sd(`cancel`,t),Sd(`close`,t);break;case`iframe`:case`object`:case`embed`:Sd(`load`,t);break;case`video`:case`audio`:for(n=0;n<yd.length;n++)Sd(yd[n],t);break;case`source`:Sd(`error`,t);break;case`img`:case`image`:case`link`:Sd(`error`,t),Sd(`load`,t);break;case`details`:Sd(`toggle`,t);break;case`input`:Sd(`invalid`,t),Mt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Sd(`invalid`,t);break;case`textarea`:Sd(`invalid`,t),It(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Fd(t.textContent,n)?(r.popover!=null&&(Sd(`beforetoggle`,t),Sd(`toggle`,t)),r.onScroll!=null&&Sd(`scroll`,t),r.onScrollEnd!=null&&Sd(`scrollend`,t),r.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||Oi(e,!0)}function Ai(e){for(Si=e.return;Si;)switch(Si.tag){case 5:case 31:case 13:Ei=!1;return;case 27:case 3:Ei=!0;return;default:Si=Si.return}}function ji(e){if(e!==Si)return!1;if(!wi)return Ai(e),wi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||qd(e.type,e.memoizedProps)),n=!n),n&&Ci&&Oi(e),Ai(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ci=mf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ci=mf(e)}else t===27?(t=Ci,tf(e.type)?(e=pf,pf=null,Ci=e):Ci=t):Ci=Si?ff(e.stateNode.nextSibling):null;return!0}function Mi(){Ci=Si=null,wi=!1}function Ni(){var e=Ti;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Ti=null),e}function Pi(e){Ti===null?Ti=[e]:Ti.push(e)}var Fi=B(null),Ii=null,Li=null;function Ri(e,t,n){V(Fi,t._currentValue),t._currentValue=n}function zi(e){e._currentValue=Fi.current,te(Fi)}function Bi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Vi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Bi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Bi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Hi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;pr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ae.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Q]:e.push(Q))}a=a.return}e!==null&&Vi(t,e,n,r),t.flags|=262144}function Ui(e){for(e=e.firstContext;e!==null;){if(!pr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wi(e){Ii=e,Li=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Gi(e){return qi(Ii,e)}function Ki(e,t){return Ii===null&&Wi(e),qi(e,t)}function qi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Li===null){if(e===null)throw Error(i(308));Li=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Li=Li.next=t;return n}var Ji=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Yi=t.unstable_scheduleCallback,Xi=t.unstable_NormalPriority,Zi={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qi(){return{controller:new Ji,data:new Map,refCount:0}}function $i(e){e.refCount--,e.refCount===0&&Yi(Xi,function(){e.controller.abort()})}var ea=null,ta=0,na=0,ra=null;function ia(e,t){if(ea===null){var n=ea=[];ta=0,na=pd(),ra={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ta++,t.then(aa,aa),t}function aa(){if(--ta===0&&ea!==null){ra!==null&&(ra.status=`fulfilled`);var e=ea;ea=null,na=0,ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function oa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var sa=I.S;I.S=function(e,t){tu=xe(),typeof t==`object`&&t&&typeof t.then==`function`&&ia(e,t),sa!==null&&sa(e,t)};var ca=B(null);function la(){var e=ca.current;return e===null?Il.pooledCache:e}function ua(e,t){t===null?V(ca,ca.current):V(ca,t.pool)}function da(){var e=la();return e===null?null:{parent:Zi._currentValue,pool:e}}var fa=Error(i(460)),pa=Error(i(474)),ma=Error(i(542)),ha={then:function(){}};function ga(e){return e=e.status,e===`fulfilled`||e===`rejected`}function _a(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Gt,Gt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,xa(e),e;default:if(typeof t.status==`string`)t.then(Gt,Gt);else{if(e=Il,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,xa(e),e}throw ya=t,fa}}function va(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ya=e,fa):e}}var ya=null;function ba(){if(ya===null)throw Error(i(459));var e=ya;return ya=null,e}function xa(e){if(e===fa||e===ma)throw Error(i(483))}var Sa=null,Ca=0;function wa(e){var t=Ca;return Ca+=1,Sa===null&&(Sa=[]),_a(Sa,e,t)}function Ta(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ea(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Da(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=$r(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ri(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&va(i)===t.type)?(t=a(t,n.props),Ta(t,n),t.return=e,t):(t=ti(n.type,n.key,n.props,null,e.mode,r),Ta(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ai(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ni(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ri(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ti(t.type,t.key,t.props,null,e.mode,n),Ta(n,t),n.return=e,n;case v:return t=ai(t,e.mode,n),t.return=e,t;case O:return t=va(t),f(e,t,n)}if(F(t)||M(t))return t=ni(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,wa(t),n);if(t.$$typeof===C)return f(e,Ki(e,t),n);Ea(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=va(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,wa(n),r);if(n.$$typeof===C)return p(e,t,Ki(e,n),r);Ea(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=va(r),m(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,wa(r),i);if(r.$$typeof===C)return m(e,t,n,Ki(t,r),i);Ea(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),wi&&_i(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return wi&&_i(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),wi&&_i(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),wi&&_i(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return wi&&_i(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),wi&&_i(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&va(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ta(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=ni(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ti(o.type,o.key,o.props,null,e.mode,c),Ta(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ai(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=va(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,wa(o),c);if(o.$$typeof===C)return b(e,r,Ki(e,o),c);Ea(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ri(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ca=0;var i=b(e,t,n,r);return Sa=null,i}catch(t){if(t===fa||t===ma)throw t;var a=Zr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Oa=Da(!0),ka=Da(!1),Aa=!1;function ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ma(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Jr(e),qr(e,null,n),t}return Wr(e,r,t,n),Jr(e)}function Fa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}function Ia(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var La=!1;function Ra(){if(La){var e=ra;if(e!==null)throw e}}function za(e,t,n,r){La=!1;var i=e.updateQueue;Aa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Rl&f)===f:(r&f)===f){f!==0&&f===na&&(La=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Aa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Ba(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Va(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ba(n[e],t)}var Ha=B(null),Ua=B(0);function Wa(e,t){e=Wl,V(Ua,e),V(Ha,t),Wl=e|t.baseLanes}function Ga(){V(Ua,Wl),V(Ha,Ha.current)}function Ka(){Wl=Ua.current,te(Ha),te(Ua)}var qa=B(null),Ja=null;function Ya(e){var t=e.alternate;V(eo,eo.current&1),V(qa,e),Ja===null&&(t===null||Ha.current!==null||t.memoizedState!==null)&&(Ja=e)}function Xa(e){V(eo,eo.current),V(qa,e),Ja===null&&(Ja=e)}function Za(e){e.tag===22?(V(eo,eo.current),V(qa,e),Ja===null&&(Ja=e)):Qa(e)}function Qa(){V(eo,eo.current),V(qa,qa.current)}function $a(e){te(qa),Ja===e&&(Ja=null),te(eo)}var eo=B(0);function to(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lf(n)||uf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var no=0,ro=null,io=null,ao=null,oo=!1,so=!1,co=!1,lo=0,uo=0,fo=null,po=0;function mo(){throw Error(i(321))}function ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pr(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,a){return no=a,ro=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Ns:Ps,co=!1,a=n(r,i),co=!1,so&&(a=vo(t,n,r,i)),_o(e),a}function _o(e){I.H=Ms;var t=io!==null&&io.next!==null;if(no=0,ao=io=ro=null,oo=!1,uo=0,fo=null,t)throw Error(i(300));e===null||Zs||(e=e.dependencies,e!==null&&Ui(e)&&(Zs=!0))}function vo(e,t,n,r){ro=e;var a=0;do{if(so&&(fo=null),uo=0,so=!1,25<=a)throw Error(i(301));if(a+=1,ao=io=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}I.H=Fs,o=t(n,r)}while(so);return o}function yo(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Eo(t):t,e=e.useState()[0],(io===null?null:io.memoizedState)!==e&&(ro.flags|=1024),t}function bo(){var e=lo!==0;return lo=0,e}function xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(oo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}oo=!1}no=0,ao=io=ro=null,so=!1,uo=lo=0,fo=null}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ao===null?ro.memoizedState=ao=e:ao=ao.next=e,ao}function wo(){if(io===null){var e=ro.alternate;e=e===null?null:e.memoizedState}else e=io.next;var t=ao===null?ro.memoizedState:ao.next;if(t!==null)ao=t,io=e;else{if(e===null)throw ro.alternate===null?Error(i(467)):Error(i(310));io=e,e={memoizedState:io.memoizedState,baseState:io.baseState,baseQueue:io.baseQueue,queue:io.queue,next:null},ao===null?ro.memoizedState=ao=e:ao=ao.next=e}return ao}function To(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(e){var t=uo;return uo+=1,fo===null&&(fo=[]),e=_a(fo,e,t),t=ro,(ao===null?t.memoizedState:ao.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Ns:Ps),e}function Do(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Eo(e);if(e.$$typeof===C)return Gi(e)}throw Error(i(438,String(e)))}function Oo(e){var t=null,n=ro.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ro.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=To(),ro.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function ko(e,t){return typeof t==`function`?t(e):t}function Ao(e){return jo(wo(),io,e)}function jo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(no&f)===f:(Rl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===na&&(d=!0);else if((no&p)===p){u=u.next,p===na&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,ro.lanes|=p,Kl|=p;f=u.action,co&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,ro.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!pr(o,e.memoizedState)&&(Zs=!0,d&&(n=ra,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Mo(e){var t=wo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);pr(o,t.memoizedState)||(Zs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(e,t,n){var r=ro,a=wo(),o=wi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!pr((io||a).memoizedState,n);if(s&&(a.memoizedState=n,Zs=!0),a=a.queue,is(Io.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ao!==null&&ao.memoizedState.tag&1){if(r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,a,n,t),null),Il===null)throw Error(i(349));o||no&127||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ro.updateQueue,t===null?(t=To(),ro.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Ro(e)}function Io(e,t,n){return n(function(){Lo(t)&&Ro(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pr(e,n)}catch{return!0}}function Ro(e){var t=Kr(e,2);t!==null&&gu(t,e,2)}function zo(e){var t=Co();if(typeof e==`function`){var n=e;if(e=n(),co){je(!0);try{n()}finally{je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t}function Bo(e,t,n,r){return e.baseState=n,jo(e,io,typeof r==`function`?r:ko)}function Vo(e,t,n,r,a){if(ks(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};I.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ho(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ho(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),Uo(e,t,s)}catch(n){Go(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),Uo(e,t,a)}catch(n){Go(e,t,n)}}function Uo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Wo(e,t,n)},function(n){return Go(e,t,n)}):Wo(e,t,n)}function Wo(e,t,n){t.status=`fulfilled`,t.value=n,Ko(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ho(e,n)))}function Go(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ko(t),t=t.next;while(t!==r)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qo(e,t){return t}function Jo(e,t){if(wi){var n=Il.formState;if(n!==null){a:{var r=ro;if(wi){if(Ci){b:{for(var i=Ci,a=Ei;i.nodeType!==8;){if(!a){i=null;break b}if(i=ff(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ci=ff(i.nextSibling),r=i.data===`F!`;break a}}Oi(r)}r=!1}r&&(t=n[0])}}return n=Co(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},n.queue=r,n=Es.bind(null,ro,r),r.dispatch=n,r=zo(!1),a=Os.bind(null,ro,!1,r.queue),r=Co(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Vo.bind(null,ro,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yo(e){return Xo(wo(),io,e)}function Xo(e,t,n){if(t=jo(e,t,qo)[0],e=Ao(ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Eo(t)}catch(e){throw e===fa?ma:e}else r=t;t=wo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(ro.flags|=2048,$o(9,{destroy:void 0},Zo.bind(null,i,n),null)),[r,a,e]}function Zo(e,t){e.action=t}function Qo(e){var t=wo(),n=io;if(n!==null)return Xo(t,n,e);wo(),t=t.memoizedState,n=wo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ro.updateQueue,t===null&&(t=To(),ro.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function es(){return wo().memoizedState}function ts(e,t,n,r){var i=Co();ro.flags|=e,i.memoizedState=$o(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=wo();r=r===void 0?null:r;var a=i.memoizedState.inst;io!==null&&r!==null&&ho(r,io.memoizedState.deps)?i.memoizedState=$o(t,a,n,r):(ro.flags|=e,i.memoizedState=$o(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){ro.flags|=4;var t=ro.updateQueue;if(t===null)t=To(),ro.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=wo().memoizedState;return as({ref:t,nextImpl:e}),function(){if(Fl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(4,4,e,t)}function ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function us(e,t,n){n=n==null?null:n.concat([e]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ho(t,r[1]))return r[0];if(r=e(),co){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||no&1073741824&&!(Rl&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),ro.lanes|=e,Kl|=e,n)}function hs(e,t,n,r){return pr(n,t)?n:Ha.current===null?!(no&42)||no&1073741824&&!(Rl&261930)?(Zs=!0,e.memoizedState=n):(e=hu(),ro.lanes|=e,Kl|=e,t):(e=ms(e,n,r),pr(e,t)||(Zs=!0),e)}function gs(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,Os(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,oa(c,r),mu(e)):Ds(e,t,r,mu(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ys(e).queue;gs(e,a,t,ee,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:ee},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},mu())}function xs(){return Gi(Q)}function Ss(){return wo().memoizedState}function Cs(){return wo().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Na(n);var r=Pa(t,e,n);r!==null&&(gu(r,t,n),Fa(r,t,n)),t={cache:Qi()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=Gr(e,t,n,r),n!==null&&(gu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,mu())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,pr(s,o))return Wr(e,t,i,0),Il===null&&Ur(),!1}catch{}if(n=Gr(e,t,i,r),n!==null)return gu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(i(479))}else t=Gr(e,n,r,2),t!==null&&gu(t,e,2)}function ks(e){var t=e.alternate;return e===ro||t!==null&&t===ro}function As(e,t){so=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}var Ms={readContext:Gi,use:Do,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useLayoutEffect:mo,useInsertionEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useSyncExternalStore:mo,useId:mo,useHostTransitionStatus:mo,useFormState:mo,useActionState:mo,useOptimistic:mo,useMemoCache:mo,useCacheRefresh:mo};Ms.useEffectEvent=mo;var Ns={readContext:Gi,use:Do,useCallback:function(e,t){return Co().memoizedState=[e,t===void 0?null:t],e},useContext:Gi,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=Co();t=t===void 0?null:t;var r=e();if(co){je(!0);try{e()}finally{je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Co();if(n!==void 0){var i=n(t);if(co){je(!0);try{n(t)}finally{je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ts.bind(null,ro,e),[r.memoizedState,e]},useRef:function(e){var t=Co();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=Es.bind(null,ro,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(Co(),e,t)},useTransition:function(){var e=zo(!1);return e=gs.bind(null,ro,e.queue,!0,!1),Co().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ro,a=Co();if(wi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Il===null)throw Error(i(349));Rl&127||Po(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Io.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,o,n,t),null),n},useId:function(){var e=Co(),t=Il.identifierPrefix;if(wi){var n=gi,r=hi;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=lo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=po++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e){var t=Co();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,ro,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return Co().memoizedState=ws.bind(null,ro)},useEffectEvent:function(e){var t=Co(),n={impl:e};return t.memoizedState=n,function(){if(Fl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:Gi,use:Do,useCallback:fs,useContext:Gi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ao,useRef:es,useState:function(){return Ao(ko)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(wo(),io.memoizedState,e,t)},useTransition:function(){var e=Ao(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){return Bo(wo(),io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Ps.useEffectEvent=os;var Fs={readContext:Gi,use:Do,useCallback:fs,useContext:Gi,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(ko)},useDebugValue:ds,useDeferredValue:function(e,t){var n=wo();return io===null?ms(n,e,t):hs(n,io.memoizedState,e,t)},useTransition:function(){var e=Mo(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){var n=wo();return io===null?(n.baseState=e,[e,n.queue.dispatch]):Bo(n,io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Fs.useEffectEvent=os;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Na(r);i.payload=t,n!=null&&(i.callback=n),t=Pa(e,i,r),t!==null&&(gu(t,e,r),Fa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Na(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Pa(e,i,r),t!==null&&(gu(t,e,r),Fa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Na(n);r.tag=2,t!=null&&(r.callback=t),t=Pa(e,r,n),t!==null&&(gu(t,e,n),Fa(t,e,n))}};function Rs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!mr(n,r)||!mr(i,a):!0}function zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){J(e)}function Hs(e){console.error(e)}function Us(e){J(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){return n=Na(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=Na(e),e.tag=3,e}function Js(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Hi(t,n,a,!0),n=qa.current,n!==null){switch(n.tag){case 31:case 13:return Ja===null?Ou():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ha?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qu(e,r,a)),!1;case 22:return n.flags|=65536,r===ha?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),qu(e,r,a)),!1}throw Error(i(435,n.tag))}return qu(e,r,a),Ou(),!1}if(wi)return t=qa.current,t===null?(r!==Di&&(t=Error(i(423),{cause:r}),Pi(si(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=si(r,n),a=Ks(e.stateNode,r,a),Ia(e,a),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Di&&(e=Error(i(422),{cause:r}),Pi(si(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=si(o,n),Zl===null?Zl=[o]:Zl.push(o),Gl!==4&&(Gl=2),t===null)return!0;r=si(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ks(n.stateNode,r,e),Ia(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(iu===null||!iu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=qs(a),Js(a,e,n,r),Ia(n,a),!1}n=n.return}while(n!==null);return!1}var Xs=Error(i(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?ka(t,null,n,r):Oa(t,e.child,n,r)}function $s(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Wi(t),r=go(e,t,n,o,a,i),s=bo(),e!==null&&!Zs?(xo(e,t,i),Cc(e,t,i)):(wi&&s&&yi(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Qr(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=ti(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!wc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?mr:n,n(o,r)&&e.ref===t.ref)return Cc(e,t,i)}return t.flags|=1,e=$r(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(mr(a,r)&&e.ref===t.ref)if(Zs=!1,t.pendingProps=r=a,wc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,Cc(e,t,i)}return lc(e,t,n,r,i)}function nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ua(t,a===null?null:a.cachePool),a===null?Ga():Wa(t,a),Za(t);else return r=t.lanes=536870912,ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ua(t,null),Ga(),Qa(t)):(ua(t,a.cachePool),Wa(t,a),Qa(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ic(e,t,n,r,i){var a=la();return a=a===null?null:{parent:Zi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ua(t,null),Ga(),Za(t),e!==null&&Hi(e,t,r,!0),t.childLanes=i,null}function ac(e,t){return t=vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oc(e,t,n){return Oa(t,e.child,null,n),e=ac(t,t.pendingProps),e.flags|=2,$a(t),t.memoizedState=null,e}function sc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(wi){if(r.mode===`hidden`)return e=ac(t,r),t.lanes=536870912,rc(null,e);if(Xa(t),(e=Ci)?(e=cf(e,Ei),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:mi===null?null:{id:hi,overflow:gi},retryLane:536870912,hydrationErrors:null},n=ii(e),n.return=t,t.child=n,Si=t,Ci=null)):e=null,e===null)throw Oi(t);return t.lanes=536870912,null}return ac(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Xa(t),a)if(t.flags&256)t.flags&=-257,t=oc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Zs||Hi(e,t,n,!1),a=(n&e.childLanes)!==0,Zs||a){if(r=Il,r!==null&&(s=qe(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Kr(e,s),gu(r,e,s),Xs;Ou(),t=oc(e,t,n)}else e=o.treeContext,Ci=ff(s.nextSibling),Si=t,wi=!0,Ti=null,Ei=!1,e!==null&&xi(t,e),t=ac(t,r),t.flags|=4096;return t}return e=$r(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return Wi(t),n=go(e,t,n,r,void 0,i),r=bo(),e!==null&&!Zs?(xo(e,t,i),Cc(e,t,i)):(wi&&r&&yi(t),t.flags|=1,Qs(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return Wi(t),t.updateQueue=null,n=vo(t,r,n,i),_o(e),r=bo(),e!==null&&!Zs?(xo(e,t,a),Cc(e,t,a)):(wi&&r&&yi(t),t.flags|=1,Qs(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(Wi(t),t.stateNode===null){var a=Yr,o=n.contextType;typeof o==`object`&&o&&(a=Gi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ja(t),o=n.contextType,a.context=typeof o==`object`&&o?Gi(o):Yr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ls.enqueueReplaceState(a,a.state,null),za(t,r,a,i),Ra(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=Yr,typeof u==`object`&&u&&(o=Gi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zs(t,a,r,o),Aa=!1;var f=t.memoizedState;a.state=f,za(t,r,a,i),Ra(),l=t.memoizedState,s||f!==l||Aa?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=Aa||Rs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ma(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Yr,typeof l==`object`&&l&&(c=Gi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zs(t,a,r,c),Aa=!1,f=t.memoizedState,a.state=f,za(t,r,a,i),Ra();var p=t.memoizedState;o!==d||f!==p||Aa||e!==null&&e.dependencies!==null&&Ui(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=Aa||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ui(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,cc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Oa(t,e.child,null,i),t.child=Oa(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Cc(e,t,i),e}function fc(e,t,n,r){return Mi(),t.flags|=256,Qs(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:da()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function gc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(eo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(wi){if(a?Ya(t):Qa(t),(e=Ci)?(e=cf(e,Ei),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:mi===null?null:{id:hi,overflow:gi},retryLane:536870912,hydrationErrors:null},n=ii(e),n.return=t,t.child=n,Si=t,Ci=null)):e=null,e===null)throw Oi(t);return uf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(Qa(t),a=t.mode,c=vc({mode:`hidden`,children:c},a),r=ni(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(null,r)):(Ya(t),_c(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Ya(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState===null?(Qa(t),c=r.fallback,a=t.mode,r=vc({mode:`visible`,children:r.children},a),c=ni(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Oa(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,t=rc(null,r)):(Qa(t),t.child=e.child,t.flags|=128,t=null);else if(Ya(t),uf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Pi({value:r,source:null,stack:null}),t=yc(e,t,n)}else if(Zs||Hi(e,t,n,!1),s=(n&e.childLanes)!==0,Zs||s){if(s=Il,s!==null&&(r=qe(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Kr(e,r),gu(s,e,r),Xs;lf(c)||Ou(),t=yc(e,t,n)}else lf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ci=ff(c.nextSibling),Si=t,wi=!0,Ti=null,Ei=!1,e!==null&&xi(t,e),t=_c(t,r.children),t.flags|=4096);return t}return a?(Qa(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=$r(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ni(c,a,n,null),c.flags|=2):c=$r(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,rc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(a=c.cachePool,a===null?a=da():(l=Zi._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(e.child,r)):(Ya(t),n=e.child,e=n.sibling,n=$r(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function _c(e,t){return t=vc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function vc(e,t){return e=Zr(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return Oa(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bi(e.return,t,n)}function xc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=eo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,V(eo,o),Qs(e,t,r,n),r=wi?di:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bc(e,n,t);else if(e.tag===19)bc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&to(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&to(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xc(t,!0,n,null,a,r);break;case`together`:xc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Cc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Hi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=$r(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$r(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ui(e))):!0}function Tc(e,t,n){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),Ri(t,Zi,e.memoizedState.cache),Mi();break;case 27:case 5:ce(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:Ri(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ya(t),e=Cc(e,t,n),e===null?null:e.sibling):gc(e,t,n):(Ya(t),t.flags|=128,null);Ya(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Hi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(eo,eo.current),r)break;return null;case 22:return t.lanes=0,nc(e,t,n,t.pendingProps);case 24:Ri(t,Zi,e.memoizedState.cache)}return Cc(e,t,n)}function Ec(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!wc(e,n)&&!(t.flags&128))return Zs=!1,Tc(e,t,n);Zs=!!(e.flags&131072)}else Zs=!1,wi&&t.flags&1048576&&vi(t,di,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=va(t.elementType),t.type=e,typeof e==`function`)Qr(e)?(r=Bs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=$s(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Bs(r,t.pendingProps),dc(e,t,r,a,n);case 3:a:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ma(e,t),za(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ri(t,Zi,r),r!==o.cache&&Vi(t,[Zi],n,!0),Ra(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=fc(e,t,r,n);break a}else if(r!==a){a=si(Error(i(424)),t),Pi(a),t=fc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ci=ff(e.firstChild),Si=t,wi=!0,Ti=null,Ei=!0,n=ka(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Mi(),r===a){t=Cc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=Mf(t.type,null,t.pendingProps,null))?t.memoizedState=n:wi||(n=t.type,e=t.pendingProps,r=Wd(ie.current).createElement(n),r[$e]=t,r[et]=e,Rd(r,n,e),ft(r),t.stateNode=r):t.memoizedState=Mf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ce(t),e===null&&wi&&(r=t.stateNode=gf(t.type,t.pendingProps,ie.current),Si=t,Ei=!0,a=Ci,tf(t.type)?(pf=a,Ci=ff(r.firstChild)):Ci=a),Qs(e,t,t.pendingProps.children,n),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&wi&&((a=r=Ci)&&(r=of(r,t.type,t.pendingProps,Ei),r===null?a=!1:(t.stateNode=r,Si=t,Ci=ff(r.firstChild),Ei=!1,a=!0)),a||Oi(t)),ce(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,qd(a,o)?r=null:s!==null&&qd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=go(e,t,yo,null,null,n),Q._currentValue=a),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&wi&&((e=n=Ci)&&(n=sf(n,t.pendingProps,Ei),n===null?e=!1:(t.stateNode=n,Si=t,Ci=null,e=!0)),e||Oi(t)),null;case 13:return gc(e,t,n);case 4:return oe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Oa(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ri(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Wi(t),a=Gi(a),r=r(a),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return Sc(e,t,n);case 31:return sc(e,t,n);case 22:return nc(e,t,n,t.pendingProps);case 24:return Wi(t),r=Gi(Zi),e===null?(a=la(),a===null&&(a=Il,o=Qi(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},ja(t),Ri(t,Zi,a)):((e.lanes&n)!==0&&(Ma(e,t),za(t,null,null,n),Ra()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ri(t,Zi,r),r!==a.cache&&Vi(t,[Zi],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ri(t,Zi,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Dc(e){e.flags|=4}function Oc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw ya=ha,pa}else e.flags&=-16777217}function kc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!qf(t))if(Tu())e.flags|=8192;else throw ya=ha,pa}function Ac(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ve(),e.lanes|=t,Xl|=t)}function jc(e,t){if(!wi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Nc(e,t,n){var r=t.pendingProps;switch(bi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mc(t),null;case 1:return Mc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),zi(Zi),se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ji(t)?Dc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ni())),Mc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Dc(t),o===null?(Mc(t),Oc(t,a,null,r,n)):(Mc(t),kc(t,o))):o?o===e.memoizedState?(Mc(t),t.flags&=-16777217):(Dc(t),Mc(t),kc(t,o)):(e=e.memoizedProps,e!==r&&Dc(t),Mc(t),Oc(t,a,e,r,n)),null;case 27:if(le(t),n=ie.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Mc(t),null}e=ne.current,ji(t)?ki(t,e):(e=gf(a,r,n),t.stateNode=e,Dc(t))}return Mc(t),null;case 5:if(le(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Mc(t),null}if(o=ne.current,ji(t))ki(t,o);else{var s=Wd(ie.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[$e]=t,o[et]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Rd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Dc(t)}}return Mc(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ie.current,ji(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Si,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||Oi(t,!0)}else e=Wd(e).createTextNode(r),e[$e]=t,t.stateNode=e}return Mc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ji(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[$e]=t}else Mi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),e=!1}else n=Ni(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?($a(t),t):($a(t),null);if(t.flags&128)throw Error(i(558))}return Mc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ji(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[$e]=t}else Mi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),a=!1}else a=Ni(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?($a(t),t):($a(t),null)}return $a(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ac(t,t.updateQueue),Mc(t),null);case 4:return se(),e===null&&Td(t.stateNode.containerInfo),Mc(t),null;case 10:return zi(t.type),Mc(t),null;case 19:if(te(eo),r=t.memoizedState,r===null)return Mc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)jc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=to(e),o!==null){for(t.flags|=128,jc(r,!1),e=o.updateQueue,t.updateQueue=e,Ac(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ei(n,e),n=n.sibling;return V(eo,eo.current&1|2),wi&&_i(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&xe()>nu&&(t.flags|=128,a=!0,jc(r,!1),t.lanes=4194304)}else{if(!a)if(e=to(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ac(t,e),jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!wi)return Mc(t),null}else 2*xe()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,a=!0,jc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Mc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=xe(),e.sibling=null,n=eo.current,V(eo,a?n&1|2:n&1),wi&&_i(t,r.treeForkCount),e);case 22:case 23:return $a(t),Ka(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Mc(t),t.subtreeFlags&6&&(t.flags|=8192)):Mc(t),n=t.updateQueue,n!==null&&Ac(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&te(ca),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),zi(Zi),Mc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Pc(e,t){switch(bi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zi(Zi),se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return le(t),null;case 31:if(t.memoizedState!==null){if($a(t),t.alternate===null)throw Error(i(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($a(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(eo),null;case 4:return se(),null;case 10:return zi(t.type),null;case 22:case 23:return $a(t),Ka(),e!==null&&te(ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return zi(Zi),null;case 25:return null;default:return null}}function Fc(e,t){switch(bi(t),t.tag){case 3:zi(Zi),se();break;case 26:case 27:case 5:le(t);break;case 4:se();break;case 31:t.memoizedState!==null&&$a(t);break;case 13:$a(t);break;case 19:te(eo);break;case 10:zi(t.type);break;case 22:case 23:$a(t),Ka(),e!==null&&te(ca);break;case 24:zi(Zi)}}function Ic(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function Lc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function Rc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Va(t,n)}catch(t){Ku(e,e.return,t)}}}function zc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Bc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Vc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Hc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Uc(e,t,n){try{var r=e.stateNode;zd(r,e.type,n,t),r[et]=t}catch(t){Ku(e,e.return,t)}}function Wc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tf(e.type)||e.tag===4}function Gc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Wc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&tf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gt));else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Rd(t,r,n),t[$e]=e,t[et]=n}catch(t){Ku(e,e.return,t)}}var Yc=!1,Xc=!1,Zc=!1,Qc=typeof WeakSet==`function`?WeakSet:Set,$c=null;function el(e,t){if(e=e.containerInfo,Hd=cp,e=vr(e),yr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ud={focusedElem:e,selectionRange:n},cp=!1,$c=t;$c!==null;)if(t=$c,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,$c=e;else for(;$c!==null;){switch(t=$c,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Bs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ku(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)af(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:af(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,$c=e;break}$c=t.return}}function tl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gl(e,n),r&4&&Ic(5,n);break;case 1:if(gl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ku(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ku(n,n.return,e)}}r&64&&Rc(n),r&512&&Bc(n,n.return);break;case 3:if(gl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Va(e,t)}catch(e){Ku(n,n.return,e)}}break;case 27:t===null&&r&4&&Jc(n);case 26:case 5:gl(e,n),t===null&&r&4&&Hc(n),r&512&&Bc(n,n.return);break;case 12:gl(e,n);break;case 31:gl(e,n),r&4&&sl(e,n);break;case 13:gl(e,n),r&4&&cl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xu.bind(null,n),df(e,n))));break;case 22:if(r=n.memoizedState!==null||Yc,!r){t=t!==null&&t.memoizedState!==null||Xc,i=Yc;var a=Xc;Yc=r,(Xc=t)&&!a?vl(e,n,(n.subtreeFlags&8772)!=0):gl(e,n),Yc=i,Xc=a}break;case 30:break;default:gl(e,n)}}function nl(e){var t=e.alternate;t!==null&&(e.alternate=null,nl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&st(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var rl=null,il=!1;function al(e,t,n){for(n=n.child;n!==null;)ol(e,t,n),n=n.sibling}function ol(e,t,n){if(U&&typeof U.onCommitFiberUnmount==`function`)try{U.onCommitFiberUnmount(Ae,n)}catch{}switch(n.tag){case 26:Xc||Vc(n,t),al(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Xc||Vc(n,t);var r=rl,i=il;tf(n.type)&&(rl=n.stateNode,il=!1),al(e,t,n),X(n.stateNode),rl=r,il=i;break;case 5:Xc||Vc(n,t);case 6:if(r=rl,i=il,rl=null,al(e,t,n),rl=r,il=i,rl!==null)if(il)try{(rl.nodeType===9?rl.body:rl.nodeName===`HTML`?rl.ownerDocument.body:rl).removeChild(n.stateNode)}catch(e){Ku(n,t,e)}else try{rl.removeChild(n.stateNode)}catch(e){Ku(n,t,e)}break;case 18:rl!==null&&(il?(e=rl,nf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),$(e)):nf(rl,n.stateNode));break;case 4:r=rl,i=il,rl=n.stateNode.containerInfo,il=!0,al(e,t,n),rl=r,il=i;break;case 0:case 11:case 14:case 15:Lc(2,n,t),Xc||Lc(4,n,t),al(e,t,n);break;case 1:Xc||(Vc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&zc(n,t,r)),al(e,t,n);break;case 21:al(e,t,n);break;case 22:Xc=(r=Xc)||n.memoizedState!==null,al(e,t,n),Xc=r;break;default:al(e,t,n)}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{$(e)}catch(e){Ku(t,t.return,e)}}}function cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{$(e)}catch(e){Ku(t,t.return,e)}}function ll(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qc),t;default:throw Error(i(435,e.tag))}}function ul(e,t){var n=ll(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Zu.bind(null,e,t);t.then(r,r)}})}function dl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(tf(c.type)){rl=c.stateNode,il=!1;break a}break;case 5:rl=c.stateNode,il=!1;break a;case 3:case 4:rl=c.stateNode.containerInfo,il=!0;break a}c=c.return}if(rl===null)throw Error(i(160));ol(o,s,a),rl=null,il=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pl(t,e),t=t.sibling}var fl=null;function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dl(t,e),ml(e),r&4&&(Lc(3,e,e.return),Ic(3,e),Lc(5,e,e.return));break;case 1:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&64&&Yc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=fl;if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ot]||o[$e]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Rd(o,r,n),o[$e]=e,ft(o),r=o;break a;case`link`:var s=Wf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Wf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[$e]=e,ft(o),r=o}e.stateNode=r}else Gf(a,e.type,e.stateNode);else e.stateNode=zf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Gf(a,e.type,e.stateNode):zf(a,r,e.memoizedProps))}break;case 27:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),n!==null&&r&4&&Uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),e.flags&32){a=e.stateNode;try{Lt(a,``)}catch(t){Ku(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Uc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Zc=!0);break;case 6:if(dl(t,e),ml(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ku(e,e.return,t)}}break;case 3:if(Uf=null,a=fl,fl=yf(t.containerInfo),dl(t,e),fl=a,ml(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{$(t.containerInfo)}catch(t){Ku(e,e.return,t)}Zc&&(Zc=!1,hl(e));break;case 4:r=fl,fl=yf(e.stateNode.containerInfo),dl(t,e),ml(e),fl=r;break;case 12:dl(t,e),ml(e);break;case 31:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 13:dl(t,e),ml(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=xe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Yc,d=Xc;if(Yc=u||a,Xc=d||l,dl(t,e),Xc=d,Yc=u,ml(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Yc||Xc||_l(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Ku(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Ku(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?rf(m,!0):rf(l.stateNode,!1)}catch(e){Ku(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ul(e,n))));break;case 19:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 30:break;case 21:break;default:dl(t,e),ml(e)}}function ml(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Wc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;qc(e,Gc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Lt(o,``),n.flags&=-33),qc(e,Gc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Kc(e,Gc(e),s);break;default:throw Error(i(161))}}catch(t){Ku(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function gl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tl(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Lc(4,t,t.return),_l(t);break;case 1:Vc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&zc(t,t.return,n),_l(t);break;case 27:X(t.stateNode);case 26:case 5:Vc(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function vl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:vl(i,a,n),Ic(4,a);break;case 1:if(vl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ku(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ba(c[i],s)}catch(e){Ku(r,r.return,e)}}n&&o&64&&Rc(a),Bc(a,a.return);break;case 27:Jc(a);case 26:case 5:vl(i,a,n),n&&r===null&&o&4&&Hc(a),Bc(a,a.return);break;case 12:vl(i,a,n);break;case 31:vl(i,a,n),n&&o&4&&sl(i,a);break;case 13:vl(i,a,n),n&&o&4&&cl(i,a);break;case 22:a.memoizedState===null&&vl(i,a,n),Bc(a,a.return);break;case 30:break;default:vl(i,a,n)}t=t.sibling}}function yl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&$i(n))}function bl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e))}function xl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sl(e,t,n,r),t=t.sibling}function Sl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:xl(e,t,n,r),i&2048&&Ic(9,t);break;case 1:xl(e,t,n,r);break;case 3:xl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e)));break;case 12:if(i&2048){xl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Ku(t,t.return,e)}}else xl(e,t,n,r);break;case 31:xl(e,t,n,r);break;case 13:xl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?xl(e,t,n,r):(a._visibility|=2,Cl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?xl(e,t,n,r):wl(e,t),i&2048&&yl(o,t);break;case 24:xl(e,t,n,r),i&2048&&bl(t.alternate,t);break;default:xl(e,t,n,r)}}function Cl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Cl(a,o,s,c,i),Ic(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Cl(a,o,s,c,i)):u._visibility&2?Cl(a,o,s,c,i):wl(a,o),i&&l&2048&&yl(o.alternate,o);break;case 24:Cl(a,o,s,c,i),i&&l&2048&&bl(o.alternate,o);break;default:Cl(a,o,s,c,i)}t=t.sibling}}function wl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:wl(n,r),i&2048&&yl(r.alternate,r);break;case 24:wl(n,r),i&2048&&bl(r.alternate,r);break;default:wl(n,r)}t=t.sibling}}var Tl=8192;function El(e,t,n){if(e.subtreeFlags&Tl)for(e=e.child;e!==null;)Dl(e,t,n),e=e.sibling}function Dl(e,t,n){switch(e.tag){case 26:El(e,t,n),e.flags&Tl&&e.memoizedState!==null&&Jf(n,fl,e.memoizedState,e.memoizedProps);break;case 5:El(e,t,n);break;case 3:case 4:var r=fl;fl=yf(e.stateNode.containerInfo),El(e,t,n),fl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Tl,Tl=16777216,El(e,t,n),Tl=r):El(e,t,n));break;default:El(e,t,n)}}function Ol(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Al(e),e=e.sibling}function Al(e){switch(e.tag){case 0:case 11:case 15:kl(e),e.flags&2048&&Lc(9,e,e.return);break;case 3:kl(e);break;case 12:kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jl(e)):kl(e);break;default:kl(e)}}function jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Lc(8,t,t.return),jl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jl(t));break;default:jl(t)}e=e.sibling}}function Ml(e,t){for(;$c!==null;){var n=$c;switch(n.tag){case 0:case 11:case 15:Lc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:$i(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,$c=r;else a:for(n=e;$c!==null;){r=$c;var i=r.sibling,a=r.return;if(nl(r),r===n){$c=null;break a}if(i!==null){i.return=a,$c=i;break a}$c=a}}}var Nl={getCacheForType:function(e){var t=Gi(Zi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Gi(Zi).controller.signal}},Pl=typeof WeakMap==`function`?WeakMap:Map,Fl=0,Il=null,Ll=null,Rl=0,zl=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return Fl&2&&Rl!==0?Rl&-Rl:I.T===null?Xe():pd()}function hu(){if(Yl===0)if(!(Rl&536870912)||wi){var e=Ie;Ie<<=1,!(Ie&3932160)&&(Ie=262144),Yl=e}else Yl=536870912;return e=qa.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===Il&&(zl===2||zl===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,Rl,Yl,!1)),Ue(e,n),(!(Fl&2)||e!==Il)&&(e===Il&&(!(Fl&2)&&(ql|=n),Gl===4&&bu(e,Rl,Yl,!1)),ad(e))}function _u(e,t,n){if(Fl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Be(e,t),a=r?ju(e,t):ku(e,t,!0),o=r;do{if(a===0){Hl&&!r&&bu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!yu(n)){a=ku(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=o,ql|=o,a=4;break a}o=Ql,Ql=a,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!Vl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=eu+300-xe(),10<a)){if(bu(r,t,Yl,!Vl),ze(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=Xd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,`Throttled`,-0,0),a);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,null,-0,0)}}break}while(1);ad(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gt},Dl(t,a,d);var m=(a&62914560)===a?eu-xe():(a&4194048)===a?tu-xe():0;if(m=Yf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!pr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Me(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ge(e,n,t)}function xu(){return Fl&6?!0:(od(0,!1),!1)}function Su(){if(Ll!==null){if(zl===0)var e=Ll.return;else e=Ll,Li=Ii=null,So(e),Sa=null,Ca=0,e=Ll;for(;e!==null;)Fc(e.alternate,e),e=e.return;Ll=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),Il=e,Ll=n=$r(e.current,null),Rl=t,zl=0,Bl=null,Vl=!1,Hl=Be(e,t),Ul=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Me(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,Ur(),n}function wu(e,t){ro=null,I.H=Ms,t===fa||t===ma?(t=ba(),zl=3):t===pa?(t=ba(),zl=4):zl=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,Ll===null&&(Gl=1,Ws(e,si(t,e.current)))}function Tu(){var e=qa.current;return e===null?!0:(Rl&4194048)===Rl?Ja===null:(Rl&62914560)===Rl||Rl&536870912?e===Ja:!1}function Eu(){var e=I.H;return I.H=Ms,e===null?Ms:e}function Du(){var e=I.A;return I.A=Nl,e}function Ou(){Gl=4,Vl||(Rl&4194048)!==Rl&&qa.current!==null||(Hl=!0),!(Kl&134217727)&&!(ql&134217727)||Il===null||bu(Il,Rl,Yl,!1)}function ku(e,t,n){var r=Fl;Fl|=2;var i=Eu(),a=Du();(Il!==e||Rl!==t)&&(ru=null,Cu(e,t)),t=!1;var o=Gl;a:do try{if(zl!==0&&Ll!==null){var s=Ll,c=Bl;switch(zl){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:qa.current===null&&(t=!0);var l=zl;if(zl=0,Bl=null,Fu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=zl,zl=0,Bl=null,Fu(e,s,c,l)}}Au(),o=Gl;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,Li=Ii=null,Fl=r,I.H=i,I.A=a,Ll===null&&(Il=null,Rl=0,Ur()),o}function Au(){for(;Ll!==null;)Nu(Ll)}function ju(e,t){var n=Fl;Fl|=2;var r=Eu(),a=Du();Il!==e||Rl!==t?(ru=null,nu=xe()+500,Cu(e,t)):Hl=Be(e,t);a:do try{if(zl!==0&&Ll!==null){t=Ll;var o=Bl;b:switch(zl){case 1:zl=0,Bl=null,Fu(e,t,o,1);break;case 2:case 9:if(ga(o)){zl=0,Bl=null,Pu(t);break}t=function(){zl!==2&&zl!==9||Il!==e||(zl=7),ad(e)},o.then(t,t);break a;case 3:zl=7;break a;case 4:zl=5;break a;case 7:ga(o)?(zl=0,Bl=null,Pu(t)):(zl=0,Bl=null,Fu(e,t,o,7));break;case 5:var s=null;switch(Ll.tag){case 26:s=Ll.memoizedState;case 5:case 27:var c=Ll;if(s?qf(s):c.stateNode.complete){zl=0,Bl=null;var l=c.sibling;if(l!==null)Ll=l;else{var u=c.return;u===null?Ll=null:(Ll=u,Iu(u))}break b}}zl=0,Bl=null,Fu(e,t,o,5);break;case 6:zl=0,Bl=null,Fu(e,t,o,6);break;case 8:Su(),Gl=6;break a;default:throw Error(i(462))}}Mu();break}catch(t){wu(e,t)}while(1);return Li=Ii=null,I.H=r,I.A=a,Fl=n,Ll===null?(Il=null,Rl=0,Ur(),Gl):0}function Mu(){for(;Ll!==null&&!ye();)Nu(Ll)}function Nu(e){var t=Ec(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,Rl);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,Rl);break;case 5:So(t);default:Fc(n,t),t=Ll=ei(t,Wl),t=Ec(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Fu(e,t,n,r){Li=Ii=null,So(t),Sa=null,Ca=0;var i=t.return;try{if(Ys(e,i,t,n,Rl)){Gl=1,Ws(e,si(n,e.current)),Ll=null;return}}catch(t){if(i!==null)throw Ll=i,t;Gl=1,Ws(e,si(n,e.current)),Ll=null;return}t.flags&32768?(wi||r===1?e=!0:Hl||Rl&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=qa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Vl);return}e=t.return;var n=Nc(t.alternate,t,Wl);if(n!==null){Ll=n;return}if(t=t.sibling,t!==null){Ll=t;return}Ll=t=e}while(t!==null);Gl===0&&(Gl=5)}function Lu(e,t){do{var n=Pc(e.alternate,e);if(n!==null){n.flags&=32767,Ll=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ll=e;return}Ll=e=n}while(e!==null);Gl=6,Ll=null}function Ru(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==0);if(Fl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Hr,We(e,n,o,s,c,l),e===Il&&(Ll=Il=null,Rl=0),su=t,ou=e,cu=n,lu=o,uu=a,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Qu(Te,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=I.T,I.T=null,a=L.p,L.p=2,s=Fl,Fl|=4;try{el(e,t,n)}finally{Fl=s,L.p=a,I.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Fl;Fl|=4;try{pl(t,e);var a=Ud,o=vr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&_r(s.ownerDocument.documentElement,s)){if(c!==null&&yr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=gr(s,h),v=gr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}cp=!!Hd,Ud=Hd=null}finally{Fl=i,L.p=r,I.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Fl;Fl|=4;try{tl(e,t.alternate,t)}finally{Fl=i,L.p=r,I.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,be();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),Ye(n),t=t.stateNode,U&&typeof U.onCommitFiberRoot==`function`)try{U.onCommitFiberRoot(Ae,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}cu&3&&Uu(),ad(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,od(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$i(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=Ye(cu),r=I.T,a=L.p;try{L.p=32>n?32:n,I.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,Fl&6)throw Error(i(331));var c=Fl;if(Fl|=4,Al(o.current),Sl(o,o.current,s,n),Fl=c,od(0,!1),U&&typeof U.onPostCommitFiberRoot==`function`)try{U.onPostCommitFiberRoot(Ae,o)}catch{}return!0}finally{L.p=a,I.T=r,Hu(e,t)}}function Gu(e,t,n){t=si(n,t),t=Ks(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(Ue(e,2),ad(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=si(n,e),n=qs(2),r=Pa(t,n,2),r!==null&&(Js(n,r,t,e),Ue(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Il===e&&(Rl&n)===n&&(Gl===4||Gl===3&&(Rl&62914560)===Rl&&300>xe()-eu?!(Fl&2)&&Cu(e,0):Jl|=n,Xl===Rl&&(Xl=0)),ad(e)}function Yu(e,t){t===0&&(t=Ve()),e=Kr(e,t),e!==null&&(Ue(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return _e(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,fd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Me(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=Rl,a=ze(r,r===Il?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Be(r,a)||(n=!0,dd(r,a));r=r.next}while(n);rd=!1}}function sd(){cd()}function cd(){nd=td=!1;var e=0;id!==0&&Yd()&&(e=id);for(var t=xe(),n=null,r=$u;r!==null;){var i=r.next,a=ld(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}au!==0&&au!==5||od(e,!1),id!==0&&(id=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Me(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=G(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Il,n=Rl,n=ze(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(zl===2||zl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ve(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Be(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ve(r),Ye(n)){case 2:case 8:n=we;break;case 32:n=Te;break;case 268435456:n=De;break;default:n=Te}return r=ud.bind(null,e),n=_e(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ve(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=Rl;return r=ze(e,e===Il?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),ld(e,xe()),e.callbackNode!=null&&e.callbackNode===n?ud.bind(null,e):null)}function dd(e,t){if(Uu())return null;_u(e,t,!0)}function fd(){$d(function(){Fl&6?_e(Ce,sd):cd()})}function pd(){if(id===0){var e=na;e===0&&(e=W,W<<=1,!(W&261888)&&(W=256)),id=e}return id}function md(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Wt(``+e)}function hd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=md((i[et]||null).action),o=r.submitter;o&&(t=(t=o[et]||null)?md(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new pn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(id!==0){var e=o?hd(i,o):new FormData(i);vs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?hd(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var _d=0;_d<zr.length;_d++){var vd=zr[_d];Br(vd.toLowerCase(),`on`+(vd[0].toUpperCase()+vd.slice(1)))}Br(jr,`onAnimationEnd`),Br(Mr,`onAnimationIteration`),Br(Nr,`onAnimationStart`),Br(`dblclick`,`onDoubleClick`),Br(`focusin`,`onFocus`),Br(`focusout`,`onBlur`),Br(Pr,`onTransitionRun`),Br(Fr,`onTransitionStart`),Br(Ir,`onTransitionCancel`),Br(Lr,`onTransitionEnd`),gt(`onMouseEnter`,[`mouseout`,`mouseover`]),gt(`onMouseLeave`,[`mouseout`,`mouseover`]),gt(`onPointerEnter`,[`pointerout`,`pointerover`]),gt(`onPointerLeave`,[`pointerout`,`pointerover`]),ht(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),ht(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),ht(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),ht(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),ht(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),ht(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var yd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),bd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(yd));function xd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){J(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){J(e)}i.currentTarget=null,a=c}}}}function Sd(e,t){var n=t[nt];n===void 0&&(n=t[nt]=new Set);var r=e+`__bubble`;n.has(r)||(Ed(t,e,2,!1),n.add(r))}function Cd(e,t,n){var r=0;t&&(r|=4),Ed(n,e,r,t)}var wd=`_reactListening`+Math.random().toString(36).slice(2);function Td(e){if(!e[wd]){e[wd]=!0,pt.forEach(function(t){t!==`selectionchange`&&(bd.has(t)||Cd(t,!1,e),Cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wd]||(t[wd]=!0,Cd(`selectionchange`,!1,t))}}function Ed(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!tn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Dd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=ct(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}Qt(function(){var r=a,i=qt(n),o=[];a:{var s=Rr.get(e);if(s!==void 0){var l=pn,u=e;switch(e){case`keypress`:if(cn(n)===0)break a;case`keydown`:case`keyup`:l=An;break;case`focusin`:u=`focus`,l=Sn;break;case`focusout`:u=`blur`,l=Sn;break;case`beforeblur`:case`afterblur`:l=Sn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=xn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Mn;break;case jr:case Mr:case Nr:l=Cn;break;case Lr:l=Nn;break;case`scroll`:case`scrollend`:l=hn;break;case`wheel`:l=Pn;break;case`copy`:case`cut`:case`paste`:l=wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=jn;break;case`toggle`:case`beforetoggle`:l=Fn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=$t(m,p),g!=null&&d.push(Od(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==Kt&&(u=n.relatedTarget||n.fromElement)&&(ct(u)||u[tt]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ct(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=jn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:ut(l),h=u==null?s:ut(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,ct(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ad,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&jd(o,s,l,d,!1),u!==null&&f!==null&&jd(o,f,u,d,!0)}}a:{if(s=r?ut(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=tr;else if(Yn(s))if(nr)v=dr;else{v=lr;var y=cr}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Vt(r.elementType)&&(v=tr):v=ur;if(v&&=v(e,r)){Xn(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Nt(s,`number`,s.value)}switch(y=r?ut(r):window,e){case`focusin`:(Yn(y)||y.contentEditable===`true`)&&(xr=y,Sr=r,Cr=null);break;case`focusout`:Cr=Sr=xr=null;break;case`mousedown`:wr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:wr=!1,Tr(o,n,i);break;case`selectionchange`:if(br)break;case`keydown`:case`keyup`:Tr(o,n,i)}var b;if(Ln)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Gn?Un(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Bn&&n.locale!==`ko`&&(Gn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Gn&&(b=sn()):(rn=i,an=`value`in rn?rn.value:rn.textContent,Gn=!0)),y=kd(r,x),0<y.length&&(x=new Tn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Wn(n),b!==null&&(x.data=b)))),(b=zn?Kn(e,n):qn(e,n))&&(x=kd(r,`onBeforeInput`),0<x.length&&(y=new Tn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),gd(o,e,r,n,i)}xd(o,t)})}function Od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=$t(e,n),i!=null&&r.unshift(Od(e,i,a)),i=$t(e,t),i!=null&&r.push(Od(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ad(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=$t(n,a),l!=null&&o.unshift(Od(n,l,c))):i||(l=$t(n,a),l!=null&&o.push(Od(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Md=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Pd(e){return(typeof e==`string`?e:``+e).replace(Md,`
|
|
10
|
+
`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Lt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Lt(e,``+r);break;case`className`:St(e,`class`,r);break;case`tabIndex`:St(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:St(e,n,r);break;case`style`:Bt(e,r,o);break;case`data`:if(t!==`object`){St(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Wt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Wt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Gt);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Wt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Sd(`beforetoggle`,e),Sd(`toggle`,e),xt(e,`popover`,r);break;case`xlinkActuate`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:xt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Ht.get(n)||n,xt(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case`style`:Bt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Lt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Lt(e,``+r);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Gt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!mt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[et]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):xt(e,n,r)}}}function Rd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Sd(`error`,e),Sd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,o,s,n,null)}}a&&Id(e,t,`srcSet`,n.srcSet,n,null),r&&Id(e,t,`src`,n.src,n,null);return;case`input`:Sd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Id(e,t,r,d,n,null)}}Mt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Sd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Id(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Pt(e,!!r,n,!0):Pt(e,!!r,t,!1);return;case`textarea`:for(s in Sd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Id(e,t,s,c,n,null)}It(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Id(e,t,l,r,n,null)}return;case`dialog`:Sd(`beforetoggle`,e),Sd(`toggle`,e),Sd(`cancel`,e),Sd(`close`,e);break;case`iframe`:case`object`:Sd(`load`,e);break;case`video`:case`audio`:for(r=0;r<yd.length;r++)Sd(yd[r],e);break;case`image`:Sd(`error`,e),Sd(`load`,e);break;case`details`:Sd(`toggle`,e);break;case`embed`:case`source`:case`link`:Sd(`error`,e),Sd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,u,r,n,null)}return;default:if(Vt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ld(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Id(e,t,c,r,n,null))}function zd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Id(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Id(e,t,p,m,r,f)}}jt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Id(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Id(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Pt(e,!!n,n?[]:``,!1):Pt(e,!!n,t,!0)):Pt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Id(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Id(e,t,s,a,r,o)}Ft(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Id(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Id(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Id(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Id(e,t,u,p,r,m)}return;default:if(Vt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ld(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Ld(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Id(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Id(e,t,f,p,r,m)}function Bd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Vd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Bd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Bd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Hd=null,Ud=null;function Wd(e){return e.nodeType===9?e:e.ownerDocument}function Gd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Kd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function qd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jd=null;function Yd(){var e=window.event;return e&&e.type===`popstate`?e===Jd?!1:(Jd=e,!0):(Jd=null,!1)}var Xd=typeof setTimeout==`function`?setTimeout:void 0,Zd=typeof clearTimeout==`function`?clearTimeout:void 0,Qd=typeof Promise==`function`?Promise:void 0,$d=typeof queueMicrotask==`function`?queueMicrotask:Qd===void 0?Xd:function(e){return Qd.resolve(null).then(e).catch(ef)};function ef(e){setTimeout(function(){throw e})}function tf(e){return e===`head`}function nf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),$(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)X(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,X(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ot]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&X(e.ownerDocument.body);n=i}while(n);$(t)}function rf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function af(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:af(n),st(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function of(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ot])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=ff(e.nextSibling),e===null)break}return null}function sf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=ff(e.nextSibling),e===null))return null;return e}function cf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=ff(e.nextSibling),e===null))return null;return e}function lf(e){return e.data===`$?`||e.data===`$~`}function uf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function df(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function ff(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var pf=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return ff(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function gf(e,t,n){switch(t=Wd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function X(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);st(e)}var _f=new Map,vf=new Set;function yf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var bf=L.d;L.d={f:xf,r:Sf,D:Tf,C:Ef,L:Df,m:Of,X:Af,S:kf,M:jf};function xf(){var e=bf.f(),t=xu();return e||t}function Sf(e){var t=lt(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):bf.r(e)}var Cf=typeof document>`u`?null:document;function wf(e,t,n){var r=Cf;if(r&&typeof t==`string`&&t){var i=At(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),vf.has(i)||(vf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Tf(e){bf.D(e),wf(`dns-prefetch`,e,null)}function Ef(e,t){bf.C(e,t),wf(`preconnect`,e,t)}function Df(e,t,n){bf.L(e,t,n);var r=Cf;if(r&&e&&t){var i=`link[rel="preload"][as="`+At(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+At(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+At(n.imageSizes)+`"]`)):i+=`[href="`+At(e)+`"]`;var a=i;switch(t){case`style`:a=Nf(e);break;case`script`:a=Lf(e)}_f.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),_f.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Pf(a))||t===`script`&&r.querySelector(Rf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Of(e,t){bf.m(e,t);var n=Cf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+At(r)+`"][href="`+At(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Lf(e)}if(!_f.has(a)&&(e=h({rel:`modulepreload`,href:e},t),_f.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Rf(a)))return}r=n.createElement(`link`),Rd(r,`link`,e),ft(r),n.head.appendChild(r)}}}function kf(e,t,n){bf.S(e,t,n);var r=Cf;if(r&&e){var i=dt(r).hoistableStyles,a=Nf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Pf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=_f.get(a))&&Vf(e,n);var c=o=r.createElement(`link`);ft(c),Rd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Bf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Af(e,t){bf.X(e,t);var n=Cf;if(n&&e){var r=dt(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=h({src:e,async:!0},t),(t=_f.get(i))&&Hf(e,t),a=n.createElement(`script`),ft(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t){bf.M(e,t);var n=Cf;if(n&&e){var r=dt(n).hoistableScripts,i=Lf(e),a=r.get(i);a||(a=n.querySelector(Rf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=_f.get(i))&&Hf(e,t),a=n.createElement(`script`),ft(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t,n,r){var a=(a=ie.current)?yf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Nf(n.href),n=dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Nf(n.href);var o=dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Pf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),_f.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},_f.set(e,n),o||If(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Lf(n),n=dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Nf(e){return`href="`+At(e)+`"`}function Pf(e){return`link[rel="stylesheet"][`+e+`]`}function Ff(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function If(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Rd(t,`link`,n),ft(t),e.head.appendChild(t))}function Lf(e){return`[src="`+At(e)+`"]`}function Rf(e){return`script[async]`+e}function zf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+At(n.href)+`"]`);if(r)return t.instance=r,ft(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ft(r),Rd(r,`style`,a),Bf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Nf(n.href);var o=e.querySelector(Pf(a));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;r=Ff(n),(a=_f.get(a))&&Vf(r,a),o=(e.ownerDocument||e).createElement(`link`),ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(o,`link`,r),t.state.loading|=4,Bf(o,n.precedence,e),t.instance=o;case`script`:return o=Lf(n.src),(a=e.querySelector(Rf(o)))?(t.instance=a,ft(a),a):(r=n,(a=_f.get(o))&&(r=h({},n),Hf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ft(a),Rd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Bf(r,n.precedence,e));return t.instance}function Bf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Uf=null;function Wf(e,t,n){if(Uf===null){var r=new Map,i=Uf=new Map;i.set(n,r)}else i=Uf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ot]||a[$e]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Gf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Kf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Jf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Nf(r.href),a=t.querySelector(Pf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ft(a);return}a=t.ownerDocument||t,r=Ff(r),(i=_f.get(i))&&Vf(r,i),a=a.createElement(`link`),ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Z=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Z===0&&(Z=62500*Vd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Z?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Xf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Q={$$typeof:C,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function ep(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=He(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=He(0),this.hiddenUpdates=He(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Zr(3,null,null,t),e.current=a,a.stateNode=e,t=Qi(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ja(a),e}function np(e){return e?(e=Yr,e):Yr}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Na(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Pa(e,r,t),n!==null&&(gu(n,e,t),Fa(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=Kr(e,67108864);t!==null&&gu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=mu();t=Je(t);var n=Kr(e,t);n!==null&&gu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,dp(e,t,n,r)}finally{L.p=a,I.T=i}}function up(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,dp(e,t,n,r)}finally{L.p=a,I.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)Dd(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=lt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Re(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Me(o);s.entanglements[1]|=c,o&=~c}ad(a),!(Fl&6)&&(nu=xe()+500,od(0,!1))}}break;case 31:case 13:s=Kr(a,2),s!==null&&gu(s,a,2),xu(),ap(a,2)}if(a=fp(r),a===null&&Dd(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function fp(e){return e=qt(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=ct(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pp=e,null}function hp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Se()){case Ce:return 2;case we:return 8;case Te:case Ee:return 32;case De:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=lt(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=ct(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,Ze(e.priority,function(){sp(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,Ze(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Kt=r,n.target.dispatchEvent(r),Kt=null}else return t=lt(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mp===e&&(Mp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(mp(r||n)===null)continue;break}var a=lt(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function $(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[et]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[et]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;rp(n,mu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),xu(),t[tt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Lp=n.version;if(Lp!==`19.2.5`)throw Error(i(527,Lp,`19.2.5`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Ae=zp.inject(Rp),U=zp}catch{}}e.createRoot=function(e,t){if(!o(e))throw Error(i(299));var n=!1,r=``,a=Vs,s=Hs,c=Us;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=tp(e,1,!1,null,null,n,r,null,a,s,c,Pp),e[tt]=t.current,Td(e),new Fp(t)}})),d=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=u()})),f=t(a(),1),p=d(),m=`modulepreload`,h=function(e){return`/`+e},g={},_=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=h(t,n),t in g)return;g[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:m,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},v=`popstate`;function y(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function b(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return T(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:E(t)}return O(t,n,null,e)}function x(e,t){if(e===!1||e==null)throw Error(t)}function S(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function C(){return Math.random().toString(36).substring(2,10)}function w(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function T(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?D(t):t,state:n,key:t&&t.key||r||C(),unstable_mask:i}}function E({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function D(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function O(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=y(e)?e:T(h.location,e,t);n&&n(r,e),l=u()+1;let d=w(r,l),f=h.createHref(r.unstable_mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=y(e)?e:T(h.location,e,t);n&&n(r,e),l=u();let i=w(r,l),d=h.createHref(r.unstable_mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return k(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(v,d),c=e,()=>{i.removeEventListener(v,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function k(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),x(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:E(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function A(e,t,n=`/`){return j(e,t,n,!1)}function j(e,t,n,r){let i=se((typeof t==`string`?D(t):t).pathname||`/`,n);if(i==null)return null;let a=N(e);F(a);let o=null;for(let e=0;o==null&&e<a.length;++e){let t=oe(i);o=re(a[e],t,r)}return o}function M(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function N(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;x(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=he([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(x(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),N(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:V(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of P(e.path))a(e,t,!0,n)}),t}function P(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=P(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function F(e){e.sort((e,t)=>e.score===t.score?ne(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var I=/^:[\w-]+$/,L=3,ee=2,R=1,z=10,B=-2,te=e=>e===`*`;function V(e,t){let n=e.split(`/`),r=n.length;return n.some(te)&&(r+=B),t&&(r+=ee),n.filter(e=>!te(e)).reduce((e,t)=>e+(I.test(t)?L:t===``?R:z),r)}function ne(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function re(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=ie({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=ie({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:he([a,u.pathname]),pathnameBase:_e(he([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=he([a,u.pathnameBase]))}return o}function ie(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ae(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function ae(e,t=!1,n=!0){S(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function oe(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return S(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function se(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var ce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function le(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?D(e):e,a;return n?(n=me(n),a=n.startsWith(`/`)?H(n.substring(1),`/`):H(n,t)):a=t,{pathname:a,search:ve(r),hash:ye(i)}}function H(e,t){let n=ge(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function ue(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function de(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function fe(e){let t=de(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function pe(e,t,n,r=!1){let i;typeof e==`string`?i=D(e):(i={...e},x(!i.pathname||!i.pathname.includes(`?`),ue(`?`,`pathname`,`search`,i)),x(!i.pathname||!i.pathname.includes(`#`),ue(`#`,`pathname`,`hash`,i)),x(!i.search||!i.search.includes(`#`),ue(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=le(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var me=e=>e.replace(/\/\/+/g,`/`),he=e=>me(e.join(`/`)),ge=e=>e.replace(/\/+$/,``),_e=e=>ge(e).replace(/^\/*/,`/`),ve=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,ye=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,be=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function xe(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Se(e){return he(e.map(e=>e.route.path).filter(Boolean))||`/`}var Ce=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function we(e,t){let n=e;if(typeof n!=`string`||!ce.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ce)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=se(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{S(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Te=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Te);var Ee=[`GET`,...Te];new Set(Ee);var De=f.createContext(null);De.displayName=`DataRouter`;var Oe=f.createContext(null);Oe.displayName=`DataRouterState`;var ke=f.createContext(!1);function Ae(){return f.useContext(ke)}var U=f.createContext({isTransitioning:!1});U.displayName=`ViewTransition`;var je=f.createContext(new Map);je.displayName=`Fetchers`;var Me=f.createContext(null);Me.displayName=`Await`;var Ne=f.createContext(null);Ne.displayName=`Navigation`;var Pe=f.createContext(null);Pe.displayName=`Location`;var Fe=f.createContext({outlet:null,matches:[],isDataRoute:!1});Fe.displayName=`Route`;var W=f.createContext(null);W.displayName=`RouteError`;var Ie=`REACT_ROUTER_ERROR`,Le=`REDIRECT`,Re=`ROUTE_ERROR_RESPONSE`;function ze(e){if(e.startsWith(`${Ie}:${Le}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Be(e){if(e.startsWith(`${Ie}:${Re}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new be(t.status,t.statusText,t.data)}catch{}}function G(e,{relative:t}={}){x(Ve(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=f.useContext(Ne),{hash:i,pathname:a,search:o}=qe(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:he([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Ve(){return f.useContext(Pe)!=null}function He(){return x(Ve(),`useLocation() may be used only in the context of a <Router> component.`),f.useContext(Pe).location}var Ue=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function We(e){f.useContext(Ne).static||f.useLayoutEffect(e)}function Ge(){let{isDataRoute:e}=f.useContext(Fe);return e?ft():Ke()}function Ke(){x(Ve(),`useNavigate() may be used only in the context of a <Router> component.`);let e=f.useContext(De),{basename:t,navigator:n}=f.useContext(Ne),{matches:r}=f.useContext(Fe),{pathname:i}=He(),a=JSON.stringify(fe(r)),o=f.useRef(!1);return We(()=>{o.current=!0}),f.useCallback((r,s={})=>{if(S(o.current,Ue),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=pe(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:he([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}f.createContext(null);function qe(e,{relative:t}={}){let{matches:n}=f.useContext(Fe),{pathname:r}=He(),i=JSON.stringify(fe(n));return f.useMemo(()=>pe(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Je(e,t){return Ye(e,t)}function Ye(e,t,n){x(Ve(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=f.useContext(Ne),{matches:i}=f.useContext(Fe),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;mt(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
11
|
+
|
|
12
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=He(),d;if(t){let e=typeof t==`string`?D(t):t;x(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let p=d.pathname||`/`,m=p;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);m=`/`+p.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let h=A(e,{pathname:m});S(l||h!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),S(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=nt(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:he([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:he([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?f.createElement(Pe.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,unstable_mask:void 0,...d},navigationType:`POP`}},g):g}function Xe(){let e=dt(),t=xe(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=f.createElement(f.Fragment,null,f.createElement(`p`,null,`💿 Hey developer 👋`),f.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,f.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,f.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),f.createElement(f.Fragment,null,f.createElement(`h2`,null,`Unexpected Application Error!`),f.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?f.createElement(`pre`,{style:i},n):null,o)}var Ze=f.createElement(Xe,null),Qe=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Be(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:f.createElement(Fe.Provider,{value:this.props.routeContext},f.createElement(W.Provider,{value:e,children:this.props.component}));return this.context?f.createElement(et,{error:e},t):t}};Qe.contextType=ke;var $e=new WeakMap;function et({children:e,error:t}){let{basename:n}=f.useContext(Ne);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=ze(t.digest);if(e){let r=$e.get(t);if(r)throw r;let i=we(e.location,n);if(Ce&&!$e.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw $e.set(t,n),n}return f.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function tt({routeContext:e,match:t,children:n}){let r=f.useContext(De);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(Fe.Provider,{value:e},n)}function nt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);x(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Se(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,p=null,m=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,p=n.route.errorElement||Ze,o&&(s<0&&c===0?(mt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,m=null):s===c&&(d=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=u?p:d?m:n.route.Component?f.createElement(n.route.Component,null):n.route.element?n.route.element:e,f.createElement(tt,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?f.createElement(Qe,{location:r.location,revalidation:r.revalidation,component:p,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:l}):g()},null)}function rt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function it(e){let t=f.useContext(De);return x(t,rt(e)),t}function at(e){let t=f.useContext(Oe);return x(t,rt(e)),t}function ot(e){let t=f.useContext(Fe);return x(t,rt(e)),t}function st(e){let t=ot(e),n=t.matches[t.matches.length-1];return x(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ct(){return st(`useRouteId`)}function lt(){return at(`useNavigation`).navigation}function ut(){let{matches:e,loaderData:t}=at(`useMatches`);return f.useMemo(()=>e.map(e=>M(e,t)),[e,t])}function dt(){let e=f.useContext(W),t=at(`useRouteError`),n=st(`useRouteError`);return e===void 0?t.errors?.[n]:e}function ft(){let{router:e}=it(`useNavigate`),t=st(`useNavigate`),n=f.useRef(!1);return We(()=>{n.current=!0}),f.useCallback(async(r,i={})=>{S(n.current,Ue),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var pt={};function mt(e,t,n){!t&&!pt[e]&&(pt[e]=!0,S(!1,n))}f.useOptimistic,f.memo(ht);function ht({routes:e,future:t,state:n,isStatic:r,onError:i}){return Ye(e,void 0,{state:n,isStatic:r,onError:i,future:t})}function gt({to:e,replace:t,state:n,relative:r}){x(Ve(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=f.useContext(Ne);S(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=f.useContext(Fe),{pathname:o}=He(),s=Ge(),c=pe(e,fe(a),o,r===`path`),l=JSON.stringify(c);return f.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function _t(e){x(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function vt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,unstable_useTransitions:o}){x(!Ve(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=f.useMemo(()=>({basename:s,navigator:i,static:a,unstable_useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=D(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:p=null,key:m=`default`,unstable_mask:h}=n,g=f.useMemo(()=>{let e=se(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:p,key:m,unstable_mask:h},navigationType:r}},[s,l,u,d,p,m,r,h]);return S(g!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:f.createElement(Ne.Provider,{value:c},f.createElement(Pe.Provider,{children:t,value:g}))}function yt({children:e,location:t}){return Je(bt(e),t)}f.Component;function bt(e,t=[]){let n=[];return f.Children.forEach(e,(e,r)=>{if(!f.isValidElement(e))return;let i=[...t,r];if(e.type===f.Fragment){n.push.apply(n,bt(e.props.children,i));return}x(e.type===_t,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),x(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=bt(e.props.children,i)),n.push(a)}),n}var xt=`get`,St=`application/x-www-form-urlencoded`;function Ct(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function wt(e){return Ct(e)&&e.tagName.toLowerCase()===`button`}function Tt(e){return Ct(e)&&e.tagName.toLowerCase()===`form`}function Et(e){return Ct(e)&&e.tagName.toLowerCase()===`input`}function Dt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function K(e,t){return e.button===0&&(!t||t===`_self`)&&!Dt(e)}var Ot=null;function kt(){if(Ot===null)try{new FormData(document.createElement(`form`),0),Ot=!1}catch{Ot=!0}return Ot}var At=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function jt(e){return e!=null&&!At.has(e)?(S(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${St}"`),null):e}function Mt(e,t){let n,r,i,a,o;if(Tt(e)){let o=e.getAttribute(`action`);r=o?se(o,t):null,n=e.getAttribute(`method`)||xt,i=jt(e.getAttribute(`enctype`))||St,a=new FormData(e)}else if(wt(e)||Et(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?se(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||xt,i=jt(e.getAttribute(`formenctype`))||jt(o.getAttribute(`enctype`))||St,a=new FormData(o,e),!kt()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Ct(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=xt,r=null,i=St,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Nt={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Pt=/[&><\u2028\u2029]/g;function Ft(e){return e.replace(Pt,e=>Nt[e])}function It(e,t){if(e===!1||e==null)throw Error(t)}function Lt(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&se(i.pathname,t)===`/`?i.pathname=`${ge(t)}/_root.${r}`:i.pathname=`${ge(i.pathname)}.${r}`,i}async function Rt(e,t){if(e.id in t)return t[e.id];try{let n=await _(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function zt(e){return e!=null&&typeof e.page==`string`}function Bt(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Vt(e,t,n){return Kt((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Rt(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Bt).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Ht(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Ut(e,t,{includeHydrateFallback:n}={}){return Wt(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Wt(e){return[...new Set(e)]}function Gt(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Kt(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!zt(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Gt(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function qt(){let e=f.useContext(De);return It(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Jt(){let e=f.useContext(Oe);return It(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Yt=f.createContext(void 0);Yt.displayName=`FrameworkContext`;function Xt(){let e=f.useContext(Yt);return It(e,`You must render this element inside a <HydratedRouter> element`),e}function Zt(e,t){let n=f.useContext(Yt),[r,i]=f.useState(!1),[a,o]=f.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,p=f.useRef(null);f.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),f.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e===`intent`?[a,p,{onFocus:Qt(s,m),onBlur:Qt(c,h),onMouseEnter:Qt(l,m),onMouseLeave:Qt(u,h),onTouchStart:Qt(d,m)}]:[a,p,{}]:[!1,p,{}]}function Qt(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function $t({page:e,...t}){let n=Ae(),{router:r}=qt(),i=f.useMemo(()=>A(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?f.createElement(tn,{page:e,matches:i,...t}):f.createElement(nn,{page:e,matches:i,...t}):null}function en(e){let{manifest:t,routeModules:n}=Xt(),[r,i]=f.useState([]);return f.useEffect(()=>{let r=!1;return Vt(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function tn({page:e,matches:t,...n}){let r=He(),{future:i}=Xt(),{basename:a}=qt(),o=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Lt(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return f.createElement(f.Fragment,null,o.map(e=>f.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function nn({page:e,matches:t,...n}){let r=He(),{future:i,manifest:a,routeModules:o}=Xt(),{basename:s}=qt(),{loaderData:c,matches:l}=Jt(),u=f.useMemo(()=>Ht(e,t,l,a,r,`data`),[e,t,l,a,r]),d=f.useMemo(()=>Ht(e,t,l,a,r,`assets`),[e,t,l,a,r]),p=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Lt(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),m=f.useMemo(()=>Ut(d,a),[d,a]),h=en(d);return f.createElement(f.Fragment,null,p.map(e=>f.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),m.map(e=>f.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),h.map(({key:e,link:t})=>f.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function rn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}f.Component;var an=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{an&&(window.__reactRouterVersion=`7.14.1`)}catch{}function on({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=f.useRef();i.current??=b({window:r,v5Compat:!0});let a=i.current,[o,s]=f.useState({action:a.action,location:a.location}),c=f.useCallback(e=>{n===!1?s(e):f.startTransition(()=>s(e))},[n]);return f.useLayoutEffect(()=>a.listen(c),[a,c]),f.createElement(vt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,unstable_useTransitions:n})}function sn({basename:e,children:t,history:n,unstable_useTransitions:r}){let[i,a]=f.useState({action:n.action,location:n.location}),o=f.useCallback(e=>{r===!1?a(e):f.startTransition(()=>a(e))},[r]);return f.useLayoutEffect(()=>n.listen(o),[n,o]),f.createElement(vt,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,unstable_useTransitions:r})}sn.displayName=`unstable_HistoryRouter`;var cn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ln=f.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,unstable_mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:_,unstable_useTransitions:v}=f.useContext(Ne),y=typeof l==`string`&&cn.test(l),b=we(l,g);l=b.to;let x=G(l,{relative:r}),S=He(),C=null;if(o){let e=pe(o,[],S.unstable_mask?S.unstable_mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:he([g,e.pathname])),C=_.createHref(e)}let[w,T,E]=Zt(n,m),D=gn(l,{replace:a,unstable_mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:v});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(b.isExternal||i),A=f.createElement(`a`,{...m,...E,href:(k?C:void 0)||b.absoluteURL||x,onClick:k?O:e,ref:rn(h,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?f.createElement(f.Fragment,null,A,f.createElement($t,{page:x})):A});ln.displayName=`Link`;var un=f.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=qe(a,{relative:c.relative}),d=He(),p=f.useContext(Oe),{navigator:m,basename:h}=f.useContext(Ne),g=p!=null&&En(u)&&o===!0,_=m.encodeLocation?m.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=se(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return f.createElement(ln,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});un.displayName=`NavLink`;var dn=f.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=xt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:p,...m},h)=>{let{unstable_useTransitions:g}=f.useContext(Ne),_=yn(),v=bn(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&cn.test(s);return f.createElement(`form`,{ref:h,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,m=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:p});g&&n!==!1?f.startTransition(()=>m()):m()},...m,"data-discover":!b&&e===`render`?`true`:void 0})});dn.displayName=`Form`;function fn({getKey:e,storageKey:t,...n}){let r=f.useContext(Yt),{basename:i}=f.useContext(Ne),a=He(),o=ut();wn({getKey:e,storageKey:t});let s=f.useMemo(()=>{if(!r||!e)return null;let t=Cn(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return f.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Ft(JSON.stringify(t||xn))}, ${Ft(JSON.stringify(s))})`}})}fn.displayName=`ScrollRestoration`;function pn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mn(e){let t=f.useContext(De);return x(t,pn(e)),t}function hn(e){let t=f.useContext(Oe);return x(t,pn(e)),t}function gn(e,{target:t,replace:n,unstable_mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:c,unstable_useTransitions:l}={}){let u=Ge(),d=He(),p=qe(e,{relative:o});return f.useCallback(m=>{if(K(m,t)){m.preventDefault();let t=n===void 0?E(d)===E(p):n,h=()=>u(e,{replace:t,unstable_mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:c});l?f.startTransition(()=>h()):h()}},[d,u,p,n,r,i,t,e,a,o,s,c,l])}var _n=0,vn=()=>`__${String(++_n)}__`;function yn(){let{router:e}=mn(`useSubmit`),{basename:t}=f.useContext(Ne),n=ct(),r=e.fetch,i=e.navigate;return f.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Mt(e,t);a.navigate===!1?await r(a.fetcherKey||vn(),n,a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function bn(e,{relative:t}={}){let{basename:n}=f.useContext(Ne),r=f.useContext(Fe);x(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...qe(e||`.`,{relative:t})},o=He();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:he([n,a.pathname])),E(a)}var xn=`react-router-scroll-positions`,Sn={};function Cn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:se(e.pathname,n)||e.pathname},t)),i??=e.key,i}function wn({getKey:e,storageKey:t}={}){let{router:n}=mn(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=hn(`useScrollRestoration`),{basename:a}=f.useContext(Ne),o=He(),s=ut(),c=lt();f.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Tn(f.useCallback(()=>{if(c.state===`idle`){let t=Cn(o,s,a,e);Sn[t]=window.scrollY}try{sessionStorage.setItem(t||xn,JSON.stringify(Sn))}catch(e){S(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(f.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||xn);e&&(Sn=JSON.parse(e))}catch{}},[t]),f.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Sn,()=>window.scrollY,e?(t,n)=>Cn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),f.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{S(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Tn(e,t){let{capture:n}=t||{};f.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function En(e,{relative:t}={}){let n=f.useContext(U);x(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=mn(`useViewTransitionState`),i=qe(e,{relative:t});if(!n.isTransitioning)return!1;let a=se(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=se(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ie(i.pathname,o)!=null||ie(i.pathname,a)!=null}var Dn=n((e=>{var t=Symbol.for(`react.transitional.element`);function n(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.jsx=n,e.jsxs=n})),q=n(((e,t)=>{t.exports=Dn()}))();function On(){let e=Ge(),[t,n]=(0,f.useState)(``),[r,i]=(0,f.useState)(``);return(0,q.jsx)(`div`,{className:`flex min-h-screen items-center justify-center p-4`,children:(0,q.jsxs)(`div`,{className:`grid w-full max-w-5xl overflow-hidden rounded-[32px] bg-white shadow-2xl lg:grid-cols-2`,children:[(0,q.jsxs)(`div`,{className:`bg-slate-900 p-8 text-white md:p-12`,children:[(0,q.jsx)(`p`,{className:`text-sm uppercase tracking-[0.35em] text-cyan-300`,children:`EPMS`}),(0,q.jsx)(`h1`,{className:`mt-4 text-4xl font-bold leading-tight`,children:`Employee Payroll Management System`}),(0,q.jsx)(`p`,{className:`mt-4 text-slate-300`,children:`Simple login, clean pages, and easy record saving for beginners.`}),(0,q.jsxs)(`div`,{className:`mt-8 rounded-3xl bg-white/10 p-5`,children:[(0,q.jsx)(`p`,{className:`text-sm text-slate-200`,children:`Use these demo login details:`}),(0,q.jsx)(`p`,{className:`mt-3 font-semibold`,children:`Username: admin`}),(0,q.jsx)(`p`,{className:`font-semibold`,children:`Password: 123`})]})]}),(0,q.jsx)(`div`,{className:`p-8 md:p-12`,children:(0,q.jsxs)(`form`,{onSubmit:n=>{n.preventDefault(),t===`admin`&&r===`123`?(localStorage.setItem(`user`,`logged`),e(`/dashboard`)):alert(`Wrong login`)},className:`mx-auto max-w-md`,children:[(0,q.jsx)(`h2`,{className:`text-3xl font-bold text-slate-900`,children:`Login`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-slate-500`,children:`Enter your username and password to continue.`}),(0,q.jsxs)(`div`,{className:`mt-8 space-y-4`,children:[(0,q.jsx)(`input`,{placeholder:`Username`,onChange:e=>n(e.target.value),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`}),(0,q.jsx)(`input`,{type:`password`,placeholder:`Password`,onChange:e=>i(e.target.value),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`})]}),(0,q.jsx)(`button`,{className:`mt-6 w-full rounded-2xl bg-cyan-500 p-3 font-semibold text-white hover:bg-cyan-600`,children:`Login`})]})})]})})}function kn(){let e=Ge();return(0,q.jsx)(`div`,{className:`min-h-screen p-4 md:p-8`,children:(0,q.jsxs)(`div`,{className:`mx-auto max-w-6xl`,children:[(0,q.jsx)(`div`,{className:`rounded-[32px] bg-slate-900 p-6 text-white shadow-2xl md:p-8`,children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-center md:justify-between`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`p`,{className:`text-sm uppercase tracking-[0.35em] text-cyan-300`,children:`Welcome`}),(0,q.jsx)(`h1`,{className:`mt-3 text-4xl font-bold`,children:`Dashboard`}),(0,q.jsx)(`p`,{className:`mt-3 max-w-2xl text-slate-300`,children:`Manage employees, departments, and salaries from one clean place.`})]}),(0,q.jsx)(`button`,{onClick:()=>{localStorage.removeItem(`user`),e(`/`)},className:`rounded-2xl bg-rose-500 px-5 py-3 font-semibold text-white hover:bg-rose-600`,children:`Logout`})]})}),(0,q.jsxs)(`div`,{className:`mt-8 grid gap-6 md:grid-cols-3`,children:[(0,q.jsxs)(ln,{to:`/employee`,className:`rounded-[28px] bg-white p-6 shadow-xl ring-1 ring-slate-200 transition hover:-translate-y-1`,children:[(0,q.jsx)(`p`,{className:`text-sm font-semibold uppercase tracking-[0.25em] text-cyan-600`,children:`01`}),(0,q.jsx)(`h2`,{className:`mt-4 text-2xl font-bold text-slate-900`,children:`Employee`}),(0,q.jsx)(`p`,{className:`mt-3 text-sm text-slate-500`,children:`Add staff details and manage employee records.`})]}),(0,q.jsxs)(ln,{to:`/department`,className:`rounded-[28px] bg-white p-6 shadow-xl ring-1 ring-slate-200 transition hover:-translate-y-1`,children:[(0,q.jsx)(`p`,{className:`text-sm font-semibold uppercase tracking-[0.25em] text-emerald-600`,children:`02`}),(0,q.jsx)(`h2`,{className:`mt-4 text-2xl font-bold text-slate-900`,children:`Department`}),(0,q.jsx)(`p`,{className:`mt-3 text-sm text-slate-500`,children:`Save department codes, names, and base salaries.`})]}),(0,q.jsxs)(ln,{to:`/salary`,className:`rounded-[28px] bg-white p-6 shadow-xl ring-1 ring-slate-200 transition hover:-translate-y-1`,children:[(0,q.jsx)(`p`,{className:`text-sm font-semibold uppercase tracking-[0.25em] text-violet-600`,children:`03`}),(0,q.jsx)(`h2`,{className:`mt-4 text-2xl font-bold text-slate-900`,children:`Salary`}),(0,q.jsx)(`p`,{className:`mt-3 text-sm text-slate-500`,children:`Create salary reports and export payroll PDF.`})]})]})]})})}function An(e,t){return function(){return e.apply(t,arguments)}}var{toString:jn}=Object.prototype,{getPrototypeOf:Mn}=Object,{iterator:Nn,toStringTag:Pn}=Symbol,Fn=(e=>t=>{let n=jn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),In=e=>(e=e.toLowerCase(),t=>Fn(t)===e),Ln=e=>t=>typeof t===e,{isArray:Rn}=Array,zn=Ln(`undefined`);function Bn(e){return e!==null&&!zn(e)&&e.constructor!==null&&!zn(e.constructor)&&Wn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Vn=In(`ArrayBuffer`);function Hn(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Vn(e.buffer),t}var Un=Ln(`string`),Wn=Ln(`function`),Gn=Ln(`number`),Kn=e=>typeof e==`object`&&!!e,qn=e=>e===!0||e===!1,Jn=e=>{if(Fn(e)!==`object`)return!1;let t=Mn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pn in e)&&!(Nn in e)},Yn=e=>{if(!Kn(e)||Bn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Xn=In(`Date`),Zn=In(`File`),Qn=e=>!!(e&&e.uri!==void 0),$n=e=>e&&e.getParts!==void 0,er=In(`Blob`),tr=In(`FileList`),nr=e=>Kn(e)&&Wn(e.pipe);function rr(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var ir=rr(),ar=ir.FormData===void 0?void 0:ir.FormData,or=e=>{let t;return e&&(ar&&e instanceof ar||Wn(e.append)&&((t=Fn(e))===`formdata`||t===`object`&&Wn(e.toString)&&e.toString()===`[object FormData]`))},sr=In(`URLSearchParams`),[cr,lr,ur,dr]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(In),fr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function pr(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Rn(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Bn(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function mr(e,t){if(Bn(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var hr=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,gr=e=>!zn(e)&&e!==hr;function _r(){let{caseless:e,skipUndefined:t}=gr(this)&&this||{},n={},r=(r,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=e&&mr(n,i)||i;Jn(n[a])&&Jn(r)?n[a]=_r(n[a],r):Jn(r)?n[a]=_r({},r):Rn(r)?n[a]=r.slice():(!t||!zn(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&pr(arguments[e],r);return n}var vr=(e,t,n,{allOwnKeys:r}={})=>(pr(t,(t,r)=>{n&&Wn(t)?Object.defineProperty(e,r,{value:An(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),yr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),br=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},xr=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Mn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Sr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Cr=e=>{if(!e)return null;if(Rn(e))return e;let t=e.length;if(!Gn(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},wr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Mn(Uint8Array)),Tr=(e,t)=>{let n=(e&&e[Nn]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Er=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Dr=In(`HTMLFormElement`),Or=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),kr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ar=In(`RegExp`),jr=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};pr(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Mr=e=>{jr(e,(t,n)=>{if(Wn(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(Wn(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Nr=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Rn(e)?r(e):r(String(e).split(t)),n},Pr=()=>{},Fr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ir(e){return!!(e&&Wn(e.append)&&e[Pn]===`FormData`&&e[Nn])}var Lr=e=>{let t=Array(10),n=(e,r)=>{if(Kn(e)){if(t.indexOf(e)>=0)return;if(Bn(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=Rn(e)?[]:{};return pr(e,(e,t)=>{let a=n(e,r+1);!zn(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},Rr=In(`AsyncFunction`),zr=e=>e&&(Kn(e)||Wn(e))&&Wn(e.then)&&Wn(e.catch),Br=((e,t)=>e?setImmediate:t?((e,t)=>(hr.addEventListener(`message`,({source:n,data:r})=>{n===hr&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),hr.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,Wn(hr.postMessage)),J={isArray:Rn,isArrayBuffer:Vn,isBuffer:Bn,isFormData:or,isArrayBufferView:Hn,isString:Un,isNumber:Gn,isBoolean:qn,isObject:Kn,isPlainObject:Jn,isEmptyObject:Yn,isReadableStream:cr,isRequest:lr,isResponse:ur,isHeaders:dr,isUndefined:zn,isDate:Xn,isFile:Zn,isReactNativeBlob:Qn,isReactNative:$n,isBlob:er,isRegExp:Ar,isFunction:Wn,isStream:nr,isURLSearchParams:sr,isTypedArray:wr,isFileList:tr,forEach:pr,merge:_r,extend:vr,trim:fr,stripBOM:yr,inherits:br,toFlatObject:xr,kindOf:Fn,kindOfTest:In,endsWith:Sr,toArray:Cr,forEachEntry:Tr,matchAll:Er,isHTMLForm:Dr,hasOwnProperty:kr,hasOwnProp:kr,reduceDescriptors:jr,freezeMethods:Mr,toObjectSet:Nr,toCamelCase:Or,noop:Pr,toFiniteNumber:Fr,findKey:mr,global:hr,isContextDefined:gr,isSpecCompliantForm:Ir,toJSONObject:Lr,isAsyncFn:Rr,isThenable:zr,setImmediate:Br,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(hr):typeof process<`u`&&process.nextTick||Br,isIterable:e=>e!=null&&Wn(e[Nn])},Y=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}};Y.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,Y.ERR_BAD_OPTION=`ERR_BAD_OPTION`,Y.ECONNABORTED=`ECONNABORTED`,Y.ETIMEDOUT=`ETIMEDOUT`,Y.ERR_NETWORK=`ERR_NETWORK`,Y.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,Y.ERR_DEPRECATED=`ERR_DEPRECATED`,Y.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,Y.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,Y.ERR_CANCELED=`ERR_CANCELED`,Y.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,Y.ERR_INVALID_URL=`ERR_INVALID_URL`;function Vr(e){return J.isPlainObject(e)||J.isArray(e)}function Hr(e){return J.endsWith(e,`[]`)?e.slice(0,-2):e}function Ur(e,t,n){return e?e.concat(t).map(function(e,t){return e=Hr(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Wr(e){return J.isArray(e)&&!e.some(Vr)}var Gr=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});function Kr(e,t,n){if(!J.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!J.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(J.isDate(e))return e.toISOString();if(J.isBoolean(e))return e.toString();if(!s&&J.isBlob(e))throw new Y(`Blob is not supported. Use a Buffer instead.`);return J.isArrayBuffer(e)||J.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(J.isReactNative(t)&&J.isReactNativeBlob(e))return t.append(Ur(i,n,a),c(e)),!1;if(e&&!i&&typeof e==`object`){if(J.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&Wr(e)||(J.isFileList(e)||J.endsWith(n,`[]`))&&(s=J.toArray(e)))return n=Hr(n),s.forEach(function(e,r){!(J.isUndefined(e)||e===null)&&t.append(o===!0?Ur([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return Vr(e)?!0:(t.append(Ur(i,n,a),c(e)),!1)}let u=[],d=Object.assign(Gr,{defaultVisitor:l,convertValue:c,isVisitable:Vr});function f(e,n){if(!J.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),J.forEach(e,function(e,r){(!(J.isUndefined(e)||e===null)&&i.call(t,e,J.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!J.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function qr(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Jr(e,t){this._pairs=[],e&&Kr(e,this,t)}var Yr=Jr.prototype;Yr.append=function(e,t){this._pairs.push([e,t])},Yr.toString=function(e){let t=e?function(t){return e.call(this,t,qr)}:qr;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Xr(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Zr(e,t,n){if(!t)return e;let r=n&&n.encode||Xr,i=J.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):J.isURLSearchParams(t)?t.toString():new Jr(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Qr=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){J.forEach(this.handlers,function(t){t!==null&&e(t)})}},$r={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ei={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Jr,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},ti=e({hasBrowserEnv:()=>ni,hasStandardBrowserEnv:()=>ii,hasStandardBrowserWebWorkerEnv:()=>ai,navigator:()=>ri,origin:()=>oi}),ni=typeof window<`u`&&typeof document<`u`,ri=typeof navigator==`object`&&navigator||void 0,ii=ni&&(!ri||[`ReactNative`,`NativeScript`,`NS`].indexOf(ri.product)<0),ai=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,oi=ni&&window.location.href||`http://localhost`,si={...ti,...ei};function ci(e,t){return Kr(e,new si.classes.URLSearchParams,{visitor:function(e,t,n,r){return si.isNode&&J.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function li(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function ui(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function di(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&J.isArray(r)?r.length:a,s?(J.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!J.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&J.isArray(r[a])&&(r[a]=ui(r[a])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){let n={};return J.forEachEntry(e,(e,r)=>{t(li(e),r,n,0)}),n}return null}function fi(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var pi={transitional:$r,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=J.isObject(e);if(i&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return r?JSON.stringify(di(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return ci(e,this.formSerializer).toString();if((a=J.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return Kr(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),fi(e)):e}],transformResponse:[function(e){let t=this.transitional||pi.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?Y.from(e,Y.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:si.classes.FormData,Blob:si.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};J.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{pi.headers[e]={}});var mi=J.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),hi=e=>{let t={},n,r,i;return e&&e.split(`
|
|
13
|
+
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&mi[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},gi=Symbol(`internals`),_i=e=>!/[\r\n]/.test(e);function vi(e,t){if(!(e===!1||e==null)){if(J.isArray(e)){e.forEach(e=>vi(e,t));return}if(!_i(String(e)))throw Error(`Invalid character in header content ["${t}"]`)}}function yi(e){return e&&String(e).trim().toLowerCase()}function bi(e){let t=e.length;for(;t>0;){let n=e.charCodeAt(t-1);if(n!==10&&n!==13)break;--t}return t===e.length?e:e.slice(0,t)}function xi(e){return e===!1||e==null?e:J.isArray(e)?e.map(xi):bi(String(e))}function Si(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Ci=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wi(e,t,n,r,i){if(J.isFunction(r))return r.call(this,t,n);if(i&&(t=n),J.isString(t)){if(J.isString(r))return t.indexOf(r)!==-1;if(J.isRegExp(r))return r.test(t)}}function Ti(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Ei(e,t){let n=J.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var Di=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=yi(t);if(!i)throw Error(`header name must be a non-empty string`);let a=J.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(vi(e,t),r[a||t]=xi(e))}let a=(e,t)=>J.forEach(e,(e,n)=>i(e,n,t));if(J.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(J.isString(e)&&(e=e.trim())&&!Ci(e))a(hi(e),t);else if(J.isObject(e)&&J.isIterable(e)){let n={},r,i;for(let t of e){if(!J.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?J.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=yi(e),e){let n=J.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Si(e);if(J.isFunction(t))return t.call(this,e,n);if(J.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=yi(e),e){let n=J.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||wi(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=yi(e),e){let i=J.findKey(n,e);i&&(!t||wi(n,n[i],i,t))&&(delete n[i],r=!0)}}return J.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||wi(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return J.forEach(this,(r,i)=>{let a=J.findKey(n,i);if(a){t[a]=xi(r),delete t[i];return}let o=e?Ti(i):String(i).trim();o!==i&&delete t[i],t[o]=xi(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return J.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&J.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
|
14
|
+
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[gi]=this[gi]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=yi(e);t[r]||(Ei(n,e),t[r]=!0)}return J.isArray(e)?e.forEach(r):r(e),this}};Di.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),J.reduceDescriptors(Di.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),J.freezeMethods(Di);function Oi(e,t){let n=this||pi,r=t||n,i=Di.from(r.headers),a=r.data;return J.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function ki(e){return!!(e&&e.__CANCEL__)}var Ai=class extends Y{constructor(e,t,n){super(e??`canceled`,Y.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function ji(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Y(`Request failed with status code `+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Mi(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function Ni(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Pi(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Fi=(e,t,n=3)=>{let r=0,i=Ni(50,250);return Pi(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Ii=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Li=e=>(...t)=>J.asap(()=>e(...t)),Ri=si.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,si.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(si.origin),si.navigator&&/(msie|trident)/i.test(si.navigator.userAgent)):()=>!0,zi=si.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];J.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),J.isString(r)&&s.push(`path=${r}`),J.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),J.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Bi(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Vi(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function Hi(e,t,n){let r=!Bi(t);return e&&(r||n==0)?Vi(e,t):t}var Ui=e=>e instanceof Di?{...e}:e;function Wi(e,t){t||={};let n={};function r(e,t,n,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function i(e,t,n,i){if(!J.isUndefined(t))return r(e,t,n,i);if(!J.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!J.isUndefined(t))return r(void 0,t)}function o(e,t){if(!J.isUndefined(t))return r(void 0,t);if(!J.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Ui(e),Ui(t),n,!0)};return J.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=J.hasOwnProp(c,r)?c[r]:i,o=a(e[r],t[r],r);J.isUndefined(o)&&a!==s||(n[r]=o)}),n}var Gi=e=>{let t=Wi({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=Di.from(o),t.url=Zr(Hi(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),J.isFormData(n)){if(si.hasStandardBrowserEnv||si.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(J.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(si.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(t)),r||r!==!1&&Ri(t.url))){let e=i&&a&&zi.read(a);e&&o.set(i,e)}return t},Ki=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Gi(e),i=r.data,a=Di.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=Di.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());ji(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new Y(`Request aborted`,Y.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new Y(t&&t.message?t.message:`Network Error`,Y.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||$r;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Y(t,i.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&J.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),J.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Fi(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Fi(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Ai(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Mi(r.url);if(_&&si.protocols.indexOf(_)===-1){n(new Y(`Unsupported protocol `+_+`:`,Y.ERR_BAD_REQUEST,e));return}h.send(i||null)})},qi=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof Y?t:new Ai(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new Y(`timeout of ${t}ms exceeded`,Y.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>J.asap(o),s}},Ji=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Yi=async function*(e,t){for await(let n of Xi(e))yield*Ji(n,t)},Xi=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Zi=(e,t,n,r)=>{let i=Yi(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Qi=64*1024,{isFunction:$i}=J,ea=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:ta,TextEncoder:na}=J.global,ra=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ia=e=>{e=J.merge.call({skipUndefined:!0},ea,e);let{fetch:t,Request:n,Response:r}=e,i=t?$i(t):typeof fetch==`function`,a=$i(n),o=$i(r);if(!i)return!1;let s=i&&$i(ta),c=i&&(typeof na==`function`?(e=>t=>e.encode(t))(new na):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&ra(()=>{let e=!1,t=new ta,r=new n(si.origin,{body:t,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return t.cancel(),e&&!r}),u=o&&s&&ra(()=>J.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new n(si.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(J.isArrayBufferView(e)||J.isArrayBuffer(e))return e.byteLength;if(J.isURLSearchParams(e)&&(e+=``),J.isString(e))return(await c(e)).byteLength},p=async(e,t)=>J.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:b}=Gi(e),x=t||fetch;_=_?(_+``).toLowerCase():`text`;let S=qi([c,f&&f.toAbortSignal()],m),C=null,w=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),T;try{if(g&&l&&o!==`get`&&o!==`head`&&(T=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(J.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=Ii(T,Fi(Li(g)));s=Zi(e.body,Qi,t,n)}}J.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...b,signal:S,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};C=a&&new n(i,c);let f=await(a?x(C,b):x(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&w)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=J.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&Ii(t,Fi(Li(h),!0))||[];f=new r(Zi(f.body,Qi,n,()=>{i&&i(),w&&w()}),e)}_||=`text`;let E=await d[J.findKey(d,_)||`text`](f,e);return!m&&w&&w(),await new Promise((t,n)=>{ji(t,n,{data:E,headers:Di.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:C})})}catch(t){throw w&&w(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new Y(`Network Error`,Y.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t}):Y.from(t,t&&t.code,e,C,t&&t.response)}}},aa=new Map,oa=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=aa;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:ia(t)),l=c;return c};oa();var sa={http:null,xhr:Ki,fetch:{get:oa}};J.forEach(sa,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var ca=e=>`- ${e}`,la=e=>J.isFunction(e)||e===null||e===!1;function ua(e,t){e=J.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!la(r)&&(i=sa[(n=String(r)).toLowerCase()],i===void 0))throw new Y(`Unknown adapter '${n}'`);if(i&&(J.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new Y(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
15
|
+
`+e.map(ca).join(`
|
|
16
|
+
`):` `+ca(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var da={getAdapter:ua,adapters:sa};function fa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ai(null,e)}function pa(e){return fa(e),e.headers=Di.from(e.headers),e.data=Oi.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),da.getAdapter(e.adapter||pi.adapter,e)(e).then(function(t){return fa(e),t.data=Oi.call(e,e.transformResponse,t),t.headers=Di.from(t.headers),t},function(t){return ki(t)||(fa(e),t&&t.response&&(t.response.data=Oi.call(e,e.transformResponse,t.response),t.response.headers=Di.from(t.response.headers))),Promise.reject(t)})}var ma=`1.15.0`,ha={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{ha[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var ga={};ha.transitional=function(e,t,n){function r(e,t){return`[Axios v`+ma+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new Y(r(i,` has been removed`+(t?` in `+t:``)),Y.ERR_DEPRECATED);return t&&!ga[i]&&(ga[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},ha.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function _a(e,t,n){if(typeof e!=`object`)throw new Y(`options must be an object`,Y.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new Y(`option `+a+` must be `+n,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y(`Unknown option `+a,Y.ERR_BAD_OPTION)}}var va={assertOptions:_a,validators:ha},ya=va.validators,ba=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Qr,response:new Qr}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
|
|
17
|
+
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
|
|
18
|
+
`),r=t===-1?-1:n.indexOf(`
|
|
19
|
+
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
20
|
+
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=Wi(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&va.assertOptions(n,{silentJSONParsing:ya.transitional(ya.boolean),forcedJSONParsing:ya.transitional(ya.boolean),clarifyTimeoutError:ya.transitional(ya.boolean),legacyInterceptorReqResOrdering:ya.transitional(ya.boolean)},!1),r!=null&&(J.isFunction(r)?t.paramsSerializer={serialize:r}:va.assertOptions(r,{encode:ya.function,serialize:ya.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),va.assertOptions(t,{baseUrl:ya.spelling(`baseURL`),withXsrfToken:ya.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&J.merge(i.common,i[t.method]);i&&J.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=Di.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||$r;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[pa.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=pa.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=Wi(this.defaults,e),Zr(Hi(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};J.forEach([`delete`,`get`,`head`,`options`],function(e){ba.prototype[e]=function(t,n){return this.request(Wi(n||{},{method:e,url:t,data:(n||{}).data}))}}),J.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(Wi(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}ba.prototype[e]=t(),ba.prototype[e+`Form`]=t(!0)});var xa=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Ai(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Sa(e){return function(t){return e.apply(null,t)}}function Ca(e){return J.isObject(e)&&e.isAxiosError===!0}var wa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(wa).forEach(([e,t])=>{wa[t]=e});function Ta(e){let t=new ba(e),n=An(ba.prototype.request,t);return J.extend(n,ba.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Ta(Wi(e,t))},n}var Ea=Ta(pi);Ea.Axios=ba,Ea.CanceledError=Ai,Ea.CancelToken=xa,Ea.isCancel=ki,Ea.VERSION=ma,Ea.toFormData=Kr,Ea.AxiosError=Y,Ea.Cancel=Ea.CanceledError,Ea.all=function(e){return Promise.all(e)},Ea.spread=Sa,Ea.isAxiosError=Ca,Ea.mergeConfig=Wi,Ea.AxiosHeaders=Di,Ea.formToJSON=e=>di(J.isHTMLForm(e)?new FormData(e):e),Ea.getAdapter=da.getAdapter,Ea.HttpStatusCode=wa,Ea.default=Ea;function Da(){let[e,t]=(0,f.useState)({employeeNumber:``,firstName:``,lastName:``,position:``,departmentCode:``,hiredDate:``});return(0,q.jsx)(`div`,{className:`min-h-screen p-4 md:p-8`,children:(0,q.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,q.jsxs)(`div`,{className:`mb-6 flex flex-col gap-4 rounded-3xl bg-cyan-600 p-6 text-white shadow-2xl md:flex-row md:items-center md:justify-between`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`p`,{className:`text-sm uppercase tracking-[0.3em] text-cyan-100`,children:`Employees`}),(0,q.jsx)(`h2`,{className:`mt-2 text-3xl font-bold`,children:`Employee Form`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-cyan-50`,children:`Insert operation only.`})]}),(0,q.jsx)(ln,{to:`/dashboard`,className:`rounded-xl bg-white/20 px-4 py-3 text-sm font-semibold hover:bg-white/30`,children:`Back`})]}),(0,q.jsxs)(`form`,{onSubmit:async n=>{n.preventDefault(),await Ea.post(`http://localhost:5000/employees`,e),t({employeeNumber:``,firstName:``,lastName:``,position:``,departmentCode:``,hiredDate:``}),alert(`Employee saved`)},className:`rounded-3xl bg-white p-6 shadow-xl ring-1 ring-slate-200`,children:[(0,q.jsx)(`h3`,{className:`text-2xl font-bold text-slate-900`,children:`Add Employee`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-slate-500`,children:`Enter employee details and click save.`}),(0,q.jsxs)(`div`,{className:`mt-6 grid gap-4 md:grid-cols-2`,children:[(0,q.jsx)(`input`,{placeholder:`Employee number`,value:e.employeeNumber,onChange:n=>t({...e,employeeNumber:n.target.value}),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`,required:!0}),(0,q.jsx)(`input`,{placeholder:`Position`,value:e.position,onChange:n=>t({...e,position:n.target.value}),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`,required:!0}),(0,q.jsx)(`input`,{placeholder:`First name`,value:e.firstName,onChange:n=>t({...e,firstName:n.target.value}),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`,required:!0}),(0,q.jsx)(`input`,{placeholder:`Last name`,value:e.lastName,onChange:n=>t({...e,lastName:n.target.value}),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`,required:!0}),(0,q.jsx)(`input`,{placeholder:`Department code`,value:e.departmentCode,onChange:n=>t({...e,departmentCode:n.target.value}),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`,required:!0}),(0,q.jsx)(`input`,{type:`date`,value:e.hiredDate,onChange:n=>t({...e,hiredDate:n.target.value}),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`,required:!0})]}),(0,q.jsx)(`button`,{className:`mt-6 w-full rounded-2xl bg-cyan-600 p-3 font-semibold text-white hover:bg-cyan-700`,children:`Save Employee`})]})]})})}function Oa(){let[e,t]=(0,f.useState)({departmentCode:``,departmentName:``,grossSalary:``});return(0,q.jsx)(`div`,{className:`min-h-screen p-4 md:p-8`,children:(0,q.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,q.jsxs)(`div`,{className:`mb-6 flex flex-col gap-4 rounded-3xl bg-emerald-600 p-6 text-white shadow-2xl md:flex-row md:items-center md:justify-between`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`p`,{className:`text-sm uppercase tracking-[0.3em] text-emerald-100`,children:`Departments`}),(0,q.jsx)(`h2`,{className:`mt-2 text-3xl font-bold`,children:`Department Form`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-emerald-50`,children:`Insert operation only.`})]}),(0,q.jsx)(ln,{to:`/dashboard`,className:`rounded-xl bg-white/20 px-4 py-3 text-sm font-semibold hover:bg-white/30`,children:`Back`})]}),(0,q.jsxs)(`form`,{onSubmit:async n=>{n.preventDefault(),await Ea.post(`http://localhost:5000/departments`,e),t({departmentCode:``,departmentName:``,grossSalary:``}),alert(`Department saved`)},className:`rounded-3xl bg-white p-6 shadow-xl ring-1 ring-slate-200`,children:[(0,q.jsx)(`h3`,{className:`text-2xl font-bold text-slate-900`,children:`Add Department`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-slate-500`,children:`Enter department details and click save.`}),(0,q.jsxs)(`div`,{className:`mt-6 space-y-4`,children:[(0,q.jsx)(`input`,{placeholder:`Department code`,value:e.departmentCode,onChange:n=>t({...e,departmentCode:n.target.value}),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-emerald-400 focus:bg-white`,required:!0}),(0,q.jsx)(`input`,{placeholder:`Department name`,value:e.departmentName,onChange:n=>t({...e,departmentName:n.target.value}),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-emerald-400 focus:bg-white`,required:!0}),(0,q.jsx)(`input`,{type:`number`,placeholder:`Gross salary`,value:e.grossSalary,onChange:n=>t({...e,grossSalary:n.target.value}),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-emerald-400 focus:bg-white`,required:!0})]}),(0,q.jsx)(`button`,{className:`mt-6 w-full rounded-2xl bg-emerald-600 p-3 font-semibold text-white hover:bg-emerald-700`,children:`Save Department`})]})]})})}var ka=Uint8Array,Aa=Uint16Array,ja=Int32Array,Ma=new ka([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]),Na=new ka([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]),Pa=new ka([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Fa=function(e,t){for(var n=new Aa(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new ja(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},Ia=Fa(Ma,2),La=Ia.b,Ra=Ia.r;La[28]=258,Ra[258]=28;var za=Fa(Na,0);za.b;for(var Ba=za.r,Va=new Aa(32768),Ha=0;Ha<32768;++Ha){var Ua=(Ha&43690)>>1|(Ha&21845)<<1;Ua=(Ua&52428)>>2|(Ua&13107)<<2,Ua=(Ua&61680)>>4|(Ua&3855)<<4,Va[Ha]=((Ua&65280)>>8|(Ua&255)<<8)>>1}for(var Wa=(function(e,t,n){for(var r=e.length,i=0,a=new Aa(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new Aa(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new Aa(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[Va[d]>>c]=l}else for(s=new Aa(r),i=0;i<r;++i)e[i]&&(s[i]=Va[o[e[i]-1]++]>>15-e[i]);return s}),Ga=new ka(288),Ha=0;Ha<144;++Ha)Ga[Ha]=8;for(var Ha=144;Ha<256;++Ha)Ga[Ha]=9;for(var Ha=256;Ha<280;++Ha)Ga[Ha]=7;for(var Ha=280;Ha<288;++Ha)Ga[Ha]=8;for(var Ka=new ka(32),Ha=0;Ha<32;++Ha)Ka[Ha]=5;var qa=Wa(Ga,9,0),Ja=Wa(Ka,5,0),Ya=function(e){return(e+7)/8|0},Xa=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new ka(e.subarray(t,n))},Za=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},Qa=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},$a=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,a=n.slice();if(!i)return{t:oo,l:0};if(i==1){var o=new ka(n[0].s+1);return o[n[0].s]=1,{t:o,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=i-1;)s=n[n[l].f<n[d].f?l++:d++],c=n[l!=u&&n[l].f<n[d].f?l++:d++],n[u++]={s:-1,f:s.f+c.f,l:s,r:c};for(var f=a[0].s,r=1;r<i;++r)a[r].s>f&&(f=a[r].s);var p=new Aa(f+1),m=eo(n[u-1],p,0);if(m>t){var r=0,h=0,g=m-t,_=1<<g;for(a.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});r<i;++r){var v=a[r].s;if(p[v]>t)h+=_-(1<<m-p[v]),p[v]=t;else break}for(h>>=g;h>0;){var y=a[r].s;p[y]<t?h-=1<<t-p[y]++-1:++r}for(;r>=0&&h;--r){var b=a[r].s;p[b]==t&&(--p[b],++h)}m=t}return{t:new ka(p),l:m}},eo=function(e,t,n){return e.s==-1?Math.max(eo(e.l,t,n+1),eo(e.r,t,n+1)):t[e.s]=n},to=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Aa(++t),r=0,i=e[0],a=1,o=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:n.subarray(0,r),n:t}},no=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},ro=function(e,t,n){var r=n.length,i=Ya(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<r;++a)e[i+a+4]=n[a];return(i+4+r)*8},io=function(e,t,n,r,i,a,o,s,c,l,u){Za(t,u++,n),++i[256];for(var d=$a(i,15),f=d.t,p=d.l,m=$a(a,15),h=m.t,g=m.l,_=to(f),v=_.c,y=_.n,b=to(h),x=b.c,S=b.n,C=new Aa(19),w=0;w<v.length;++w)++C[v[w]&31];for(var w=0;w<x.length;++w)++C[x[w]&31];for(var T=$a(C,7),E=T.t,D=T.l,O=19;O>4&&!E[Pa[O-1]];--O);var k=l+5<<3,A=no(i,Ga)+no(a,Ka)+o,j=no(i,f)+no(a,h)+o+14+3*O+no(C,E)+2*C[16]+3*C[17]+7*C[18];if(c>=0&&k<=A&&k<=j)return ro(t,u,e.subarray(c,c+l));var M,N,P,F;if(Za(t,u,1+(j<A)),u+=2,j<A){M=Wa(f,p,0),N=f,P=Wa(h,g,0),F=h;var I=Wa(E,D,0);Za(t,u,y-257),Za(t,u+5,S-1),Za(t,u+10,O-4),u+=14;for(var w=0;w<O;++w)Za(t,u+3*w,E[Pa[w]]);u+=3*O;for(var L=[v,x],ee=0;ee<2;++ee)for(var R=L[ee],w=0;w<R.length;++w){var z=R[w]&31;Za(t,u,I[z]),u+=E[z],z>15&&(Za(t,u,R[w]>>5&127),u+=R[w]>>12)}}else M=qa,N=Ga,P=Ja,F=Ka;for(var w=0;w<s;++w){var B=r[w];if(B>255){var z=B>>18&31;Qa(t,u,M[z+257]),u+=N[z+257],z>7&&(Za(t,u,B>>23&31),u+=Ma[z]);var te=B&31;Qa(t,u,P[te]),u+=F[te],te>3&&(Qa(t,u,B>>5&8191),u+=Na[te])}else Qa(t,u,M[B]),u+=N[B]}return Qa(t,u,M[256]),u+N[256]},ao=new ja([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),oo=new ka(0),so=function(e,t,n,r,i,a){var o=a.z||e.length,s=new ka(r+o+5*(1+Math.ceil(o/7e3))+i),c=s.subarray(r,s.length-i),l=a.l,u=(a.r||0)&7;if(t){u&&(c[0]=a.r>>3);for(var d=ao[t-1],f=d>>13,p=d&8191,m=(1<<n)-1,h=a.p||new Aa(32768),g=a.h||new Aa(m+1),_=Math.ceil(n/3),v=2*_,y=function(t){return(e[t]^e[t+1]<<_^e[t+2]<<v)&m},b=new ja(25e3),x=new Aa(288),S=new Aa(32),C=0,w=0,T=a.i||0,E=0,D=a.w||0,O=0;T+2<o;++T){var k=y(T),A=T&32767,j=g[k];if(h[A]=j,g[k]=A,D<=T){var M=o-T;if((C>7e3||E>24576)&&(M>423||!l)){u=io(e,c,0,b,x,S,w,E,O,T-O,u),E=C=w=0,O=T;for(var N=0;N<286;++N)x[N]=0;for(var N=0;N<30;++N)S[N]=0}var P=2,F=0,I=p,L=A-j&32767;if(M>2&&k==y(T-L))for(var ee=Math.min(f,M)-1,R=Math.min(32767,T),z=Math.min(258,M);L<=R&&--I&&A!=j;){if(e[T+P]==e[T+P-L]){for(var B=0;B<z&&e[T+B]==e[T+B-L];++B);if(B>P){if(P=B,F=L,B>ee)break;for(var te=Math.min(L,B-2),V=0,N=0;N<te;++N){var ne=T-L+N&32767,re=ne-h[ne]&32767;re>V&&(V=re,j=ne)}}}A=j,j=h[A],L+=A-j&32767}if(F){b[E++]=268435456|Ra[P]<<18|Ba[F];var ie=Ra[P]&31,ae=Ba[F]&31;w+=Ma[ie]+Na[ae],++x[257+ie],++S[ae],D=T+P,++C}else b[E++]=e[T],++x[e[T]]}}for(T=Math.max(T,D);T<o;++T)b[E++]=e[T],++x[e[T]];u=io(e,c,l,b,x,S,w,E,O,T-O,u),l||(a.r=u&7|c[u/8|0]<<3,u-=7,a.h=g,a.p=h,a.i=T,a.w=D)}else{for(var T=a.w||0;T<o+l;T+=65535){var oe=T+65535;oe>=o&&(c[u/8|0]=l,oe=o),u=ro(c,u+1,e.subarray(T,oe))}a.i=o}return Xa(s,0,r+Ya(u)+i)},co=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,a=n.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=r+=n[o];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},lo=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new ka(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return so(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)},uo=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},fo=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=co();i.p(t.dictionary),uo(e,2,i.d())}};function po(e,t){t||={};var n=co();n.p(e);var r=lo(e,t,t.dictionary?6:2,4);return fo(r,t),uo(r,r.length-4,n.d()),r}var mo=typeof TextDecoder<`u`&&new TextDecoder;try{mo.decode(oo,{stream:!0})}catch{}function ho(e){if(Array.isArray(e))return e}function go(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function _o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vo(e,t){if(e){if(typeof e==`string`)return _o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_o(e,t):void 0}}function yo(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bo(e,t){return ho(e)||go(e,t)||vo(e,t)||yo()}function xo(e,t=`utf8`){return new TextDecoder(t).decode(e)}var So=new TextEncoder;function Co(e){return So.encode(e)}var wo=1024*8,To=(()=>{let e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),Eo={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},Do=class e{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=wo,n={}){let r=!1;typeof t==`number`?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);let i=n.offset?n.offset>>>0:0,a=t.byteLength-i,o=i;(ArrayBuffer.isView(t)||t instanceof e)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+i),t=t.buffer),r?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=t,this.length=a,this.byteLength=a,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,a),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let e=this._marks.pop();if(e===void 0)throw Error(`Mark stack empty`);return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){let t=(this.offset+e)*2,n=new Uint8Array(t);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=t,this.byteLength=t,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,`uint8`)}readArray(e,t){let n=Eo[t].BYTES_PER_ELEMENT*e,r=this.byteOffset+this.offset,i=this.buffer.slice(r,r+n);if(this.littleEndian===To&&t!==`uint8`&&t!==`int8`){let e=new Uint8Array(this.buffer.slice(r,r+n));e.reverse();let i=new Eo[t](e.buffer);return this.offset+=n,i.reverse(),i}let a=new Eo[t](i);return this.offset+=n,a}readInt16(){let e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){let e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){let e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){let e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){let e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){let e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){let e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){let e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t=``;for(let n=0;n<e;n++)t+=this.readChar();return t}readUtf8(e=1){return xo(this.readBytes(e))}decodeText(e=1,t=`utf8`){return xo(this.readBytes(e),t)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let t=0;t<e.length;t++)this._data.setUint8(this.offset++,e[t]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let t=0;t<e.length;t++)this.writeUint8(e.charCodeAt(t));return this}writeUtf8(e){return this.writeBytes(Co(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}},Oo=4,ko=0,Ao=1,jo=2;function Mo(e){let t=e.length;for(;--t>=0;)e[t]=0}var No=0,Po=1,Fo=2,Io=3,Lo=258,Ro=29,zo=256,Bo=zo+1+Ro,Vo=30,Ho=19,Uo=2*Bo+1,Wo=15,Go=16,Ko=7,qo=256,Jo=16,Yo=17,Xo=18,Zo=new Uint8Array([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]),Qo=new Uint8Array([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]),$o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),es=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ts=512,ns=Array((Bo+2)*2);Mo(ns);var rs=Array(Vo*2);Mo(rs);var is=Array(ts);Mo(is);var as=Array(Lo-Io+1);Mo(as);var os=Array(Ro);Mo(os);var ss=Array(Vo);Mo(ss);function cs(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var ls,us,ds;function fs(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var ps=e=>e<256?is[e]:is[256+(e>>>7)],ms=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},hs=(e,t,n)=>{e.bi_valid>Go-n?(e.bi_buf|=t<<e.bi_valid&65535,ms(e,e.bi_buf),e.bi_buf=t>>Go-e.bi_valid,e.bi_valid+=n-Go):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},gs=(e,t,n)=>{hs(e,n[t*2],n[t*2+1])},_s=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},vs=e=>{e.bi_valid===16?(ms(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},ys=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,u,d,f,p,m,h=0;for(f=0;f<=Wo;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Uo;l++)u=e.heap[l],f=n[n[u*2+1]*2+1]+1,f>c&&(f=c,h++),n[u*2+1]=f,!(u>r)&&(e.bl_count[f]++,p=0,u>=s&&(p=o[u-s]),m=n[u*2],e.opt_len+=m*(f+p),a&&(e.static_len+=m*(i[u*2+1]+p)));if(h!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(f=c;f!==0;f--)for(u=e.bl_count[f];u!==0;)d=e.heap[--l],!(d>r)&&(n[d*2+1]!==f&&(e.opt_len+=(f-n[d*2+1])*n[d*2],n[d*2+1]=f),u--)}},bs=(e,t,n)=>{let r=Array(Wo+1),i=0,a,o;for(a=1;a<=Wo;a++)i=i+n[a-1]<<1,r[a]=i;for(o=0;o<=t;o++){let t=e[o*2+1];t!==0&&(e[o*2]=_s(r[t]++,t))}},xs=()=>{let e,t,n,r,i,a=Array(Wo+1);for(n=0,r=0;r<Ro-1;r++)for(os[r]=n,e=0;e<1<<Zo[r];e++)as[n++]=r;for(as[n-1]=r,i=0,r=0;r<16;r++)for(ss[r]=i,e=0;e<1<<Qo[r];e++)is[i++]=r;for(i>>=7;r<Vo;r++)for(ss[r]=i<<7,e=0;e<1<<Qo[r]-7;e++)is[256+ i++]=r;for(t=0;t<=Wo;t++)a[t]=0;for(e=0;e<=143;)ns[e*2+1]=8,e++,a[8]++;for(;e<=255;)ns[e*2+1]=9,e++,a[9]++;for(;e<=279;)ns[e*2+1]=7,e++,a[7]++;for(;e<=287;)ns[e*2+1]=8,e++,a[8]++;for(bs(ns,Bo+1,a),e=0;e<Vo;e++)rs[e*2+1]=5,rs[e*2]=_s(e,5);ls=new cs(ns,Zo,zo+1,Bo,Wo),us=new cs(rs,Qo,0,Vo,Wo),ds=new cs([],$o,0,Ho,Ko)},Ss=e=>{let t;for(t=0;t<Bo;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Vo;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ho;t++)e.bl_tree[t*2]=0;e.dyn_ltree[qo*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Cs=e=>{e.bi_valid>8?ms(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},ws=(e,t,n,r)=>{let i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},Ts=(e,t,n)=>{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&ws(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!ws(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},Es=(e,t,n)=>{let r,i,a=0,o,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+ a++]&255,r+=(e.pending_buf[e.sym_buf+ a++]&255)<<8,i=e.pending_buf[e.sym_buf+ a++],r===0?gs(e,i,t):(o=as[i],gs(e,o+zo+1,t),s=Zo[o],s!==0&&(i-=os[o],hs(e,i,s)),r--,o=ps(r),gs(e,o,n),s=Qo[o],s!==0&&(r-=ss[o],hs(e,r,s)));while(a<e.sym_next);gs(e,qo,t)},Ds=(e,t)=>{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,c=-1,l;for(e.heap_len=0,e.heap_max=Uo,o=0;o<a;o++)n[o*2]===0?n[o*2+1]=0:(e.heap[++e.heap_len]=c=o,e.depth[o]=0);for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[l*2]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[l*2+1]);for(t.max_code=c,o=e.heap_len>>1;o>=1;o--)Ts(e,n,o);l=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Ts(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[l*2]=n[o*2]+n[s*2],e.depth[l]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=l,e.heap[1]=l++,Ts(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],ys(e,t),bs(n,c,e.bl_count)},Os=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)&&(s<l?e.bl_tree[a*2]+=s:a===0?s<=10?e.bl_tree[Yo*2]++:e.bl_tree[Xo*2]++:(a!==i&&e.bl_tree[a*2]++,e.bl_tree[Jo*2]++),s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4))},ks=(e,t,n)=>{let r,i=-1,a,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<c&&a===o)){if(s<l)do gs(e,a,e.bl_tree);while(--s!==0);else a===0?s<=10?(gs(e,Yo,e.bl_tree),hs(e,s-3,3)):(gs(e,Xo,e.bl_tree),hs(e,s-11,7)):(a!==i&&(gs(e,a,e.bl_tree),s--),gs(e,Jo,e.bl_tree),hs(e,s-3,2));s=0,i=a,o===0?(c=138,l=3):a===o?(c=6,l=3):(c=7,l=4)}},As=e=>{let t;for(Os(e,e.dyn_ltree,e.l_desc.max_code),Os(e,e.dyn_dtree,e.d_desc.max_code),Ds(e,e.bl_desc),t=Ho-1;t>=3&&e.bl_tree[es[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},js=(e,t,n,r)=>{let i;for(hs(e,t-257,5),hs(e,n-1,5),hs(e,r-4,4),i=0;i<r;i++)hs(e,e.bl_tree[es[i]*2+1],3);ks(e,e.dyn_ltree,t-1),ks(e,e.dyn_dtree,n-1)},Ms=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return ko;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return Ao;for(n=32;n<zo;n++)if(e.dyn_ltree[n*2]!==0)return Ao;return ko},Ns=!1,Ps=e=>{Ns||=(xs(),!0),e.l_desc=new fs(e.dyn_ltree,ls),e.d_desc=new fs(e.dyn_dtree,us),e.bl_desc=new fs(e.bl_tree,ds),e.bi_buf=0,e.bi_valid=0,Ss(e)},Fs=(e,t,n,r)=>{hs(e,(No<<1)+ +!!r,3),Cs(e),ms(e,n),ms(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},Is={_tr_init:Ps,_tr_stored_block:Fs,_tr_flush_block:(e,t,n,r)=>{let i,a,o=0;e.level>0?(e.strm.data_type===jo&&(e.strm.data_type=Ms(e)),Ds(e,e.l_desc),Ds(e,e.d_desc),o=As(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&t!==-1?Fs(e,t,n,r):e.strategy===Oo||a===i?(hs(e,(Po<<1)+ +!!r,3),Es(e,ns,rs)):(hs(e,(Fo<<1)+ +!!r,3),js(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Es(e,e.dyn_ltree,e.dyn_dtree)),Ss(e),r&&Cs(e)},_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+ e.sym_next++]=t,e.pending_buf[e.sym_buf+ e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+ e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(as[n]+zo+1)*2]++,e.dyn_dtree[ps(t)*2]++),e.sym_next===e.sym_end),_tr_align:e=>{hs(e,Po<<1,3),gs(e,qo,ns),vs(e)}},Ls=(e,t,n,r)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0},Rs=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t})()),zs=(e,t,n,r)=>{let i=Rs,a=r+n;e^=-1;for(let n=r;n<a;n++)e=e>>>8^i[(e^t[n])&255];return e^-1},Bs={2:`need dictionary`,1:`stream end`,0:``,"-1":`file error`,"-2":`stream error`,"-3":`data error`,"-4":`insufficient memory`,"-5":`buffer error`,"-6":`incompatible version`},Vs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:Hs,_tr_stored_block:Us,_tr_flush_block:Ws,_tr_tally:Gs,_tr_align:Ks}=Is,{Z_NO_FLUSH:qs,Z_PARTIAL_FLUSH:Js,Z_FULL_FLUSH:Ys,Z_FINISH:Xs,Z_BLOCK:Zs,Z_OK:Qs,Z_STREAM_END:$s,Z_STREAM_ERROR:ec,Z_DATA_ERROR:tc,Z_BUF_ERROR:nc,Z_DEFAULT_COMPRESSION:rc,Z_FILTERED:ic,Z_HUFFMAN_ONLY:ac,Z_RLE:oc,Z_FIXED:sc,Z_DEFAULT_STRATEGY:cc,Z_UNKNOWN:lc,Z_DEFLATED:uc}=Vs,dc=9,fc=15,pc=8,mc=286,hc=30,gc=19,_c=2*mc+1,vc=15,yc=3,bc=258,xc=bc+yc+1,Sc=32,Cc=42,wc=57,Tc=69,Ec=73,Dc=91,Oc=103,kc=113,Ac=666,jc=1,Mc=2,Nc=3,Pc=4,Fc=3,Ic=(e,t)=>(e.msg=Bs[t],t),Lc=e=>e*2-(e>4?9:0),Rc=e=>{let t=e.length;for(;--t>=0;)e[t]=0},zc=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},Bc=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,Vc=e=>{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Hc=(e,t)=>{Ws(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Vc(e.strm)},Uc=(e,t)=>{e.pending_buf[e.pending++]=t},Wc=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Gc=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Ls(e.adler,t,i,n):e.state.wrap===2&&(e.adler=zs(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Kc=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-xc?e.strstart-(e.w_size-xc):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+bc,p=l[r+o-1],m=l[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(i=t,l[i+o]!==m||l[i+o-1]!==p||l[i]!==l[r]||l[++i]!==l[r+1])continue;r+=2,i++;do;while(l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&l[++r]===l[++i]&&r<f);if(a=bc-(f-r),r=f-bc,a>o){if(e.match_start=t,o=a,a>=s)break;p=l[r+o-1],m=l[r+o]}}while((t=d[t&u])>c&&--n!==0);return o<=e.lookahead?o:e.lookahead},qc=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-xc)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),zc(e),r+=t),e.strm.avail_in===0)break;if(n=Gc(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=yc)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Bc(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Bc(e,e.ins_h,e.window[i+yc-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<yc)););}while(e.lookahead<xc&&e.strm.avail_in!==0)},Jc=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,o=0,s=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r<n&&(r===0&&t!==Xs||t===qs||r!==i+e.strm.avail_in)))break;o=+(t===Xs&&r===i+e.strm.avail_in),Us(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Vc(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Gc(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?Pc:t!==qs&&t!==Xs&&e.strm.avail_in===0&&e.strstart===e.block_start?Mc:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Gc(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,n=a>e.w_size?e.w_size:a,i=e.strstart-e.block_start,(i>=n||(i||t===Xs)&&t!==qs&&e.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,o=+(t===Xs&&e.strm.avail_in===0&&r===i),Us(e,e.block_start,r,o),e.block_start+=r,Vc(e.strm)),o?Nc:jc)},Yc=(e,t)=>{let n,r;for(;;){if(e.lookahead<xc){if(qc(e),e.lookahead<xc&&t===qs)return jc;if(e.lookahead===0)break}if(n=0,e.lookahead>=yc&&(e.ins_h=Bc(e,e.ins_h,e.window[e.strstart+yc-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-xc&&(e.match_length=Kc(e,n)),e.match_length>=yc)if(r=Gs(e,e.strstart-e.match_start,e.match_length-yc),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=yc){e.match_length--;do e.strstart++,e.ins_h=Bc(e,e.ins_h,e.window[e.strstart+yc-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Bc(e,e.ins_h,e.window[e.strstart+1]);else r=Gs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Hc(e,!1),e.strm.avail_out===0))return jc}return e.insert=e.strstart<yc-1?e.strstart:yc-1,t===Xs?(Hc(e,!0),e.strm.avail_out===0?Nc:Pc):e.sym_next&&(Hc(e,!1),e.strm.avail_out===0)?jc:Mc},Xc=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<xc){if(qc(e),e.lookahead<xc&&t===qs)return jc;if(e.lookahead===0)break}if(n=0,e.lookahead>=yc&&(e.ins_h=Bc(e,e.ins_h,e.window[e.strstart+yc-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=yc-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-xc&&(e.match_length=Kc(e,n),e.match_length<=5&&(e.strategy===ic||e.match_length===yc&&e.strstart-e.match_start>4096)&&(e.match_length=yc-1)),e.prev_length>=yc&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-yc,r=Gs(e,e.strstart-1-e.prev_match,e.prev_length-yc),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Bc(e,e.ins_h,e.window[e.strstart+yc-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=yc-1,e.strstart++,r&&(Hc(e,!1),e.strm.avail_out===0))return jc}else if(e.match_available){if(r=Gs(e,0,e.window[e.strstart-1]),r&&Hc(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return jc}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=Gs(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<yc-1?e.strstart:yc-1,t===Xs?(Hc(e,!0),e.strm.avail_out===0?Nc:Pc):e.sym_next&&(Hc(e,!1),e.strm.avail_out===0)?jc:Mc},Zc=(e,t)=>{let n,r,i,a,o=e.window;for(;;){if(e.lookahead<=bc){if(qc(e),e.lookahead<=bc&&t===qs)return jc;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=yc&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+bc;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=bc-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=yc?(n=Gs(e,1,e.match_length-yc),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Gs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Hc(e,!1),e.strm.avail_out===0))return jc}return e.insert=0,t===Xs?(Hc(e,!0),e.strm.avail_out===0?Nc:Pc):e.sym_next&&(Hc(e,!1),e.strm.avail_out===0)?jc:Mc},Qc=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(qc(e),e.lookahead===0)){if(t===qs)return jc;break}if(e.match_length=0,n=Gs(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Hc(e,!1),e.strm.avail_out===0))return jc}return e.insert=0,t===Xs?(Hc(e,!0),e.strm.avail_out===0?Nc:Pc):e.sym_next&&(Hc(e,!1),e.strm.avail_out===0)?jc:Mc};function $c(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var el=[new $c(0,0,0,0,Jc),new $c(4,4,8,4,Yc),new $c(4,5,16,8,Yc),new $c(4,6,32,32,Yc),new $c(4,4,16,16,Xc),new $c(8,16,32,32,Xc),new $c(8,16,128,128,Xc),new $c(8,32,128,256,Xc),new $c(32,128,258,1024,Xc),new $c(32,258,258,4096,Xc)],tl=e=>{e.window_size=2*e.w_size,Rc(e.head),e.max_lazy_match=el[e.level].max_lazy,e.good_match=el[e.level].good_length,e.nice_match=el[e.level].nice_length,e.max_chain_length=el[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=yc-1,e.match_available=0,e.ins_h=0};function nl(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=uc,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(_c*2),this.dyn_dtree=new Uint16Array((2*hc+1)*2),this.bl_tree=new Uint16Array((2*gc+1)*2),Rc(this.dyn_ltree),Rc(this.dyn_dtree),Rc(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(vc+1),this.heap=new Uint16Array(2*mc+1),Rc(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*mc+1),Rc(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var rl=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.status!==Cc&&t.status!==wc&&t.status!==Tc&&t.status!==Ec&&t.status!==Dc&&t.status!==Oc&&t.status!==kc&&t.status!==Ac)},il=e=>{if(rl(e))return Ic(e,ec);e.total_in=e.total_out=0,e.data_type=lc;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?wc:t.wrap?Cc:kc,e.adler=t.wrap===2?0:1,t.last_flush=-2,Hs(t),Qs},al=e=>{let t=il(e);return t===Qs&&tl(e.state),t},ol=(e,t)=>rl(e)||e.state.wrap!==2?ec:(e.state.gzhead=t,Qs),sl=(e,t,n,r,i,a)=>{if(!e)return ec;let o=1;if(t===rc&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>dc||n!==uc||r<8||r>15||t<0||t>9||a<0||a>sc||r===8&&o!==1)return Ic(e,ec);r===8&&(r=9);let s=new nl;return e.state=s,s.strm=e,s.status=Cc,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+yc-1)/yc),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=t,s.strategy=a,s.method=n,al(e)},cl={deflateInit:(e,t)=>sl(e,t,uc,fc,pc,cc),deflateInit2:sl,deflateReset:al,deflateResetKeep:il,deflateSetHeader:ol,deflate:(e,t)=>{if(rl(e)||t>Zs||t<0)return e?Ic(e,ec):ec;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===Ac&&t!==Xs)return Ic(e,e.avail_out===0?nc:ec);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Vc(e),e.avail_out===0)return n.last_flush=-1,Qs}else if(e.avail_in===0&&Lc(t)<=Lc(r)&&t!==Xs)return Ic(e,nc);if(n.status===Ac&&e.avail_in!==0)return Ic(e,nc);if(n.status===Cc&&n.wrap===0&&(n.status=kc),n.status===Cc){let t=uc+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=ac||n.level<2?0:n.level<6?1:n.level===6?2:3,t|=r<<6,n.strstart!==0&&(t|=Sc),t+=31-t%31,Wc(n,t),n.strstart!==0&&(Wc(n,e.adler>>>16),Wc(n,e.adler&65535)),e.adler=1,n.status=kc,Vc(e),n.pending!==0)return n.last_flush=-1,Qs}if(n.status===wc){if(e.adler=0,Uc(n,31),Uc(n,139),Uc(n,8),n.gzhead)Uc(n,+!!n.gzhead.text+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Uc(n,n.gzhead.time&255),Uc(n,n.gzhead.time>>8&255),Uc(n,n.gzhead.time>>16&255),Uc(n,n.gzhead.time>>24&255),Uc(n,n.level===9?2:n.strategy>=ac||n.level<2?4:0),Uc(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Uc(n,n.gzhead.extra.length&255),Uc(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=zs(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Tc;else if(Uc(n,0),Uc(n,0),Uc(n,0),Uc(n,0),Uc(n,0),Uc(n,n.level===9?2:n.strategy>=ac||n.level<2?4:0),Uc(n,Fc),n.status=kc,Vc(e),n.pending!==0)return n.last_flush=-1,Qs}if(n.status===Tc){if(n.gzhead.extra){let t=n.pending,r=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=zs(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,Vc(e),n.pending!==0)return n.last_flush=-1,Qs;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=zs(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=Ec}if(n.status===Ec){if(n.gzhead.name){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=zs(e.adler,n.pending_buf,n.pending-t,t)),Vc(e),n.pending!==0)return n.last_flush=-1,Qs;t=0}r=n.gzindex<n.gzhead.name.length?n.gzhead.name.charCodeAt(n.gzindex++)&255:0,Uc(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=zs(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=Dc}if(n.status===Dc){if(n.gzhead.comment){let t=n.pending,r;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>t&&(e.adler=zs(e.adler,n.pending_buf,n.pending-t,t)),Vc(e),n.pending!==0)return n.last_flush=-1,Qs;t=0}r=n.gzindex<n.gzhead.comment.length?n.gzhead.comment.charCodeAt(n.gzindex++)&255:0,Uc(n,r)}while(r!==0);n.gzhead.hcrc&&n.pending>t&&(e.adler=zs(e.adler,n.pending_buf,n.pending-t,t))}n.status=Oc}if(n.status===Oc){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Vc(e),n.pending!==0))return n.last_flush=-1,Qs;Uc(n,e.adler&255),Uc(n,e.adler>>8&255),e.adler=0}if(n.status=kc,Vc(e),n.pending!==0)return n.last_flush=-1,Qs}if(e.avail_in!==0||n.lookahead!==0||t!==qs&&n.status!==Ac){let r=n.level===0?Jc(n,t):n.strategy===ac?Qc(n,t):n.strategy===oc?Zc(n,t):el[n.level].func(n,t);if((r===Nc||r===Pc)&&(n.status=Ac),r===jc||r===Nc)return e.avail_out===0&&(n.last_flush=-1),Qs;if(r===Mc&&(t===Js?Ks(n):t!==Zs&&(Us(n,0,0,!1),t===Ys&&(Rc(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Vc(e),e.avail_out===0))return n.last_flush=-1,Qs}return t===Xs?n.wrap<=0?$s:(n.wrap===2?(Uc(n,e.adler&255),Uc(n,e.adler>>8&255),Uc(n,e.adler>>16&255),Uc(n,e.adler>>24&255),Uc(n,e.total_in&255),Uc(n,e.total_in>>8&255),Uc(n,e.total_in>>16&255),Uc(n,e.total_in>>24&255)):(Wc(n,e.adler>>>16),Wc(n,e.adler&65535)),Vc(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending===0?$s:Qs):Qs},deflateEnd:e=>{if(rl(e))return ec;let t=e.state.status;return e.state=null,t===kc?Ic(e,tc):Qs},deflateSetDictionary:(e,t)=>{let n=t.length;if(rl(e))return ec;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==Cc||r.lookahead)return ec;if(i===1&&(e.adler=Ls(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Rc(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}let a=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,qc(r);r.lookahead>=yc;){let e=r.strstart,t=r.lookahead-(yc-1);do r.ins_h=Bc(r,r.ins_h,r.window[e+yc-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++;while(--t);r.strstart=e,r.lookahead=yc-1,qc(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=yc-1,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=a,r.wrap=i,Qs},deflateInfo:`pako deflate (from Nodeca project)`},ll=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ul={assign:function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(let t in n)ll(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;let n=new Uint8Array(t);for(let t=0,r=0,i=e.length;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n}},dl=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{dl=!1}var fl=new Uint8Array(256);for(let e=0;e<256;e++)fl[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;fl[254]=fl[254]=1;var pl=e=>{if(typeof TextEncoder==`function`&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t},ml=(e,t)=>{if(t<65534&&e.subarray&&dl)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n=``;for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n},hl={string2buf:pl,buf2string:(e,t)=>{let n=t||e.length;if(typeof TextDecoder==`function`&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,a=Array(n*2);for(i=0,r=0;r<n;){let t=e[r++];if(t<128){a[i++]=t;continue}let o=fl[t];if(o>4){a[i++]=65533,r+=o-1;continue}for(t&=o===2?31:o===3?15:7;o>1&&r<n;)t=t<<6|e[r++]&63,o--;if(o>1){a[i++]=65533;continue}t<65536?a[i++]=t:(t-=65536,a[i++]=55296|t>>10&1023,a[i++]=56320|t&1023)}return ml(a,i)},utf8border:(e,t)=>{t||=e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+fl[e[n]]>t?n:t}};function gl(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=``,this.state=null,this.data_type=2,this.adler=0}var _l=gl,vl=Object.prototype.toString,{Z_NO_FLUSH:yl,Z_SYNC_FLUSH:bl,Z_FULL_FLUSH:xl,Z_FINISH:Sl,Z_OK:Cl,Z_STREAM_END:wl,Z_DEFAULT_COMPRESSION:Tl,Z_DEFAULT_STRATEGY:El,Z_DEFLATED:Dl}=Vs;function Ol(e){this.options=ul.assign({level:Tl,method:Dl,chunkSize:16384,windowBits:15,memLevel:8,strategy:El},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new _l,this.strm.avail_out=0;let n=cl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Cl)throw Error(Bs[n]);if(t.header&&cl.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e=typeof t.dictionary==`string`?hl.string2buf(t.dictionary):vl.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,n=cl.deflateSetDictionary(this.strm,e),n!==Cl)throw Error(Bs[n]);this._dict_set=!0}}Ol.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(a=t===~~t?t:t===!0?Sl:yl,typeof e==`string`?n.input=hl.string2buf(e):vl.call(e)===`[object ArrayBuffer]`?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(a===bl||a===xl)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=cl.deflate(n,a),i===wl)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=cl.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Cl;if(n.avail_out===0){this.onData(n.output);continue}if(a>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0},Ol.prototype.onData=function(e){this.chunks.push(e)},Ol.prototype.onEnd=function(e){e===Cl&&(this.result=ul.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function kl(e,t){let n=new Ol(t);if(n.push(e,!0),n.err)throw n.msg||Bs[n.err];return n.result}function Al(e,t){return t||={},t.raw=!0,kl(e,t)}function jl(e,t){return t||={},t.gzip=!0,kl(e,t)}var Ml={Deflate:Ol,deflate:kl,deflateRaw:Al,gzip:jl,constants:Vs},Nl=16209,Pl=16191,Fl=function(e,t){let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=e.state;n=e.next_in,w=e.input,r=n+(e.avail_in-5),i=e.next_out,T=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),s=E.dmax,c=E.wsize,l=E.whave,u=E.wnext,d=E.window,f=E.hold,p=E.bits,m=E.lencode,h=E.distcode,g=(1<<E.lenbits)-1,_=(1<<E.distbits)-1;top:do{p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=m[f&g];dolen:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y===0)T[i++]=v&65535;else if(y&16){b=v&65535,y&=15,y&&(p<y&&(f+=w[n++]<<p,p+=8),b+=f&(1<<y)-1,f>>>=y,p-=y),p<15&&(f+=w[n++]<<p,p+=8,f+=w[n++]<<p,p+=8),v=h[f&_];dodist:for(;;){if(y=v>>>24,f>>>=y,p-=y,y=v>>>16&255,y&16){if(x=v&65535,y&=15,p<y&&(f+=w[n++]<<p,p+=8,p<y&&(f+=w[n++]<<p,p+=8)),x+=f&(1<<y)-1,x>s){e.msg=`invalid distance too far back`,E.mode=Nl;break top}if(f>>>=y,p-=y,y=i-a,x>y){if(y=x-y,y>l&&E.sane){e.msg=`invalid distance too far back`,E.mode=Nl;break top}if(S=0,C=d,u===0){if(S+=c-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}else if(u<y){if(S+=c+u-y,y-=u,y<b){b-=y;do T[i++]=d[S++];while(--y);if(S=0,u<b){y=u,b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}}}else if(S+=u-y,y<b){b-=y;do T[i++]=d[S++];while(--y);S=i-x,C=T}for(;b>2;)T[i++]=C[S++],T[i++]=C[S++],T[i++]=C[S++],b-=3;b&&(T[i++]=C[S++],b>1&&(T[i++]=C[S++]))}else{S=i-x;do T[i++]=T[S++],T[i++]=T[S++],T[i++]=T[S++],b-=3;while(b>2);b&&(T[i++]=T[S++],b>1&&(T[i++]=T[S++]))}}else if(y&64){e.msg=`invalid distance code`,E.mode=Nl;break top}else{v=h[(v&65535)+(f&(1<<y)-1)];continue dodist}break}}else if(!(y&64)){v=m[(v&65535)+(f&(1<<y)-1)];continue dolen}else if(y&32){E.mode=Pl;break top}else{e.msg=`invalid literal/length code`,E.mode=Nl;break top}break}}while(n<r&&i<o);b=p>>3,n-=b,p-=b<<3,f&=(1<<p)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?5+(r-n):5-(n-r),e.avail_out=i<o?257+(o-i):257-(i-o),E.hold=f,E.bits=p},Il=15,Ll=852,Rl=592,zl=0,Bl=1,Vl=2,Hl=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Ul=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Wl=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Gl=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Kl=(e,t,n,r,i,a,o,s)=>{let c=s.bits,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y,b,x,S,C,w=null,T,E=new Uint16Array(Il+1),D=new Uint16Array(Il+1),O=null,k,A,j;for(l=0;l<=Il;l++)E[l]=0;for(u=0;u<r;u++)E[t[n+u]]++;for(p=c,f=Il;f>=1&&E[f]===0;f--);if(p>f&&(p=f),f===0)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(d=1;d<f&&E[d]===0;d++);for(p<d&&(p=d),g=1,l=1;l<=Il;l++)if(g<<=1,g-=E[l],g<0)return-1;if(g>0&&(e===zl||f!==1))return-1;for(D[1]=0,l=1;l<Il;l++)D[l+1]=D[l]+E[l];for(u=0;u<r;u++)t[n+u]!==0&&(o[D[t[n+u]]++]=u);if(e===zl?(w=O=o,T=20):e===Bl?(w=Hl,O=Ul,T=257):(w=Wl,O=Gl,T=0),v=0,u=0,l=d,C=a,m=p,h=0,x=-1,_=1<<p,S=_-1,e===Bl&&_>Ll||e===Vl&&_>Rl)return 1;for(;;){k=l-h,o[u]+1<T?(A=0,j=o[u]):o[u]>=T?(A=O[o[u]-T],j=w[o[u]-T]):(A=96,j=0),y=1<<l-h,b=1<<m,d=b;do b-=y,i[C+(v>>h)+b]=k<<24|A<<16|j|0;while(b!==0);for(y=1<<l-1;v&y;)y>>=1;if(y===0?v=0:(v&=y-1,v+=y),u++,--E[l]===0){if(l===f)break;l=t[n+o[u]]}if(l>p&&(v&S)!==x){for(h===0&&(h=p),C+=d,m=l-h,g=1<<m;m+h<f&&(g-=E[m+h],!(g<=0));)m++,g<<=1;if(_+=1<<m,e===Bl&&_>Ll||e===Vl&&_>Rl)return 1;x=v&S,i[x]=p<<24|m<<16|C-a|0}}return v!==0&&(i[C+v]=l-h<<24|4194304),s.bits=p,0},ql=0,Jl=1,Yl=2,{Z_FINISH:Xl,Z_BLOCK:Zl,Z_TREES:Ql,Z_OK:$l,Z_STREAM_END:eu,Z_NEED_DICT:tu,Z_STREAM_ERROR:nu,Z_DATA_ERROR:ru,Z_MEM_ERROR:iu,Z_BUF_ERROR:au,Z_DEFLATED:ou}=Vs,su=16180,cu=16181,lu=16182,uu=16183,du=16184,fu=16185,pu=16186,mu=16187,hu=16188,gu=16189,_u=16190,vu=16191,yu=16192,bu=16193,xu=16194,Su=16195,Cu=16196,wu=16197,Tu=16198,Eu=16199,Du=16200,Ou=16201,ku=16202,Au=16203,ju=16204,Mu=16205,Nu=16206,Pu=16207,Fu=16208,Iu=16209,Lu=16210,Ru=16211,zu=852,Bu=592,Vu=15,Hu=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Uu(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Wu=e=>{if(!e)return 1;let t=e.state;return+(!t||t.strm!==e||t.mode<su||t.mode>Ru)},Gu=e=>{if(Wu(e))return nu;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=t.wrap&1),t.mode=su,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(zu),t.distcode=t.distdyn=new Int32Array(Bu),t.sane=1,t.back=-1,$l},Ku=e=>{if(Wu(e))return nu;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Gu(e)},qu=(e,t)=>{let n;if(Wu(e))return nu;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?nu:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Ku(e))},Ju=(e,t)=>{if(!e)return nu;let n=new Uu;e.state=n,n.strm=e,n.window=null,n.mode=su;let r=qu(e,t);return r!==$l&&(e.state=null),r},Yu=e=>Ju(e,Vu),Xu=!0,Zu,Qu,$u=e=>{if(Xu){Zu=new Int32Array(512),Qu=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Kl(Jl,e.lens,0,288,Zu,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Kl(Yl,e.lens,0,32,Qu,0,e.work,{bits:5}),Xu=!1}e.lencode=Zu,e.lenbits=9,e.distcode=Qu,e.distbits=5},ed=(e,t,n,r)=>{let i,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),r-=i,r?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},td={inflateReset:Ku,inflateReset2:qu,inflateResetKeep:Gu,inflateInit:Yu,inflateInit2:Ju,inflate:(e,t)=>{let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g=0,_,v,y,b,x,S,C,w,T=new Uint8Array(4),E,D,O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Wu(e)||!e.output||!e.input&&e.avail_in!==0)return nu;n=e.state,n.mode===vu&&(n.mode=yu),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,d=s,f=c,w=$l;inf_leave:for(;;)switch(n.mode){case su:if(n.wrap===0){n.mode=yu;break}for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&2&&l===35615){n.wbits===0&&(n.wbits=15),n.check=0,T[0]=l&255,T[1]=l>>>8&255,n.check=zs(n.check,T,2,0),l=0,u=0,n.mode=cu;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg=`incorrect header check`,n.mode=Iu;break}if((l&15)!==ou){e.msg=`unknown compression method`,n.mode=Iu;break}if(l>>>=4,u-=4,C=(l&15)+8,n.wbits===0&&(n.wbits=C),C>15||C>n.wbits){e.msg=`invalid window size`,n.mode=Iu;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=l&512?gu:vu,l=0,u=0;break;case cu:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.flags=l,(n.flags&255)!==ou){e.msg=`unknown compression method`,n.mode=Iu;break}if(n.flags&57344){e.msg=`unknown header flags set`,n.mode=Iu;break}n.head&&(n.head.text=l>>8&1),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=zs(n.check,T,2,0)),l=0,u=0,n.mode=lu;case lu:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.time=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,n.check=zs(n.check,T,4,0)),l=0,u=0,n.mode=uu;case uu:for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=l&255,n.head.os=l>>8),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=zs(n.check,T,2,0)),l=0,u=0,n.mode=du;case du:if(n.flags&1024){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length=l,n.head&&(n.head.extra_len=l),n.flags&512&&n.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,n.check=zs(n.check,T,2,0)),l=0,u=0}else n.head&&(n.head.extra=null);n.mode=fu;case fu:if(n.flags&1024&&(p=n.length,p>s&&(p=s),p&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+p),C)),n.flags&512&&n.wrap&4&&(n.check=zs(n.check,r,p,a)),s-=p,a+=p,n.length-=p),n.length))break inf_leave;n.length=0,n.mode=pu;case pu:if(n.flags&2048){if(s===0)break inf_leave;p=0;do C=r[a+ p++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=zs(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.name=null);n.length=0,n.mode=mu;case mu:if(n.flags&4096){if(s===0)break inf_leave;p=0;do C=r[a+ p++],n.head&&C&&n.length<65536&&(n.head.comment+=String.fromCharCode(C));while(C&&p<s);if(n.flags&512&&n.wrap&4&&(n.check=zs(n.check,r,p,a)),s-=p,a+=p,C)break inf_leave}else n.head&&(n.head.comment=null);n.mode=hu;case hu:if(n.flags&512){for(;u<16;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.check&65535)){e.msg=`header crc mismatch`,n.mode=Iu;break}l=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=vu;break;case gu:for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}e.adler=n.check=Hu(l),l=0,u=0,n.mode=_u;case _u:if(n.havedict===0)return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,tu;e.adler=n.check=1,n.mode=vu;case vu:if(t===Zl||t===Ql)break inf_leave;case yu:if(n.last){l>>>=u&7,u-=u&7,n.mode=Nu;break}for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}switch(n.last=l&1,l>>>=1,--u,l&3){case 0:n.mode=bu;break;case 1:if($u(n),n.mode=Eu,t===Ql){l>>>=2,u-=2;break inf_leave}break;case 2:n.mode=Cu;break;case 3:e.msg=`invalid block type`,n.mode=Iu}l>>>=2,u-=2;break;case bu:for(l>>>=u&7,u-=u&7;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if((l&65535)!=(l>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=Iu;break}if(n.length=l&65535,l=0,u=0,n.mode=xu,t===Ql)break inf_leave;case xu:n.mode=Su;case Su:if(p=n.length,p){if(p>s&&(p=s),p>c&&(p=c),p===0)break inf_leave;i.set(r.subarray(a,a+p),o),s-=p,a+=p,c-=p,o+=p,n.length-=p;break}n.mode=vu;break;case Cu:for(;u<14;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.nlen=(l&31)+257,l>>>=5,u-=5,n.ndist=(l&31)+1,l>>>=5,u-=5,n.ncode=(l&15)+4,l>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg=`too many length or distance symbols`,n.mode=Iu;break}n.have=0,n.mode=wu;case wu:for(;n.have<n.ncode;){for(;u<3;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.lens[O[n.have++]]=l&7,l>>>=3,u-=3}for(;n.have<19;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},w=Kl(ql,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid code lengths set`,n.mode=Iu;break}n.have=0,n.mode=Tu;case Tu:for(;n.have<n.nlen+n.ndist;){for(;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(y<16)l>>>=_,u-=_,n.lens[n.have++]=y;else{if(y===16){for(D=_+2;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(l>>>=_,u-=_,n.have===0){e.msg=`invalid bit length repeat`,n.mode=Iu;break}C=n.lens[n.have-1],p=3+(l&3),l>>>=2,u-=2}else if(y===17){for(D=_+3;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=3+(l&7),l>>>=3,u-=3}else{for(D=_+7;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=_,u-=_,C=0,p=11+(l&127),l>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=Iu;break}for(;p--;)n.lens[n.have++]=C}}if(n.mode===Iu)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=Iu;break}if(n.lenbits=9,E={bits:n.lenbits},w=Kl(Jl,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,w){e.msg=`invalid literal/lengths set`,n.mode=Iu;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},w=Kl(Yl,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,w){e.msg=`invalid distances set`,n.mode=Iu;break}if(n.mode=Eu,t===Ql)break inf_leave;case Eu:n.mode=Du;case Du:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,Fl(e,f),o=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,n.mode===vu&&(n.back=-1);break}for(n.back=0;g=n.lencode[l&(1<<n.lenbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(v&&!(v&240)){for(b=_,x=v,S=y;g=n.lencode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,n.length=y,v===0){n.mode=Mu;break}if(v&32){n.back=-1,n.mode=vu;break}if(v&64){e.msg=`invalid literal/length code`,n.mode=Iu;break}n.extra=v&15,n.mode=Ou;case Ou:if(n.extra){for(D=n.extra;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ku;case ku:for(;g=n.distcode[l&(1<<n.distbits)-1],_=g>>>24,v=g>>>16&255,y=g&65535,!(_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(!(v&240)){for(b=_,x=v,S=y;g=n.distcode[S+((l&(1<<b+x)-1)>>b)],_=g>>>24,v=g>>>16&255,y=g&65535,!(b+_<=u);){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}l>>>=b,u-=b,n.back+=b}if(l>>>=_,u-=_,n.back+=_,v&64){e.msg=`invalid distance code`,n.mode=Iu;break}n.offset=y,n.extra=v&15,n.mode=Au;case Au:if(n.extra){for(D=n.extra;u<D;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=Iu;break}n.mode=ju;case ju:if(c===0)break inf_leave;if(p=f-c,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=Iu;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),h=n.window}else h=i,m=o-n.offset,p=n.length;p>c&&(p=c),c-=p,n.length-=p;do i[o++]=h[m++];while(--p);n.length===0&&(n.mode=Du);break;case Mu:if(c===0)break inf_leave;i[o++]=n.length,c--,n.mode=Du;break;case Nu:if(n.wrap){for(;u<32;){if(s===0)break inf_leave;s--,l|=r[a++]<<u,u+=8}if(f-=c,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?zs(n.check,i,f,o-f):Ls(n.check,i,f,o-f)),f=c,n.wrap&4&&(n.flags?l:Hu(l))!==n.check){e.msg=`incorrect data check`,n.mode=Iu;break}l=0,u=0}n.mode=Pu;case Pu:if(n.wrap&&n.flags){for(;u<32;){if(s===0)break inf_leave;s--,l+=r[a++]<<u,u+=8}if(n.wrap&4&&l!==(n.total&4294967295)){e.msg=`incorrect length check`,n.mode=Iu;break}l=0,u=0}n.mode=Fu;case Fu:w=eu;break inf_leave;case Iu:w=ru;break inf_leave;case Lu:return iu;case Ru:default:return nu}return e.next_out=o,e.avail_out=c,e.next_in=a,e.avail_in=s,n.hold=l,n.bits=u,(n.wsize||f!==e.avail_out&&n.mode<Iu&&(n.mode<Nu||t!==Xl))&&ed(e,e.output,e.next_out,f-e.avail_out),d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?zs(n.check,i,f,e.next_out-f):Ls(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===vu?128:0)+(n.mode===Eu||n.mode===xu?256:0),(d===0&&f===0||t===Xl)&&w===$l&&(w=au),w},inflateEnd:e=>{if(Wu(e))return nu;let t=e.state;return t.window&&=null,e.state=null,$l},inflateGetHeader:(e,t)=>{if(Wu(e))return nu;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,$l):nu},inflateSetDictionary:(e,t)=>{let n=t.length,r,i,a;return Wu(e)||(r=e.state,r.wrap!==0&&r.mode!==_u)?nu:r.mode===_u&&(i=1,i=Ls(i,t,n,0),i!==r.check)?ru:(a=ed(e,t,n,n),a?(r.mode=Lu,iu):(r.havedict=1,$l))},inflateInfo:`pako inflate (from Nodeca project)`};function nd(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name=``,this.comment=``,this.hcrc=0,this.done=!1}var rd=nd,id=Object.prototype.toString,{Z_NO_FLUSH:ad,Z_FINISH:od,Z_OK:sd,Z_STREAM_END:cd,Z_NEED_DICT:ld,Z_STREAM_ERROR:ud,Z_DATA_ERROR:dd,Z_MEM_ERROR:fd}=Vs;function pd(e){this.options=ul.assign({chunkSize:1024*64,windowBits:15,to:``},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new _l,this.strm.avail_out=0;let n=td.inflateInit2(this.strm,t.windowBits);if(n!==sd||(this.header=new rd,td.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary==`string`?t.dictionary=hl.string2buf(t.dictionary):id.call(t.dictionary)===`[object ArrayBuffer]`&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=td.inflateSetDictionary(this.strm,t.dictionary),n!==sd))))throw Error(Bs[n])}pd.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,o,s;if(this.ended)return!1;for(o=t===~~t?t:t===!0?od:ad,id.call(e)===`[object ArrayBuffer]`?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),a=td.inflate(n,o),a===ld&&i&&(a=td.inflateSetDictionary(n,i),a===sd?a=td.inflate(n,o):a===dd&&(a=ld));n.avail_in>0&&a===cd&&n.state.wrap>0&&e[n.next_in]!==0;)td.inflateReset(n),a=td.inflate(n,o);switch(a){case ud:case dd:case ld:case fd:return this.onEnd(a),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||a===cd))if(this.options.to===`string`){let e=hl.utf8border(n.output,n.next_out),t=n.next_out-e,i=hl.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(a===sd&&s===0)){if(a===cd)return a=td.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},pd.prototype.onData=function(e){this.chunks.push(e)},pd.prototype.onEnd=function(e){e===sd&&(this.options.to===`string`?this.result=this.chunks.join(``):this.result=ul.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function md(e,t){let n=new pd(t);if(n.push(e),n.err)throw n.msg||Bs[n.err];return n.result}function hd(e,t){return t||={},t.raw=!0,md(e,t)}var gd={Inflate:pd,inflate:md,inflateRaw:hd,ungzip:md,constants:Vs},{Deflate:_d,deflate:vd,deflateRaw:yd,gzip:bd}=Ml,{Inflate:xd,inflate:Sd,inflateRaw:Cd,ungzip:wd}=gd,Td=xd,Ed=Sd,Dd=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)t&1?t=3988292384^t>>>1:t>>>=1;Dd[e]=t}var Od=4294967295;function kd(e,t,n){let r=e;for(let e=0;e<n;e++)r=Dd[(r^t[e])&255]^r>>>8;return r}function Ad(e,t){return(kd(Od,e,t)^Od)>>>0}function jd(e,t,n){let r=e.readUint32(),i=Ad(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==r)throw Error(`CRC mismatch for chunk ${n}. Expected ${r}, found ${i}`)}function Md(e,t,n){for(let r=0;r<n;r++)t[r]=e[r]}function Nd(e,t,n,r){let i=0;for(;i<r;i++)t[i]=e[i];for(;i<n;i++)t[i]=e[i]+t[i-r]&255}function Pd(e,t,n,r){let i=0;if(n.length===0)for(;i<r;i++)t[i]=e[i];else for(;i<r;i++)t[i]=e[i]+n[i]&255}function Fd(e,t,n,r,i){let a=0;if(n.length===0){for(;a<i;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+(t[a-i]>>1)&255}else{for(;a<i;a++)t[a]=e[a]+(n[a]>>1)&255;for(;a<r;a++)t[a]=e[a]+(t[a-i]+n[a]>>1)&255}}function Id(e,t,n,r,i){let a=0;if(n.length===0){for(;a<i;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+t[a-i]&255}else{for(;a<i;a++)t[a]=e[a]+n[a]&255;for(;a<r;a++)t[a]=e[a]+Ld(t[a-i],n[a],n[a-i])&255}}function Ld(e,t,n){let r=e+t-n,i=Math.abs(r-e),a=Math.abs(r-t),o=Math.abs(r-n);return i<=a&&i<=o?e:a<=o?t:n}function Rd(e,t,n,r,i,a){switch(e){case 0:Md(t,n,i);break;case 1:Nd(t,n,i,a);break;case 2:Pd(t,n,r,i);break;case 3:Fd(t,n,r,i,a);break;case 4:Id(t,n,r,i,a);break;default:throw Error(`Unsupported filter: ${e}`)}}var zd=new Uint16Array([255]),Bd=new Uint8Array(zd.buffer)[0]===255;function Vd(e){let{data:t,width:n,height:r,channels:i,depth:a}=e,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(a/8)*i,c=new Uint8Array(r*n*s),l=0;for(let e=0;e<7;e++){let i=o[e],a=Math.ceil((n-i.x)/i.xStep),u=Math.ceil((r-i.y)/i.yStep);if(a<=0||u<=0)continue;let d=a*s,f=new Uint8Array(d);for(let e=0;e<u;e++){let o=t[l++],u=t.subarray(l,l+d);l+=d;let p=new Uint8Array(d);Rd(o,u,p,f,d,s),f.set(p);for(let t=0;t<a;t++){let a=i.x+t*i.xStep,o=i.y+e*i.yStep;if(!(a>=n||o>=r))for(let e=0;e<s;e++)c[(o*n+a)*s+e]=p[t*s+e]}}}if(a===16){let e=new Uint16Array(c.buffer);if(Bd)for(let t=0;t<e.length;t++)e[t]=Hd(e[t]);return e}else return c}function Hd(e){return(e&255)<<8|e>>8&255}var Ud=new Uint16Array([255]),Wd=new Uint8Array(Ud.buffer)[0]===255,Gd=new Uint8Array;function Kd(e){let{data:t,width:n,height:r,channels:i,depth:a}=e,o=Math.ceil(a/8)*i,s=Math.ceil(a/8*i*n),c=new Uint8Array(r*s),l=Gd,u=0,d,f;for(let e=0;e<r;e++){switch(d=t.subarray(u+1,u+1+s),f=c.subarray(e*s,(e+1)*s),t[u]){case 0:Md(d,f,s);break;case 1:Nd(d,f,s,o);break;case 2:Pd(d,f,l,s);break;case 3:Fd(d,f,l,s,o);break;case 4:Id(d,f,l,s,o);break;default:throw Error(`Unsupported filter: ${t[u]}`)}l=f,u+=s+1}if(a===16){let e=new Uint16Array(c.buffer);if(Wd)for(let t=0;t<e.length;t++)e[t]=qd(e[t]);return e}else return c}function qd(e){return(e&255)<<8|e>>8&255}var Jd=Uint8Array.of(137,80,78,71,13,10,26,10);function Yd(e){if(!Xd(e.readBytes(Jd.length)))throw Error(`wrong PNG signature`)}function Xd(e){if(e.length<Jd.length)return!1;for(let t=0;t<Jd.length;t++)if(e[t]!==Jd[t])return!1;return!0}var Zd=`tEXt`,Qd=0,$d=new TextDecoder(`latin1`);function ef(e){if(nf(e),e.length===0||e.length>79)throw Error(`keyword length must be between 1 and 79`)}var tf=/^[\u0000-\u00FF]*$/;function nf(e){if(!tf.test(e))throw Error(`invalid latin1 text`)}function rf(e,t,n){let r=af(t);e[r]=of(t,n-r.length-1)}function af(e){for(e.mark();e.readByte()!==Qd;);let t=e.offset;e.reset();let n=$d.decode(e.readBytes(t-e.offset-1));return e.skip(1),ef(n),n}function of(e,t){return $d.decode(e.readBytes(t))}var sf={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},cf={UNKNOWN:-1,DEFLATE:0},lf={UNKNOWN:-1,ADAPTIVE:0},uf={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},df={NONE:0,BACKGROUND:1,PREVIOUS:2},ff={SOURCE:0,OVER:1},pf=class extends Do{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,t={}){super(e);let{checkCrc:n=!1}=t;this._checkCrc=n,this._inflator=new Td,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array,depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array,this._compressionMethod=cf.UNKNOWN,this._filterMethod=lf.UNKNOWN,this._interlaceMethod=uf.UNKNOWN,this._colorType=sf.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Yd(this);!this._end;){let e=this.readUint32(),t=this.readChars(4);this.decodeChunk(e,t)}return this.decodeImage(),this._png}decodeApng(){for(Yd(this);!this._end;){let e=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(e,t)}return this.decodeApngImage(),this._apng}decodeChunk(e,t){let n=this.offset;switch(t){case`IHDR`:this.decodeIHDR();break;case`PLTE`:this.decodePLTE(e);break;case`IDAT`:this.decodeIDAT(e);break;case`IEND`:this._end=!0;break;case`tRNS`:this.decodetRNS(e);break;case`iCCP`:this.decodeiCCP(e);break;case Zd:rf(this._png.text,this,e);break;case`pHYs`:this.decodepHYs();break;default:this.skip(e);break}if(this.offset-n!==e)throw Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?jd(this,e+4,t):this.skip(4)}decodeApngChunk(e,t){let n=this.offset;switch(t!==`fdAT`&&t!==`IDAT`&&this._writingDataChunks&&this.pushDataToFrame(),t){case`acTL`:this.decodeACTL();break;case`fcTL`:this.decodeFCTL();break;case`fdAT`:this.decodeFDAT(e);break;default:this.decodeChunk(e,t),this.offset=n+e;break}if(this.offset-n!==e)throw Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?jd(this,e+4,t):this.skip(4)}decodeIHDR(){let e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=mf(this.readUint8());let t=this.readUint8();this._colorType=t;let n;switch(t){case sf.GREYSCALE:n=1;break;case sf.TRUECOLOUR:n=3;break;case sf.INDEXED_COLOUR:n=1;break;case sf.GREYSCALE_ALPHA:n=2;break;case sf.TRUECOLOUR_ALPHA:n=4;break;case sf.UNKNOWN:default:throw Error(`Unknown color type: ${t}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==cf.DEFLATE)throw Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array};this._frames.push(e)}decodePLTE(e){if(e%3!=0)throw RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);let t=e/3;this._hasPalette=!0;let n=[];this._palette=n;for(let e=0;e<t;e++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;let t=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let t=e,n=this.offset+this.byteOffset;if(n+=4,t-=4,this._inflator.push(new Uint8Array(this.buffer,n,t)),this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case sf.GREYSCALE:case sf.TRUECOLOUR:if(e%2!=0)throw RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let t=0;t<e/2;t++)this._transparency[t]=this.readUint16();break;case sf.INDEXED_COLOUR:{if(e>this._palette.length)throw Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let t=0;for(;t<e;t++){let e=this.readByte();this._palette[t].push(e)}for(;t<this._palette.length;t++)this._palette[t].push(255);break}case sf.UNKNOWN:case sf.GREYSCALE_ALPHA:case sf.TRUECOLOUR_ALPHA:default:throw Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){let t=af(this),n=this.readUint8();if(n!==cf.DEFLATE)throw Error(`Unsupported iCCP compression method: ${n}`);let r=this.readBytes(e-t.length-2);this._png.iccEmbeddedProfile={name:t,profile:Ed(r)}}decodepHYs(){let e=this.readUint32(),t=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:t,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){let t={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=Kd({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)t.data=n.data;else{let r=this._apng.frames.at(e-1);this.disposeFrame(n,r,t),this.addFrameDataToCanvas(t,n)}this._apng.frames.push(t)}}return this._apng}disposeFrame(e,t,n){switch(e.disposeOp){case df.NONE:break;case df.BACKGROUND:for(let t=0;t<this._png.height;t++)for(let r=0;r<this._png.width;r++){let i=(t*e.width+r)*this._png.channels;for(let e=0;e<this._png.channels;e++)n.data[i+e]=0}break;case df.PREVIOUS:n.data.set(t.data);break;default:throw Error(`Unknown disposeOp`)}}addFrameDataToCanvas(e,t){let n=1<<this._png.depth,r=(e,n)=>({index:((e+t.yOffset)*this._png.width+t.xOffset+n)*this._png.channels,frameIndex:(e*t.width+n)*this._png.channels});switch(t.blendOp){case ff.SOURCE:for(let n=0;n<t.height;n++)for(let i=0;i<t.width;i++){let{index:a,frameIndex:o}=r(n,i);for(let n=0;n<this._png.channels;n++)e.data[a+n]=t.data[o+n]}break;case ff.OVER:for(let i=0;i<t.height;i++)for(let a=0;a<t.width;a++){let{index:o,frameIndex:s}=r(i,a);for(let r=0;r<this._png.channels;r++){let i=t.data[s+this._png.channels-1]/n,a=r%(this._png.channels-1)==0?1:t.data[s+r],c=Math.floor(i*a+(1-i)*e.data[o+r]);e.data[o+r]+=c}}break;default:throw Error(`Unknown blendOp`)}}decodeImage(){if(this._inflator.err)throw Error(`Error while decompressing the data: ${this._inflator.err}`);let e=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==lf.ADAPTIVE)throw Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===uf.NO_INTERLACE)this._png.data=Kd({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===uf.ADAM7)this._png.data=Vd({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let e=this._inflator.result,t=this._frames.at(-1);t?t.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:df.NONE,blendOp:ff.SOURCE,data:e}),this._inflator=new Td,this._writingDataChunks=!1}};function mf(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw Error(`invalid bit depth: ${e}`);return e}var hf;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.METRE=1]=`METRE`})(hf||={});function gf(e,t){return new pf(e,t).decode()}var X=function(){return typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this}();function _f(){X.console&&typeof X.console.log==`function`&&X.console.log.apply(X.console,arguments)}var vf={log:_f,warn:function(e){X.console&&(typeof X.console.warn==`function`?X.console.warn.apply(X.console,arguments):_f.call(null,arguments))},error:function(e){X.console&&(typeof X.console.error==`function`?X.console.error.apply(X.console,arguments):_f(e))}};function yf(e,t,n){var r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Sf(r.response,t,n)},r.onerror=function(){vf.error(`could not download file`)},r.send()}function bf(e){var t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function xf(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{var t=document.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Sf=X.saveAs||((typeof window>`u`?`undefined`:r(window))!==`object`||window!==X?function(){}:typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype?function(e,t,n){var r=X.URL||X.webkitURL,i=document.createElement(`a`);t=t||e.name||`download`,i.download=t,i.rel=`noopener`,typeof e==`string`?(i.href=e,i.origin===location.origin?xf(i):bf(i.href)?yf(e,t,n):xf(i,i.target=`_blank`)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){xf(i)},0))}:`msSaveOrOpenBlob`in navigator?function(e,t,n){if(t=t||e.name||`download`,typeof e==`string`)if(bf(e))yf(e,t,n);else{var i=document.createElement(`a`);i.href=e,i.target=`_blank`,setTimeout(function(){xf(i)})}else navigator.msSaveOrOpenBlob(function(e,t){return t===void 0?t={autoBom:!1}:r(t)!==`object`&&(vf.warn(`Deprecated: Expected third argument to be a object`),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}(e,n),t)}:function(e,t,n,i){if((i||=open(``,`_blank`))&&(i.document.title=i.document.body.innerText=`downloading...`),typeof e==`string`)return yf(e,t,n);var a=e.type===`application/octet-stream`,o=/constructor/i.test(X.HTMLElement)||X.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&o)&&(typeof FileReader>`u`?`undefined`:r(FileReader))===`object`){var c=new FileReader;c.onloadend=function(){var e=c.result;e=s?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var l=X.URL||X.webkitURL,u=l.createObjectURL(e);i?i.location=u:location.href=u,i=null,setTimeout(function(){l.revokeObjectURL(u)},4e4)}});function Cf(e){var t;e||=``,this.ok=!1,e.charAt(0)==`#`&&(e=e.substr(1,6)),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`,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`}[e=(e=e.replace(/ /g,``)).toLowerCase()]||e;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(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:[`#00ff00`,`336699`],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:[`#fb0`,`f0f`],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,a=n[r].process,o=i.exec(e);o&&(t=a(o),this.r=t[0],this.g=t[1],this.b=t[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 e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return e.length==1&&(e=`0`+e),t.length==1&&(t=`0`+t),n.length==1&&(n=`0`+n),`#`+e+t+n}}var wf=X.atob.bind(X),Tf=X.btoa.bind(X);function Ef(e,t){var n=e[0],r=e[1],i=e[2],a=e[3];n=Of(n,r,i,a,t[0],7,-680876936),a=Of(a,n,r,i,t[1],12,-389564586),i=Of(i,a,n,r,t[2],17,606105819),r=Of(r,i,a,n,t[3],22,-1044525330),n=Of(n,r,i,a,t[4],7,-176418897),a=Of(a,n,r,i,t[5],12,1200080426),i=Of(i,a,n,r,t[6],17,-1473231341),r=Of(r,i,a,n,t[7],22,-45705983),n=Of(n,r,i,a,t[8],7,1770035416),a=Of(a,n,r,i,t[9],12,-1958414417),i=Of(i,a,n,r,t[10],17,-42063),r=Of(r,i,a,n,t[11],22,-1990404162),n=Of(n,r,i,a,t[12],7,1804603682),a=Of(a,n,r,i,t[13],12,-40341101),i=Of(i,a,n,r,t[14],17,-1502002290),n=kf(n,r=Of(r,i,a,n,t[15],22,1236535329),i,a,t[1],5,-165796510),a=kf(a,n,r,i,t[6],9,-1069501632),i=kf(i,a,n,r,t[11],14,643717713),r=kf(r,i,a,n,t[0],20,-373897302),n=kf(n,r,i,a,t[5],5,-701558691),a=kf(a,n,r,i,t[10],9,38016083),i=kf(i,a,n,r,t[15],14,-660478335),r=kf(r,i,a,n,t[4],20,-405537848),n=kf(n,r,i,a,t[9],5,568446438),a=kf(a,n,r,i,t[14],9,-1019803690),i=kf(i,a,n,r,t[3],14,-187363961),r=kf(r,i,a,n,t[8],20,1163531501),n=kf(n,r,i,a,t[13],5,-1444681467),a=kf(a,n,r,i,t[2],9,-51403784),i=kf(i,a,n,r,t[7],14,1735328473),n=Af(n,r=kf(r,i,a,n,t[12],20,-1926607734),i,a,t[5],4,-378558),a=Af(a,n,r,i,t[8],11,-2022574463),i=Af(i,a,n,r,t[11],16,1839030562),r=Af(r,i,a,n,t[14],23,-35309556),n=Af(n,r,i,a,t[1],4,-1530992060),a=Af(a,n,r,i,t[4],11,1272893353),i=Af(i,a,n,r,t[7],16,-155497632),r=Af(r,i,a,n,t[10],23,-1094730640),n=Af(n,r,i,a,t[13],4,681279174),a=Af(a,n,r,i,t[0],11,-358537222),i=Af(i,a,n,r,t[3],16,-722521979),r=Af(r,i,a,n,t[6],23,76029189),n=Af(n,r,i,a,t[9],4,-640364487),a=Af(a,n,r,i,t[12],11,-421815835),i=Af(i,a,n,r,t[15],16,530742520),n=jf(n,r=Af(r,i,a,n,t[2],23,-995338651),i,a,t[0],6,-198630844),a=jf(a,n,r,i,t[7],10,1126891415),i=jf(i,a,n,r,t[14],15,-1416354905),r=jf(r,i,a,n,t[5],21,-57434055),n=jf(n,r,i,a,t[12],6,1700485571),a=jf(a,n,r,i,t[3],10,-1894986606),i=jf(i,a,n,r,t[10],15,-1051523),r=jf(r,i,a,n,t[1],21,-2054922799),n=jf(n,r,i,a,t[8],6,1873313359),a=jf(a,n,r,i,t[15],10,-30611744),i=jf(i,a,n,r,t[6],15,-1560198380),r=jf(r,i,a,n,t[13],21,1309151649),n=jf(n,r,i,a,t[4],6,-145523070),a=jf(a,n,r,i,t[11],10,-1120210379),i=jf(i,a,n,r,t[2],15,718787259),r=jf(r,i,a,n,t[9],21,-343485551),e[0]=zf(n,e[0]),e[1]=zf(r,e[1]),e[2]=zf(i,e[2]),e[3]=zf(a,e[3])}function Df(e,t,n,r,i,a){return t=zf(zf(t,e),zf(r,a)),zf(t<<i|t>>>32-i,n)}function Of(e,t,n,r,i,a,o){return Df(t&n|~t&r,e,t,i,a,o)}function kf(e,t,n,r,i,a,o){return Df(t&r|n&~r,e,t,i,a,o)}function Af(e,t,n,r,i,a,o){return Df(t^n^r,e,t,i,a,o)}function jf(e,t,n,r,i,a,o){return Df(n^(t|~r),e,t,i,a,o)}function Mf(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Ef(r,Nf(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(Ef(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,Ef(r,i),r}function Nf(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var Pf=`0123456789abcdef`.split(``);function Ff(e){for(var t=``,n=0;n<4;n++)t+=Pf[e>>8*n+4&15]+Pf[e>>8*n&15];return t}function If(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Lf(e){return Mf(e).map(If).join(``)}var Rf=function(e){for(var t=0;t<e.length;t++)e[t]=Ff(e[t]);return e.join(``)}(Mf(`hello`))!=`5d41402abc4b2a76b9719d911017c592`;function zf(e,t){if(Rf){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}function Bf(e,t){var n,r,i,a;if(e!==n){for(var o=(i=e,a=1+(256/e.length|0),Array(a+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var l=0;for(c=0;c<256;c++){var u=s[c];l=(l+u+o.charCodeAt(c))%256,s[c]=s[l],s[l]=u}n=e,r=s}else s=r;var d=t.length,f=0,p=0,m=``;for(c=0;c<d;c++)p=(p+(u=s[f=(f+1)%256]))%256,s[f]=s[p],s[p]=u,o=s[(s[f]+s[p])%256],m+=String.fromCharCode(t.charCodeAt(c)^o);return m}var Vf={print:4,modify:8,copy:16,"annot-forms":32};function Hf(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(e){if(Vf.perm!==void 0)throw Error(`Invalid permission: `+e);i+=Vf[e]}),this.padding=`(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz`;var a=(t+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=Lf(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Bf(this.encryptionKey,this.padding)}function Uf(e){if(/[^\u0000-\u00ff]/.test(e))throw Error(`Invalid PDF Name Object: `+e+`, Only accept ASCII characters.`);for(var t=``,n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);t+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?`#`+(`0`+i.toString(16)).slice(-2):e[r]}return t}function Wf(e){if(r(e)!==`object`)throw Error(`Invalid Context passed to initialize PubSub (jsPDF-module)`);var t={};this.subscribe=function(e,n,r){if(r||=!1,typeof e!=`string`||typeof n!=`function`||typeof r!=`boolean`)throw Error(`Invalid arguments passed to PubSub.subscribe (jsPDF-module)`);t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[n,!!r],i},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[n]){var o=t[n][a];try{o[0].apply(e,r)}catch(e){X.console&&vf.error(`jsPDF PubSub Error`,e.message,e)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Gf(e){if(!(this instanceof Gf))return new Gf(e);var t=`opacity,stroke-opacity`.split(`,`);for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id=``,this.objectNumber=-1}function Kf(e,t){this.gState=e,this.matrix=t,this.id=``,this.objectNumber=-1}function qf(e,t,n,r,i){if(!(this instanceof qf))return new qf(e,t,n,r,i);this.type=e===`axial`?2:3,this.coords=t,this.colors=n,Kf.call(this,r,i)}function Jf(e,t,n,r,i){if(!(this instanceof Jf))return new Jf(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream=``,this.cloneIndex=0,Kf.call(this,r,i)}function Z(e){var t,n=typeof arguments[0]==`string`?arguments[0]:`p`,i=arguments[1],a=arguments[2],o=arguments[3],s=[],c=1,l=16,u=`S`,d=null;r(e||={})===`object`&&(n=e.orientation,i=e.unit||i,a=e.format||a,o=e.compress||e.compressPdf||o,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||``,d.ownerPassword=d.ownerPassword||``,d.userPermissions=d.userPermissions||[]),c=typeof e.userUnit==`number`?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),u=e.defaultPathOperation||`S`),s=e.filters||(!0===o?[`FlateEncode`]:s),i||=`mm`,n=(``+(n||`P`)).toLowerCase();var f=e.putOnlyUsedFonts||!1,p={},m={internal:{},__private__:{}};m.__private__.PubSub=Wf;var h=`1.3`,g=m.__private__.getPdfVersion=function(){return h};m.__private__.setPdfVersion=function(e){h=e};var _={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]};m.__private__.getPageFormats=function(){return _};var v=m.__private__.getPageFormat=function(e){return _[e]};a||=`a4`;var y=`compat`,b=`advanced`,x=y;function S(){this.saveGraphicsState(),H(new G(we,0,0,-we,0,Cn()*we).toString()+` cm`),this.setFontSize(this.getFontSize()/we),u=`n`,x=b}function C(){this.restoreGraphicsState(),u=`S`,x=y}var w=m.__private__.combineFontStyleAndFontWeight=function(e,t){if(e==`bold`&&t==`normal`||e==`bold`&&t==400||e==`normal`&&t==`italic`||e==`bold`&&t==`italic`)throw Error(`Invalid Combination of fontweight and fontstyle`);return t&&(e=t==400||t===`normal`?e===`italic`?`italic`:`normal`:t!=700&&t!==`bold`||e!==`normal`?(t==700?`bold`:t)+``+e:`bold`),e};m.advancedAPI=function(e){var t=x===y;return t&&S.call(this),typeof e!=`function`||(e(this),t&&C.call(this)),this},m.compatAPI=function(e){var t=x===b;return t&&C.call(this),typeof e!=`function`||(e(this),t&&S.call(this)),this},m.isAdvancedAPI=function(){return x===b};var T,E=function(e){if(x!==b)throw Error(e+` is only available in 'advanced' API mode. You need to call advancedAPI() first.`)},D=m.roundToPrecision=m.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw Error(`Invalid argument passed to jsPDF.roundToPrecision`);return e.toFixed(r).replace(/0+$/,``)};T=m.hpf=m.__private__.hpf=typeof l==`number`?function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.hpf`);return D(e,l)}:l===`smart`?function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.hpf`);return D(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.hpf`);return D(e,16)};var O=m.f2=m.__private__.f2=function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.f2`);return D(e,2)},k=m.__private__.f3=function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.f3`);return D(e,3)},A=m.scale=m.__private__.scale=function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.scale`);return x===y?e*we:x===b?e:void 0},j=function(e){return A(function(e){return x===y?Cn()-e:x===b?e:void 0}(e))};m.__private__.setPrecision=m.setPrecision=function(e){typeof parseInt(e,10)==`number`&&(t=parseInt(e,10))};var M,N=`00000000000000000000000000000000`,P=m.__private__.getFileId=function(){return N},F=m.__private__.setFileId=function(e){return N=e!==void 0&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():N.split(``).map(function(){return`ABCDEF0123456789`.charAt(Math.floor(16*Math.random()))}).join(``),d!==null&&(Ot=new Hf(d.userPermissions,d.userPassword,d.ownerPassword,N)),N};m.setFileId=function(e){return F(e),this},m.getFileId=function(){return P()};var I=m.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?`+`:`-`,r=Math.floor(Math.abs(t/60)),i=Math.abs(t%60),a=[n,B(r),`'`,B(i),`'`].join(``);return[`D:`,e.getFullYear(),B(e.getMonth()+1),B(e.getDate()),B(e.getHours()),B(e.getMinutes()),B(e.getSeconds()),a].join(``)},L=m.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),a=parseInt(e.substr(12,2),10),o=parseInt(e.substr(14,2),10);return new Date(t,n,r,i,a,o,0)},ee=m.__private__.setCreationDate=function(e){var t;if(e===void 0&&(e=new Date),e instanceof Date)t=I(e);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(e))throw Error(`Invalid argument passed to jsPDF.setCreationDate`);t=e}return M=t},R=m.__private__.getCreationDate=function(e){var t=M;return e===`jsDate`&&(t=L(M)),t};m.setCreationDate=function(e){return ee(e),this},m.getCreationDate=function(e){return R(e)};var z,B=m.__private__.padd2=function(e){return(`0`+parseInt(e)).slice(-2)},te=m.__private__.padd2Hex=function(e){return(`00`+(e=e.toString())).substr(e.length)},V=0,ne=[],re=[],ie=0,ae=[],oe=[],se=!1,ce=re;m.__private__.setCustomOutputDestination=function(e){se=!0,ce=e};var le=function(e){se||(ce=e)};m.__private__.resetCustomOutputDestination=function(){se=!1,ce=re};var H=m.__private__.out=function(e){return e=e.toString(),ie+=e.length+1,ce.push(e),ce},ue=m.__private__.write=function(e){return H(arguments.length===1?e.toString():Array.prototype.join.call(arguments,` `))},de=m.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},fe=[[`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]];m.__private__.getStandardFonts=function(){return fe};var pe=e.fontSize||16;m.__private__.setFontSize=m.setFontSize=function(e){return pe=x===b?e/we:e,this};var me,he=m.__private__.getFontSize=m.getFontSize=function(){return x===y?pe:pe*we},ge=e.R2L||!1;m.__private__.setR2L=m.setR2L=function(e){return ge=e,this},m.__private__.getR2L=m.getR2L=function(){return ge};var _e,ve=m.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))me=e;else if(isNaN(e)){if([void 0,null,`fullwidth`,`fullheight`,`fullpage`,`original`].indexOf(e)===-1)throw Error(`zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "`+e+`" is not recognized.`);me=e}else me=parseInt(e,10)};m.__private__.getZoomMode=function(){return me};var ye,be=m.__private__.setPageMode=function(e){if([void 0,null,`UseNone`,`UseOutlines`,`UseThumbs`,`FullScreen`].indexOf(e)==-1)throw Error(`Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "`+e+`" is not recognized.`);_e=e};m.__private__.getPageMode=function(){return _e};var xe=m.__private__.setLayoutMode=function(e){if([void 0,null,`continuous`,`single`,`twoleft`,`tworight`,`two`].indexOf(e)==-1)throw Error(`Layout mode must be one of continuous, single, twoleft, tworight. "`+e+`" is not recognized.`);ye=e};m.__private__.getLayoutMode=function(){return ye},m.__private__.setDisplayMode=m.setDisplayMode=function(e,t,n){return ve(e),xe(t),be(n),this};var Se={title:``,subject:``,author:``,keywords:``,creator:``};m.__private__.getDocumentProperty=function(e){if(Object.keys(Se).indexOf(e)===-1)throw Error(`Invalid argument passed to jsPDF.getDocumentProperty`);return Se[e]},m.__private__.getDocumentProperties=function(){return Se},m.__private__.setDocumentProperties=m.setProperties=m.setDocumentProperties=function(e){for(var t in Se)Se.hasOwnProperty(t)&&e[t]&&(Se[t]=e[t]);return this},m.__private__.setDocumentProperty=function(e,t){if(Object.keys(Se).indexOf(e)===-1)throw Error(`Invalid arguments passed to jsPDF.setDocumentProperty`);return Se[e]=t};var Ce,we,Te,Ee,De,Oe={},ke={},Ae=[],U={},je={},Me={},Ne={},Pe=null,Fe=0,W=[],Ie=new Wf(m),Le=e.hotfixes||[],Re={},ze={},Be=[],G=function e(t,n,r,i,a,o){if(!(this instanceof e))return new e(t,n,r,i,a,o);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[t,n,r,i,a,o]};Object.defineProperty(G.prototype,`sx`,{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(G.prototype,`shy`,{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(G.prototype,`shx`,{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(G.prototype,`sy`,{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(G.prototype,`tx`,{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(G.prototype,`ty`,{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(G.prototype,`a`,{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(G.prototype,`b`,{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(G.prototype,`c`,{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(G.prototype,`d`,{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(G.prototype,`e`,{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(G.prototype,`f`,{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(G.prototype,`rotation`,{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(G.prototype,`scaleX`,{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(G.prototype,`scaleY`,{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(G.prototype,`isIdentity`,{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),G.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(T).join(e)},G.prototype.multiply=function(e){return new G(e.sx*this.sx+e.shy*this.shx,e.sx*this.shy+e.shy*this.sy,e.shx*this.sx+e.sy*this.shx,e.shx*this.shy+e.sy*this.sy,e.tx*this.sx+e.ty*this.shx+this.tx,e.tx*this.shy+e.ty*this.sy+this.ty)},G.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(e*e+t*t),s=(e/=o)*n+(t/=o)*r;n-=e*s,r-=t*s;var c=Math.sqrt(n*n+r*r);return s/=c,e*(r/=c)<t*(n/=c)&&(e=-e,t=-t,s=-s,o=-o),{scale:new G(o,0,0,c,0,0),translate:new G(1,0,0,1,i,a),rotate:new G(e,t,-t,e,0,0),skew:new G(1,0,s,1,0,0)}},G.prototype.toString=function(e){return this.join(` `)},G.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,o=1/(e*r-t*n),s=r*o,c=-t*o,l=-n*o,u=e*o;return new G(s,c,l,u,-s*i-l*a,-c*i-u*a)},G.prototype.applyToPoint=function(e){return new fn(e.x*this.sx+e.y*this.shx+this.tx,e.x*this.shy+e.y*this.sy+this.ty)},G.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new fn(e.x+e.w,e.y+e.h));return new pn(t.x,t.y,n.x-t.x,n.y-t.y)},G.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty;return new G(e,t,n,r,i,a)},m.Matrix=G;var Ve=m.matrixMult=function(e,t){return t.multiply(e)},He=new G(1,0,0,1,0,0);m.unitMatrix=m.identityMatrix=He;var Ue=function(e,t){if(!je[e]){var n=(t instanceof qf?`Sh`:`P`)+(Object.keys(U).length+1).toString(10);t.id=n,je[e]=n,U[n]=t,Ie.publish(`addPattern`,t)}};m.ShadingPattern=qf,m.TilingPattern=Jf,m.addShadingPattern=function(e,t){return E(`addShadingPattern()`),Ue(e,t),this},m.beginTilingPattern=function(e){E(`beginTilingPattern()`),hn(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},m.endTilingPattern=function(e,t){E(`endTilingPattern()`),t.stream=oe[z].join(`
|
|
22
|
+
`),Ue(e,t),Ie.publish(`endTilingPattern`,t),Be.pop().restore()};var We,Ge=m.__private__.newObject=function(){var e=Ke();return qe(e,!0),e},Ke=m.__private__.newObjectDeferred=function(){return V++,ne[V]=function(){return ie},V},qe=function(e,t){return t=typeof t==`boolean`&&t,ne[e]=ie,t&&H(e+` 0 obj`),e},Je=m.__private__.newAdditionalObject=function(){var e={objId:Ke(),content:``};return ae.push(e),e},Ye=Ke(),Xe=Ke(),Ze=m.__private__.decodeColorString=function(e){var t=e.split(` `);if(t.length!==2||t[1]!==`g`&&t[1]!==`G`)t.length!==5||t[4]!==`k`&&t[4]!==`K`||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),`r`]);else{var n=parseFloat(t[0]);t=[n,n,n,`r`]}for(var r=`#`,i=0;i<3;i++)r+=(`0`+Math.floor(255*parseFloat(t[i])).toString(16)).slice(-2);return r},Qe=m.__private__.encodeColorString=function(e){var t;typeof e==`string`&&(e={ch1:e});var n=e.ch1,i=e.ch2,a=e.ch3,o=e.ch4,s=e.pdfColorType===`draw`?[`G`,`RG`,`K`]:[`g`,`rg`,`k`];if(typeof n==`string`&&n.charAt(0)!==`#`){var c=new Cf(n);if(c.ok)n=c.toHex();else if(!/^\d*\.?\d*$/.test(n))throw Error(`Invalid color "`+n+`" passed to jsPDF.encodeColorString.`)}if(typeof n==`string`&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n=`#`+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),typeof n==`string`&&/^#[0-9A-Fa-f]{6}$/.test(n)){var l=parseInt(n.substr(1),16);n=l>>16&255,i=l>>8&255,a=255&l}if(i===void 0||o===void 0&&n===i&&i===a)t=typeof n==`string`?n+` `+s[0]:e.precision===2?O(n/255)+` `+s[0]:k(n/255)+` `+s[0];else if(o===void 0||r(o)===`object`){if(o&&!isNaN(o.a)&&o.a===0)return[`1.`,`1.`,`1.`,s[1]].join(` `);t=typeof n==`string`?[n,i,a,s[1]].join(` `):e.precision===2?[O(n/255),O(i/255),O(a/255),s[1]].join(` `):[k(n/255),k(i/255),k(a/255),s[1]].join(` `)}else t=typeof n==`string`?[n,i,a,o,s[2]].join(` `):e.precision===2?[O(n),O(i),O(a),O(o),s[2]].join(` `):[k(n),k(i),k(a),k(o),s[2]].join(` `);return t},$e=m.__private__.getFilters=function(){return s},et=m.__private__.putStream=function(e){var t=(e||={}).data||``,n=e.filters||$e(),r=e.alreadyAppliedFilters||[],i=e.addLength1||!1,a=t.length,o=e.objectId,s=function(e){return e};if(d!==null&&o===void 0)throw Error(`ObjectId must be passed to putStream for file encryption`);d!==null&&(s=Ot.encryptor(o,0));var c={};!0===n&&(n=[`FlateEncode`]);var l=e.additionalKeyValues||[],u=(c=Z.API.processDataByFilters===void 0?{data:t,reverseChain:[]}:Z.API.processDataByFilters(t,n)).reverseChain+(Array.isArray(r)?r.join(` `):r.toString());if(c.data.length!==0&&(l.push({key:`Length`,value:c.data.length}),!0===i&&l.push({key:`Length1`,value:a})),u.length!=0)if(u.split(`/`).length-1==1)l.push({key:`Filter`,value:u});else{l.push({key:`Filter`,value:`[`+u+`]`});for(var f=0;f<l.length;f+=1)if(l[f].key===`DecodeParms`){for(var p=[],m=0;m<c.reverseChain.split(`/`).length-1;m+=1)p.push(`null`);p.push(l[f].value),l[f].value=`[`+p.join(` `)+`]`}}H(`<<`);for(var h=0;h<l.length;h++)H(`/`+l[h].key+` `+l[h].value);H(`>>`),c.data.length!==0&&(H(`stream`),H(s(c.data)),H(`endstream`))},tt=m.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,i=e.contentsObjId;qe(r,!0),H(`<</Type /Page`),H(`/Parent `+e.rootDictionaryObjId+` 0 R`),H(`/Resources `+e.resourceDictionaryObjId+` 0 R`),H(`/MediaBox [`+parseFloat(T(e.mediaBox.bottomLeftX))+` `+parseFloat(T(e.mediaBox.bottomLeftY))+` `+T(e.mediaBox.topRightX)+` `+T(e.mediaBox.topRightY)+`]`),e.cropBox!==null&&H(`/CropBox [`+T(e.cropBox.bottomLeftX)+` `+T(e.cropBox.bottomLeftY)+` `+T(e.cropBox.topRightX)+` `+T(e.cropBox.topRightY)+`]`),e.bleedBox!==null&&H(`/BleedBox [`+T(e.bleedBox.bottomLeftX)+` `+T(e.bleedBox.bottomLeftY)+` `+T(e.bleedBox.topRightX)+` `+T(e.bleedBox.topRightY)+`]`),e.trimBox!==null&&H(`/TrimBox [`+T(e.trimBox.bottomLeftX)+` `+T(e.trimBox.bottomLeftY)+` `+T(e.trimBox.topRightX)+` `+T(e.trimBox.topRightY)+`]`),e.artBox!==null&&H(`/ArtBox [`+T(e.artBox.bottomLeftX)+` `+T(e.artBox.bottomLeftY)+` `+T(e.artBox.topRightX)+` `+T(e.artBox.topRightY)+`]`),typeof e.userUnit==`number`&&e.userUnit!==1&&H(`/UserUnit `+e.userUnit),Ie.publish(`putPage`,{objId:r,pageContext:W[t],pageNumber:t,page:n}),H(`/Contents `+i+` 0 R`),H(`>>`),H(`endobj`);var a=n.join(`
|
|
23
|
+
`);return x===b&&(a+=`
|
|
24
|
+
Q`),qe(i,!0),et({data:a,filters:$e(),objectId:i}),H(`endobj`),r},nt=m.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Fe;e++)W[e].objId=Ke(),W[e].contentsObjId=Ke();for(e=1;e<=Fe;e++)n.push(tt({number:e,data:oe[e],objId:W[e].objId,contentsObjId:W[e].contentsObjId,mediaBox:W[e].mediaBox,cropBox:W[e].cropBox,bleedBox:W[e].bleedBox,trimBox:W[e].trimBox,artBox:W[e].artBox,userUnit:W[e].userUnit,rootDictionaryObjId:Ye,resourceDictionaryObjId:Xe}));qe(Ye,!0),H(`<</Type /Pages`);var r=`/Kids [`;for(t=0;t<Fe;t++)r+=n[t]+` 0 R `;H(r+`]`),H(`/Count `+Fe),H(`>>`),H(`endobj`),Ie.publish(`postPutPages`)},rt=function(e){Ie.publish(`putFont`,{font:e,out:H,newObject:Ge,putStream:et}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ge(),H(`<<`),H(`/Type /Font`),H(`/BaseFont /`+Uf(e.postScriptName)),H(`/Subtype /Type1`),typeof e.encoding==`string`&&H(`/Encoding /`+e.encoding),H(`/FirstChar 32`),H(`/LastChar 255`),H(`>>`),H(`endobj`))},it=function(e){e.objectNumber=Ge();var t=[];t.push({key:`Type`,value:`/XObject`}),t.push({key:`Subtype`,value:`/Form`}),t.push({key:`BBox`,value:`[`+[T(e.x),T(e.y),T(e.x+e.width),T(e.y+e.height)].join(` `)+`]`}),t.push({key:`Matrix`,value:`[`+e.matrix.toString()+`]`}),et({data:e.pages[1].join(`
|
|
25
|
+
`),additionalKeyValues:t,objectId:e.objectNumber}),H(`endobj`)},at=function(e,t){t||=21;var n=Ge(),r=function(e,t){var n,r=[],i=1/(t-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),e[0].offset!=0){var a={offset:0,color:e[0].color};e.unshift(a)}if(e[e.length-1].offset!=1){var o={offset:1,color:e[e.length-1].color};e.push(o)}for(var s=``,c=0,l=0;l<r.length;l++){for(n=r[l];n>e[c+1].offset;)c++;var u=e[c].offset,d=(n-u)/(e[c+1].offset-u),f=e[c].color,p=e[c+1].color;s+=te(Math.round((1-d)*f[0]+d*p[0]).toString(16))+te(Math.round((1-d)*f[1]+d*p[1]).toString(16))+te(Math.round((1-d)*f[2]+d*p[2]).toString(16))}return s.trim()}(e.colors,t),i=[];i.push({key:`FunctionType`,value:`0`}),i.push({key:`Domain`,value:`[0.0 1.0]`}),i.push({key:`Size`,value:`[`+t+`]`}),i.push({key:`BitsPerSample`,value:`8`}),i.push({key:`Range`,value:`[0.0 1.0 0.0 1.0 0.0 1.0]`}),i.push({key:`Decode`,value:`[0.0 1.0 0.0 1.0 0.0 1.0]`}),et({data:r,additionalKeyValues:i,alreadyAppliedFilters:[`/ASCIIHexDecode`],objectId:n}),H(`endobj`),e.objectNumber=Ge(),H(`<< /ShadingType `+e.type),H(`/ColorSpace /DeviceRGB`);var a=`/Coords [`+T(parseFloat(e.coords[0]))+` `+T(parseFloat(e.coords[1]))+` `;e.type===2?a+=T(parseFloat(e.coords[2]))+` `+T(parseFloat(e.coords[3])):a+=T(parseFloat(e.coords[2]))+` `+T(parseFloat(e.coords[3]))+` `+T(parseFloat(e.coords[4]))+` `+T(parseFloat(e.coords[5])),H(a+=`]`),e.matrix&&H(`/Matrix [`+e.matrix.toString()+`]`),H(`/Function `+n+` 0 R`),H(`/Extend [true true]`),H(`>>`),H(`endobj`)},ot=function(e,t){var n=Ke(),r=Ge();t.push({resourcesOid:n,objectOid:r}),e.objectNumber=r;var i=[];i.push({key:`Type`,value:`/Pattern`}),i.push({key:`PatternType`,value:`1`}),i.push({key:`PaintType`,value:`1`}),i.push({key:`TilingType`,value:`1`}),i.push({key:`BBox`,value:`[`+e.boundingBox.map(T).join(` `)+`]`}),i.push({key:`XStep`,value:T(e.xStep)}),i.push({key:`YStep`,value:T(e.yStep)}),i.push({key:`Resources`,value:n+` 0 R`}),e.matrix&&i.push({key:`Matrix`,value:`[`+e.matrix.toString()+`]`}),et({data:e.stream,additionalKeyValues:i,objectId:e.objectNumber}),H(`endobj`)},st=function(e){for(var t in e.objectNumber=Ge(),H(`<<`),e)switch(t){case`opacity`:H(`/ca `+O(e[t]));break;case`stroke-opacity`:H(`/CA `+O(e[t]))}H(`>>`),H(`endobj`)},ct=function(e){qe(e.resourcesOid,!0),H(`<<`),H(`/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]`),function(){for(var e in H(`/Font <<`),Oe)Oe.hasOwnProperty(e)&&(!1===f||!0===f&&p.hasOwnProperty(e))&&H(`/`+e+` `+Oe[e].objectNumber+` 0 R`);H(`>>`)}(),function(){if(Object.keys(U).length>0){for(var e in H(`/Shading <<`),U)U.hasOwnProperty(e)&&U[e]instanceof qf&&U[e].objectNumber>=0&&H(`/`+e+` `+U[e].objectNumber+` 0 R`);Ie.publish(`putShadingPatternDict`),H(`>>`)}}(),function(e){if(Object.keys(U).length>0){for(var t in H(`/Pattern <<`),U)U.hasOwnProperty(t)&&U[t]instanceof m.TilingPattern&&U[t].objectNumber>=0&&U[t].objectNumber<e&&H(`/`+t+` `+U[t].objectNumber+` 0 R`);Ie.publish(`putTilingPatternDict`),H(`>>`)}}(e.objectOid),function(){if(Object.keys(Me).length>0){for(var e in H(`/ExtGState <<`),Me)Me.hasOwnProperty(e)&&Me[e].objectNumber>=0&&H(`/`+e+` `+Me[e].objectNumber+` 0 R`);Ie.publish(`putGStateDict`),H(`>>`)}}(),function(){for(var e in H(`/XObject <<`),Re)Re.hasOwnProperty(e)&&Re[e].objectNumber>=0&&H(`/`+e+` `+Re[e].objectNumber+` 0 R`);Ie.publish(`putXobjectDict`),H(`>>`)}(),H(`>>`),H(`endobj`)},lt=function(e){ke[e.fontName]=ke[e.fontName]||{},ke[e.fontName][e.fontStyle]=e.id},ut=function(e,t,n,r,i){var a={id:`F`+(Object.keys(Oe).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return Ie.publish(`addFont`,{font:a,instance:this}),Oe[a.id]=a,lt(a),a.id},dt=m.__private__.pdfEscape=m.pdfEscape=function(e,t){return function(e,t){var n,r,i,a,o,s,c,l,u;if(i=(t||={}).sourceEncoding||`Unicode`,o=t.outputEncoding,(t.autoencode||o)&&Oe[Ce].metadata&&Oe[Ce].metadata[i]&&Oe[Ce].metadata[i].encoding&&(a=Oe[Ce].metadata[i].encoding,!o&&Oe[Ce].encoding&&(o=Oe[Ce].encoding),!o&&a.codePages&&(o=a.codePages[0]),typeof o==`string`&&(o=a[o]),o)){for(c=!1,s=[],n=0,r=e.length;n<r;n++)(l=o[e.charCodeAt(n)])?s.push(String.fromCharCode(l)):s.push(e[n]),s[n].charCodeAt(0)>>8&&(c=!0);e=s.join(``)}for(n=e.length;c===void 0&&n!==0;)e.charCodeAt(n-1)>>8&&(c=!0),n--;if(!c)return e;for(s=t.noBOM?[]:[254,255],n=0,r=e.length;n<r;n++){if((u=(l=e.charCodeAt(n))>>8)>>8)throw Error(`Character at position `+n+` of string '`+e+`' exceeds 16bits. Cannot be encoded into UCS-2 BE`);s.push(u),s.push(l-(u<<8))}return String.fromCharCode.apply(void 0,s)}(e,t).replace(/\\/g,`\\\\`).replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)},ft=m.__private__.beginPage=function(e){oe[++Fe]=[],W[Fe]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},ht(Fe),le(oe[z])},pt=function(e,t){var r,i,o;switch(n=t||n,typeof e==`string`&&(r=v(e.toLowerCase()),Array.isArray(r)&&(i=r[0],o=r[1])),Array.isArray(e)&&(i=e[0]*we,o=e[1]*we),isNaN(i)&&(i=a[0],o=a[1]),(i>14400||o>14400)&&(vf.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)),a=[i,o],n.substr(0,1)){case`l`:o>i&&(a=[o,i]);break;case`p`:i>o&&(a=[o,i])}ft(a),Jt(Kt),H(nn),ln!==0&&H(ln+` J`),un!==0&&H(un+` j`),Ie.publish(`addPage`,{pageNumber:Fe})},mt=function(e){e>0&&e<=Fe&&(oe.splice(e,1),W.splice(e,1),Fe--,z>Fe&&(z=Fe),this.setPage(z))},ht=function(e){e>0&&e<=Fe&&(z=e)},gt=m.__private__.getNumberOfPages=m.getNumberOfPages=function(){return oe.length-1},_t=function(e,t,n){var r,i=void 0;return n||={},e=e===void 0?Oe[Ce].fontName:e,t=t===void 0?Oe[Ce].fontStyle:t,r=e.toLowerCase(),ke[r]!==void 0&&ke[r][t]!==void 0?i=ke[r][t]:ke[e]!==void 0&&ke[e][t]!==void 0?i=ke[e][t]:!1===n.disableWarning&&vf.warn(`Unable to look up font label for font '`+e+`', '`+t+`'. Refer to getFontList() for available fonts.`),i||n.noFallback||((i=ke.times[t])??(i=ke.times.normal)),i},vt=m.__private__.putInfo=function(){var e=Ge(),t=function(e){return e};for(var n in d!==null&&(t=Ot.encryptor(e,0)),H(`<<`),H(`/Producer (`+dt(t(`jsPDF `+Z.version))+`)`),Se)Se.hasOwnProperty(n)&&Se[n]&&H(`/`+n.substr(0,1).toUpperCase()+n.substr(1)+` (`+dt(t(Se[n]))+`)`);H(`/CreationDate (`+dt(t(M))+`)`),H(`>>`),H(`endobj`)},yt=m.__private__.putCatalog=function(e){var t=(e||={}).rootDictionaryObjId||Ye;switch(Ge(),H(`<<`),H(`/Type /Catalog`),H(`/Pages `+t+` 0 R`),me||=`fullwidth`,me){case`fullwidth`:H(`/OpenAction [3 0 R /FitH null]`);break;case`fullheight`:H(`/OpenAction [3 0 R /FitV null]`);break;case`fullpage`:H(`/OpenAction [3 0 R /Fit]`);break;case`original`:H(`/OpenAction [3 0 R /XYZ null null 1]`);break;default:var n=``+me;n.substr(n.length-1)===`%`&&(me=parseInt(me)/100),typeof me==`number`&&H(`/OpenAction [3 0 R /XYZ null null `+O(me)+`]`)}switch(ye||=`continuous`,ye){case`continuous`:H(`/PageLayout /OneColumn`);break;case`single`:H(`/PageLayout /SinglePage`);break;case`two`:case`twoleft`:H(`/PageLayout /TwoColumnLeft`);break;case`tworight`:H(`/PageLayout /TwoColumnRight`)}_e&&H(`/PageMode /`+_e),Ie.publish(`putCatalog`),H(`>>`),H(`endobj`)},bt=m.__private__.putTrailer=function(){H(`trailer`),H(`<<`),H(`/Size `+(V+1)),H(`/Root `+V+` 0 R`),H(`/Info `+(V-1)+` 0 R`),d!==null&&H(`/Encrypt `+Ot.oid+` 0 R`),H(`/ID [ <`+N+`> <`+N+`> ]`),H(`>>`)},xt=m.__private__.putHeader=function(){H(`%PDF-`+h),H(`%ºß¬à`)},St=m.__private__.putXRef=function(){var e=`0000000000`;H(`xref`),H(`0 `+(V+1)),H(`0000000000 65535 f `);for(var t=1;t<=V;t++)typeof ne[t]==`function`?H((e+ne[t]()).slice(-10)+` 00000 n `):ne[t]===void 0?H(`0000000000 00000 n `):H((e+ne[t]).slice(-10)+` 00000 n `)},Ct=m.__private__.buildDocument=function(){var e;V=0,ie=0,re=[],ne=[],ae=[],Ye=Ke(),Xe=Ke(),le(re),Ie.publish(`buildDocument`),xt(),nt(),function(){Ie.publish(`putAdditionalObjects`);for(var e=0;e<ae.length;e++){var t=ae[e];qe(t.objId,!0),H(t.content),H(`endobj`)}Ie.publish(`postPutAdditionalObjects`)}(),e=[],function(){for(var e in Oe)Oe.hasOwnProperty(e)&&(!1===f||!0===f&&p.hasOwnProperty(e))&&rt(Oe[e])}(),function(){for(var e in Me)Me.hasOwnProperty(e)&&st(Me[e])}(),function(){for(var e in Re)Re.hasOwnProperty(e)&&it(Re[e])}(),function(e){for(var t in U)U.hasOwnProperty(t)&&(U[t]instanceof qf?at(U[t]):U[t]instanceof Jf&&ot(U[t],e))}(e),Ie.publish(`putResources`),e.forEach(ct),ct({resourcesOid:Xe,objectOid:2**53-1}),Ie.publish(`postPutResources`),d!==null&&(Ot.oid=Ge(),H(`<<`),H(`/Filter /Standard`),H(`/V `+Ot.v),H(`/R `+Ot.r),H(`/U <`+Ot.toHexString(Ot.U)+`>`),H(`/O <`+Ot.toHexString(Ot.O)+`>`),H(`/P `+Ot.P),H(`>>`),H(`endobj`)),vt(),yt();var t=ie;return St(),bt(),H(`startxref`),H(``+t),H(`%%EOF`),le(oe[z]),re.join(`
|
|
26
|
+
`)},wt=m.__private__.getBlob=function(e){return new Blob([de(e)],{type:`application/pdf`})},Tt=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},Et=function(e){var t,n=e.document,r=n.documentElement,i=n.head,a=n.body;return i||(i=n.createElement(`head`),r.appendChild(i)),a||(a=n.createElement(`body`),r.appendChild(a)),Tt(i),Tt(a),(t=n.createElement(`style`)).appendChild(n.createTextNode(`html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}`)),i.appendChild(t),{document:n,body:a}},Dt=m.output=m.__private__.output=(We=function(e,t){switch(typeof(t||={})==`string`?t={filename:t}:t.filename=t.filename||`generated.pdf`,e){case void 0:return Ct();case`save`:m.save(t.filename);break;case`arraybuffer`:return de(Ct());case`blob`:return wt(Ct());case`bloburi`:case`bloburl`:if(X.URL!==void 0&&typeof X.URL.createObjectURL==`function`)return X.URL&&X.URL.createObjectURL(wt(Ct()))||void 0;vf.warn(`bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.`);break;case`datauristring`:case`dataurlstring`:var n=``,r=Ct();try{n=Tf(r)}catch{n=Tf(unescape(encodeURIComponent(r)))}return`data:application/pdf;filename=`+encodeURIComponent(t.filename)+`;base64,`+n;case`pdfobjectnewwindow`:if(Object.prototype.toString.call(X)===`[object Window]`){var i=`https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js`,a=!t.pdfObjectUrl;a||(i=t.pdfObjectUrl);var o=X.open();if(o!==null){var s=Et(o),c=s.document.createElement(`script`),l=this;c.src=i,a&&(c.integrity=`sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==`,c.crossOrigin=`anonymous`),c.onload=function(){o.PDFObject.embed(l.output(`dataurlstring`),t)},s.body.appendChild(c)}return o}throw Error(`The option pdfobjectnewwindow just works in a browser-environment.`);case`pdfjsnewwindow`:if(Object.prototype.toString.call(X)===`[object Window]`){var u=t.pdfJsUrl||`examples/PDF.js/web/viewer.html`,d=X.open();if(d!==null){var f=Et(d),p=f.document.createElement(`iframe`),h=u.indexOf(`?`)===-1?`?`:`&`;l=this,p.id=`pdfViewer`,p.width=`500px`,p.height=`400px`,p.src=u+h+`file=&downloadName=`+encodeURIComponent(t.filename),p.onload=function(){d.document.title=t.filename,p.contentWindow.PDFViewerApplication.open(l.output(`bloburl`))},f.body.appendChild(p)}return d}throw Error(`The option pdfjsnewwindow just works in a browser-environment.`);case`dataurlnewwindow`:if(Object.prototype.toString.call(X)!==`[object Window]`)throw Error(`The option dataurlnewwindow just works in a browser-environment.`);var g=X.open();if(g!==null){var _=Et(g),v=_.document.createElement(`iframe`);v.src=this.output(`datauristring`,t),_.body.appendChild(v),g.document.title=t.filename}if(g||typeof safari>`u`)return g;break;case`datauri`:case`dataurl`:return X.document.location.href=this.output(`datauristring`,t);default:return null}},We.foo=function(){try{return We.apply(this,arguments)}catch(n){var e=n.stack||``;~e.indexOf(` at `)&&(e=e.split(` at `)[1]);var t=`Error in function `+e.split(`
|
|
27
|
+
`)[0].split(`<`)[0]+`: `+n.message;if(!X.console)throw Error(t);X.console.error(t,n),X.alert&&alert(t)}},We.foo.bar=We,We.foo),K=function(e){return!0===Array.isArray(Le)&&Le.indexOf(e)>-1};switch(i){case`pt`:we=1;break;case`mm`:we=72/25.4;break;case`cm`:we=72/2.54;break;case`in`:we=72;break;case`px`:we=K(`px_scaling`)==1?.75:96/72;break;case`pc`:case`em`:we=12;break;case`ex`:we=6;break;default:if(typeof i!=`number`)throw Error(`Invalid unit: `+i);we=i}var Ot=null;ee(),F();var kt=m.__private__.getPageInfo=m.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw Error(`Invalid argument passed to jsPDF.getPageInfo`);return{objId:W[e].objId,pageNumber:e,pageContext:W[e]}},At=m.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw Error(`Invalid argument passed to jsPDF.getPageInfoByObjId`);for(var t in W)if(W[t].objId===e)break;return kt(t)},jt=m.__private__.getCurrentPageInfo=m.getCurrentPageInfo=function(){return{objId:W[z].objId,pageNumber:z,pageContext:W[z]}};m.addPage=function(){return pt.apply(this,arguments),this},m.setPage=function(){return ht.apply(this,arguments),le.call(this,oe[z]),this},m.insertPage=function(e){return this.addPage(),this.movePage(z,e),this},m.movePage=function(e,t){var n,r;if(e>t){n=oe[e],r=W[e];for(var i=e;i>t;i--)oe[i]=oe[i-1],W[i]=W[i-1];oe[t]=n,W[t]=r,this.setPage(t)}else if(e<t){n=oe[e],r=W[e];for(var a=e;a<t;a++)oe[a]=oe[a+1],W[a]=W[a+1];oe[t]=n,W[t]=r,this.setPage(t)}return this},m.deletePage=function(){return mt.apply(this,arguments),this},m.__private__.text=m.text=function(e,t,n,i,a){var o,s,c,l,u,d,f,m,h,g=(i||={}).scope||this;if(typeof e==`number`&&typeof t==`number`&&(typeof n==`string`||Array.isArray(n))){var _=n;n=t,t=e,e=_}if(arguments[3]instanceof G==0?(c=arguments[4],l=arguments[5],r(f=arguments[3])===`object`&&f!==null||(typeof c==`string`&&(l=c,c=null),typeof f==`string`&&(l=f,f=null),typeof f==`number`&&(c=f,f=null),i={flags:f,angle:c,align:l})):(E(`The transform parameter of text() with a Matrix value`),h=a),isNaN(t)||isNaN(n)||e==null)throw Error(`Invalid arguments passed to jsPDF.text`);if(e.length===0)return g;var v,y=``,S=typeof i.lineHeightFactor==`number`?i.lineHeightFactor:Gt,C=g.internal.scaleFactor;function w(e){return e=e.split(` `).join(Array(i.TabLen||9).join(` `)),dt(e,f)}function D(e){for(var t,n=e.concat(),r=[],i=n.length;i--;)typeof(t=n.shift())==`string`?r.push(t):Array.isArray(e)&&(t.length===1||t[1]===void 0&&t[2]===void 0)?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function O(e,t){var n;if(typeof e==`string`)n=t(e)[0];else if(Array.isArray(e)){for(var r,i,a=e.concat(),o=[],s=a.length;s--;)typeof(r=a.shift())==`string`?o.push(t(r)[0]):Array.isArray(r)&&typeof r[0]==`string`&&(i=t(r[0],r[1],r[2]),o.push([i[0],i[1],i[2]]));n=o}return n}var k=!1,j=!0;if(typeof e==`string`)k=!0;else if(Array.isArray(e)){var M=e.concat();s=[];for(var N,P=M.length;P--;)(typeof(N=M.shift())!=`string`||Array.isArray(N)&&typeof N[0]!=`string`)&&(j=!1);k=j}if(!1===k)throw Error(`Type of text must be string or Array. "`+e+`" is not recognized.`);typeof e==`string`&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var F=pe/g.internal.scaleFactor,I=F*(S-1);switch(i.baseline){case`bottom`:n-=I;break;case`top`:n+=F-I;break;case`hanging`:n+=F-2*I;break;case`middle`:n+=F/2-I}if((d=i.maxWidth||0)>0&&(typeof e==`string`?e=g.splitTextToSize(e,d):Object.prototype.toString.call(e)===`[object Array]`&&(e=e.reduce(function(e,t){return e.concat(g.splitTextToSize(t,d))},[]))),o={text:e,x:t,y:n,options:i,mutex:{pdfEscape:dt,activeFontKey:Ce,fonts:Oe,activeFontSize:pe}},Ie.publish(`preProcessText`,o),e=o.text,c=(i=o.options).angle,h instanceof G==0&&c&&typeof c==`number`){c*=Math.PI/180,i.rotationDirection===0&&(c=-c),x===b&&(c=-c);var L=Math.cos(c),ee=Math.sin(c);h=new G(L,ee,-ee,L,0,0)}else c&&c instanceof G&&(h=c);x!==b||h||(h=He),(u=i.charSpace||sn)!==void 0&&(y+=T(A(u))+` Tc
|
|
28
|
+
`,this.setCharSpace(this.getCharSpace()||0)),(m=i.horizontalScale)!==void 0&&(y+=T(100*m)+` Tz
|
|
29
|
+
`),i.lang;var R=-1,z=i.renderingMode===void 0?i.stroke:i.renderingMode,B=g.internal.getCurrentPageInfo().pageContext;switch(z){case 0:case!1:case`fill`:R=0;break;case 1:case!0:case`stroke`:R=1;break;case 2:case`fillThenStroke`:R=2;break;case 3:case`invisible`:R=3;break;case 4:case`fillAndAddForClipping`:R=4;break;case 5:case`strokeAndAddPathForClipping`:R=5;break;case 6:case`fillThenStrokeAndAddToPathForClipping`:R=6;break;case 7:case`addToPathForClipping`:R=7}var te=B.usedRenderingMode===void 0?-1:B.usedRenderingMode;R===-1?te!==-1&&(y+=`0 Tr
|
|
30
|
+
`):y+=R+` Tr
|
|
31
|
+
`,R!==-1&&(B.usedRenderingMode=R),l=i.align||`left`;var V,ne=pe*S,re=g.internal.pageSize.getWidth(),ie=Oe[Ce];u=i.charSpace||sn,d=i.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},i.flags);var ae=[],oe=function(e){return g.getStringUnitWidth(e,{font:ie,charSpace:u,fontSize:pe,doKerning:!1})*pe/C};if(Object.prototype.toString.call(e)===`[object Array]`){var se;s=D(e),l!==`left`&&(V=s.map(oe));var ce,le=0;if(l===`right`){t-=V[0],e=[],P=s.length;for(var ue=0;ue<P;ue++)ue===0?(ce=Qt(t),se=$t(n)):(ce=A(le-V[ue]),se=-ne),e.push([s[ue],ce,se]),le=V[ue]}else if(l===`center`){t-=V[0]/2,e=[],P=s.length;for(var de=0;de<P;de++)de===0?(ce=Qt(t),se=$t(n)):(ce=A((le-V[de])/2),se=-ne),e.push([s[de],ce,se]),le=V[de]}else if(l===`left`){e=[],P=s.length;for(var fe=0;fe<P;fe++)e.push(s[fe])}else if(l===`justify`&&ie.encoding===`Identity-H`){e=[],P=s.length,d=d===0?re:d;for(var me=0,he=0;he<P;he++)if(se=he===0?$t(n):-ne,ce=he===0?Qt(t):me,he<P-1){var _e=A((d-V[he])/(s[he].split(` `).length-1)),ve=s[he].split(` `);e.push([ve[0]+` `,ce,se]),me=0;for(var ye=1;ye<ve.length;ye++){var be=(oe(ve[ye-1]+` `+ve[ye])-oe(ve[ye]))*C+_e;ye==ve.length-1?e.push([ve[ye],be,0]):e.push([ve[ye]+` `,be,0]),me-=be}}else e.push([s[he],ce,se]);e.push([``,me,0])}else{if(l!==`justify`)throw Error(`Unrecognized alignment option, use "left", "center", "right" or "justify".`);for(e=[],P=s.length,d=d===0?re:d,he=0;he<P;he++){se=he===0?$t(n):-ne,ce=he===0?Qt(t):0;var xe=s[he].split(` `).length-1,Se=xe>0?(d-V[he])/xe:0;he<P-1?ae.push(T(A(Se))):ae.push(0),e.push([s[he],ce,se])}}}!0===(typeof i.R2L==`boolean`?i.R2L:ge)&&(e=O(e,function(e,t,n){return[e.split(``).reverse().join(``),t,n]})),o={text:e,x:t,y:n,options:i,mutex:{pdfEscape:dt,activeFontKey:Ce,fonts:Oe,activeFontSize:pe}},Ie.publish(`postProcessText`,o),e=o.text,v=o.mutex.isHex||!1;var we=Oe[Ce].encoding;we!==`WinAnsiEncoding`&&we!==`StandardEncoding`||(e=O(e,function(e,t,n){return[w(e),t,n]})),s=D(e),e=[];for(var Te,Ee,De,ke=+!!Array.isArray(s[0]),Ae=``,U=function(e,t,n){var r=``;return n instanceof G?(n=typeof i.angle==`number`?Ve(n,new G(1,0,0,1,e,t)):Ve(new G(1,0,0,1,e,t),n),x===b&&(n=Ve(new G(1,0,0,-1,0,0),n)),r=n.join(` `)+` Tm
|
|
32
|
+
`):r=T(e)+` `+T(t)+` Td
|
|
33
|
+
`,r},je=0;je<s.length;je++){switch(Ae=``,ke){case 1:De=(v?`<`:`(`)+s[je][0]+(v?`>`:`)`),Te=parseFloat(s[je][1]),Ee=parseFloat(s[je][2]);break;case 0:De=(v?`<`:`(`)+s[je]+(v?`>`:`)`),Te=Qt(t),Ee=$t(n)}ae!==void 0&&ae[je]!==void 0&&(Ae=ae[je]+` Tw
|
|
34
|
+
`),je===0?e.push(Ae+U(Te,Ee,h)+De):ke===0?e.push(Ae+De):ke===1&&e.push(Ae+U(Te,Ee,h)+De)}e=ke===0?e.join(` Tj
|
|
35
|
+
T* `):e.join(` Tj
|
|
36
|
+
`),e+=` Tj
|
|
37
|
+
`;var Me=`BT
|
|
38
|
+
/`;return Me+=Ce+` `+pe+` Tf
|
|
39
|
+
`,Me+=T(pe*S)+` TL
|
|
40
|
+
`,Me+=an+`
|
|
41
|
+
`,Me+=y,Me+=e,H(Me+=`ET`),p[Ce]=!0,g};var Mt=m.__private__.clip=m.clip=function(e){return H(e===`evenodd`?`W*`:`W`),this};m.clipEvenOdd=function(){return Mt(`evenodd`)},m.__private__.discardPath=m.discardPath=function(){return H(`n`),this};var Nt=m.__private__.isValidStyle=function(e){var t=!1;return[void 0,null,`S`,`D`,`F`,`DF`,`FD`,`f`,`f*`,`B`,`B*`,`n`].indexOf(e)!==-1&&(t=!0),t};m.__private__.setDefaultPathOperation=m.setDefaultPathOperation=function(e){return Nt(e)&&(u=e),this};var Pt=m.__private__.getStyle=m.getStyle=function(e){var t=u;switch(e){case`D`:case`S`:t=`S`;break;case`F`:t=`f`;break;case`FD`:case`DF`:t=`B`;break;case`f`:case`f*`:case`B`:case`B*`:t=e}return t},Ft=m.close=function(){return H(`h`),this};m.stroke=function(){return H(`S`),this},m.fill=function(e){return It(`f`,e),this},m.fillEvenOdd=function(e){return It(`f*`,e),this},m.fillStroke=function(e){return It(`B`,e),this},m.fillStrokeEvenOdd=function(e){return It(`B*`,e),this};var It=function(e,t){r(t)===`object`?zt(t,e):H(e)},Lt=function(e){e===null||x===b&&e===void 0||(e=Pt(e),H(e))};function Rt(e,t,n,r,i){var a=new Jf(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);return a.stream=this.stream,Ue(e+`$$`+ this.cloneIndex+++`$$`,a),a}var zt=function(e,t){var n=je[e.key],r=U[n];if(r instanceof qf)H(`q`),H(Bt(t)),r.gState&&m.setGState(r.gState),H(e.matrix.toString()+` cm`),H(`/`+n+` sh`),H(`Q`);else if(r instanceof Jf){var i=new G(1,0,0,-1,0,Cn());e.matrix&&(i=i.multiply(e.matrix||He),n=Rt.call(r,e.key,e.boundingBox,e.xStep,e.yStep,i).id),H(`q`),H(`/Pattern cs`),H(`/`+n+` scn`),r.gState&&m.setGState(r.gState),H(t),H(`Q`)}},Bt=function(e){switch(e){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`}},Vt=m.moveTo=function(e,t){return H(T(A(e))+` `+T(j(t))+` m`),this},Ht=m.lineTo=function(e,t){return H(T(A(e))+` `+T(j(t))+` l`),this},Ut=m.curveTo=function(e,t,n,r,i,a){return H([T(A(e)),T(j(t)),T(A(n)),T(j(r)),T(A(i)),T(j(a)),`c`].join(` `)),this};m.__private__.line=m.line=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Nt(i))throw Error(`Invalid arguments passed to jsPDF.line`);return x===y?this.lines([[n-e,r-t]],e,t,[1,1],i||`S`):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},m.__private__.lines=m.lines=function(e,t,n,r,i,a){var o,s,c,l,u,d,f,p,m,h,g,_;if(typeof e==`number`&&(_=n,n=t,t=e,e=_),r||=[1,1],a||=!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!Nt(i)||typeof a!=`boolean`)throw Error(`Invalid arguments passed to jsPDF.lines`);for(Vt(t,n),o=r[0],s=r[1],l=e.length,h=t,g=n,c=0;c<l;c++)(u=e[c]).length===2?(h=u[0]*o+h,g=u[1]*s+g,Ht(h,g)):(d=u[0]*o+h,f=u[1]*s+g,p=u[2]*o+h,m=u[3]*s+g,h=u[4]*o+h,g=u[5]*s+g,Ut(d,f,p,m,h,g));return a&&Ft(),Lt(i),this},m.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.c;switch(n.op){case`m`:Vt(r[0],r[1]);break;case`l`:Ht(r[0],r[1]);break;case`c`:Ut.apply(this,r);break;case`h`:Ft()}}return this},m.__private__.rect=m.rect=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Nt(i))throw Error(`Invalid arguments passed to jsPDF.rect`);return x===y&&(r=-r),H([T(A(e)),T(j(t)),T(A(n)),T(A(r)),`re`].join(` `)),Lt(i),this},m.__private__.triangle=m.triangle=function(e,t,n,r,i,a,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a)||!Nt(o))throw Error(`Invalid arguments passed to jsPDF.triangle`);return this.lines([[n-e,r-t],[i-n,a-r],[e-i,t-a]],e,t,[1,1],o,!0),this},m.__private__.roundedRect=m.roundedRect=function(e,t,n,r,i,a,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a)||!Nt(o))throw Error(`Invalid arguments passed to jsPDF.roundedRect`);var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),a=Math.min(a,.5*r),this.lines([[n-2*i,0],[i*s,0,i,a-a*s,i,a],[0,r-2*a],[0,a*s,-i*s,a,-i,a],[2*i-n,0],[-i*s,0,-i,-a*s,-i,-a],[0,2*a-r],[0,-a*s,i*s,-a,i,-a]],e+i,t,[1,1],o,!0),this},m.__private__.ellipse=m.ellipse=function(e,t,n,r,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Nt(i))throw Error(`Invalid arguments passed to jsPDF.ellipse`);var a=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*r;return Vt(e+n,t),Ut(e+n,t-o,e+a,t-r,e,t-r),Ut(e-a,t-r,e-n,t-o,e-n,t),Ut(e-n,t+o,e-a,t+r,e,t+r),Ut(e+a,t+r,e+n,t+o,e+n,t),Lt(i),this},m.__private__.circle=m.circle=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||!Nt(r))throw Error(`Invalid arguments passed to jsPDF.circle`);return this.ellipse(e,t,n,n,r)},m.setFont=function(e,t,n){return n&&(t=w(t,n)),Ce=_t(e,t,{disableWarning:!1}),this};var Wt=m.__private__.getFont=m.getFont=function(){return Oe[_t.apply(m,arguments)]};m.__private__.getFontList=m.getFontList=function(){var e,t,n={};for(e in ke)if(ke.hasOwnProperty(e))for(t in n[e]=[],ke[e])ke[e].hasOwnProperty(t)&&n[e].push(t);return n},m.addFont=function(e,t,n,r,i){var a=[`StandardEncoding`,`MacRomanEncoding`,`Identity-H`,`WinAnsiEncoding`];return arguments[3]&&a.indexOf(arguments[3])!==-1?i=arguments[3]:arguments[3]&&a.indexOf(arguments[3])==-1&&(n=w(n,r)),ut.call(this,e,t,n,i||=`Identity-H`)};var Gt,Kt=e.lineWidth||.200025,qt=m.__private__.getLineWidth=m.getLineWidth=function(){return Kt},Jt=m.__private__.setLineWidth=m.setLineWidth=function(e){return Kt=e,H(T(A(e))+` w`),this};m.__private__.setLineDash=Z.API.setLineDash=Z.API.setLineDashPattern=function(e,t){if(e||=[],t||=0,isNaN(t)||!Array.isArray(e))throw Error(`Invalid arguments passed to jsPDF.setLineDash`);return e=e.map(function(e){return T(A(e))}).join(` `),t=T(A(t)),H(`[`+e+`] `+t+` d`),this};var Yt=m.__private__.getLineHeight=m.getLineHeight=function(){return pe*Gt};m.__private__.getLineHeight=m.getLineHeight=function(){return pe*Gt};var Xt=m.__private__.setLineHeightFactor=m.setLineHeightFactor=function(e){return typeof(e||=1.15)==`number`&&(Gt=e),this},Zt=m.__private__.getLineHeightFactor=m.getLineHeightFactor=function(){return Gt};Xt(e.lineHeight);var Qt=m.__private__.getHorizontalCoordinate=function(e){return A(e)},$t=m.__private__.getVerticalCoordinate=function(e){return x===b?e:W[z].mediaBox.topRightY-W[z].mediaBox.bottomLeftY-A(e)},en=m.__private__.getHorizontalCoordinateString=m.getHorizontalCoordinateString=function(e){return T(Qt(e))},tn=m.__private__.getVerticalCoordinateString=m.getVerticalCoordinateString=function(e){return T($t(e))},nn=e.strokeColor||`0 G`;m.__private__.getStrokeColor=m.getDrawColor=function(){return Ze(nn)},m.__private__.setStrokeColor=m.setDrawColor=function(e,t,n,r){return nn=Qe({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:`draw`,precision:2}),H(nn),this};var rn=e.fillColor||`0 g`;m.__private__.getFillColor=m.getFillColor=function(){return Ze(rn)},m.__private__.setFillColor=m.setFillColor=function(e,t,n,r){return rn=Qe({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:`fill`,precision:2}),H(rn),this};var an=e.textColor||`0 g`,on=m.__private__.getTextColor=m.getTextColor=function(){return Ze(an)};m.__private__.setTextColor=m.setTextColor=function(e,t,n,r){return an=Qe({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:`text`,precision:3}),this};var sn=e.charSpace,cn=m.__private__.getCharSpace=m.getCharSpace=function(){return parseFloat(sn||0)};m.__private__.setCharSpace=m.setCharSpace=function(e){if(isNaN(e))throw Error(`Invalid argument passed to jsPDF.setCharSpace`);return sn=e,this};var ln=0;m.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},m.__private__.setLineCap=m.setLineCap=function(e){var t=m.CapJoinStyles[e];if(t===void 0)throw Error(`Line cap style of '`+e+`' is not recognized. See or extend .CapJoinStyles property for valid styles`);return ln=t,H(t+` J`),this};var un=0;m.__private__.setLineJoin=m.setLineJoin=function(e){var t=m.CapJoinStyles[e];if(t===void 0)throw Error(`Line join style of '`+e+`' is not recognized. See or extend .CapJoinStyles property for valid styles`);return un=t,H(t+` j`),this},m.__private__.setLineMiterLimit=m.__private__.setMiterLimit=m.setLineMiterLimit=m.setMiterLimit=function(e){if(e||=0,isNaN(e))throw Error(`Invalid argument passed to jsPDF.setLineMiterLimit`);return H(T(A(e))+` M`),this},m.GState=Gf,m.setGState=function(e){(e=typeof e==`string`?Me[Ne[e]]:dn(null,e)).equals(Pe)||(H(`/`+e.id+` gs`),Pe=e)};var dn=function(e,t){if(!e||!Ne[e]){var n=!1;for(var r in Me)if(Me.hasOwnProperty(r)&&Me[r].equals(t)){n=!0;break}if(n)t=Me[r];else{var i=`GS`+(Object.keys(Me).length+1).toString(10);Me[i]=t,t.id=i}return e&&(Ne[e]=t.id),Ie.publish(`addGState`,t),t}};m.addGState=function(e,t){return dn(e,t),this},m.saveGraphicsState=function(){return H(`q`),Ae.push({key:Ce,size:pe,color:an}),this},m.restoreGraphicsState=function(){H(`Q`);var e=Ae.pop();return Ce=e.key,pe=e.size,an=e.color,Pe=null,this},m.setCurrentTransformationMatrix=function(e){return H(e.toString()+` cm`),this},m.comment=function(e){return H(`#`+e),this};var fn=function(e,t){var n=e||0;Object.defineProperty(this,`x`,{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var r=t||0;Object.defineProperty(this,`y`,{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var i=`pt`;return Object.defineProperty(this,`type`,{enumerable:!0,get:function(){return i},set:function(e){i=e.toString()}}),this},pn=function(e,t,n,r){fn.call(this,e,t),this.type=`rect`;var i=n||0;Object.defineProperty(this,`w`,{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}});var a=r||0;return Object.defineProperty(this,`h`,{enumerable:!0,get:function(){return a},set:function(e){isNaN(e)||(a=parseFloat(e))}}),this},mn=function(){this.page=Fe,this.currentPage=z,this.pages=oe.slice(0),this.pagesContext=W.slice(0),this.x=Te,this.y=Ee,this.matrix=De,this.width=_n(z),this.height=yn(z),this.outputDestination=ce,this.id=``,this.objectNumber=-1};mn.prototype.restore=function(){Fe=this.page,z=this.currentPage,W=this.pagesContext,oe=this.pages,Te=this.x,Ee=this.y,De=this.matrix,vn(z,this.width),bn(z,this.height),ce=this.outputDestination};var hn=function(e,t,n,r,i){Be.push(new mn),Fe=z=0,oe=[],Te=e,Ee=t,De=i,ft([n,r])};for(var gn in m.beginFormObject=function(e,t,n,r,i){return hn(e,t,n,r,i),this},m.endFormObject=function(e){return function(e){if(ze[e])Be.pop().restore();else{var t=new mn,n=`Xo`+(Object.keys(Re).length+1).toString(10);t.id=n,ze[e]=n,Re[n]=t,Ie.publish(`addFormObject`,t),Be.pop().restore()}}(e),this},m.doFormObject=function(e,t){var n=Re[ze[e]];return H(`q`),H(t.toString()+` cm`),H(`/`+n.id+` Do`),H(`Q`),this},m.getFormObject=function(e){var t=Re[ze[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},m.save=function(e,t){return e||=`generated.pdf`,(t||={}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(Sf(wt(Ct()),e),typeof Sf.unload==`function`&&X.setTimeout&&setTimeout(Sf.unload,911),this):new Promise(function(t,n){try{var r=Sf(wt(Ct()),e);typeof Sf.unload==`function`&&X.setTimeout&&setTimeout(Sf.unload,911),t(r)}catch(e){n(e.message)}})},Z.API)Z.API.hasOwnProperty(gn)&&(gn===`events`&&Z.API.events.length?function(e,t){var n,r,i;for(i=t.length-1;i!==-1;i--)n=t[i][0],r=t[i][1],e.subscribe.apply(e,[n].concat(typeof r==`function`?[r]:r))}(Ie,Z.API.events):m[gn]=Z.API[gn]);function _n(e){return W[e].mediaBox.topRightX-W[e].mediaBox.bottomLeftX}function vn(e,t){W[e].mediaBox.topRightX=t+W[e].mediaBox.bottomLeftX}function yn(e){return W[e].mediaBox.topRightY-W[e].mediaBox.bottomLeftY}function bn(e,t){W[e].mediaBox.topRightY=t+W[e].mediaBox.bottomLeftY}var xn=m.getPageWidth=function(e){return _n(e||=z)/we},Sn=m.setPageWidth=function(e,t){vn(e,t*we)},Cn=m.getPageHeight=function(e){return yn(e||=z)/we},wn=m.setPageHeight=function(e,t){bn(e,t*we)};return m.internal={pdfEscape:dt,getStyle:Pt,getFont:Wt,getFontSize:he,getCharSpace:cn,getTextColor:on,getLineHeight:Yt,getLineHeightFactor:Zt,getLineWidth:qt,write:ue,getHorizontalCoordinate:Qt,getVerticalCoordinate:$t,getCoordinateString:en,getVerticalCoordinateString:tn,collections:{},newObject:Ge,newAdditionalObject:Je,newObjectDeferred:Ke,newObjectDeferredBegin:qe,getFilters:$e,putStream:et,events:Ie,scaleFactor:we,pageSize:{getWidth:function(){return xn(z)},setWidth:function(e){Sn(z,e)},getHeight:function(){return Cn(z)},setHeight:function(e){wn(z,e)}},encryptionOptions:d,encryption:Ot,getEncryptor:function(e){return d===null?function(e){return e}:Ot.encryptor(e,0)},output:Dt,getNumberOfPages:gt,get pages(){return oe},out:H,f2:O,f3:k,getPageInfo:kt,getPageInfoByObjId:At,getCurrentPageInfo:jt,getPDFVersion:g,Point:fn,Rectangle:pn,Matrix:G,hasHotfix:K},Object.defineProperty(m.internal.pageSize,`width`,{get:function(){return xn(z)},set:function(e){Sn(z,e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.internal.pageSize,`height`,{get:function(){return Cn(z)},set:function(e){wn(z,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=fe.length;t<n;t++){var r=ut.call(this,e[t][0],e[t][1],e[t][2],fe[t][3],!0);!1===f&&(p[r]=!0);var i=e[t][0].split(`-`);lt({id:r,fontName:i[0],fontStyle:i[1]||``})}Ie.publish(`addFonts`,{fonts:Oe,dictionary:ke})}.call(m,fe),Ce=`F1`,pt(a,n),Ie.publish(`initialized`),m}Hf.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Hf.prototype.toHexString=function(e){return e.split(``).map(function(e){return(`0`+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join(``)},Hf.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join(``)},Hf.prototype.processOwnerPassword=function(e,t){return Bf(Lf(t).substr(0,5),e)},Hf.prototype.encryptor=function(e,t){var n=Lf(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return Bf(n,e)}},Gf.prototype.equals=function(e){var t,n=`id,objectNumber,equals`;if(!e||r(e)!==r(this))return!1;var i=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;i++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&i--;return i===0},Z.API={events:[]},Z.version=`4.2.1`;var Yf=Z.API,Xf=1,Zf=function(e){return e.replace(/\\/g,`\\\\`).replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)},Qf=function(e){return e.replace(/\\\\/g,`\\`).replace(/\\\(/g,`(`).replace(/\\\)/g,`)`)},$f=function(e){return e.toString().replace(/#/g,`#23`).replace(/[\s\n\r()<>[\]{}\/%]/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return`#`+(t.length===1?`0`+t:t)})},Q=function(e){return e.toFixed(2)},ep=function(e){return e.toFixed(5)};Yf.__acroform__={};var tp=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},np=function(e){return e*Xf},rp=function(e){var t=new bp,n=$.internal.getHeight(e)||0,r=$.internal.getWidth(e)||0;return t.BBox=[0,0,Number(Q(r)),Number(Q(n))],t},ip=Yf.__acroform__.setBit=function(e,t){if(e||=0,t||=0,isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.setBit`);return e|1<<t},ap=Yf.__acroform__.clearBit=function(e,t){if(e||=0,t||=0,isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.clearBit`);return e&~(1<<t)},op=Yf.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.getBit`);return e&1<<t?1:0},sp=Yf.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf`);return op(e,t-1)},cp=Yf.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf`);return ip(e,t-1)},lp=Yf.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf`);return ap(e,t-1)},up=Yf.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],a=e[1],o=e[2],s=e[3],c={};return c.lowerLeft_X=n(i)||0,c.lowerLeft_Y=r(a+s)||0,c.upperRight_X=n(i+o)||0,c.upperRight_Y=r(a)||0,[Number(Q(c.lowerLeft_X)),Number(Q(c.lowerLeft_Y)),Number(Q(c.upperRight_X)),Number(Q(c.upperRight_Y))]},dp=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=fp(e,e._V||e.DV),r=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push(`/Tx BMC`),t.push(`q`),t.push(`BT`),t.push(e.scope.__private__.encodeColorString(e.color)),t.push(`/`+r+` `+Q(n.fontSize)+` Tf`),t.push(`1 0 0 1 0 0 Tm`),t.push(n.text),t.push(`ET`),t.push(`Q`),t.push(`EMC`);var i=rp(e);return i.scope=e.scope,i.stream=t.join(`
|
|
42
|
+
`),i}},fp=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:``,fontSize:``},i=(t=(t=t.substr(0,1)==`(`?t.substr(1):t).substr(t.length-1)==`)`?t.substr(0,t.length-1):t).split(` `);i=e.multiline?i.map(function(e){return e.split(`
|
|
43
|
+
`)}):i.map(function(e){return[e]});var a=n,o=$.internal.getHeight(e)||0;o=o<0?-o:o;var s=$.internal.getWidth(e)||0;s=s<0?-s:s;var c=function(t,n,r){return t+1<i.length?pp(n+` `+i[t+1][0],e,r).width<=s-4:!1};a++;t:for(;a>0;){t=``,a--;var l,u,d=pp(`3`,e,a).height,f=e.multiline?o-a:(o-d)/2,p=f+=2,m=0,h=0,g=0;if(a<=0){t=`(...) Tj
|
|
44
|
+
`,t+=`% Width of Text: `+pp(t,e,a=12).width+`, FieldWidth:`+s+`
|
|
45
|
+
`;break}for(var _=``,v=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var b=!1;if(i[y].length!==1&&g!==i[y].length-1){if((d+2)*(v+2)+2>o)continue t;_+=i[y][g],b=!0,h=y,y--}else{_=(_+=i[y][g]+` `).substr(_.length-1)==` `?_.substr(0,_.length-1):_;var x=parseInt(y),S=c(x,_,a),C=y>=i.length-1;if(S&&!C){_+=` `,g=0;continue}if(S||C){if(C)h=x;else if(e.multiline&&(d+2)*(v+2)+2>o)continue t}else{if(!e.multiline||(d+2)*(v+2)+2>o)continue t;h=x}}for(var w=``,T=m;T<=h;T++){var E=i[T];if(e.multiline){if(T===h){w+=E[g]+` `,g=(g+1)%E.length;continue}if(T===m){w+=E[E.length-1]+` `;continue}}w+=E[0]+` `}switch(w=w.substr(w.length-1)==` `?w.substr(0,w.length-1):w,u=pp(w,e,a).width,e.textAlign){case`right`:l=s-u-2;break;case`center`:l=(s-u)/2;break;default:l=2}t+=Q(l)+` `+Q(p)+` Td
|
|
46
|
+
`,t+=`(`+Zf(w)+`) Tj
|
|
47
|
+
`,t+=-Q(l)+` 0 Td
|
|
48
|
+
`,p=-(a+2),u=0,m=b?h:h+1,v++,_=``}break}return r.text=t,r.fontSize=a,r},pp=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth(`3`,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},mp={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},hp=function(e,t){var n={type:`reference`,object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(e){return e.type===n.type&&e.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},gp=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||!1===e.internal.acroformPlugin.isInitialized)){if(Sp.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(mp)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw Error(`Exception while creating AcroformDictionary`);Xf=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new xp,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe(`postPutResources`,function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe(`buildDocument`,function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.objId=void 0,r.hasAnnotation&&hp(r,e)}})(e)}),e.internal.events.subscribe(`putCatalog`,function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw Error(`putCatalogCallback: Root missing.`);e.internal.write(`/AcroForm `+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+` 0 R`)})(e)}),e.internal.events.subscribe(`postPutPages`,function(t){(function(e,t){var n=!e;for(var i in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e||=t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(i)){var a=e[i],o=[],s=a.Rect;if(a.Rect&&=up(a.Rect,t),t.internal.newObjectDeferredBegin(a.objId,!0),a.DA=$.createDefaultAppearanceStream(a),r(a)===`object`&&typeof a.getKeyValueListForStream==`function`&&(o=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var c=dp(a);o.push({key:`AP`,value:`<</N `+c+`>>`}),t.internal.acroformPlugin.xForms.push(c)}if(a.appearanceStreamContent){var l=``;for(var u in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(u)){var d=a.appearanceStreamContent[u];if(l+=`/`+u+` `,l+=`<<`,Object.keys(d).length>=1||Array.isArray(d)){for(var i in d)if(d.hasOwnProperty(i)){var f=d[i];typeof f==`function`&&(f=f.call(t,a)),l+=`/`+i+` `+f+` `,t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f)}}else typeof(f=d)==`function`&&(f=f.call(t,a)),l+=`/`+i+` `+f,t.internal.acroformPlugin.xForms.indexOf(f)>=0||t.internal.acroformPlugin.xForms.push(f);l+=`>>`}o.push({key:`AP`,value:`<<
|
|
49
|
+
`+l+`>>`})}t.internal.putStream({additionalKeyValues:o,objectId:a.objId}),t.internal.out(`endobj`)}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=n,a=e[n];t.internal.newObjectDeferredBegin(a.objId,!0),r(a)===`object`&&typeof a.putStream==`function`&&a.putStream(),delete e[i]}}(t.internal.acroformPlugin.xForms,t)})(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},_p=Yf.__acroform__.arrayToPdfArray=function(e,t,n){var i=function(e){return e};if(Array.isArray(e)){for(var a=`[`,o=0;o<e.length;o++)switch(o!==0&&(a+=` `),r(e[o])){case`boolean`:case`number`:case`object`:a+=e[o].toString();break;case`string`:e[o].substr(0,1)===`/`?a+=`/`+$f(e[o].substr(1)):(t!==void 0&&n&&(i=n.internal.getEncryptor(t)),a+=`(`+Zf(i(e[o].toString()))+`)`)}return a+`]`}throw Error(`Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray`)},vp=function(e,t,n){var r=function(e){return e};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e||=``).toString(),`(`+Zf(r(e))+`)`},yp=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,`objId`,{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,`scope`,{value:this._scope,writable:!0})};yp.prototype.toString=function(){return this.objId+` 0 R`},yp.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out(`endobj`)},yp.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(e){return e!=`content`&&e!=`appearanceStreamContent`&&e!=`scope`&&e!=`objId`&&e.substring(0,1)!=`_`});for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:_p(i,this.objId,this.scope)}):i instanceof yp?(i.scope=this.scope,e.push({key:r,value:i.objId+` 0 R`})):typeof i!=`function`&&e.push({key:r,value:i}))}return e};var bp=function(){yp.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 e,t=[];Object.defineProperty(this,`BBox`,{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,`Resources`,{value:`2 0 R`,configurable:!1,writable:!0}),Object.defineProperty(this,`stream`,{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};tp(bp,yp);var xp=function(){yp.call(this);var e,t=[];Object.defineProperty(this,`Kids`,{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,`Fields`,{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,`DA`,{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),`(`+Zf(t(e))+`)`}},set:function(t){e=t}})};tp(xp,yp);var Sp=function e(){yp.call(this);var t=4;Object.defineProperty(this,`F`,{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw Error(`Invalid value "`+e+`" for attribute F supplied.`);t=e}}),Object.defineProperty(this,`showWhenPrinted`,{enumerable:!0,configurable:!0,get:function(){return!!sp(t,3)},set:function(e){!!e==1?this.F=cp(t,3):this.F=lp(t,3)}});var n=0;Object.defineProperty(this,`Ff`,{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw Error(`Invalid value "`+e+`" for attribute Ff supplied.`);n=e}});var r=[];Object.defineProperty(this,`Rect`,{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(e){r=e===void 0?[]:e}}),Object.defineProperty(this,`x`,{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,`y`,{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,`width`,{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,`height`,{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var i=``;Object.defineProperty(this,`FT`,{enumerable:!0,configurable:!1,get:function(){return i},set:function(e){switch(e){case`/Btn`:case`/Tx`:case`/Ch`:case`/Sig`:i=e;break;default:throw Error(`Invalid value "`+e+`" for attribute FT supplied.`)}}});var a=null;Object.defineProperty(this,`T`,{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof Ap)return;a=`FieldObject`+ e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),`(`+Zf(t(a))+`)`},set:function(e){a=e.toString()}}),Object.defineProperty(this,`fieldName`,{configurable:!0,enumerable:!0,get:function(){return a},set:function(e){a=e}});var o=`helvetica`;Object.defineProperty(this,`fontName`,{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){o=e}});var s=`normal`;Object.defineProperty(this,`fontStyle`,{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var c=0;Object.defineProperty(this,`fontSize`,{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var l=void 0;Object.defineProperty(this,`maxFontSize`,{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/Xf:l},set:function(e){l=e}});var u=`black`;Object.defineProperty(this,`color`,{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){u=e}});var d=`/F1 0 Tf 0 g`;Object.defineProperty(this,`DA`,{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof Ap||this instanceof Mp))return vp(d,this.objId,this.scope)},set:function(e){e=e.toString(),d=e}});var f=null;Object.defineProperty(this,`DV`,{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Dp==0?vp(f,this.objId,this.scope):f},set:function(e){e=e.toString(),f=this instanceof Dp==0?e.substr(0,1)===`(`?Qf(e.substr(1,e.length-2)):Qf(e):e}}),Object.defineProperty(this,`defaultValue`,{enumerable:!0,configurable:!0,get:function(){return this instanceof Dp==1?Qf(f.substr(1,f.length-1)):f},set:function(e){e=e.toString(),f=this instanceof Dp==1?`/`+$f(e):e}});var p=null;Object.defineProperty(this,`_V`,{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(e){this.V=e}}),Object.defineProperty(this,`V`,{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof Dp==0?vp(p,this.objId,this.scope):p},set:function(e){e=e.toString(),p=this instanceof Dp==0?e.substr(0,1)===`(`?Qf(e.substr(1,e.length-2)):Qf(e):e}}),Object.defineProperty(this,`value`,{enumerable:!0,configurable:!0,get:function(){return this instanceof Dp==1?Qf(p.substr(1,p.length-1)):p},set:function(e){e=e.toString(),p=this instanceof Dp==1?`/`+$f(e):e}}),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 m,h=!1;Object.defineProperty(this,`hasAppearanceStream`,{enumerable:!0,configurable:!0,get:function(){return h},set:function(e){e=!!e,h=e}}),Object.defineProperty(this,`page`,{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(e){m=e}}),Object.defineProperty(this,`readOnly`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,1)},set:function(e){!!e==1?this.Ff=cp(this.Ff,1):this.Ff=lp(this.Ff,1)}}),Object.defineProperty(this,`required`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,2)},set:function(e){!!e==1?this.Ff=cp(this.Ff,2):this.Ff=lp(this.Ff,2)}}),Object.defineProperty(this,`noExport`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,3)},set:function(e){!!e==1?this.Ff=cp(this.Ff,3):this.Ff=lp(this.Ff,3)}});var g=null;Object.defineProperty(this,`Q`,{enumerable:!0,configurable:!1,get:function(){if(g!==null)return g},set:function(e){if([0,1,2].indexOf(e)===-1)throw Error(`Invalid value "`+e+`" for attribute Q supplied.`);g=e}}),Object.defineProperty(this,`textAlign`,{get:function(){var e;switch(g){case 0:default:e=`left`;break;case 1:e=`center`;break;case 2:e=`right`}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case`right`:case 2:g=2;break;case`center`:case 1:g=1;break;default:g=0}}})};tp(Sp,yp);var Cp=function(){Sp.call(this),this.FT=`/Ch`,this.V=`()`,this.fontName=`zapfdingbats`;var e=0;Object.defineProperty(this,`TI`,{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,`topIndex`,{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,`Opt`,{enumerable:!0,configurable:!1,get:function(){return _p(t,this.objId,this.scope)},set:function(e){var n,r=[];typeof(n=e)==`string`&&(r=function(e,t,n){n||=1;for(var r,i=[];r=t.exec(e);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e||=``).toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n||=!1,e=(e||=``).toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,`combo`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,18)},set:function(e){!!e==1?this.Ff=cp(this.Ff,18):this.Ff=lp(this.Ff,18)}}),Object.defineProperty(this,`edit`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,19)},set:function(e){!0===this.combo&&(!!e==1?this.Ff=cp(this.Ff,19):this.Ff=lp(this.Ff,19))}}),Object.defineProperty(this,`sort`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,20)},set:function(e){!!e==1?(this.Ff=cp(this.Ff,20),t.sort()):this.Ff=lp(this.Ff,20)}}),Object.defineProperty(this,`multiSelect`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,22)},set:function(e){!!e==1?this.Ff=cp(this.Ff,22):this.Ff=lp(this.Ff,22)}}),Object.defineProperty(this,`doNotSpellCheck`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,23)},set:function(e){!!e==1?this.Ff=cp(this.Ff,23):this.Ff=lp(this.Ff,23)}}),Object.defineProperty(this,`commitOnSelChange`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,27)},set:function(e){!!e==1?this.Ff=cp(this.Ff,27):this.Ff=lp(this.Ff,27)}}),this.hasAppearanceStream=!1};tp(Cp,Sp);var wp=function(){Cp.call(this),this.fontName=`helvetica`,this.combo=!1};tp(wp,Cp);var Tp=function(){wp.call(this),this.combo=!0};tp(Tp,wp);var Ep=function(){Tp.call(this),this.edit=!0};tp(Ep,Tp);var Dp=function(){Sp.call(this),this.FT=`/Btn`,Object.defineProperty(this,`noToggleToOff`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,15)},set:function(e){!!e==1?this.Ff=cp(this.Ff,15):this.Ff=lp(this.Ff,15)}}),Object.defineProperty(this,`radio`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,16)},set:function(e){!!e==1?this.Ff=cp(this.Ff,16):this.Ff=lp(this.Ff,16)}}),Object.defineProperty(this,`pushButton`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,17)},set:function(e){!!e==1?this.Ff=cp(this.Ff,17):this.Ff=lp(this.Ff,17)}}),Object.defineProperty(this,`radioIsUnison`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,26)},set:function(e){!!e==1?this.Ff=cp(this.Ff,26):this.Ff=lp(this.Ff,26)}});var e,t={};Object.defineProperty(this,`MK`,{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,r=[];for(n in r.push(`<<`),t)r.push(`/`+n+` (`+Zf(e(t[n]))+`)`);return r.push(`>>`),r.join(`
|
|
50
|
+
`)}},set:function(e){r(e)===`object`&&(t=e)}}),Object.defineProperty(this,`caption`,{enumerable:!0,configurable:!0,get:function(){return t.CA||``},set:function(e){typeof e==`string`&&(t.CA=e)}}),Object.defineProperty(this,`AS`,{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){var n=t==null?``:t.toString();n.substr(0,1)===`/`&&(n=n.substr(1)),e=`/`+$f(n)}}),Object.defineProperty(this,`appearanceState`,{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e=`/`+$f(t)}})};tp(Dp,Sp);var Op=function(){Dp.call(this),this.pushButton=!0};tp(Op,Dp);var kp=function(){Dp.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,`Kids`,{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t===void 0?[]:t}})};tp(kp,Dp);var Ap=function(){var e,t;Sp.call(this),Object.defineProperty(this,`Parent`,{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,`optionName`,{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,i={};Object.defineProperty(this,`MK`,{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push(`<<`),i)n.push(`/`+t+` (`+Zf(e(i[t]))+`)`);return n.push(`>>`),n.join(`
|
|
51
|
+
`)},set:function(e){r(e)===`object`&&(i=e)}}),Object.defineProperty(this,`caption`,{enumerable:!0,configurable:!0,get:function(){return i.CA||``},set:function(e){typeof e==`string`&&(i.CA=e)}}),Object.defineProperty(this,`AS`,{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){var t=e==null?``:e.toString();t.substr(0,1)===`/`&&(t=t.substr(1)),n=`/`+$f(t)}}),Object.defineProperty(this,`appearanceState`,{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){var t=e==null?``:e.toString();t.substr(0,1)===`/`&&(t=t.substr(1)),n=`/`+$f(t)}}),this.caption=`l`,this.appearanceState=`Off`,this._AppearanceType=$.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};tp(Ap,Sp),kp.prototype.setAppearance=function(e){if(!(`createAppearanceStream`in e)||!(`getCA`in e))throw Error(`Couldn't assign Appearance to RadioButton. Appearance was Invalid!`);for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},kp.prototype.createOption=function(e){var t=new Ap;return t.Parent=this,t.optionName=e,this.Kids.push(t),Pp.call(this.scope,t),t};var jp=function(){Dp.call(this),this.fontName=`zapfdingbats`,this.caption=`3`,this.appearanceState=`On`,this.value=`On`,this.textAlign=`center`,this.appearanceStreamContent=$.CheckBox.createAppearanceStream()};tp(jp,Dp);var Mp=function(){Sp.call(this),this.FT=`/Tx`,Object.defineProperty(this,`multiline`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,13)},set:function(e){!!e==1?this.Ff=cp(this.Ff,13):this.Ff=lp(this.Ff,13)}}),Object.defineProperty(this,`fileSelect`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,21)},set:function(e){!!e==1?this.Ff=cp(this.Ff,21):this.Ff=lp(this.Ff,21)}}),Object.defineProperty(this,`doNotSpellCheck`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,23)},set:function(e){!!e==1?this.Ff=cp(this.Ff,23):this.Ff=lp(this.Ff,23)}}),Object.defineProperty(this,`doNotScroll`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,24)},set:function(e){!!e==1?this.Ff=cp(this.Ff,24):this.Ff=lp(this.Ff,24)}}),Object.defineProperty(this,`comb`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,25)},set:function(e){!!e==1?this.Ff=cp(this.Ff,25):this.Ff=lp(this.Ff,25)}}),Object.defineProperty(this,`richText`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,26)},set:function(e){!!e==1?this.Ff=cp(this.Ff,26):this.Ff=lp(this.Ff,26)}});var e=null;Object.defineProperty(this,`MaxLen`,{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,`maxLength`,{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,`hasAppearanceStream`,{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};tp(Mp,Sp);var Np=function(){Mp.call(this),Object.defineProperty(this,`password`,{enumerable:!0,configurable:!0,get:function(){return!!sp(this.Ff,14)},set:function(e){!!e==1?this.Ff=cp(this.Ff,14):this.Ff=lp(this.Ff,14)}}),this.password=!0};tp(Np,Mp);var $={CheckBox:{createAppearanceStream:function(){return{N:{On:$.CheckBox.YesNormal},D:{On:$.CheckBox.YesPushDown,Off:$.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=rp(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=fp(e,e.caption);return n.push(`0.749023 g`),n.push(`0 0 `+Q($.internal.getWidth(e))+` `+Q($.internal.getHeight(e))+` re`),n.push(`f`),n.push(`BMC`),n.push(`q`),n.push(`0 0 1 rg`),n.push(`/`+r+` `+Q(a.fontSize)+` Tf `+i),n.push(`BT`),n.push(a.text),n.push(`ET`),n.push(`Q`),n.push(`EMC`),t.stream=n.join(`
|
|
52
|
+
`),t},YesNormal:function(e){var t=rp(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],a=$.internal.getHeight(e),o=$.internal.getWidth(e),s=fp(e,e.caption);return i.push(`1 g`),i.push(`0 0 `+Q(o)+` `+Q(a)+` re`),i.push(`f`),i.push(`q`),i.push(`0 0 1 rg`),i.push(`0 0 `+Q(o-1)+` `+Q(a-1)+` re`),i.push(`W`),i.push(`n`),i.push(`0 g`),i.push(`BT`),i.push(`/`+n+` `+Q(s.fontSize)+` Tf `+r),i.push(s.text),i.push(`ET`),i.push(`Q`),t.stream=i.join(`
|
|
53
|
+
`),t},OffPushDown:function(e){var t=rp(e);t.scope=e.scope;var n=[];return n.push(`0.749023 g`),n.push(`0 0 `+Q($.internal.getWidth(e))+` `+Q($.internal.getHeight(e))+` re`),n.push(`f`),t.stream=n.join(`
|
|
54
|
+
`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:$.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=$.RadioButton.Circle.YesNormal,t.D[e]=$.RadioButton.Circle.YesPushDown,t},getCA:function(){return`l`},YesNormal:function(e){var t=rp(e);t.scope=e.scope;var n=[],r=$.internal.getWidth(e)<=$.internal.getHeight(e)?$.internal.getWidth(e)/4:$.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=$.internal.Bezier_C,a=Number((r*i).toFixed(5));return n.push(`q`),n.push(`1 0 0 1 `+ep($.internal.getWidth(e)/2)+` `+ep($.internal.getHeight(e)/2)+` cm`),n.push(r+` 0 m`),n.push(r+` `+a+` `+a+` `+r+` 0 `+r+` c`),n.push(`-`+a+` `+r+` -`+r+` `+a+` -`+r+` 0 c`),n.push(`-`+r+` -`+a+` -`+a+` -`+r+` 0 -`+r+` c`),n.push(a+` -`+r+` `+r+` -`+a+` `+r+` 0 c`),n.push(`f`),n.push(`Q`),t.stream=n.join(`
|
|
55
|
+
`),t},YesPushDown:function(e){var t=rp(e);t.scope=e.scope;var n=[],r=$.internal.getWidth(e)<=$.internal.getHeight(e)?$.internal.getWidth(e)/4:$.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*$.internal.Bezier_C).toFixed(5)),o=Number((r*$.internal.Bezier_C).toFixed(5));return n.push(`0.749023 g`),n.push(`q`),n.push(`1 0 0 1 `+ep($.internal.getWidth(e)/2)+` `+ep($.internal.getHeight(e)/2)+` cm`),n.push(i+` 0 m`),n.push(i+` `+a+` `+a+` `+i+` 0 `+i+` c`),n.push(`-`+a+` `+i+` -`+i+` `+a+` -`+i+` 0 c`),n.push(`-`+i+` -`+a+` -`+a+` -`+i+` 0 -`+i+` c`),n.push(a+` -`+i+` `+i+` -`+a+` `+i+` 0 c`),n.push(`f`),n.push(`Q`),n.push(`0 g`),n.push(`q`),n.push(`1 0 0 1 `+ep($.internal.getWidth(e)/2)+` `+ep($.internal.getHeight(e)/2)+` cm`),n.push(r+` 0 m`),n.push(r+` `+o+` `+o+` `+r+` 0 `+r+` c`),n.push(`-`+o+` `+r+` -`+r+` `+o+` -`+r+` 0 c`),n.push(`-`+r+` -`+o+` -`+o+` -`+r+` 0 -`+r+` c`),n.push(o+` -`+r+` `+r+` -`+o+` `+r+` 0 c`),n.push(`f`),n.push(`Q`),t.stream=n.join(`
|
|
56
|
+
`),t},OffPushDown:function(e){var t=rp(e);t.scope=e.scope;var n=[],r=$.internal.getWidth(e)<=$.internal.getHeight(e)?$.internal.getWidth(e)/4:$.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*$.internal.Bezier_C).toFixed(5));return n.push(`0.749023 g`),n.push(`q`),n.push(`1 0 0 1 `+ep($.internal.getWidth(e)/2)+` `+ep($.internal.getHeight(e)/2)+` cm`),n.push(i+` 0 m`),n.push(i+` `+a+` `+a+` `+i+` 0 `+i+` c`),n.push(`-`+a+` `+i+` -`+i+` `+a+` -`+i+` 0 c`),n.push(`-`+i+` -`+a+` -`+a+` -`+i+` 0 -`+i+` c`),n.push(a+` -`+i+` `+i+` -`+a+` `+i+` 0 c`),n.push(`f`),n.push(`Q`),t.stream=n.join(`
|
|
57
|
+
`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:$.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=$.RadioButton.Cross.YesNormal,t.D[e]=$.RadioButton.Cross.YesPushDown,t},getCA:function(){return`8`},YesNormal:function(e){var t=rp(e);t.scope=e.scope;var n=[],r=$.internal.calculateCross(e);return n.push(`q`),n.push(`1 1 `+Q($.internal.getWidth(e)-2)+` `+Q($.internal.getHeight(e)-2)+` re`),n.push(`W`),n.push(`n`),n.push(Q(r.x1.x)+` `+Q(r.x1.y)+` m`),n.push(Q(r.x2.x)+` `+Q(r.x2.y)+` l`),n.push(Q(r.x4.x)+` `+Q(r.x4.y)+` m`),n.push(Q(r.x3.x)+` `+Q(r.x3.y)+` l`),n.push(`s`),n.push(`Q`),t.stream=n.join(`
|
|
58
|
+
`),t},YesPushDown:function(e){var t=rp(e);t.scope=e.scope;var n=$.internal.calculateCross(e),r=[];return r.push(`0.749023 g`),r.push(`0 0 `+Q($.internal.getWidth(e))+` `+Q($.internal.getHeight(e))+` re`),r.push(`f`),r.push(`q`),r.push(`1 1 `+Q($.internal.getWidth(e)-2)+` `+Q($.internal.getHeight(e)-2)+` re`),r.push(`W`),r.push(`n`),r.push(Q(n.x1.x)+` `+Q(n.x1.y)+` m`),r.push(Q(n.x2.x)+` `+Q(n.x2.y)+` l`),r.push(Q(n.x4.x)+` `+Q(n.x4.y)+` m`),r.push(Q(n.x3.x)+` `+Q(n.x3.y)+` l`),r.push(`s`),r.push(`Q`),t.stream=r.join(`
|
|
59
|
+
`),t},OffPushDown:function(e){var t=rp(e);t.scope=e.scope;var n=[];return n.push(`0.749023 g`),n.push(`0 0 `+Q($.internal.getWidth(e))+` `+Q($.internal.getHeight(e))+` re`),n.push(`f`),t.stream=n.join(`
|
|
60
|
+
`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return`/`+t+` `+e.fontSize+` Tf `+n}};$.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=$.internal.getWidth(e),n=$.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},$.internal.getWidth=function(e){var t=0;return r(e)===`object`&&(t=np(e.Rect[2])),t},$.internal.getHeight=function(e){var t=0;return r(e)===`object`&&(t=np(e.Rect[3])),t};var Pp=Yf.addField=function(e){if(gp(this,e),!(e instanceof Sp))throw Error(`Invalid argument passed to jsPDF.addField.`);var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Yf.AcroFormChoiceField=Cp,Yf.AcroFormListBox=wp,Yf.AcroFormComboBox=Tp,Yf.AcroFormEditBox=Ep,Yf.AcroFormButton=Dp,Yf.AcroFormPushButton=Op,Yf.AcroFormRadioButton=kp,Yf.AcroFormCheckBox=jp,Yf.AcroFormTextField=Mp,Yf.AcroFormPasswordField=Np,Yf.AcroFormAppearance=$,Yf.AcroForm={ChoiceField:Cp,ListBox:wp,ComboBox:Tp,EditBox:Ep,Button:Dp,PushButton:Op,RadioButton:kp,CheckBox:jp,TextField:Mp,PasswordField:Np,Appearance:$},Z.AcroForm={ChoiceField:Cp,ListBox:wp,ComboBox:Tp,EditBox:Ep,Button:Dp,PushButton:Op,RadioButton:kp,CheckBox:jp,TextField:Mp,PasswordField:Np,Appearance:$},Z.AcroForm;function Fp(e){return e.reduce(function(e,t,n){return e[t]=n,e},{})}(function(e){var t=`addImage_`;e.__addimage__={};var n=`UNKNOWN`,i={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=e.__addimage__.getImageFileTypeByImageData=function(e,t){var r,a,o,s,c,l=n;if((t||=n)===`RGBA`||e.data!==void 0&&e.data instanceof Uint8ClampedArray&&`height`in e&&`width`in e)return`RGBA`;if(C(e))for(c in i)for(o=i[c],r=0;r<o.length;r+=1){for(s=!0,a=0;a<o[r].length;a+=1)if(o[r][a]!==void 0&&o[r][a]!==e[a]){s=!1;break}if(!0===s){l=c;break}}else for(c in i)for(o=i[c],r=0;r<o.length;r+=1){for(s=!0,a=0;a<o[r].length;a+=1)if(o[r][a]!==void 0&&o[r][a]!==e.charCodeAt(a)){s=!1;break}if(!0===s){l=c;break}}return l===n&&t!==n&&(l=t),l},o=function e(t){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();i.indexOf(`FlateEncode`)!==-1;)i.splice(i.indexOf(`FlateEncode`),1);t.objectId=this.internal.newObject();var a=[];if(a.push({key:`Type`,value:`/XObject`}),a.push({key:`Subtype`,value:`/Image`}),a.push({key:`Width`,value:t.width}),a.push({key:`Height`,value:t.height}),t.colorSpace===v.INDEXED?a.push({key:`ColorSpace`,value:`[/Indexed /DeviceRGB `+(t.palette.length/3-1)+` `+(`sMask`in t&&t.sMask!==void 0?t.objectId+2:t.objectId+1)+` 0 R]`}):(a.push({key:`ColorSpace`,value:`/`+t.colorSpace}),t.colorSpace===v.DEVICE_CMYK&&a.push({key:`Decode`,value:`[1 0 1 0 1 0 1 0]`})),a.push({key:`BitsPerComponent`,value:t.bitsPerComponent}),`decodeParameters`in t&&t.decodeParameters!==void 0&&a.push({key:`DecodeParms`,value:`<<`+t.decodeParameters+`>>`}),`transparency`in t&&Array.isArray(t.transparency)&&t.transparency.length>0){for(var o=``,s=0,c=t.transparency.length;s<c;s++)o+=t.transparency[s]+` `+t.transparency[s]+` `;a.push({key:`Mask`,value:`[`+o+`]`})}t.sMask!==void 0&&a.push({key:`SMask`,value:t.objectId+1+` 0 R`});var l=t.filter===void 0?void 0:[`/`+t.filter];if(r({data:t.data,additionalKeyValues:a,alreadyAppliedFilters:l,objectId:t.objectId}),n(`endobj`),`sMask`in t&&t.sMask!==void 0){var u=t.sMaskBitsPerComponent??t.bitsPerComponent,d={width:t.width,height:t.height,colorSpace:`DeviceGray`,bitsPerComponent:u,data:t.sMask};`filter`in t&&(d.decodeParameters=`/Predictor ${t.predictor} /Colors 1 /BitsPerComponent ${u} /Columns ${t.width}`,d.filter=t.filter),e.call(this,d)}if(t.colorSpace===v.INDEXED){var f=this.internal.newObject();r({data:T(new Uint8Array(t.palette)),objectId:f}),n(`endobj`)}},s=function(){var e=this.internal.collections[t+`images`];for(var n in e)o.call(this,e[n])},c=function(){var e,n=this.internal.collections[t+`images`],r=this.internal.write;for(var i in n)r(`/I`+(e=n[i]).index,e.objectId,`0`,`R`)},l=function(){this.internal.collections[t+`images`]||(this.internal.collections[t+`images`]={},this.internal.events.subscribe(`putResources`,s),this.internal.events.subscribe(`putXobjectDict`,c))},u=function(){var e=this.internal.collections[t+`images`];return l.call(this),e},d=function(){return Object.keys(this.internal.collections[t+`images`]).length},f=function(t){return typeof e[`process`+t.toUpperCase()]==`function`},p=function(e){return r(e)===`object`&&e.nodeType===1},m=function(t,n){if(t.nodeName===`IMG`&&t.hasAttribute(`src`)){var r=``+t.getAttribute(`src`);if(r.indexOf(`data:image/`)===0)return wf(unescape(r).split(`base64,`).pop());var i=e.loadFile(r,!0);if(i!==void 0)return i}if(t.nodeName===`CANVAS`){if(t.width===0||t.height===0)throw Error(`Given canvas must have data. Canvas width: `+t.width+`, height: `+t.height);var a;switch(n){case`PNG`:a=`image/png`;break;case`WEBP`:a=`image/webp`;break;default:a=`image/jpeg`}return wf(t.toDataURL(a,1).split(`base64,`).pop())}},h=function(e){var n=this.internal.collections[t+`images`];if(n){for(var r in n)if(e===n[r].alias)return n[r]}},g=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),e===0&&(e=t*n.width/n.height),t===0&&(t=e*n.height/n.width),[e,t]},_=function(e,t,n,r,i,a){var o=g.call(this,n,r,i),s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,l=u.call(this);if(n=o[0],r=o[1],l[i.index]=i,a){a*=Math.PI/180;var d=Math.cos(a),f=Math.sin(a),p=function(e){return e.toFixed(4)},m=[p(d),p(f),p(-1*f),p(d),0,0,`cm`]}this.internal.write(`q`),a?(this.internal.write([1,`0`,`0`,1,s(e),c(t+r),`cm`].join(` `)),this.internal.write(m.join(` `)),this.internal.write([s(n),`0`,`0`,s(r),`0`,`0`,`cm`].join(` `))):this.internal.write([s(n),`0`,`0`,s(r),s(e),c(t+r),`cm`].join(` `)),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,`cm`].join(` `)),this.internal.write(`/I`+i.index+` Do`),this.internal.write(`Q`)},v=e.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`};e.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 y=e.image_compression={NONE:`NONE`,FAST:`FAST`,MEDIUM:`MEDIUM`,SLOW:`SLOW`},b=e.__addimage__.sHashCode=function(e){var t,n,r=0;if(typeof e==`string`)for(n=e.length,t=0;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;else if(C(e))for(n=e.byteLength/2,t=0;t<n;t++)r=(r<<5)-r+e[t],r|=0;return r},x=e.__addimage__.validateStringAsBase64=function(e){(e||=``).toString().trim();var t=!0;return e.length===0&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},S=e.__addimage__.extractImageFromDataUrl=function(e){if(e==null||!(e=e.trim()).startsWith(`data:`))return null;var t=e.indexOf(`,`);return t<0?null:e.substring(0,t).trim().endsWith(`base64`)?e.substring(t+1):null};e.__addimage__.isArrayBuffer=function(e){return e instanceof ArrayBuffer};var C=e.__addimage__.isArrayBufferView=function(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array},w=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},T=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t=``,n=C(e)?e:new Uint8Array(e),r=0;r<n.length;r+=8192)t+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return t};e.addImage=function(){var e,t,i,a,o,s,c,u,d;if(typeof arguments[1]==`number`?(t=n,i=arguments[1],a=arguments[2],o=arguments[3],s=arguments[4],c=arguments[5],u=arguments[6],d=arguments[7]):(t=arguments[1],i=arguments[2],a=arguments[3],o=arguments[4],s=arguments[5],c=arguments[6],u=arguments[7],d=arguments[8]),r(e=arguments[0])===`object`&&!p(e)&&`imageData`in e){var f=e;e=f.imageData,t=f.format||t||n,i=f.x||i||0,a=f.y||a||0,o=f.w||f.width||o,s=f.h||f.height||s,c=f.alias||c,u=f.compression||u,d=f.rotation||f.angle||d}var m=this.internal.getFilters();if(u===void 0&&m.indexOf(`FlateEncode`)!==-1&&(u=`SLOW`),isNaN(i)||isNaN(a))throw Error(`Invalid coordinates passed to jsPDF.addImage`);l.call(this);var h=E.call(this,e,t,c,u);return _.call(this,i,a,o,s,h,d),this};var E=function(t,r,i,o){var s,c,l;if(typeof t==`string`&&a(t)===n){t=unescape(t);var u=D(t,!1);(u!==``||(u=e.loadFile(t,!0))!==void 0)&&(t=u)}if(p(t)&&(t=m(t,r)),r=a(t,r),!f(r))throw Error(`addImage does not support files of type '`+r+`', please ensure that a plugin for '`+r+`' support is added.`);if(((l=i)==null||l.length===0)&&(i=function(e){return typeof e==`string`||C(e)?b(e):C(e.data)?b(e.data):null}(t)),(s=h.call(this,i))||(t instanceof Uint8Array||r===`RGBA`||(c=t,t=w(t)),s=this[`process`+r.toUpperCase()](t,d.call(this),i,function(t){return t&&typeof t==`string`&&(t=t.toUpperCase()),t in e.image_compression?t:y.NONE}(o),c)),!s)throw Error(`An unknown error occurred whilst processing the image.`);return s},D=e.__addimage__.convertBase64ToBinaryString=function(e,t){t=typeof t!=`boolean`||t;var n,r=``;if(typeof e==`string`){n=S(e)??e;try{r=wf(n)}catch(e){if(t)throw x(n)?Error(`atob-Error in jsPDF.convertBase64ToBinaryString `+e.message):Error(`Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString `)}}return r};e.getImageProperties=function(t){var r,i,o=``;if(p(t)&&(t=m(t)),typeof t==`string`&&a(t)===n&&((o=D(t,!1))===``&&(o=e.loadFile(t)||``),t=o),i=a(t),!f(i))throw Error(`addImage does not support files of type '`+i+`', please ensure that a plugin for '`+i+`' support is added.`);if(t instanceof Uint8Array||(t=w(t)),!(r=this[`process`+i.toUpperCase()](t)))throw Error(`An unknown error occurred whilst processing the image`);return r.fileType=i,r}})(Z.API),function(e){var t=function(e){if(e!==void 0&&e!=``)return!0};Z.API.events.push([`addPage`,function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),e.events.push([`putPage`,function(e){for(var n,r,i,a=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(e.objId),c=e.pageContext.annotations,l=!1,u=0;u<c.length&&!l;u++)switch((n=c[u]).type){case`link`:(t(n.options.url)||t(n.options.pageNumber))&&(l=!0);break;case`reference`:case`text`:case`freetext`:l=!0}if(l!=0){this.internal.write(`/Annots [`);for(var d=0;d<c.length;d++){n=c[d];var f=this.internal.pdfEscape,p=this.internal.getEncryptor(e.objId);switch(n.type){case`reference`:this.internal.write(` `+n.object.objId+` 0 R `);break;case`text`:var m=this.internal.newAdditionalObject(),h=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(m.objId),_=n.title||`Note`;i=`<</Type /Annot /Subtype /Text `+(r=`/Rect [`+a(n.bounds.x)+` `+o(n.bounds.y+n.bounds.h)+` `+a(n.bounds.x+n.bounds.w)+` `+o(n.bounds.y)+`] `)+`/Contents (`+f(g(n.contents))+`)`,i+=` /Popup `+h.objId+` 0 R`,i+=` /P `+s.objId+` 0 R`,i+=` /T (`+f(g(_))+`) >>`,m.content=i;var v=m.objId+` 0 R`;i=`<</Type /Annot /Subtype /Popup `+(r=`/Rect [`+a(n.bounds.x+30)+` `+o(n.bounds.y+n.bounds.h)+` `+a(n.bounds.x+n.bounds.w+30)+` `+o(n.bounds.y)+`] `)+` /Parent `+v,n.open&&(i+=` /Open true`),i+=` >>`,h.content=i,this.internal.write(m.objId,`0 R`,h.objId,`0 R`);break;case`freetext`:r=`/Rect [`+a(n.bounds.x)+` `+o(n.bounds.y)+` `+a(n.bounds.x+n.bounds.w)+` `+o(n.bounds.y+n.bounds.h)+`] `;var y=`font: Helvetica,sans-serif 12.0pt; text-align:left; color:#`+(n.color||`#000000`);i=`<</Type /Annot /Subtype /FreeText `+r+`/Contents (`+f(p(n.contents))+`)`,i+=` /DS(`+f(p(y))+`)`,i+=` /Border [0 0 0]`,i+=` >>`,this.internal.write(i);break;case`link`:if(n.options.name){var b=this.annotations._nameMap[n.options.name];n.options.pageNumber=b.page,n.options.top=b.y}else n.options.top||(n.options.top=0);if(r=`/Rect [`+n.finalBounds.x+` `+n.finalBounds.y+` `+n.finalBounds.w+` `+n.finalBounds.h+`] `,i=``,n.options.url)i=`<</Type /Annot /Subtype /Link `+r+`/Border [0 0 0] /A <</S /URI /URI (`+f(p(n.options.url))+`) >>`;else if(n.options.pageNumber)switch(i=`<</Type /Annot /Subtype /Link `+r+`/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`:i+=` /Fit]`;break;case`FitH`:i+=` /FitH `+n.options.top+`]`;break;case`FitV`:n.options.left=n.options.left||0,i+=` /FitV `+n.options.left+`]`;break;default:var x=o(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),i+=` /XYZ `+n.options.left+` `+x+` `+n.options.zoom+`]`}i!=``&&(i+=` >>`,this.internal.write(i))}}this.internal.write(`]`)}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case`link`:this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case`text`:case`freetext`:t.pageContext.annotations.push(e)}},e.link=function(e,t,n,r,i){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(e),y:s(t),w:o(e+n),h:s(t+r)},options:i,type:`link`})},e.textWithLink=function(e,t,n,r){var i,a,o=this.getTextWidth(e),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(r.maxWidth!==void 0){a=r.maxWidth;var c=this.splitTextToSize(e,a).length;i=Math.ceil(s*c)}else a=o,i=s;return this.text(e,t,n,r),n+=.2*s,r.align===`center`&&(t-=o/2),r.align===`right`&&(t-=o),this.link(t,n-s,a,i,r),o},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(Z.API),function(e){var t={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}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(e){return t[e.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(e){return typeof e==`string`&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(e){return o(e)&&i.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=1};var l=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return o(e)&&a(e)&&t[e.charCodeAt(0)].length==4},d=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,i=``,a=0;for(t=0;t<e.length;t+=1)r[e.charCodeAt(t)]===void 0?(r=n,i+=e.charAt(t-a),t-=a,a=0):(a++,typeof(r=r[e.charCodeAt(t)])==`number`&&(i+=String.fromCharCode(r),r=n,a=0),t===e.length-1&&(r=n,i+=e.charAt(t-(a-1)),t-=a-1,a=0));return i};e.__arabicParser__.isArabicDiacritic=function(e){return e!==void 0&&r[e.charCodeAt(0)]!==void 0};var f=e.__arabicParser__.getCorrectForm=function(e,t,n){return o(e)?!1===a(e)?-1:!l(e)||!o(t)&&!o(n)||!o(n)&&s(t)||s(e)&&!o(t)||s(e)&&c(t)||s(e)&&s(t)?0:u(e)&&o(t)&&!s(t)&&o(n)&&l(n)?3:s(e)||!o(n)?1:2:-1},p=function(e){var n=0,r=0,i=0,a=``,s=``,c=``,l=(e||=``).split(`\\s+`),u=[];for(n=0;n<l.length;n+=1){for(u.push(``),r=0;r<l[n].length;r+=1)a=l[n][r],s=l[n][r-1],c=l[n][r+1],o(a)?(i=f(a,s,c),u[n]+=i===-1?a:String.fromCharCode(t[a.charCodeAt(0)][i])):u[n]+=a;u[n]=d(u[n])}return u.join(` `)},m=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t=typeof arguments[0]==`string`?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var r=0;for(n=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?n.push([p(t[r][0]),t[r][1],t[r][2]]):n.push([p(t[r])]);e=n}else e=p(t);return typeof arguments[0]==`string`?e:(arguments[0].text=e,arguments[0])};e.events.push([`preProcessText`,m])}(Z.API),Z.API.autoPrint=function(e){var t;return(e||={}).variant=e.variant||`non-conform`,e.variant===`javascript`?this.addJS(`print({});`):(this.internal.events.subscribe(`postPutResources`,function(){t=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 `+t+` 0 R`)})),this},function(e){var t=function(){var e=void 0;Object.defineProperty(this,`pdf`,{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,`width`,{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext(`2d`).pageWrapXEnabled&&(this.getContext(`2d`).pageWrapX=t+1)}});var n=300;Object.defineProperty(this,`height`,{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext(`2d`).pageWrapYEnabled&&(this.getContext(`2d`).pageWrapY=n+1)}});var r=[];Object.defineProperty(this,`childNodes`,{get:function(){return r},set:function(e){r=e}});var i={};Object.defineProperty(this,`style`,{get:function(){return i},set:function(e){i=e}}),Object.defineProperty(this,`parentNode`,{})};t.prototype.getContext=function(e,t){var n;if((e||=`2d`)!==`2d`)return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw Error(`toDataURL is not implemented.`)},e.events.push([`initialized`,function(){this.canvas=new t,this.canvas.pdf=this}])}(Z.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,i=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var e=arguments[0];Object.defineProperty(this,`x`,{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,`y`,{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,`width`,{enumerable:!0,get:function(){return n},set:function(e){n=e}});var r=arguments[3];Object.defineProperty(this,`height`,{enumerable:!0,get:function(){return r},set:function(e){r=e}});var i=arguments[4];Object.defineProperty(this,`text`,{enumerable:!0,get:function(){return i},set:function(e){i=e}});var a=arguments[5];Object.defineProperty(this,`lineNumber`,{enumerable:!0,get:function(){return a},set:function(e){a=e}});var o=arguments[6];return Object.defineProperty(this,`align`,{enumerable:!0,get:function(){return o},set:function(e){o=e}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return i.call(this),this.internal.__cell__.headerFunction=typeof e==`function`?e:void 0,this},e.getTextDimensions=function(e,t){i.call(this);var n=(t||={}).fontSize||this.getFontSize(),r=t.font||this.getFont(),a=t.scaleFactor||this.internal.scaleFactor,o=0,s=0,c=0,l=this;if(!Array.isArray(e)&&typeof e!=`string`){if(typeof e!=`number`)throw Error(`getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.`);e=String(e)}var u=t.maxWidth;u>0?typeof e==`string`?e=this.splitTextToSize(e,u):Object.prototype.toString.call(e)===`[object Array]`&&(e=e.reduce(function(e,t){return e.concat(l.splitTextToSize(t,u))},[])):e=Array.isArray(e)?e:[e];for(var d=0;d<e.length;d++)o<(c=this.getStringUnitWidth(e[d],{font:r})*n)&&(o=c);return o!==0&&(s=e.length),{w:o/=a,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/a,0)}},e.cellAddPage=function(){i.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var e=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]);i.call(this);var r=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,c=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return r.lineNumber!==void 0&&(r.lineNumber===e.lineNumber?(e.x=(r.x||0)+(r.width||0),e.y=r.y||0):r.y+r.height+e.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=s.top,l&&c&&(this.printHeaderRow(e.lineNumber,!0),e.y+=c[0].height)):e.y=r.y+r.height||e.y),e.text[0]!==void 0&&(this.rect(e.x,e.y,e.width,e.height,!0===n?`FD`:void 0),e.align===`right`?this.text(e.text,e.x+e.width-a,e.y+a,{align:`right`,baseline:`top`}):e.align===`center`?this.text(e.text,e.x+e.width/2,e.y+a,{align:`center`,baseline:`top`,maxWidth:e.width-a-a}):this.text(e.text,e.x+a,e.y+a,{align:`left`,baseline:`top`,maxWidth:e.width-a-a})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,l,u,d){if(i.call(this),!l)throw Error(`No data for PDF table.`);var f,p,m,h,g=[],_=[],v=[],y={},b={},x=[],S=[],C=(d||={}).autoSize||!1,w=!1!==d.printHeaders,T=d.css&&d.css[`font-size`]!==void 0?16*d.css[`font-size`]:d.fontSize||12,E=d.margins||Object.assign({width:this.getPageWidth()},t),D=typeof d.padding==`number`?d.padding:3,O=d.headerBackgroundColor||`#c8c8c8`,k=d.headerTextColor||`#000`;if(a.call(this),this.internal.__cell__.printHeaders=w,this.internal.__cell__.margins=E,this.internal.__cell__.table_font_size=T,this.internal.__cell__.padding=D,this.internal.__cell__.headerBackgroundColor=O,this.internal.__cell__.headerTextColor=k,this.setFontSize(T),u==null)_=g=Object.keys(l[0]),v=g.map(function(){return`left`});else if(Array.isArray(u)&&r(u[0])===`object`)for(g=u.map(function(e){return e.name}),_=u.map(function(e){return e.prompt||e.name||``}),v=u.map(function(e){return e.align||`left`}),f=0;f<u.length;f+=1)b[u[f].name]=.7499990551181103*u[f].width;else Array.isArray(u)&&typeof u[0]==`string`&&(_=g=u,v=g.map(function(){return`left`}));if(C||Array.isArray(u)&&typeof u[0]==`string`)for(f=0;f<g.length;f+=1){for(y[h=g[f]]=l.map(function(e){return e[h]}),this.setFont(void 0,`bold`),x.push(this.getTextDimensions(_[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),p=y[h],this.setFont(void 0,`normal`),m=0;m<p.length;m+=1)x.push(this.getTextDimensions(p[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);b[h]=Math.max.apply(null,x)+D+D,x=[]}if(w){var A={};for(f=0;f<g.length;f+=1)A[g[f]]={},A[g[f]].text=_[f],A[g[f]].align=v[f];var j=c.call(this,A,b);S=g.map(function(t){return new o(e,n,b[t],j,A[t].text,void 0,A[t].align)}),this.setTableHeaderRow(S),this.printHeaderRow(1,!1)}var M=u.reduce(function(e,t){return e[t.name]=t.align,e},{});for(f=0;f<l.length;f+=1){`rowStart`in d&&d.rowStart instanceof Function&&d.rowStart({row:f,data:l[f]},this);var N=c.call(this,l[f],b);for(m=0;m<g.length;m+=1){var P=l[f][g[m]];`cellStart`in d&&d.cellStart instanceof Function&&d.cellStart({row:f,col:m,data:P},this),s.call(this,new o(e,n,b[g[m]],N,P,f+2,M[g[m]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var c=function(e,t){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(e).map(function(r){var i=e[r];return this.splitTextToSize(i.hasOwnProperty(`text`)?i.text:i,t[r]-n-n)},this).map(function(e){return this.getLineHeightFactor()*e.length*r/i+n+n},this).reduce(function(e,t){return Math.max(e,t)},0)};e.setTableHeaderRow=function(e){i.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw Error(`Property tableHeaderRow does not exist.`);var r;if(n=!0,typeof this.internal.__cell__.headerFunction==`function`){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,`bold`);for(var c=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){r=this.internal.__cell__.tableHeaderRow[l].clone(),t&&(r.y=this.internal.__cell__.margins.top||0,c.push(r)),r.lineNumber=e;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,r),this.setTextColor(u)}c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,`normal`),n=!1}}(Z.API);var Ip={italic:[`italic`,`oblique`,`normal`],oblique:[`oblique`,`italic`,`normal`],normal:[`normal`,`oblique`,`italic`]},Lp=[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`],Rp=Fp(Lp),zp=[100,200,300,400,500,600,700,800,900],Bp=Fp(zp);function Vp(e){var t=e.family.replace(/"|'/g,``).toLowerCase(),n=function(e){return Ip[e||=`normal`]?e:`normal`}(e.style),r=function(e){return e?typeof e==`number`?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):e===`bold`?700:400:400}(e.weight),i=function(e){return typeof Rp[e||=`normal`]==`number`?e:`normal`}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(` `)}}}function Hp(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var Up={"sans-serif":`helvetica`,fixed:`courier`,monospace:`courier`,terminal:`courier`,cursive:`times`,fantasy:`times`,serif:`times`},Wp={caption:`times`,icon:`times`,menu:`times`,"message-box":`times`,"small-caption":`times`,"status-bar":`times`};function Gp(e){return[e.stretch,e.style,e.weight,e.family].join(` `)}function Kp(e){return e.trimLeft()}function qp(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function Jp(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Yp,Xp,Zp,Qp,$p,em=[`times`];function tm(e,t,n,r,i){var a=4,o=im;switch(i){case Z.API.image_compression.FAST:a=1,o=rm;break;case Z.API.image_compression.MEDIUM:a=6,o=am;break;case Z.API.image_compression.SLOW:a=9,o=om}e=function(e,t,n,r){for(var i,a=e.length/t,o=new Uint8Array(e.length+a),s=[nm,rm,im,am,om],c=0;c<a;c+=1){var l=c*t,u=e.subarray(l,l+t);if(r)o.set(r(u,n,i),l+c);else{for(var d=s.length,f=[],p=0;p<d;p+=1)f[p]=s[p](u,n,i);var m=cm(f.concat());o.set(f[m],l+c)}i=u}return o}(e,t,Math.ceil(n*r/8),o);var s=po(e,{level:a});return Z.API.__addimage__.arrayBufferToBinaryString(s)}function nm(e){var t=Array.apply([],e);return t.unshift(0),t}function rm(e,t){var n=e.length,r=[];r[0]=1;for(var i=0;i<n;i+=1){var a=e[i-t]||0;r[i+1]=e[i]-a+256&255}return r}function im(e,t,n){var r=e.length,i=[];i[0]=2;for(var a=0;a<r;a+=1){var o=n&&n[a]||0;i[a+1]=e[a]-o+256&255}return i}function am(e,t,n){var r=e.length,i=[];i[0]=3;for(var a=0;a<r;a+=1){var o=e[a-t]||0,s=n&&n[a]||0;i[a+1]=e[a]+256-(o+s>>>1)&255}return i}function om(e,t,n){var r=e.length,i=[];i[0]=4;for(var a=0;a<r;a+=1){var o=sm(e[a-t]||0,n&&n[a]||0,n&&n[a-t]||0);i[a+1]=e[a]-o+256&255}return i}function sm(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),i=Math.abs(e-n),a=Math.abs(e+t-n-n);return r<=i&&r<=a?e:i<=a?t:n}function cm(e){var t=e.map(function(e){return e.reduce(function(e,t){return e+Math.abs(t)},0)});return t.indexOf(Math.min.apply(null,t))}function lm(e,t,n){var r=t*n,i=Math.floor(r/8),a=16-(r-8*i+n),o=(1<<n)-1;return dm(e,i)>>a&o}function um(e,t,n,r){var i=n*r,a=Math.floor(i/8),o=16-(i-8*a+r),s=(1<<r)-1,c=(t&s)<<o;(function(e,t,n){if(t+1<e.byteLength)e.setUint16(t,n,!1);else{var r=n>>8&255;e.setUint8(t,r)}})(e,a,dm(e,a)&~(s<<o)&65535|c)}function dm(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function fm(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw Error(`Invalid GIF 87a/89a header.`);var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],a=i>>7,o=1<<1+(7&i);e[t++],e[t++];var s=null,c=null;a&&(s=t,c=o,t+=3*o);var l=!0,u=[],d=0,f=null,p=0,m=null;for(this.width=n,this.height=r;l&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,m=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((D=e[t++])>=0))throw Error(`Invalid block size`);if(D===0)break;t+=D}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw Error(`Invalid graphics extension block.`);var h=e[t++];d=e[t++]|e[t++]<<8,f=e[t++],1&h||(f=null),p=h>>2&7,t++;break;case 254:for(;;){if(!((D=e[t++])>=0))throw Error(`Invalid block size`);if(D===0)break;t+=D}break;default:throw Error(`Unknown graphic control label: 0x`+e[t-1].toString(16))}break;case 44:var g=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++],x=b>>6&1,S=1<<1+(7&b),C=s,w=c,T=!1;b>>7&&(T=!0,C=t,w=S,t+=3*S);var E=t;for(t++;;){var D;if(!((D=e[t++])>=0))throw Error(`Invalid block size`);if(D===0)break;t+=D}u.push({x:g,y:_,width:v,height:y,has_local_palette:T,palette_offset:C,palette_size:w,data_offset:E,data_length:t-E,transparent_index:f,interlaced:!!x,delay:d,disposal:p});break;case 59:l=!1;break;default:throw Error(`Unknown gif block: 0x`+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return m},this.frameInfo=function(e){if(e<0||e>=u.length)throw Error(`Frame index out of range.`);return u[e]},this.decodeAndBlitFrameBGRA=function(t,r){var i=this.frameInfo(t),a=i.width*i.height;if(a>536870912)throw Error(`Image dimensions exceed 512MB, which is too large.`);var o=new Uint8Array(a);pm(e,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;c===null&&(c=256);var l=i.width,u=n-l,d=l,f=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),m=f,h=4*u;!0===i.interlaced&&(h+=4*n*7);for(var g=8,_=0,v=o.length;_<v;++_){var y=o[_];if(d===0&&(d=l,(m+=h)>=p&&(h=4*u+4*n*(g-1),m=f+(l+u)*(g<<1),g>>=1)),y===c)m+=4;else{var b=e[s+3*y],x=e[s+3*y+1],S=e[s+3*y+2];r[m++]=S,r[m++]=x,r[m++]=b,r[m++]=255}--d}},this.decodeAndBlitFrameRGBA=function(t,r){var i=this.frameInfo(t),a=i.width*i.height;if(a>536870912)throw Error(`Image dimensions exceed 512MB, which is too large.`);var o=new Uint8Array(a);pm(e,i.data_offset,o,a);var s=i.palette_offset,c=i.transparent_index;c===null&&(c=256);var l=i.width,u=n-l,d=l,f=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),m=f,h=4*u;!0===i.interlaced&&(h+=4*n*7);for(var g=8,_=0,v=o.length;_<v;++_){var y=o[_];if(d===0&&(d=l,(m+=h)>=p&&(h=4*u+4*n*(g-1),m=f+(l+u)*(g<<1),g>>=1)),y===c)m+=4;else{var b=e[s+3*y],x=e[s+3*y+1],S=e[s+3*y+2];r[m++]=b,r[m++]=x,r[m++]=S,r[m++]=255}--d}}}function pm(e,t,n,r){for(var i=e[t++],a=1<<i,o=a+1,s=o+1,c=i+1,l=(1<<c)-1,u=0,d=0,f=0,p=e[t++],m=new Int32Array(4096),h=null;;){for(;u<16&&p!==0;)d|=e[t++]<<u,u+=8,p===1?p=e[t++]:--p;if(u<c)break;var g=d&l;if(d>>=c,u-=c,g!==a){if(g===o)break;for(var _=g<s?g:h,v=0,y=_;y>a;)y=m[y]>>8,++v;var b=y;if(f+v+(_===g?0:1)>r)return void vf.log(`Warning, gif stream longer than expected.`);n[f++]=b;var x=f+=v;for(_!==g&&(n[f++]=b),y=_;v--;)y=m[y],n[--x]=255&y,y>>=8;h!==null&&s<4096&&(m[s++]=h<<8|b,s>=l+1&&c<12&&(++c,l=l<<1|1)),h=g}else s=o+1,l=(1<<(c=i+1))-1,h=null}return f!==r&&vf.log(`Warning, gif stream shorter than expected.`),n}function mm(e){var t,n,r,i,a,o=Math.floor,s=Array(64),c=Array(64),l=Array(64),u=Array(64),d=Array(65535),f=Array(65535),p=Array(64),m=Array(64),h=[],g=0,_=7,v=Array(64),y=Array(64),b=Array(64),x=Array(256),S=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],w=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[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],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],j=[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 M(e,t){for(var n=0,r=0,i=[],a=1;a<=16;a++){for(var o=1;o<=e[a];o++)i[t[r]]=[],i[t[r]][0]=n,i[t[r]][1]=a,r++,n++;n*=2}return i}function N(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(g|=1<<_),n--,--_<0&&(g==255?(P(255),P(0)):P(g),_=7,g=0)}function P(e){h.push(e)}function F(e){P(e>>8&255),P(255&e)}function I(e,t,n,r,i){for(var a,o=i[0],s=i[240],c=function(e,t){var n,r,i,a,o,s,c,l,u,d,f=0;for(u=0;u<8;++u){n=e[f],r=e[f+1],i=e[f+2],a=e[f+3],o=e[f+4],s=e[f+5],c=e[f+6];var m=n+(l=e[f+7]),h=n-l,g=r+c,_=r-c,v=i+s,y=i-s,b=a+o,x=a-o,S=m+b,C=m-b,w=g+v,T=g-v;e[f]=S+w,e[f+4]=S-w;var E=.707106781*(T+C);e[f+2]=C+E,e[f+6]=C-E;var D=.382683433*((S=x+y)-(T=_+h)),O=.5411961*S+D,k=1.306562965*T+D,A=.707106781*(w=y+_),j=h+A,M=h-A;e[f+5]=M+O,e[f+3]=M-O,e[f+1]=j+k,e[f+7]=j-k,f+=8}for(f=0,u=0;u<8;++u){n=e[f],r=e[f+8],i=e[f+16],a=e[f+24],o=e[f+32],s=e[f+40],c=e[f+48];var N=n+(l=e[f+56]),P=n-l,F=r+c,I=r-c,L=i+s,ee=i-s,R=a+o,z=a-o,B=N+R,te=N-R,V=F+L,ne=F-L;e[f]=B+V,e[f+32]=B-V;var re=.707106781*(ne+te);e[f+16]=te+re,e[f+48]=te-re;var ie=.382683433*((B=z+ee)-(ne=I+P)),ae=.5411961*B+ie,oe=1.306562965*ne+ie,se=.707106781*(V=ee+I),ce=P+se,le=P-se;e[f+40]=le+ae,e[f+24]=le-ae,e[f+8]=ce+oe,e[f+56]=ce-oe,f++}for(u=0;u<64;++u)d=e[u]*t[u],p[u]=d>0?d+.5|0:d-.5|0;return p}(e,t),l=0;l<64;++l)m[C[l]]=c[l];var u=m[0]-n;n=m[0],u==0?N(r[0]):(N(r[f[a=32767+u]]),N(d[a]));for(var h=63;h>0&&m[h]==0;)h--;if(h==0)return N(o),n;for(var g,_=1;_<=h;){for(var v=_;m[_]==0&&_<=h;)++_;var y=_-v;if(y>=16){g=y>>4;for(var b=1;b<=g;++b)N(s);y&=15}a=32767+m[_],N(i[(y<<4)+f[a]]),N(d[a]),_++}return h!=63&&N(o),n}function L(e){e=Math.min(Math.max(e,1),100),a!=e&&(function(e){for(var t=[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 r=o((t[n]*e+50)/100);r=Math.min(Math.max(r,1),255),s[C[n]]=r}for(var i=[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],a=0;a<64;a++){var d=o((i[a]*e+50)/100);d=Math.min(Math.max(d,1),255),c[C[a]]=d}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,m=0;m<8;m++)for(var h=0;h<8;h++)l[p]=1/(s[C[p]]*f[m]*f[h]*8),u[p]=1/(c[C[p]]*f[m]*f[h]*8),p++}(Math.floor(e<50?5e3/e:200-2*e)),a=e)}this.encode=function(e,a){a&&L(a),h=[],g=0,_=7,F(65496),F(65504),F(16),P(74),P(70),P(73),P(70),P(0),P(1),P(1),P(0),F(1),F(1),P(0),P(0),function(){F(65499),F(132),P(0);for(var e=0;e<64;e++)P(s[e]);P(1);for(var t=0;t<64;t++)P(c[t])}(),function(e,t){F(65472),F(17),P(8),F(t),F(e),P(3),P(1),P(17),P(0),P(2),P(17),P(1),P(3),P(17),P(1)}(e.width,e.height),function(){F(65476),F(418),P(0);for(var e=0;e<16;e++)P(w[e+1]);for(var t=0;t<=11;t++)P(T[t]);P(16);for(var n=0;n<16;n++)P(E[n+1]);for(var r=0;r<=161;r++)P(D[r]);P(1);for(var i=0;i<16;i++)P(O[i+1]);for(var a=0;a<=11;a++)P(k[a]);P(17);for(var o=0;o<16;o++)P(A[o+1]);for(var s=0;s<=161;s++)P(j[s])}(),F(65498),F(12),P(3),P(1),P(0),P(2),P(17),P(3),P(17),P(0),P(63),P(0);var o=0,d=0,f=0;g=0,_=7,this.encode.displayName=`_encode_`;for(var p,m,x,C,M,ee,R,z,B,te=e.data,V=e.width,ne=e.height,re=4*V,ie=0;ie<ne;){for(p=0;p<re;){for(M=re*ie+p,R=-1,z=0,B=0;B<64;B++)ee=M+(z=B>>3)*re+(R=4*(7&B)),ie+z>=ne&&(ee-=re*(ie+1+z-ne)),p+R>=re&&(ee-=p+R-re+4),m=te[ee++],x=te[ee++],C=te[ee++],v[B]=(S[m]+S[x+256|0]+S[C+512|0]>>16)-128,y[B]=(S[m+768|0]+S[x+1024|0]+S[C+1280|0]>>16)-128,b[B]=(S[m+1280|0]+S[x+1536|0]+S[C+1792|0]>>16)-128;o=I(v,l,o,t,r),d=I(y,u,d,n,i),f=I(b,u,f,n,i),p+=32}ie+=8}if(_>=0){var ae=[];ae[1]=_+1,ae[0]=(1<<_+1)-1,N(ae)}return F(65497),new Uint8Array(h)},e||=50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)x[t]=e(t)}(),t=M(w,T),n=M(O,k),r=M(E,D),i=M(A,j),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)f[32767+r]=n,d[32767+r]=[],d[32767+r][1]=n,d[32767+r][0]=r;for(var i=-(t-1);i<=-e;i++)f[32767+i]=n,d[32767+i]=[],d[32767+i][1]=n,d[32767+i][0]=t-1+i;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)S[e]=19595*e,S[e+256|0]=38470*e,S[e+512|0]=7471*e+32768,S[e+768|0]=-11059*e,S[e+1024|0]=-21709*e,S[e+1280|0]=32768*e+8421375,S[e+1536|0]=-27439*e,S[e+1792|0]=-5329*e}(),L(e)}function hm(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,[`BM`,`BA`,`CI`,`CP`,`IC`,`PT`].indexOf(this.flag)===-1)throw Error(`Invalid BMP File`);this.parseHeader(),this.parseBGR()}function gm(e){function t(e){if(!e)throw Error(`assert :P`)}function n(e,t,n){for(var r=0;4>r;r++)if(e[t+r]!=n.charCodeAt(r))return!0;return!1}function r(e,t,n,r,i){for(var a=0;a<i;a++)e[t+a]=n[r+a]}function i(e,t,n,r){for(var i=0;i<r;i++)e[t+i]=n}function a(e){return new Int32Array(e)}function o(e,t){for(var n=[],r=0;r<e;r++)n.push(new t);return n}function s(e,t){var n=[];return function e(n,r,i){for(var a=i[r],o=0;o<a&&(n.push(i.length>r+1?[]:new t),!(i.length<r+1));o++)e(n[o],r+1,i)}(n,0,e),n}var c=function(){var e=this;function c(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function l(e,n,r,i,a){t(!(i%r));do e[n+(i-=r)]=a;while(0<i)}function u(e,n,r,i,o){if(t(2328>=o),512>=o)var s=a(512);else if((s=a(o))==null)return 0;return function(e,n,r,i,o,s){var u,f,p=n,m=1<<r,h=a(16),g=a(16);for(t(o!=0),t(i!=null),t(e!=null),t(0<r),f=0;f<o;++f){if(15<i[f])return 0;++h[i[f]]}if(h[0]==o)return 0;for(g[1]=0,u=1;15>u;++u){if(h[u]>1<<u)return 0;g[u+1]=g[u]+h[u]}for(f=0;f<o;++f)u=i[f],0<i[f]&&(s[g[u]++]=f);if(g[15]==1)return(i=new d).g=0,i.value=s[0],l(e,p,1,m,i),m;var _,v=-1,y=m-1,b=0,x=1,S=1,C=1<<r;for(f=0,u=1,o=2;u<=r;++u,o<<=1){if(x+=S<<=1,0>(S-=h[u]))return 0;for(;0<h[u];--h[u])(i=new d).g=u,i.value=s[f++],l(e,p+b,o,C,i),b=c(b,u)}for(u=r+1,o=2;15>=u;++u,o<<=1){if(x+=S<<=1,0>(S-=h[u]))return 0;for(;0<h[u];--h[u]){if(i=new d,(b&y)!=v){for(p+=C,_=1<<(v=u)-r;15>v&&!(0>=(_-=h[v]));)++v,_<<=1;m+=C=1<<(_=v-r),e[n+(v=b&y)].g=_+r,e[n+v].value=p-n-v}i.g=u-r,i.value=s[f++],l(e,p+(b>>r),o,C,i),b=c(b,u)}}return x==2*g[15]-1?m:0}(e,n,r,i,o,s)}function d(){this.value=this.g=0}function f(){this.value=this.g=0}function p(){this.G=o(5,d),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Wn,f)}function m(e,n,r,i){t(e!=null),t(n!=null),t(2147483648>i),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=r,e.Jd=n,e.Yc=r+i,e.Zc=4<=i?r+i-4+1:r,E(e)}function h(e,t){for(var n=0;0<t--;)n|=O(e,128)<<t;return n}function g(e,t){var n=h(e,t);return D(e)?-n:n}function _(e,n,r,i){var a,o=0;for(t(e!=null),t(n!=null),t(4294967288>i),e.Sb=i,e.Ra=0,e.u=0,e.h=0,4<i&&(i=4),a=0;a<i;++a)o+=n[r+a]<<8*a;e.Ra=o,e.bb=i,e.oa=n,e.pa=r}function v(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<qn-8>>>0,++e.bb,e.u-=8;C(e)&&(e.h=1,e.u=0)}function y(e,n){if(t(0<=n),!e.h&&n<=Kn){var r=S(e)&Gn[n];return e.u+=n,v(e),r}return e.h=1,e.u=0}function b(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function S(e){return e.Ra>>>(e.u&qn-1)>>>0}function C(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>qn}function w(e,t){e.u=t,e.h=C(e)}function T(e){e.u>=Jn&&(t(e.u>=Jn),v(e))}function E(e){t(e!=null&&e.oa!=null),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(e!=null&&e.oa!=null),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function D(e){return h(e,1)}function O(e,t){var n=e.Ca;0>e.b&&E(e);var r=e.b,i=n*t>>>8,a=(e.I>>>r>i)+0;for(a?(n-=i,e.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+Yn[r],e.b-=r,e.Ca=(n<<r)-1,a}function k(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function A(e,t){return e[t+0]|e[t+1]<<8}function j(e,t){return A(e,t)|e[t+2]<<16}function M(e,t){return A(e,t)|A(e,t+2)<<16}function N(e,n){var r=1<<n;return t(e!=null),t(0<n),e.X=a(r),e.X==null?0:(e.Mb=32-n,e.Xa=n,1)}function P(e,n){t(e!=null),t(n!=null),t(e.Xa==n.Xa),r(n.X,0,e.X,0,1<<n.Xa)}function F(){this.X=[],this.Xa=this.Mb=0}function I(e,n,r,i){t(r!=null),t(i!=null);var a=r[0],o=i[0];return a==0&&(a=(e*o+n/2)/n),o==0&&(o=(n*a+e/2)/e),0>=a||0>=o?0:(r[0]=a,i[0]=o,1)}function L(e,t){return e+(1<<t)-1>>>t}function ee(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function R(t,n){e[n]=function(n,r,i,a,o,s,c){var l;for(l=0;l<o;++l){var u=e[t](s[c+l-1],i,a+l);s[c+l]=ee(n[r+l],u)}}}function z(){this.ud=this.hd=this.jd=0}function B(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function te(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function V(e,t){return te(e+(e-t+.5>>1))}function ne(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function re(e,t,n,r,i,a,o){for(r=a[o-1],n=0;n<i;++n)a[o+n]=r=ee(e[t+n],r)}function ie(e,t,n,r,i){var a;for(a=0;a<n;++a){var o=e[t+a],s=o>>8&255,c=16711935&(c=(c=16711935&o)+((s<<16)+s));r[i+a]=(4278255360&o)+c>>>0}}function ae(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function oe(e,t,n,r,i,a){var o;for(o=0;o<r;++o){var s=t[n+o],c=s>>>8,l=s,u=255&(u=(u=s>>>16)+((e.jd<<24>>24)*(c<<24>>24)>>>5));l=255&(l=(l+=(e.hd<<24>>24)*(c<<24>>24)>>>5)+((e.ud<<24>>24)*(u<<24>>24)>>>5)),i[a+o]=(4278255360&s)+(u<<16)+l}}function se(t,n,r,i,a){e[n]=function(e,t,n,r,o,s,c,l,u){for(r=c;r<l;++r)for(c=0;c<u;++c)o[s++]=a(n[i(e[t++])])},e[t]=function(t,n,o,s,c,l,u){var d=8>>t.b,f=t.Ea,p=t.K[0],m=t.w;if(8>d)for(t=(1<<t.b)-1,m=(1<<d)-1;n<o;++n){var h,g=0;for(h=0;h<f;++h)h&t||(g=i(s[c++])),l[u++]=a(p[g&m]),g>>=d}else e[`VP8LMapColor`+r](s,c,p,m,l,u,n,o,f)}}function ce(e,t,n,r,i){for(n=t+n;t<n;){var a=e[t++];r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=255&a}}function le(e,t,n,r,i){for(n=t+n;t<n;){var a=e[t++];r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=255&a,r[i++]=a>>24&255}}function H(e,t,n,r,i){for(n=t+n;t<n;){var a=(o=e[t++])>>16&240|o>>12&15,o=240&o|o>>28&15;r[i++]=a,r[i++]=o}}function ue(e,t,n,r,i){for(n=t+n;t<n;){var a=(o=e[t++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;r[i++]=a,r[i++]=o}}function de(e,t,n,r,i){for(n=t+n;t<n;){var a=e[t++];r[i++]=255&a,r[i++]=a>>8&255,r[i++]=a>>16&255}}function fe(e,t,n,i,a,o){if(o==0)for(n=t+n;t<n;)k(i,((o=e[t++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),a+=32;else r(i,a,e,t,n)}function pe(t,n){e[n][0]=e[t+`0`],e[n][1]=e[t+`1`],e[n][2]=e[t+`2`],e[n][3]=e[t+`3`],e[n][4]=e[t+`4`],e[n][5]=e[t+`5`],e[n][6]=e[t+`6`],e[n][7]=e[t+`7`],e[n][8]=e[t+`8`],e[n][9]=e[t+`9`],e[n][10]=e[t+`10`],e[n][11]=e[t+`11`],e[n][12]=e[t+`12`],e[n][13]=e[t+`13`],e[n][14]=e[t+`0`],e[n][15]=e[t+`0`]}function me(e){return e==Kr||e==qr||e==Jr||e==Yr}function he(){this.eb=[],this.size=this.A=this.fb=0}function ge(){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 _e(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new he,this.f.kb=new ge,this.sd=null}function ve(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ye(){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 be(e){return alert(`todo:WebPSamplerProcessPlane`),e.T}function xe(e,t){var n=e.T,i=t.ba.f.RGBA,a=i.eb,o=i.fb+e.ka*i.A,s=bi[t.ba.S],c=e.y,l=e.O,u=e.f,d=e.N,f=e.ea,p=e.W,m=t.cc,h=t.dc,g=t.Mc,_=t.Nc,v=e.ka,y=e.ka+e.T,b=e.U,x=b+1>>1;for(v==0?s(c,l,null,null,u,d,f,p,u,d,f,p,a,o,null,null,b):(s(t.ec,t.fc,c,l,m,h,g,_,u,d,f,p,a,o-i.A,a,o,b),++n);v+2<y;v+=2)m=u,h=d,g=f,_=p,d+=e.Rc,p+=e.Rc,o+=2*i.A,s(c,(l+=2*e.fa)-e.fa,c,l,m,h,g,_,u,d,f,p,a,o-i.A,a,o,b);return l+=e.fa,e.j+y<e.o?(r(t.ec,t.fc,c,l,b),r(t.cc,t.dc,u,d,x),r(t.Mc,t.Nc,f,p,x),n--):1&y||s(c,l,null,null,u,d,f,p,u,d,f,p,a,o+i.A,null,null,b),n}function Se(e,n,r){var i=e.F,a=[e.J];if(i!=null){var o=e.U,s=n.ba.S,c=s==Ur||s==Jr;n=n.ba.f.RGBA;var l=[0],u=e.ka;l[0]=e.T,e.Kb&&(u==0?--l[0]:(--u,a[0]-=e.width),e.j+e.ka+e.T==e.o&&(l[0]=e.o-e.j-u));var d=n.eb;u=n.fb+u*n.A,e=Ar(i,a[0],e.width,o,l,d,u+(c?0:3),n.A),t(r==l),e&&me(s)&&Or(d,u,c,o,l,n.A)}return 0}function Ce(e){var t=e.ma,n=t.ba.S,r=11>n,i=n==Y||n==Hr||n==Ur||n==Wr||n==12||me(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Vn(t.Oa,e,i?11:12))return 0;if(i&&me(n)&&Tn(),e.da)alert(`todo:use_scaling`);else{if(r){if(t.Ib=be,e.Kb){if(n=e.U+1>>1,t.memory=a(e.U+2*n),t.memory==null)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=xe,Tn()}}else alert(`todo:EmitYUV`);i&&(t.Jb=Se,r&&Cn())}if(r&&!Pi){for(e=0;256>e;++e)Fi[e]=89858*(e-128)+ki>>Oi,Ri[e]=-22014*(e-128)+ki,Li[e]=-45773*(e-128),Ii[e]=113618*(e-128)+ki>>Oi;for(e=Ai;e<ji;++e)t=76283*(e-16)+ki>>Oi,zi[e-Ai]=$e(t,255),Bi[e-Ai]=$e(t+8>>4,15);Pi=1}return 1}function we(e){var n=e.ma,r=e.U,i=e.T;return t(!(1&e.ka)),0>=r||0>=i?0:(r=n.Ib(e,n),n.Jb!=null&&n.Jb(e,n,r),n.Dc+=r,1)}function Te(e){e.ma.memory=null}function Ee(e,t,n,r){return y(e,8)==47?(t[0]=y(e,14)+1,n[0]=y(e,14)+1,r[0]=y(e,1),y(e,3)==0?!e.h:0):0}function De(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+y(t,n)+1}function Oe(e,t){return 120<t?t-120:1<=(n=((n=ti[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function ke(e,t,n){var r=S(n),i=e[t+=255&r].g-8;return 0<i&&(w(n,n.u+8),r=S(n),t+=e[t].value,t+=r&(1<<i)-1),w(n,n.u+e[t].g),e[t].value}function Ae(e,n,r){return r.g+=e.g,r.value+=e.value<<n>>>0,t(8>=r.g),e.g}function U(e,n,r){var i=e.xc;return t((n=i==0?0:e.vc[e.md*(r>>i)+(n>>i)])<e.Wb),e.Ya[n]}function je(e,n,i,a){var o=e.ab,s=e.c*n,c=e.C;n=c+n;var l=i,u=a;for(a=e.Ta,i=e.Ua;0<o--;){var d=e.gc[o],f=c,p=n,m=l,h=u,g=(u=a,l=i,d.Ea);switch(t(f<p),t(p<=d.nc),d.hc){case 2:Qn(m,h,(p-f)*g,u,l);break;case 0:var _=f,v=p,y=u,b=l,x=(E=d).Ea;_==0&&(Xn(m,h,null,null,1,y,b),re(m,h+1,0,0,x-1,y,b+1),h+=x,b+=x,++_);for(var S=1<<E.b,C=S-1,w=L(x,E.b),T=E.K,E=E.w+(_>>E.b)*w;_<v;){var D=T,O=E,k=1;for(Zn(m,h,y,b-x,1,y,b);k<x;){var A=(k&~C)+S;A>x&&(A=x),(0,rr[D[O++]>>8&15])(m,h+ +k,y,b+k-x,A-k,y,b+k),k=A}h+=x,b+=x,++_&C||(E+=w)}p!=d.nc&&r(u,l-g,u,l+(p-f-1)*g,g);break;case 1:for(g=m,v=h,x=(m=d.Ea)-(b=m&~(y=(h=1<<d.b)-1)),_=L(m,d.b),S=d.K,d=d.w+(f>>d.b)*_;f<p;){for(C=S,w=d,T=new z,E=v+b,D=v+m;v<E;)ae(C[w++],T),ir(T,g,v,h,u,l),v+=h,l+=h;v<D&&(ae(C[w++],T),ir(T,g,v,x,u,l),v+=x,l+=x),++f&y||(d+=_)}break;case 3:if(m==u&&h==l&&0<d.b){for(v=u,m=g=l+(p-f)*g-(b=(p-f)*L(d.Ea,d.b)),h=u,y=l,_=[],b=(x=b)-1;0<=b;--b)_[b]=h[y+b];for(b=x-1;0<=b;--b)v[m+b]=_[b];$n(d,f,p,u,g,u,l)}else $n(d,f,p,m,h,u,l)}l=a,u=i}u!=i&&r(a,i,l,u,s)}function Me(e,n){var r=e.V,i=e.Ba+e.c*e.C,a=n-e.C;if(t(n<=e.l.o),t(16>=a),0<a){var o=e.l,s=e.Ta,c=e.Ua,l=o.width;if(je(e,a,r,i),a=c=[c],t((r=e.C)<(i=n)),t(o.v<o.va),i>o.o&&(i=o.o),r<o.j){var u=o.j-r;r=o.j,a[0]+=u*l}if(r>=i?r=0:(a[0]+=4*o.v,o.ka=r-o.j,o.U=o.va-o.v,o.T=i-r,r=1),r){if(c=c[0],11>(r=e.ca).S){var d=r.f.RGBA,f=(i=r.S,a=o.U,o=o.T,u=d.eb,d.A),p=o;for(d=d.fb+e.Ma*d.A;0<p--;){var m=s,h=c,g=a,_=u,v=d;switch(i){case J:ar(m,h,g,_,v);break;case Y:or(m,h,g,_,v);break;case Kr:or(m,h,g,_,v),Or(_,v,0,g,1,0);break;case Vr:lr(m,h,g,_,v);break;case Hr:fe(m,h,g,_,v,1);break;case qr:fe(m,h,g,_,v,1),Or(_,v,0,g,1,0);break;case Ur:fe(m,h,g,_,v,0);break;case Jr:fe(m,h,g,_,v,0),Or(_,v,1,g,1,0);break;case Wr:sr(m,h,g,_,v);break;case Yr:sr(m,h,g,_,v),kr(_,v,g,1,0);break;case Gr:cr(m,h,g,_,v);break;default:t(0)}c+=l,d+=f}e.Ma+=o}else alert(`todo:EmitRescaledRowsYUVA`);t(e.Ma<=r.height)}}e.C=n,t(e.C<=e.i)}function Ne(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,r=e.Ya[t].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function Pe(e,n,r,i,a,o){if(e.Z!=0){var s=e.qd,c=e.rd;for(t(yi[e.Z]!=null);n<r;++n)yi[e.Z](s,c,i,a,i,a,o),s=i,c=a,a+=o;e.qd=s,e.rd=c}}function Fe(e,n){var r=e.l.ma,i=r.Z==0||r.Z==1?e.l.j:e.C;if(i=e.C<i?i:e.C,t(n<=e.l.o),n>i){var a=e.l.width,o=r.ca,s=r.tb+a*i,c=e.V,l=e.Ba+e.c*i,u=e.gc;t(e.ab==1),t(u[0].hc==3),tr(u[0],i,n,c,l,o,s),Pe(r,i,n,o,s,a)}e.C=e.Ma=n}function W(e,n,r,i,a,o,s){var c=e.$/i,l=e.$%i,u=e.m,d=e.s,f=r+e.$,p=f;a=r+i*a;var m=r+i*o,h=280+d.ua,g=e.Pb?c:16777216,_=0<d.ua?d.Wa:null,v=d.wc,y=f<m?U(d,l,c):null;t(e.C<o),t(m<=a);var b=!1;t:for(;;){for(;b||f<m;){var x=0;if(c>=g){var E=f-r;t((g=e).Pb),g.wd=g.m,g.xd=E,0<g.s.ua&&P(g.s.Wa,g.s.vb),g=c+ri}if(l&v||(y=U(d,l,c)),t(y!=null),y.Qb&&(n[f]=y.qb,b=!0),!b)if(T(u),y.jc){x=u,E=n;var D=f,O=y.pd[S(x)&Wn-1];t(y.jc),256>O.g?(w(x,x.u+O.g),E[D]=O.value,x=0):(w(x,x.u+O.g-256),t(256<=O.value),x=O.value),x==0&&(b=!0)}else x=ke(y.G[0],y.H[0],u);if(u.h)break;if(b||256>x){if(!b)if(y.nd)n[f]=(y.qb|x<<8)>>>0;else{if(T(u),b=ke(y.G[1],y.H[1],u),T(u),E=ke(y.G[2],y.H[2],u),D=ke(y.G[3],y.H[3],u),u.h)break;n[f]=(D<<24|b<<16|x<<8|E)>>>0}if(b=!1,++f,++l>=i&&(l=0,++c,s!=null&&c<=o&&!(c%16)&&s(e,c),_!=null))for(;p<f;)x=n[p++],_.X[(506832829*x&4294967295)>>>_.Mb]=x}else if(280>x){if(x=De(x-256,u),E=ke(y.G[4],y.H[4],u),T(u),E=Oe(i,E=De(E,u)),u.h)break;if(f-r<E||a-f<x)break t;for(D=0;D<x;++D)n[f+D]=n[f+D-E];for(f+=x,l+=x;l>=i;)l-=i,++c,s!=null&&c<=o&&!(c%16)&&s(e,c);if(t(f<=a),l&v&&(y=U(d,l,c)),_!=null)for(;p<f;)x=n[p++],_.X[(506832829*x&4294967295)>>>_.Mb]=x}else{if(!(x<h))break t;for(b=x-280,t(_!=null);p<f;)x=n[p++],_.X[(506832829*x&4294967295)>>>_.Mb]=x;x=f,t(!(b>>>(E=_).Xa)),n[x]=E.X[b],b=!0}b||t(u.h==C(u))}if(e.Pb&&u.h&&f<a)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&P(e.s.vb,e.s.Wa);else{if(u.h)break t;s?.(e,c>o?o:c),e.a=0,e.$=f-r}return 1}return e.a=3,0}function Ie(e){t(e!=null),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;n!=null&&(n.X=null),e.vb=null,t(e!=null)}function Le(){var t=new pn;return t==null?null:(t.a=0,t.xb=vi,pe(`Predictor`,`VP8LPredictors`),pe(`Predictor`,`VP8LPredictors_C`),pe(`PredictorAdd`,`VP8LPredictorsAdd`),pe(`PredictorAdd`,`VP8LPredictorsAdd_C`),Qn=ie,ir=oe,ar=ce,or=le,sr=H,cr=ue,lr=de,e.VP8LMapColor32b=er,e.VP8LMapColor8b=nr,t)}function Re(e,n,r,s,c){var l=1,f=[e],m=[n],h=s.m,g=s.s,_=null,v=0;t:for(;;){if(r)for(;l&&y(h,1);){var b=f,x=m,C=s,E=1,D=C.m,O=C.gc[C.ab],k=y(D,2);if(C.Oc&1<<k)l=0;else{switch(C.Oc|=1<<k,O.hc=k,O.Ea=b[0],O.nc=x[0],O.K=[null],++C.ab,t(4>=C.ab),k){case 0:case 1:O.b=y(D,3)+2,E=Re(L(O.Ea,O.b),L(O.nc,O.b),0,C,O.K),O.K=O.K[0];break;case 3:var A,j=y(D,8)+1,M=16<j?0:4<j?1:2<j?2:3;if(b[0]=L(O.Ea,M),O.b=M,A=E=Re(j,1,0,C,O.K)){var P,F=j,I=O,R=1<<(8>>I.b),z=a(R);if(z==null)A=0;else{var B=I.K[0],te=I.w;for(z[0]=I.K[0][0],P=1;P<1*F;++P)z[P]=ee(B[te+P],z[P-1]);for(;P<4*R;++P)z[P]=0;I.K[0]=null,I.K[0]=z,A=1}}E=A;break;case 2:break;default:t(0)}l=E}}if(f=f[0],m=m[0],l&&y(h,1)&&!(l=1<=(v=y(h,4))&&11>=v)){s.a=3;break t}var V;if(V=l)e:{var ne,re,ie,ae=s,oe=f,se=m,ce=v,le=r,H=ae.m,ue=ae.s,de=[null],fe=1,pe=0,me=ni[ce];r:for(;;){if(le&&y(H,1)){var he=y(H,3)+2,ge=L(oe,he),_e=L(se,he),ve=ge*_e;if(!Re(ge,_e,0,ae,de))break r;for(de=de[0],ue.xc=he,ne=0;ne<ve;++ne){var ye=de[ne]>>8&65535;de[ne]=ye,ye>=fe&&(fe=ye+1)}}if(H.h)break r;for(re=0;5>re;++re){var be=Qr[re];!re&&0<ce&&(be+=1<<ce),pe<be&&(pe=be)}var xe=o(fe*me,d),Se=fe,Ce=o(Se,p);if(Ce==null)var we=null;else t(65536>=Se),we=Ce;var Te=a(pe);if(we==null||Te==null||xe==null){ae.a=1;break r}var Ee=xe;for(ne=ie=0;ne<fe;++ne){var De=we[ne],Oe=De.G,ke=De.H,U=0,je=1,Me=0;for(re=0;5>re;++re){be=Qr[re],Oe[re]=Ee,ke[re]=ie,!re&&0<ce&&(be+=1<<ce);n:{var Ne,Pe=be,Fe=ae,Le=Te,ze=Ee,Be=ie,G=0,Ve=Fe.m,He=y(Ve,1);if(i(Le,0,0,Pe),He){var Ue=y(Ve,1)+1,We=y(Ve,y(Ve,1)==0?1:8);Le[We]=1,Ue==2&&(Le[We=y(Ve,8)]=1);var Ge=1}else{var Ke=a(19),qe=y(Ve,4)+4;if(19<qe){Fe.a=3;var Je=0;break n}for(Ne=0;Ne<qe;++Ne)Ke[ei[Ne]]=y(Ve,3);var Ye=void 0,Xe=void 0,Ze=Fe,Qe=Ke,$e=Pe,et=Le,tt=0,nt=Ze.m,rt=8,it=o(128,d);i:for(;u(it,0,7,Qe,19);){if(y(nt,1)){if((Ye=2+y(nt,2+2*y(nt,3)))>$e)break i}else Ye=$e;for(Xe=0;Xe<$e&&Ye--;){T(nt);var at=it[0+(127&S(nt))];w(nt,nt.u+at.g);var ot=at.value;if(16>ot)et[Xe++]=ot,ot!=0&&(rt=ot);else{var st=ot==16,ct=ot-16,lt=Zr[ct],ut=y(nt,Xr[ct])+lt;if(Xe+ut>$e)break i;for(var dt=st?rt:0;0<ut--;)et[Xe++]=dt}}tt=1;break i}tt||(Ze.a=3),Ge=tt}(Ge&&=!Ve.h)&&(G=u(ze,Be,8,Le,Pe)),Ge&&G!=0?Je=G:(Fe.a=3,Je=0)}if(Je==0)break r;if(je&&$r[re]==1&&(je=Ee[ie].g==0),U+=Ee[ie].g,ie+=Je,3>=re){var ft,pt=Te[0];for(ft=1;ft<be;++ft)Te[ft]>pt&&(pt=Te[ft]);Me+=pt}}if(De.nd=je,De.Qb=0,je&&(De.qb=(Oe[3][ke[3]+0].value<<24|Oe[1][ke[1]+0].value<<16|Oe[2][ke[2]+0].value)>>>0,U==0&&256>Oe[0][ke[0]+0].value&&(De.Qb=1,De.qb+=Oe[0][ke[0]+0].value<<8)),De.jc=!De.Qb&&6>Me,De.jc){var mt,ht=De;for(mt=0;mt<Wn;++mt){var gt=mt,_t=ht.pd[gt],vt=ht.G[0][ht.H[0]+gt];256<=vt.value?(_t.g=vt.g+256,_t.value=vt.value):(_t.g=0,_t.value=0,gt>>=Ae(vt,8,_t),gt>>=Ae(ht.G[1][ht.H[1]+gt],16,_t),gt>>=Ae(ht.G[2][ht.H[2]+gt],0,_t),Ae(ht.G[3][ht.H[3]+gt],24,_t))}}}ue.vc=de,ue.Wb=fe,ue.Ya=we,ue.yc=xe,V=1;break e}V=0}if(!(l=V)){s.a=3;break t}if(0<v){if(g.ua=1<<v,!N(g.Wa,v)){s.a=1,l=0;break t}}else g.ua=0;var yt=s,bt=f,xt=m,St=yt.s,Ct=St.xc;if(yt.c=bt,yt.i=xt,St.md=L(bt,Ct),St.wc=Ct==0?-1:(1<<Ct)-1,r){s.xb=_i;break t}if((_=a(f*m))==null){s.a=1,l=0;break t}l=(l=W(s,_,0,f,m,m,null))&&!h.h;break t}return l?(c==null?(t(_==null),t(r)):c[0]=_,s.$=0,r||Ie(g)):Ie(g),l}function ze(e,n){var r=e.c*e.i,i=r+n+16*n;return t(e.c<=n),e.V=a(i),e.V==null?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+r+n,1)}function Be(e,n){var r=e.C,i=n-r,a=e.V,o=e.Ba+e.c*r;for(t(n<=e.l.o);0<i;){var s=16<i?16:i,c=e.l.ma,l=e.l.width,u=l*s,d=c.ca,f=c.tb+l*r,p=e.Ta,m=e.Ua;je(e,s,a,o),jr(p,m,d,f,u),Pe(c,r,r+s,d,f,l),i-=s,a+=s*e.c,r+=s}t(r==n),e.C=e.Ma=n}function G(){this.ub=this.yd=this.td=this.Rb=0}function Ve(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function He(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Ue(){this.Yb=function(){var e=[];return function e(t,n,r){for(var i=r[n],a=0;a<i&&(t.push(r.length>n+1?[]:0),!(r.length<n+1));a++)e(t[a],n+1,r)}(e,0,[3,11]),e}()}function We(){this.jb=a(3),this.Wc=s([4,8],Ue),this.Xc=s([4,17],Ue)}function Ge(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Ke(){this.ld=this.La=this.dd=this.tc=0}function qe(){this.Na=this.la=0}function Je(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ye(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Xe(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ke),this.Y=0,this.ya=Array(new Ye),this.aa=0,this.l=new et}function Ze(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Qe(){this.cb=this.a=0,this.sc=``,this.m=new b,this.Od=new G,this.Kc=new Ve,this.ed=new Ge,this.Qa=new He,this.Ic=this.$c=this.Aa=0,this.D=new Xe,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,b),this.ia=0,this.pb=o(4,Je),this.Pa=new We,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ze),this.Hd=0,this.rb=Array(new qe),this.sb=0,this.wa=Array(new Ke),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 Ye),this.L=this.aa=0,this.gd=s([4,2],Ke),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 $e(e,t){return 0>e?0:e>t?t:e}function et(){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 tt(){var e=new Qe;return e!=null&&(e.a=0,e.sc=`OK`,e.cb=0,e.Xb=0,oi||=at),e}function nt(e,t,n){return e.a==0&&(e.a=t,e.sc=n,e.cb=0),0}function rt(e,t,n){return 3<=n&&e[t+0]==157&&e[t+1]==1&&e[t+2]==42}function it(e,n){if(e==null)return 0;if(e.a=0,e.sc=`OK`,n==null)return nt(e,2,`null VP8Io passed to VP8GetHeaders()`);var r=n.data,a=n.w,o=n.ha;if(4>o)return nt(e,7,`Truncated header.`);var s=r[a+0]|r[a+1]<<8|r[a+2]<<16,c=e.Od;if(c.Rb=!(1&s),c.td=s>>1&7,c.yd=s>>4&1,c.ub=s>>5,3<c.td)return nt(e,3,`Incorrect keyframe parameters.`);if(!c.yd)return nt(e,4,`Frame not displayable.`);a+=3,o-=3;var l=e.Kc;if(c.Rb){if(7>o)return nt(e,7,`cannot parse picture header`);if(!rt(r,a,o))return nt(e,3,`Bad code word`);l.c=16383&(r[a+4]<<8|r[a+3]),l.Td=r[a+4]>>6,l.i=16383&(r[a+6]<<8|r[a+5]),l.Ud=r[a+6]>>6,a+=7,o-=7,e.za=l.c+15>>4,e.Ub=l.i+15>>4,n.width=l.c,n.height=l.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,i((s=e.Pa).jb,0,255,s.jb.length),t((s=e.Qa)!=null),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(c.ub>o)return nt(e,7,`bad partition length`);m(s=e.m,r,a,c.ub),a+=c.ub,o-=c.ub,c.Rb&&(l.Ld=D(s),l.Kd=D(s)),l=e.Qa;var u,d=e.Pa;if(t(s!=null),t(l!=null),l.Cb=D(s),l.Cb){if(l.Bb=D(s),D(s)){for(l.Fb=D(s),u=0;4>u;++u)l.Zb[u]=D(s)?g(s,7):0;for(u=0;4>u;++u)l.Lb[u]=D(s)?g(s,6):0}if(l.Bb)for(u=0;3>u;++u)d.jb[u]=D(s)?h(s,8):255}else l.Bb=0;if(s.Ka)return nt(e,3,`cannot parse segment header`);if((l=e.ed).zd=D(s),l.Tb=h(s,6),l.wb=h(s,3),l.Pc=D(s),l.Pc&&D(s)){for(d=0;4>d;++d)D(s)&&(l.vd[d]=g(s,6));for(d=0;4>d;++d)D(s)&&(l.od[d]=g(s,6))}if(e.L=l.Tb==0?0:l.zd?1:2,s.Ka)return nt(e,3,`cannot parse filter header`);var f=o;if(o=u=a,a=u+f,l=f,e.Xb=(1<<h(e.m,2))-1,f<3*(d=e.Xb))r=7;else{for(u+=3*d,l-=3*d,f=0;f<d;++f){var p=r[o+0]|r[o+1]<<8|r[o+2]<<16;p>l&&(p=l),m(e.Jc[+f],r,u,p),u+=p,l-=p,o+=3}m(e.Jc[+d],r,u,l),r=u<a?0:5}if(r!=0)return nt(e,r,`cannot parse partitions`);for(r=h(u=e.m,7),o=D(u)?g(u,4):0,a=D(u)?g(u,4):0,l=D(u)?g(u,4):0,d=D(u)?g(u,4):0,u=D(u)?g(u,4):0,f=e.Qa,p=0;4>p;++p){if(f.Cb){var _=f.Zb[p];f.Fb||(_+=r)}else{if(0<p){e.pb[p]=e.pb[0];continue}_=r}var v=e.pb[p];v.Sc[0]=ii[$e(_+o,127)],v.Sc[1]=ai[$e(_+0,127)],v.Eb[0]=2*ii[$e(_+a,127)],v.Eb[1]=101581*ai[$e(_+l,127)]>>16,8>v.Eb[1]&&(v.Eb[1]=8),v.Qc[0]=ii[$e(_+d,117)],v.Qc[1]=ai[$e(_+u,127)],v.lc=_+u}if(!c.Rb)return nt(e,4,`Not a key frame.`);for(D(s),c=e.Pa,r=0;4>r;++r){for(o=0;8>o;++o)for(a=0;3>a;++a)for(l=0;11>l;++l)d=O(s,fi[r][o][a][l])?h(s,8):ui[r][o][a][l],c.Wc[r][o].Yb[a][l]=d;for(o=0;17>o;++o)c.Xc[r][o]=c.Wc[r][pi[o]]}return e.kc=D(s),e.kc&&(e.Bd=h(s,8)),e.cb=1}function at(e,t,n,r,i,a,o){var s=t[i].Yb[n];for(n=0;16>i;++i){if(!O(e,s[n+0]))return i;for(;!O(e,s[n+1]);)if(s=t[++i].Yb[0],n=0,i==16)return 16;var c=t[i+1].Yb;if(O(e,s[n+2])){var l=e,u=0;if(O(l,(f=s)[(d=n)+3]))if(O(l,f[d+6])){for(s=0,d=2*(u=O(l,f[d+8]))+(f=O(l,f[d+9+u])),u=0,f=si[d];f[s];++s)u+=u+O(l,f[s]);u+=3+(8<<d)}else O(l,f[d+7])?(u=7+2*O(l,165),u+=O(l,145)):u=5+O(l,159);else u=O(l,f[d+4])?3+O(l,f[d+5]):2;s=c[2]}else u=1,s=c[1];c=o+ci[i],0>(l=e).b&&E(l);var d,f=l.b,p=(d=l.Ca>>1)-(l.I>>f)>>31;--l.b,l.Ca+=p,l.Ca|=1,l.I-=(d+1&p)<<f,a[c]=((u^p)-p)*r[(0<i)+0]}return 16}function ot(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,i(e.zc,0,0,e.zc.length),e.ja=0}function st(e,t,n,r,i){i=e[t+n+32*r]+(i>>3),e[t+n+32*r]=-256&i?0>i?0:255:i}function ct(e,t,n,r,i,a){st(e,t,0,n,r+i),st(e,t,1,n,r+a),st(e,t,2,n,r-a),st(e,t,3,n,r-i)}function lt(e){return(20091*e>>16)+e}function ut(e,t,n,r){var i,o=0,s=a(16);for(i=0;4>i;++i){var c=e[t+0]+e[t+8],l=e[t+0]-e[t+8],u=(35468*e[t+4]>>16)-lt(e[t+12]),d=lt(e[t+4])+(35468*e[t+12]>>16);s[o+0]=c+d,s[o+1]=l+u,s[o+2]=l-u,s[o+3]=c-d,o+=4,t++}for(i=o=0;4>i;++i)c=(e=s[o+0]+4)+s[o+8],l=e-s[o+8],u=(35468*s[o+4]>>16)-lt(s[o+12]),st(n,r,0,0,c+(d=lt(s[o+4])+(35468*s[o+12]>>16))),st(n,r,1,0,l+u),st(n,r,2,0,l-u),st(n,r,3,0,c-d),o++,r+=32}function dt(e,t,n,r){var i=e[t+0]+4,a=35468*e[t+4]>>16,o=lt(e[t+4]),s=35468*e[t+1]>>16;ct(n,r,0,i+o,e=lt(e[t+1]),s),ct(n,r,1,i+a,e,s),ct(n,r,2,i-a,e,s),ct(n,r,3,i-o,e,s)}function ft(e,t,n,r,i){ut(e,t,n,r),i&&ut(e,t+16,n,r+4)}function pt(e,t,n,r){dr(e,t+0,n,r,1),dr(e,t+32,n,r+128,1)}function mt(e,t,n,r){var i;for(e=e[t+0]+4,i=0;4>i;++i)for(t=0;4>t;++t)st(n,r,t,i,e)}function ht(e,t,n,r){e[t+0]&&mr(e,t+0,n,r),e[t+16]&&mr(e,t+16,n,r+4),e[t+32]&&mr(e,t+32,n,r+128),e[t+48]&&mr(e,t+48,n,r+128+4)}function gt(e,t,n,r){var i,o=a(16);for(i=0;4>i;++i){var s=e[t+0+i]+e[t+12+i],c=e[t+4+i]+e[t+8+i],l=e[t+4+i]-e[t+8+i],u=e[t+0+i]-e[t+12+i];o[0+i]=s+c,o[8+i]=s-c,o[4+i]=u+l,o[12+i]=u-l}for(i=0;4>i;++i)s=(e=o[0+4*i]+3)+o[3+4*i],c=o[1+4*i]+o[2+4*i],l=o[1+4*i]-o[2+4*i],u=e-o[3+4*i],n[r+0]=s+c>>3,n[r+16]=u+l>>3,n[r+32]=s-c>>3,n[r+48]=u-l>>3,r+=64}function _t(e,t,n){var r,i=t-32,a=zr,o=255-e[i-1];for(r=0;r<n;++r){var s,c=a,l=o+e[t-1];for(s=0;s<n;++s)e[t+s]=c[l+e[i+s]];t+=32}}function vt(e,t){_t(e,t,4)}function yt(e,t){_t(e,t,8)}function bt(e,t){_t(e,t,16)}function xt(e,t){var n;for(n=0;16>n;++n)r(e,t+32*n,e,t-32,16)}function St(e,t){var n;for(n=16;0<n;--n)i(e,t,e[t-1],16),t+=32}function Ct(e,t,n){var r;for(r=0;16>r;++r)i(t,n+32*r,e,16)}function wt(e,t){var n,r=16;for(n=0;16>n;++n)r+=e[t-1+32*n]+e[t+n-32];Ct(r>>5,e,t)}function Tt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t-1+32*n];Ct(r>>4,e,t)}function Et(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t+n-32];Ct(r>>4,e,t)}function Dt(e,t){Ct(128,e,t)}function K(e,t,n){return e+2*t+n+2>>2}function Ot(e,t){var n,i=t-32;for(i=new Uint8Array([K(e[i-1],e[i+0],e[i+1]),K(e[i+0],e[i+1],e[i+2]),K(e[i+1],e[i+2],e[i+3]),K(e[i+2],e[i+3],e[i+4])]),n=0;4>n;++n)r(e,t+32*n,i,0,i.length)}function kt(e,t){var n=e[t-1],r=e[t-1+32],i=e[t-1+64],a=e[t-1+96];k(e,t+0,16843009*K(e[t-1-32],n,r)),k(e,t+32,16843009*K(n,r,i)),k(e,t+64,16843009*K(r,i,a)),k(e,t+96,16843009*K(i,a,a))}function At(e,t){var n,r=4;for(n=0;4>n;++n)r+=e[t+n-32]+e[t-1+32*n];for(r>>=3,n=0;4>n;++n)i(e,t+32*n,r,4)}function jt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1-32],o=e[t+0-32],s=e[t+1-32],c=e[t+2-32],l=e[t+3-32];e[t+0+96]=K(r,i,e[t-1+96]),e[t+1+96]=e[t+0+64]=K(n,r,i),e[t+2+96]=e[t+1+64]=e[t+0+32]=K(a,n,r),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=K(o,a,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=K(s,o,a),e[t+3+32]=e[t+2+0]=K(c,s,o),e[t+3+0]=K(l,c,s)}function Mt(e,t){var n=e[t+1-32],r=e[t+2-32],i=e[t+3-32],a=e[t+4-32],o=e[t+5-32],s=e[t+6-32],c=e[t+7-32];e[t+0+0]=K(e[t+0-32],n,r),e[t+1+0]=e[t+0+32]=K(n,r,i),e[t+2+0]=e[t+1+32]=e[t+0+64]=K(r,i,a),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=K(i,a,o),e[t+3+32]=e[t+2+64]=e[t+1+96]=K(a,o,s),e[t+3+64]=e[t+2+96]=K(o,s,c),e[t+3+96]=K(s,c,c)}function Nt(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1-32],o=e[t+0-32],s=e[t+1-32],c=e[t+2-32],l=e[t+3-32];e[t+0+0]=e[t+1+64]=a+o+1>>1,e[t+1+0]=e[t+2+64]=o+s+1>>1,e[t+2+0]=e[t+3+64]=s+c+1>>1,e[t+3+0]=c+l+1>>1,e[t+0+96]=K(i,r,n),e[t+0+64]=K(r,n,a),e[t+0+32]=e[t+1+96]=K(n,a,o),e[t+1+32]=e[t+2+96]=K(a,o,s),e[t+2+32]=e[t+3+96]=K(o,s,c),e[t+3+32]=K(s,c,l)}function Pt(e,t){var n=e[t+0-32],r=e[t+1-32],i=e[t+2-32],a=e[t+3-32],o=e[t+4-32],s=e[t+5-32],c=e[t+6-32],l=e[t+7-32];e[t+0+0]=n+r+1>>1,e[t+1+0]=e[t+0+64]=r+i+1>>1,e[t+2+0]=e[t+1+64]=i+a+1>>1,e[t+3+0]=e[t+2+64]=a+o+1>>1,e[t+0+32]=K(n,r,i),e[t+1+32]=e[t+0+96]=K(r,i,a),e[t+2+32]=e[t+1+96]=K(i,a,o),e[t+3+32]=e[t+2+96]=K(a,o,s),e[t+3+64]=K(o,s,c),e[t+3+96]=K(s,c,l)}function Ft(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1+96];e[t+0+0]=n+r+1>>1,e[t+2+0]=e[t+0+32]=r+i+1>>1,e[t+2+32]=e[t+0+64]=i+a+1>>1,e[t+1+0]=K(n,r,i),e[t+3+0]=e[t+1+32]=K(r,i,a),e[t+3+32]=e[t+1+64]=K(i,a,a),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=a}function It(e,t){var n=e[t-1+0],r=e[t-1+32],i=e[t-1+64],a=e[t-1+96],o=e[t-1-32],s=e[t+0-32],c=e[t+1-32],l=e[t+2-32];e[t+0+0]=e[t+2+32]=n+o+1>>1,e[t+0+32]=e[t+2+64]=r+n+1>>1,e[t+0+64]=e[t+2+96]=i+r+1>>1,e[t+0+96]=a+i+1>>1,e[t+3+0]=K(s,c,l),e[t+2+0]=K(o,s,c),e[t+1+0]=e[t+3+32]=K(n,o,s),e[t+1+32]=e[t+3+64]=K(r,n,o),e[t+1+64]=e[t+3+96]=K(i,r,n),e[t+1+96]=K(a,i,r)}function Lt(e,t){var n;for(n=0;8>n;++n)r(e,t+32*n,e,t-32,8)}function Rt(e,t){var n;for(n=0;8>n;++n)i(e,t,e[t-1],8),t+=32}function zt(e,t,n){var r;for(r=0;8>r;++r)i(t,n+32*r,e,8)}function Bt(e,t){var n,r=8;for(n=0;8>n;++n)r+=e[t+n-32]+e[t-1+32*n];zt(r>>4,e,t)}function Vt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t+n-32];zt(r>>3,e,t)}function Ht(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t-1+32*n];zt(r>>3,e,t)}function Ut(e,t){zt(128,e,t)}function Wt(e,t,n){var r=e[t-n],i=e[t+0],a=3*(i-r)+Lr[1020+e[t-2*n]-e[t+n]],o=Rr[112+(a+4>>3)];e[t-n]=zr[255+r+Rr[112+(a+3>>3)]],e[t+0]=zr[255+i-o]}function Gt(e,t,n,r){var i=e[t+0],a=e[t+n];return Br[255+e[t-2*n]-e[t-n]]>r||Br[255+a-i]>r}function Kt(e,t,n,r){return 4*Br[255+e[t-n]-e[t+0]]+Br[255+e[t-2*n]-e[t+n]]<=r}function qt(e,t,n,r,i){var a=e[t-3*n],o=e[t-2*n],s=e[t-n],c=e[t+0],l=e[t+n],u=e[t+2*n],d=e[t+3*n];return 4*Br[255+s-c]+Br[255+o-l]>r?0:Br[255+e[t-4*n]-a]<=i&&Br[255+a-o]<=i&&Br[255+o-s]<=i&&Br[255+d-u]<=i&&Br[255+u-l]<=i&&Br[255+l-c]<=i}function Jt(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)Kt(e,t+r,n,i)&&Wt(e,t+r,n)}function Yt(e,t,n,r){var i=2*r+1;for(r=0;16>r;++r)Kt(e,t+r*n,1,i)&&Wt(e,t+r*n,1)}function Xt(e,t,n,r){var i;for(i=3;0<i;--i)Jt(e,t+=4*n,n,r)}function Zt(e,t,n,r){var i;for(i=3;0<i;--i)Yt(e,t+=4,n,r)}function Qt(e,t,n,r,i,a,o,s){for(a=2*a+1;0<i--;){if(qt(e,t,n,a,o))if(Gt(e,t,n,s))Wt(e,t,n);else{var c=e,l=t,u=n,d=c[l-2*u],f=c[l-u],p=c[l+0],m=c[l+u],h=c[l+2*u],g=27*(v=Lr[1020+3*(p-f)+Lr[1020+d-m]])+63>>7,_=18*v+63>>7,v=9*v+63>>7;c[l-3*u]=zr[255+c[l-3*u]+v],c[l-2*u]=zr[255+d+_],c[l-u]=zr[255+f+g],c[l+0]=zr[255+p-g],c[l+u]=zr[255+m-_],c[l+2*u]=zr[255+h-v]}t+=r}}function $t(e,t,n,r,i,a,o,s){for(a=2*a+1;0<i--;){if(qt(e,t,n,a,o))if(Gt(e,t,n,s))Wt(e,t,n);else{var c=e,l=t,u=n,d=c[l-u],f=c[l+0],p=c[l+u],m=Rr[112+(4+(h=3*(f-d))>>3)],h=Rr[112+(h+3>>3)],g=m+1>>1;c[l-2*u]=zr[255+c[l-2*u]+g],c[l-u]=zr[255+d+h],c[l+0]=zr[255+f-m],c[l+u]=zr[255+p-g]}t+=r}}function en(e,t,n,r,i,a){Qt(e,t,n,1,16,r,i,a)}function tn(e,t,n,r,i,a){Qt(e,t,1,n,16,r,i,a)}function nn(e,t,n,r,i,a){var o;for(o=3;0<o;--o)$t(e,t+=4*n,n,1,16,r,i,a)}function rn(e,t,n,r,i,a){var o;for(o=3;0<o;--o)$t(e,t+=4,1,n,16,r,i,a)}function an(e,t,n,r,i,a,o,s){Qt(e,t,i,1,8,a,o,s),Qt(n,r,i,1,8,a,o,s)}function on(e,t,n,r,i,a,o,s){Qt(e,t,1,i,8,a,o,s),Qt(n,r,1,i,8,a,o,s)}function sn(e,t,n,r,i,a,o,s){$t(e,t+4*i,i,1,8,a,o,s),$t(n,r+4*i,i,1,8,a,o,s)}function cn(e,t,n,r,i,a,o,s){$t(e,t+4,1,i,8,a,o,s),$t(n,r+4,1,i,8,a,o,s)}function ln(){this.ba=new _e,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ye,this.memory=0,this.Ib=`OutputFunc`,this.Jb=`OutputAlphaFunc`,this.Nd=`OutputRowFunc`}function un(){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 dn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function fn(){this.ua=0,this.Wa=new F,this.vb=new F,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new p,this.yc=new d}function pn(){this.xb=this.a=0,this.l=new et,this.ca=new _e,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new fn,this.ab=0,this.gc=o(4,dn),this.Oc=0}function mn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new et,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function hn(e,t,n,r,i,a,o){for(e=e==null?0:e[t+0],t=0;t<o;++t)i[a+t]=e+n[r+t]&255,e=i[a+t]}function gn(e,t,n,r,i,a,o){var s;if(e==null)hn(null,null,n,r,i,a,o);else for(s=0;s<o;++s)i[a+s]=e[t+s]+n[r+s]&255}function _n(e,t,n,r,i,a,o){if(e==null)hn(null,null,n,r,i,a,o);else{var s,c=e[t+0],l=c,u=c;for(s=0;s<o;++s)l=u+(c=e[t+s])-l,u=n[r+s]+(-256&l?0>l?0:255:l)&255,l=c,i[a+s]=u}}function vn(e,n,i,o){var s=n.width,c=n.o;if(t(e!=null&&n!=null),0>i||0>=o||i+o>c)return null;if(!e.Cc){if(e.ga==null){var l;if(e.ga=new mn,(l=e.ga==null)||(l=n.width*n.o,t(e.Gb.length==0),e.Gb=a(l),e.Uc=0,e.Gb==null?l=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,l=1),l=!l),!l){l=e.ga;var u=e.Fa,d=e.P,f=e.qc,p=e.mb,m=e.nb,h=d+1,g=f-1,v=l.l;if(t(u!=null&&p!=null&&n!=null),yi[0]=null,yi[1]=hn,yi[2]=gn,yi[3]=_n,l.ca=p,l.tb=m,l.c=n.width,l.i=n.height,t(0<l.c&&0<l.i),1>=f)n=0;else if(l.$a=3&u[d+0],l.Z=u[d+0]>>2&3,l.Lc=u[d+0]>>4&3,d=u[d+0]>>6&3,0>l.$a||1<l.$a||4<=l.Z||1<l.Lc||d)n=0;else if(v.put=we,v.ac=Ce,v.bc=Te,v.ma=l,v.width=n.width,v.height=n.height,v.Da=n.Da,v.v=n.v,v.va=n.va,v.j=n.j,v.o=n.o,l.$a)t:{t(l.$a==1),n=Le();e:for(;;){if(n==null){n=0;break t}if(t(l!=null),l.mc=n,n.c=l.c,n.i=l.i,n.l=l.l,n.l.ma=l,n.l.width=l.c,n.l.height=l.i,n.a=0,_(n.m,u,h,g),!Re(l.c,l.i,1,n,null)||(n.ab==1&&n.gc[0].hc==3&&Ne(n.s)?(l.ic=1,u=n.c*n.i,n.Ta=null,n.Ua=0,n.V=a(u),n.Ba=0,n.V==null?(n.a=1,n=0):n=1):(l.ic=0,n=ze(n,l.c)),!n))break e;n=1;break t}l.mc=null,n=0}else n=g>=l.c*l.i;l=!n}if(l)return null;e.ga.Lc==1?o=c-i:e.Ga=0}t(e.ga!=null),t(i+o<=c);t:{if(n=(u=e.ga).c,c=u.l.o,u.$a==0){if(h=e.rc,g=e.Vc,v=e.Fa,d=e.P+1+i*n,f=e.mb,p=e.nb+i*n,t(d<=e.P+e.qc),u.Z!=0)for(t(yi[u.Z]!=null),l=0;l<o;++l)yi[u.Z](h,g,v,d,f,p,n),h=f,g=p,p+=n,d+=n;else for(l=0;l<o;++l)r(f,p,v,d,n),h=f,g=p,p+=n,d+=n;e.rc=h,e.Vc=g}else{if(t(u.mc!=null),n=i+o,t((l=u.mc)!=null),t(n<=l.i),l.C>=n)n=1;else if(u.ic||Cn(),u.ic){u=l.V,h=l.Ba,g=l.c;var y=l.i,b=(v=1,d=l.$/g,f=l.$%g,p=l.m,m=l.s,l.$),x=g*y,S=g*n,w=m.wc,E=b<S?U(m,f,d):null;t(b<=x),t(n<=y),t(Ne(m));e:for(;;){for(;!p.h&&b<S;){if(f&w||(E=U(m,f,d)),t(E!=null),T(p),256>(y=ke(E.G[0],E.H[0],p)))u[h+b]=y,++b,++f>=g&&(f=0,++d<=n&&!(d%16)&&Fe(l,d));else{if(!(280>y)){v=0;break e}y=De(y-256,p);var D,O=ke(E.G[4],E.H[4],p);if(T(p),!(b>=(O=Oe(g,O=De(O,p)))&&x-b>=y)){v=0;break e}for(D=0;D<y;++D)u[h+b+D]=u[h+b+D-O];for(b+=y,f+=y;f>=g;)f-=g,++d<=n&&!(d%16)&&Fe(l,d);b<S&&f&w&&(E=U(m,f,d))}t(p.h==C(p))}Fe(l,d>n?n:d);break e}!v||p.h&&b<x?(v=0,l.a=p.h?5:3):l.$=b,n=v}else n=W(l,l.V,l.Ba,l.c,l.i,n,Be);if(!n){o=0;break t}}i+o>=c&&(e.Cc=1),o=1}if(!o)return null;if(e.Cc&&((o=e.ga)!=null&&(o.mc=null),e.ga=null,0<e.Ga))return alert(`todo:WebPDequantizeLevels`),null}return e.nb+i*s}function yn(e,t,n,r,i,a){for(;0<i--;){var o,s=e,c=t+ +!!n,l=e,u=t+(n?0:3);for(o=0;o<r;++o){var d=l[u+4*o];d!=255&&(d*=32897,s[c+4*o+0]=s[c+4*o+0]*d>>23,s[c+4*o+1]=s[c+4*o+1]*d>>23,s[c+4*o+2]=s[c+4*o+2]*d>>23)}t+=a}}function bn(e,t,n,r,i){for(;0<r--;){var a;for(a=0;a<n;++a){var o=e[t+2*a+0],s=15&(l=e[t+2*a+1]),c=4369*s,l=(240&l|l>>4)*c>>16;e[t+2*a+0]=(240&o|o>>4)*c>>16&240|(15&o|o<<4)*c>>16>>4&15,e[t+2*a+1]=240&l|s}t+=i}}function xn(e,t,n,r,i,a,o,s){var c,l,u=255;for(l=0;l<i;++l){for(c=0;c<r;++c){var d=e[t+c];a[o+4*c]=d,u&=d}t+=n,o+=s}return u!=255}function Sn(e,t,n,r,i){var a;for(a=0;a<i;++a)n[r+a]=e[t+a]>>8}function Cn(){Or=yn,kr=bn,Ar=xn,jr=Sn}function wn(n,r,i){e[n]=function(e,n,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y){var b,x=y-1>>1,S=s[c+0]|l[u+0]<<16,C=d[f+0]|p[m+0]<<16;t(e!=null);var w=3*S+C+131074>>2;for(r(e[n+0],255&w,w>>16,h,g),a!=null&&(w=3*C+S+131074>>2,r(a[o+0],255&w,w>>16,_,v)),b=1;b<=x;++b){var T=s[c+b]|l[u+b]<<16,E=d[f+b]|p[m+b]<<16,D=S+T+C+E+524296,O=D+2*(T+C)>>3;w=O+S>>1,S=(D=D+2*(S+E)>>3)+T>>1,r(e[n+2*b-1],255&w,w>>16,h,g+(2*b-1)*i),r(e[n+2*b-0],255&S,S>>16,h,g+(2*b-0)*i),a!=null&&(w=D+C>>1,S=O+E>>1,r(a[o+2*b-1],255&w,w>>16,_,v+(2*b-1)*i),r(a[o+2*b+0],255&S,S>>16,_,v+(2*b+0)*i)),S=T,C=E}1&y||(w=3*S+C+131074>>2,r(e[n+y-1],255&w,w>>16,h,g+(y-1)*i),a!=null&&(w=3*C+S+131074>>2,r(a[o+y-1],255&w,w>>16,_,v+(y-1)*i)))}}function Tn(){bi[J]=xi,bi[Y]=Ci,bi[Vr]=Si,bi[Hr]=wi,bi[Ur]=Ti,bi[Wr]=Ei,bi[Gr]=Di,bi[Kr]=Ci,bi[qr]=wi,bi[Jr]=Ti,bi[Yr]=Ei}function En(e){return e&~Ni?0>e?0:255:e>>Mi}function Dn(e,t){return En((19077*e>>8)+(26149*t>>8)-14234)}function q(e,t,n){return En((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function On(e,t){return En((19077*e>>8)+(33050*t>>8)-17685)}function kn(e,t,n,r,i){r[i+0]=Dn(e,n),r[i+1]=q(e,t,n),r[i+2]=On(e,t)}function An(e,t,n,r,i){r[i+0]=On(e,t),r[i+1]=q(e,t,n),r[i+2]=Dn(e,n)}function jn(e,t,n,r,i){var a=q(e,t,n);t=a<<3&224|On(e,t)>>3,r[i+0]=248&Dn(e,n)|a>>5,r[i+1]=t}function Mn(e,t,n,r,i){var a=240&On(e,t)|15;r[i+0]=240&Dn(e,n)|q(e,t,n)>>4,r[i+1]=a}function Nn(e,t,n,r,i){r[i+0]=255,kn(e,t,n,r,i+1)}function Pn(e,t,n,r,i){An(e,t,n,r,i),r[i+3]=255}function Fn(e,t,n,r,i){kn(e,t,n,r,i),r[i+3]=255}function In(t,n,r){e[t]=function(e,t,i,a,o,s,c,l,u){for(var d=l+(-2&u)*r;l!=d;)n(e[t+0],i[a+0],o[s+0],c,l),n(e[t+1],i[a+0],o[s+0],c,l+r),t+=2,++a,++s,l+=2*r;1&u&&n(e[t+0],i[a+0],o[s+0],c,l)}}function Ln(e,t,n){return n==0?e==0?t==0?6:5:t==0?4:0:n}function Rn(e,t,n,r,i){switch(e>>>30){case 3:dr(t,n,r,i,0);break;case 2:fr(t,n,r,i);break;case 1:mr(t,n,r,i)}}function zn(e,t){var n,a,o=t.M,s=t.Nb,c=e.oc,l=e.pc+40,u=e.oc,d=e.pc+584,f=e.oc,p=e.pc+600;for(n=0;16>n;++n)c[l+32*n-1]=129;for(n=0;8>n;++n)u[d+32*n-1]=129,f[p+32*n-1]=129;for(0<o?c[l-1-32]=u[d-1-32]=f[p-1-32]=129:(i(c,l-32-1,127,21),i(u,d-32-1,127,9),i(f,p-32-1,127,9)),a=0;a<e.za;++a){var m=t.ya[t.aa+a];if(0<a){for(n=-1;16>n;++n)r(c,l+32*n-4,c,l+32*n+12,4);for(n=-1;8>n;++n)r(u,d+32*n-4,u,d+32*n+4,4),r(f,p+32*n-4,f,p+32*n+4,4)}var h=e.Gd,g=e.Hd+a,_=m.ad,v=m.Hc;if(0<o&&(r(c,l-32,h[g].y,0,16),r(u,d-32,h[g].f,0,8),r(f,p-32,h[g].ea,0,8)),m.Za){var y=c,b=l-32+16;for(0<o&&(a>=e.za-1?i(y,b,h[g].y[15],4):r(y,b,h[g+1].y,0,4)),n=0;4>n;n++)y[b+128+n]=y[b+256+n]=y[b+384+n]=y[b+0+n];for(n=0;16>n;++n,v<<=2)y=c,b=l+Vi[n],hi[m.Ob[n]](y,b),Rn(v,_,16*n,y,b)}else if(y=Ln(a,o,m.Ob[0]),mi[y](c,l),v!=0)for(n=0;16>n;++n,v<<=2)Rn(v,_,16*n,c,l+Vi[n]);for(n=m.Gc,y=Ln(a,o,m.Dd),gi[y](u,d),gi[y](f,p),v=_,y=u,b=d,255&(m=0|n)&&(170&m?pr(v,256,y,b):hr(v,256,y,b)),m=f,v=p,255&(n>>=8)&&(170&n?pr(_,320,m,v):hr(_,320,m,v)),o<e.Ub-1&&(r(h[g].y,0,c,l+480,16),r(h[g].f,0,u,d+224,8),r(h[g].ea,0,f,p+224,8)),n=8*s*e.B,h=e.sa,g=e.ta+16*a+16*s*e.R,_=e.qa,m=e.ra+8*a+n,v=e.Ha,y=e.Ia+8*a+n,n=0;16>n;++n)r(h,g+n*e.R,c,l+32*n,16);for(n=0;8>n;++n)r(_,m+n*e.B,u,d+32*n,8),r(v,y+n*e.B,f,p+32*n,8)}}function Bn(e,r,i,a,o,s,c,l,u){var d=[0],f=[0],p=0,m=u==null?0:u.kd,h=u??new un;if(e==null||12>i)return 7;h.data=e,h.w=r,h.ha=i,r=[r],i=[i],h.gb=[h.gb];t:{var g=r,v=i,y=h.gb;if(t(e!=null),t(v!=null),t(y!=null),y[0]=0,12<=v[0]&&!n(e,g[0],`RIFF`)){if(n(e,g[0]+8,`WEBP`)){y=3;break t}var b=M(e,g[0]+4);if(12>b||4294967286<b){y=3;break t}if(m&&b>v[0]-8){y=7;break t}y[0]=b,g[0]+=12,v[0]-=12}y=0}if(y!=0)return y;for(b=0<h.gb[0],i=i[0];;){t:{var S=e;v=r,y=i;var C=d,w=f,T=g=[0];if((O=p=[p])[0]=0,8>y[0])y=7;else{if(!n(S,v[0],`VP8X`)){if(M(S,v[0]+4)!=10){y=3;break t}if(18>y[0]){y=7;break t}var E=M(S,v[0]+8),D=1+j(S,v[0]+12);if(2147483648<=D*(S=1+j(S,v[0]+15))){y=3;break t}T!=null&&(T[0]=E),C!=null&&(C[0]=D),w!=null&&(w[0]=S),v[0]+=18,y[0]-=18,O[0]=1}y=0}}if(p=p[0],g=g[0],y!=0)return y;if(v=!!(2&g),!b&&p)return 3;if(s!=null&&(s[0]=!!(16&g)),c!=null&&(c[0]=v),l!=null&&(l[0]=0),c=d[0],g=f[0],p&&v&&u==null){y=0;break}if(4>i){y=7;break}if(b&&p||!b&&!p&&!n(e,r[0],`ALPH`)){i=[i],h.na=[h.na],h.P=[h.P],h.Sa=[h.Sa];t:{E=e,y=r,b=i;var O=h.gb;C=h.na,w=h.P,T=h.Sa,D=22,t(E!=null),t(b!=null),S=y[0];var k=b[0];for(t(C!=null),t(T!=null),C[0]=null,w[0]=null,T[0]=0;;){if(y[0]=S,b[0]=k,8>k){y=7;break t}var A=M(E,S+4);if(4294967286<A){y=3;break t}var N=8+A+1&-2;if(D+=N,0<O&&D>O){y=3;break t}if(!n(E,S,`VP8 `)||!n(E,S,`VP8L`)){y=0;break t}if(k[0]<N){y=7;break t}n(E,S,`ALPH`)||(C[0]=E,w[0]=S+8,T[0]=A),S+=N,k-=N}}if(i=i[0],h.na=h.na[0],h.P=h.P[0],h.Sa=h.Sa[0],y!=0)break}i=[i],h.Ja=[h.Ja],h.xa=[h.xa];t:if(O=e,y=r,b=i,C=h.gb[0],w=h.Ja,T=h.xa,E=y[0],S=!n(O,E,`VP8 `),D=!n(O,E,`VP8L`),t(O!=null),t(b!=null),t(w!=null),t(T!=null),8>b[0])y=7;else{if(S||D){if(O=M(O,E+4),12<=C&&O>C-12){y=3;break t}if(m&&O>b[0]-8){y=7;break t}w[0]=O,y[0]+=8,b[0]-=8,T[0]=D}else T[0]=5<=b[0]&&O[E+0]==47&&!(O[E+4]>>5),w[0]=b[0];y=0}if(i=i[0],h.Ja=h.Ja[0],h.xa=h.xa[0],r=r[0],y!=0)break;if(4294967286<h.Ja)return 3;if(l==null||v||(l[0]=h.xa?2:1),c=[c],g=[g],h.xa){if(5>i){y=7;break}l=c,m=g,v=s,e==null||5>i?e=0:5<=i&&e[r+0]==47&&!(e[r+4]>>5)?(b=[0],O=[0],C=[0],_(w=new x,e,r,i),Ee(w,b,O,C)?(l!=null&&(l[0]=b[0]),m!=null&&(m[0]=O[0]),v!=null&&(v[0]=C[0]),e=1):e=0):e=0}else{if(10>i){y=7;break}l=g,e==null||10>i||!rt(e,r+3,i-3)?e=0:(m=e[r+0]|e[r+1]<<8|e[r+2]<<16,v=16383&(e[r+7]<<8|e[r+6]),e=16383&(e[r+9]<<8|e[r+8]),1&m||3<(m>>1&7)||!(m>>4&1)||m>>5>=h.Ja||!v||!e?e=0:(c&&(c[0]=v),l&&(l[0]=e),e=1))}if(!e||(c=c[0],g=g[0],p&&(d[0]!=c||f[0]!=g)))return 3;u!=null&&(u[0]=h,u.offset=r-u.w,t(4294967286>r-u.w),t(u.offset==u.ha-i));break}return y==0||y==7&&p&&u==null?(s!=null&&(s[0]|=h.na!=null&&0<h.na.length),a!=null&&(a[0]=c),o!=null&&(o[0]=g),0):y}function Vn(e,t,n){var r=t.width,i=t.height,a=0,o=0,s=r,c=i;if(t.Da=e!=null&&0<e.Da,t.Da&&(s=e.cd,c=e.bd,a=e.v,o=e.j,11>n||(a&=-2,o&=-2),0>a||0>o||0>=s||0>=c||a+s>r||o+c>i))return 0;if(t.v=a,t.j=o,t.va=a+s,t.o=o+c,t.U=s,t.T=c,t.da=e!=null&&0<e.da,t.da){if(!I(s,c,n=[e.ib],a=[e.hb]))return 0;t.ib=n[0],t.hb=a[0]}return t.ob=e!=null&&e.ob,t.Kb=e==null||!e.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*i/4,t.Kb=0),1}function Hn(e){if(e==null)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,t.F!=null&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Un(e,t,n,r){if(r==null||0>=e||0>=t)return 2;if(n!=null){if(n.Da){var i=n.cd,o=n.bd,s=-2&n.v,c=-2&n.j;if(0>s||0>c||0>=i||0>=o||s+i>e||c+o>t)return 2;e=i,t=o}if(n.da){if(!I(e,t,i=[n.ib],o=[n.hb]))return 2;e=i[0],t=o[0]}}r.width=e,r.height=t;t:{var l=r.width,u=r.height;if(e=r.S,0>=l||0>=u||!(e>=J&&13>e))e=2;else{if(0>=r.Rd&&r.sd==null){s=o=i=t=0;var d=(c=l*Gi[e])*u;if(11>e||(o=(u+1)/2*(t=(l+1)/2),e==12&&(s=(i=l)*u)),(u=a(d+2*o+s))==null){e=1;break t}r.sd=u,11>e?((l=r.f.RGBA).eb=u,l.fb=0,l.A=c,l.size=d):((l=r.f.kb).y=u,l.O=0,l.fa=c,l.Fd=d,l.f=u,l.N=0+d,l.Ab=t,l.Cd=o,l.ea=u,l.W=0+d+o,l.Db=t,l.Ed=o,e==12&&(l.F=u,l.J=0+d+2*o),l.Tc=s,l.lb=i)}if(t=1,i=r.S,o=r.width,s=r.height,i>=J&&13>i)if(11>i)e=r.f.RGBA,t&=(c=Math.abs(e.A))*(s-1)+o<=e.size,t&=c>=o*Gi[i],t&=e.eb!=null;else{e=r.f.kb,c=(o+1)/2,d=(s+1)/2,l=Math.abs(e.fa),u=Math.abs(e.Ab);var f=Math.abs(e.Db),p=Math.abs(e.lb),m=p*(s-1)+o;t&=l*(s-1)+o<=e.Fd,t&=u*(d-1)+c<=e.Cd,t=(t&=f*(d-1)+c<=e.Ed)&l>=o&u>=c&f>=c,t&=e.y!=null,t&=e.f!=null,t&=e.ea!=null,i==12&&(t&=p>=o,t&=m<=e.Tc,t&=e.F!=null)}else t=0;e=t?0:2}}return e!=0||n!=null&&n.fd&&(e=Hn(r)),e}var Wn=64,Gn=[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],Kn=24,qn=32,Jn=8,Yn=[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];R(`Predictor0`,`PredictorAdd0`),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return B(B(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return B(e,t[n-1])},e.Predictor7=function(e,t,n){return B(e,t[n+0])},e.Predictor8=function(e,t,n){return B(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return B(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return B(B(e,t[n-1]),B(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var r=t[n+0];return 0>=ne(r>>24&255,e>>24&255,(t=t[n-1])>>24&255)+ne(r>>16&255,e>>16&255,t>>16&255)+ne(r>>8&255,e>>8&255,t>>8&255)+ne(255&r,255&e,255&t)?r:e},e.Predictor12=function(e,t,n){var r=t[n+0];return(te((e>>24&255)+(r>>24&255)-((t=t[n-1])>>24&255))<<24|te((e>>16&255)+(r>>16&255)-(t>>16&255))<<16|te((e>>8&255)+(r>>8&255)-(t>>8&255))<<8|te((255&e)+(255&r)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var r=t[n-1];return(V((e=B(e,t[n+0]))>>24&255,r>>24&255)<<24|V(e>>16&255,r>>16&255)<<16|V(e>>8&255,r>>8&255)<<8|V(255&e,255&r))>>>0};var Xn=e.PredictorAdd0;e.PredictorAdd1=re,R(`Predictor2`,`PredictorAdd2`),R(`Predictor3`,`PredictorAdd3`),R(`Predictor4`,`PredictorAdd4`),R(`Predictor5`,`PredictorAdd5`),R(`Predictor6`,`PredictorAdd6`),R(`Predictor7`,`PredictorAdd7`),R(`Predictor8`,`PredictorAdd8`),R(`Predictor9`,`PredictorAdd9`),R(`Predictor10`,`PredictorAdd10`),R(`Predictor11`,`PredictorAdd11`),R(`Predictor12`,`PredictorAdd12`),R(`Predictor13`,`PredictorAdd13`);var Zn=e.PredictorAdd2;se(`ColorIndexInverseTransform`,`MapARGB`,`32b`,function(e){return e>>8&255},function(e){return e}),se(`VP8LColorIndexInverseTransformAlpha`,`MapAlpha`,`8b`,function(e){return e},function(e){return e>>8&255});var Qn,$n=e.ColorIndexInverseTransform,er=e.MapARGB,tr=e.VP8LColorIndexInverseTransformAlpha,nr=e.MapAlpha,rr=e.VP8LPredictorsAdd=[];rr.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr=a(511),Nr=a(2041),Pr=a(225),Fr=a(767),Ir=0,Lr=Nr,Rr=Pr,zr=Fr,Br=Mr,J=0,Y=1,Vr=2,Hr=3,Ur=4,Wr=5,Gr=6,Kr=7,qr=8,Jr=9,Yr=10,Xr=[2,3,7],Zr=[3,3,11],Qr=[280,256,256,256,40],$r=[0,1,1,1,0],ei=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],ti=[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],ni=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ri=8,ii=[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],ai=[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],oi=null,si=[[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]],ci=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],li=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],ui=[[[[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]]]],di=[[[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]]],fi=[[[[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]]]],pi=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],mi=[],hi=[],gi=[],_i=1,vi=2,yi=[],bi=[];wn(`UpsampleRgbLinePair`,kn,3),wn(`UpsampleBgrLinePair`,An,3),wn(`UpsampleRgbaLinePair`,Fn,4),wn(`UpsampleBgraLinePair`,Pn,4),wn(`UpsampleArgbLinePair`,Nn,4),wn(`UpsampleRgba4444LinePair`,Mn,2),wn(`UpsampleRgb565LinePair`,jn,2);var xi=e.UpsampleRgbLinePair,Si=e.UpsampleBgrLinePair,Ci=e.UpsampleRgbaLinePair,wi=e.UpsampleBgraLinePair,Ti=e.UpsampleArgbLinePair,Ei=e.UpsampleRgba4444LinePair,Di=e.UpsampleRgb565LinePair,Oi=16,ki=1<<Oi-1,Ai=-227,ji=482,Mi=6,Ni=(256<<Mi)-1,Pi=0,Fi=a(256),Ii=a(256),Li=a(256),Ri=a(256),zi=a(ji-Ai),Bi=a(ji-Ai);In(`YuvToRgbRow`,kn,3),In(`YuvToBgrRow`,An,3),In(`YuvToRgbaRow`,Fn,4),In(`YuvToBgraRow`,Pn,4),In(`YuvToArgbRow`,Nn,4),In(`YuvToRgba4444Row`,Mn,2),In(`YuvToRgb565Row`,jn,2);var Vi=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Hi=[0,2,8],Ui=[8,7,6,4,4,2,2,2,1,1,1,1],Wi=1;this.WebPDecodeRGBA=function(e,n,s,c,l){var u=Y,d=new ln,f=new _e;d.ba=f,f.S=u,f.width=[f.width],f.height=[f.height];var p=f.width,m=f.height,h=new ve;if(h==null||e==null)var g=2;else t(h!=null),g=Bn(e,n,s,h.width,h.height,h.Pd,h.Qd,h.format,null);if(g==0?(p!=null&&(p[0]=h.width[0]),m!=null&&(m[0]=h.height[0]),p=1):p=0,p){f.width=f.width[0],f.height=f.height[0],c!=null&&(c[0]=f.width),l!=null&&(l[0]=f.height);t:{if(c=new et,(l=new un).data=e,l.w=n,l.ha=s,l.kd=1,n=[0],t(l!=null),((e=Bn(l.data,l.w,l.ha,null,null,null,n,null,l))==0||e==7)&&n[0]&&(e=4),(n=e)==0){if(t(d!=null),c.data=l.data,c.w=l.w+l.offset,c.ha=l.ha-l.offset,c.put=we,c.ac=Ce,c.bc=Te,c.ma=d,l.xa){if((e=Le())==null){d=1;break t}if(function(e,n){var r=[0],i=[0],a=[0];e:for(;;){if(e==null)return 0;if(n==null)return e.a=2,0;if(e.l=n,e.a=0,_(e.m,n.data,n.w,n.ha),!Ee(e.m,r,i,a)){e.a=3;break e}if(e.xb=vi,n.width=r[0],n.height=i[0],!Re(r[0],i[0],1,e,null))break e;return 1}return t(e.a!=0),0}(e,c)){if(c=(n=Un(c.width,c.height,d.Oa,d.ba))==0){e:{c=e;r:for(;;){if(c==null){c=0;break e}if(t(c.s.yc!=null),t(c.s.Ya!=null),t(0<c.s.Wb),t((s=c.l)!=null),t((l=s.ma)!=null),c.xb!=0){if(c.ca=l.ba,c.tb=l.tb,t(c.ca!=null),!Vn(l.Oa,s,Hr)){c.a=2;break r}if(!ze(c,s.width)||s.da)break r;if((s.da||me(c.ca.S))&&Cn(),11>c.ca.S||(alert(`todo:WebPInitConvertARGBToYUV`),c.ca.f.kb.F!=null&&Cn()),c.Pb&&0<c.s.ua&&c.s.vb.X==null&&!N(c.s.vb,c.s.Wa.Xa)){c.a=1;break r}c.xb=0}if(!W(c,c.V,c.Ba,c.c,c.i,s.o,Me))break r;l.Dc=c.Ma,c=1;break e}t(c.a!=0),c=0}c=!c}c&&(n=e.a)}else n=e.a}else{if((e=new tt)==null){d=1;break t}if(e.Fa=l.na,e.P=l.P,e.qc=l.Sa,it(e,c)){if((n=Un(c.width,c.height,d.Oa,d.ba))==0){if(e.Aa=0,s=d.Oa,t((l=e)!=null),s!=null){if(0<(p=0>(p=s.Md)?0:100<p?255:255*p/100)){for(m=h=0;4>m;++m)12>(g=l.pb[m]).lc&&(g.ia=p*Ui[0>g.lc?0:g.lc]>>3),h|=g.ia;h&&(alert(`todo:VP8InitRandom`),l.ia=1)}l.Ga=s.Id,100<l.Ga?l.Ga=100:0>l.Ga&&(l.Ga=0)}(function(e,n){if(e==null)return 0;if(n==null)return nt(e,2,`NULL VP8Io parameter in VP8Decode().`);if(!e.cb&&!it(e,n))return 0;if(t(e.cb),n.ac==null||n.ac(n)){n.ob&&(e.L=0);var s=Hi[e.L];if(e.L==2?(e.yb=0,e.zb=0):(e.yb=n.v-s>>4,e.zb=n.j-s>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+s>>4,e.Hb=n.va+15+s>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var c=e.ed;for(s=0;4>s;++s){var l;if(e.Qa.Cb){var u=e.Qa.Lb[s];e.Qa.Fb||(u+=c.Tb)}else u=c.Tb;for(l=0;1>=l;++l){var d=e.gd[s][l],f=u;if(c.Pc&&(f+=c.vd[0],l&&(f+=c.od[0])),0<(f=0>f?0:63<f?63:f)){var p=f;0<c.wb&&(p=4<c.wb?p>>2:p>>1)>9-c.wb&&(p=9-c.wb),1>p&&(p=1),d.dd=p,d.tc=2*f+p,d.ld=40<=f?2:+(15<=f)}else d.tc=0;d.La=l}}}s=0}else nt(e,6,`Frame setup failed`),s=e.a;if(s=s==0){if(s){e.$c=0,0<e.Aa||(e.Ic=Wi);e:{s=e.Ic,c=4*(p=e.za);var m=32*p,h=p+1,g=0<e.L?p*(0<e.Aa?2:1):0,_=(e.Aa==2?2:1)*p;if((d=c+832+(l=3*(16*s+Hi[e.L])/2*m)+(u=e.Fa!=null&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=d)s=0;else{if(d>e.Vb){if(e.Vb=0,e.Ec=a(d),e.Fc=0,e.Ec==null){s=nt(e,1,`no memory during frame initialization.`);break e}e.Vb=d}d=e.Ec,f=e.Fc,e.Ac=d,e.Bc=f,f+=c,e.Gd=o(m,Ze),e.Hd=0,e.rb=o(h+1,qe),e.sb=1,e.wa=g?o(g,Ke):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=p),t(!0),e.oc=d,e.pc=f,f+=832,e.ya=o(_,Ye),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,e.Aa==2&&(e.D.aa+=p),e.R=16*p,e.B=8*p,p=(m=Hi[e.L])*e.R,m=m/2*e.B,e.sa=d,e.ta=f+p,e.qa=e.sa,e.ra=e.ta+16*s*e.R+m,e.Ha=e.qa,e.Ia=e.ra+8*s*e.B+m,e.$c=0,f+=l,e.mb=u?d:null,e.nb=u?f:null,t(f+u<=e.Fc+e.Vb),ot(e),i(e.Ac,e.Bc,0,c),s=1}}if(s){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!Ir){for(s=-255;255>=s;++s)Mr[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Nr[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Pr[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Fr[255+s]=0>s?0:255<s?255:s;Ir=1}ur=gt,dr=ft,pr=pt,mr=mt,hr=ht,fr=dt,gr=en,_r=tn,vr=an,yr=on,br=nn,xr=rn,Sr=sn,Cr=cn,wr=Jt,Tr=Yt,Er=Xt,Dr=Zt,hi[0]=At,hi[1]=vt,hi[2]=Ot,hi[3]=kt,hi[4]=jt,hi[5]=Nt,hi[6]=Mt,hi[7]=Pt,hi[8]=It,hi[9]=Ft,mi[0]=wt,mi[1]=bt,mi[2]=xt,mi[3]=St,mi[4]=Tt,mi[5]=Et,mi[6]=Dt,gi[0]=Bt,gi[1]=yt,gi[2]=Lt,gi[3]=Rt,gi[4]=Ht,gi[5]=Vt,gi[6]=Ut,s=1}else s=0}s&&=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var o,s=e.Jc[e.M&e.Xb],c=e.m,l=e;for(o=0;o<l.za;++o){var u=c,d=l,f=d.Ac,p=d.Bc+4*o,m=d.zc,h=d.ya[d.aa+o];if(d.Qa.Bb?h.$b=O(u,d.Pa.jb[0])?2+O(u,d.Pa.jb[2]):O(u,d.Pa.jb[1]):h.$b=0,d.kc&&(h.Ad=O(u,d.Bd)),h.Za=!O(u,145)+0,h.Za){var g=h.Ob,_=0;for(d=0;4>d;++d){var v,y=m[0+d];for(v=0;4>v;++v){y=di[f[p+v]][y];for(var b=li[O(u,y[0])];0<b;)b=li[2*b+O(u,y[b])];y=-b,f[p+v]=y}r(g,_,f,p,4),_+=4,m[0+d]=y}}else y=O(u,156)?O(u,128)?1:3:O(u,163)?2:0,h.Ob[0]=y,i(f,p,y,4),i(m,0,y,4);h.Dd=O(u,142)?O(u,114)?O(u,183)?1:3:2:0}if(l.m.Ka)return nt(e,7,`Premature end-of-partition0 encountered.`);for(;e.ja<e.za;++e.ja){if(l=s,u=(c=e).rb[c.sb-1],f=c.rb[c.sb+c.ja],o=c.ya[c.aa+c.ja],p=c.kc?o.Ad:0)u.la=f.la=0,o.Za||(u.Na=f.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var x,S;if(u=f,f=l,p=c.Pa.Xc,m=c.ya[c.aa+c.ja],h=c.pb[m.$b],d=m.ad,g=0,_=c.rb[c.sb-1],y=v=0,i(d,g,0,384),m.Za)var C=0,w=p[3];else{b=a(16);var T=u.Na+_.Na;if(T=oi(f,p[1],T,h.Eb,0,b,0),u.Na=_.Na=(0<T)+0,1<T)ur(b,0,d,g);else{var E=b[0]+3>>3;for(b=0;256>b;b+=16)d[g+b]=E}C=1,w=p[0]}var D=15&u.la,k=15&_.la;for(b=0;4>b;++b){var A=1&k;for(E=S=0;4>E;++E)D=D>>1|(A=(T=oi(f,w,T=A+(1&D),h.Sc,C,d,g))>C)<<7,S=S<<2|(3<T?3:1<T?2:d[g+0]!=0),g+=16;D>>=4,k=k>>1|A<<7,v=(v<<8|S)>>>0}for(w=D,C=k>>4,x=0;4>x;x+=2){for(S=0,D=u.la>>4+x,k=_.la>>4+x,b=0;2>b;++b){for(A=1&k,E=0;2>E;++E)T=A+(1&D),D=D>>1|(A=0<(T=oi(f,p[2],T,h.Qc,0,d,g)))<<3,S=S<<2|(3<T?3:1<T?2:d[g+0]!=0),g+=16;D>>=2,k=k>>1|A<<5}y|=S<<4*x,w|=D<<4<<x,C|=(240&k)<<x}u.la=w,_.la=C,m.Hc=v,m.Gc=y,m.ia=43690&y?0:h.ia,p=!(v|y)}if(0<c.L&&(c.wa[c.Y+c.ja]=c.gd[o.$b][o.Za],c.wa[c.Y+c.ja].La|=!p),l.Ka)return nt(e,7,`Premature end-of-file encountered.`)}if(ot(e),c=n,l=1,o=(s=e).D,u=0<s.L&&s.M>=s.zb&&s.M<=s.Va,s.Aa==0)e:{if(o.M=s.M,o.uc=u,zn(s,o),l=1,o=(S=s.D).Nb,u=(y=Hi[s.L])*s.R,f=y/2*s.B,b=16*o*s.R,E=8*o*s.B,p=s.sa,m=s.ta-u+b,h=s.qa,d=s.ra-f+E,g=s.Ha,_=s.Ia-f+E,k=(D=S.M)==0,v=D>=s.Va-1,s.Aa==2&&zn(s,S),S.uc)for(A=(T=s).D.M,t(T.D.uc),S=T.yb;S<T.Hb;++S){C=S,w=A;var j=(M=(B=T).D).Nb;x=B.R;var M=M.wa[M.Y+C],N=B.sa,P=B.ta+16*j*x+16*C,F=M.dd,I=M.tc;if(I!=0)if(t(3<=I),B.L==1)0<C&&Tr(N,P,x,I+4),M.La&&Dr(N,P,x,I),0<w&&wr(N,P,x,I+4),M.La&&Er(N,P,x,I);else{var L=B.B,ee=B.qa,R=B.ra+8*j*L+8*C,z=B.Ha,B=B.Ia+8*j*L+8*C;j=M.ld,0<C&&(_r(N,P,x,I+4,F,j),yr(ee,R,z,B,L,I+4,F,j)),M.La&&(xr(N,P,x,I,F,j),Cr(ee,R,z,B,L,I,F,j)),0<w&&(gr(N,P,x,I+4,F,j),vr(ee,R,z,B,L,I+4,F,j)),M.La&&(br(N,P,x,I,F,j),Sr(ee,R,z,B,L,I,F,j))}}if(s.ia&&alert(`todo:DitherRow`),c.put!=null){if(S=16*D,D=16*(D+1),k?(c.y=s.sa,c.O=s.ta+b,c.f=s.qa,c.N=s.ra+E,c.ea=s.Ha,c.W=s.Ia+E):(S-=y,c.y=p,c.O=m,c.f=h,c.N=d,c.ea=g,c.W=_),v||(D-=y),D>c.o&&(D=c.o),c.F=null,c.J=null,s.Fa!=null&&0<s.Fa.length&&S<D&&(c.J=vn(s,c,S,D-S),c.F=s.mb,c.F==null&&c.F.length==0)){l=nt(s,3,`Could not decode alpha data.`);break e}S<c.j&&(y=c.j-S,S=c.j,t(!(1&y)),c.O+=s.R*y,c.N+=s.B*(y>>1),c.W+=s.B*(y>>1),c.F!=null&&(c.J+=c.width*y)),S<D&&(c.O+=c.v,c.N+=c.v>>1,c.W+=c.v>>1,c.F!=null&&(c.J+=c.v),c.ka=S-c.j,c.U=c.va-c.v,c.T=D-S,l=c.put(c))}o+1!=s.Ic||v||(r(s.sa,s.ta-u,p,m+16*s.R,u),r(s.qa,s.ra-f,h,d+8*s.B,f),r(s.Ha,s.Ia-f,g,_+8*s.B,f))}if(!l)return nt(e,6,`Output aborted.`)}return 1}(e,n),n.bc!=null&&n.bc(n),s&=1}return s?(e.cb=0,s):0})(e,c)||(n=e.a)}}else n=e.a}n==0&&d.Oa!=null&&d.Oa.fd&&(n=Hn(d.ba))}d=n}u=d==0?11>u?f.f.RGBA.eb:f.f.kb.y:null}else u=null;return u};var Gi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(e,t){for(var n=``,r=0;r<4;r++)n+=String.fromCharCode(e[t++]);return n}function u(e,t){return e[t+0]|e[t+1]<<8}function d(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function f(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new c;var p=[0],m=[0],h=[],g=new c,_=e,v=function(e,t){var n={},r=0,i=!1,a=0,o=0;if(n.frames=[],!function(e,t){for(var n=0;n<4;n++)if(e[t+n]!=`RIFF`.charCodeAt(n))return!0;return!1}(e,t)){for(f(e,t+=4),t+=8;t<e.length;){var s=l(e,t),c=f(e,t+=4);t+=4;var p=c+(1&c);switch(s){case`VP8 `:case`VP8L`:n.frames[r]===void 0&&(n.frames[r]={}),(g=n.frames[r]).src_off=i?o:t-8,g.src_size=a+c+8,r++,i&&(i=!1,a=0,o=0);break;case`VP8X`:(g=n.header={}).feature_flags=e[t];var m=t+4;g.canvas_width=1+d(e,m),m+=3,g.canvas_height=1+d(e,m),m+=3;break;case`ALPH`:i=!0,a=p+8,o=t-8;break;case`ANIM`:(g=n.header).bgcolor=f(e,t),m=t+4,g.loop_count=u(e,m),m+=2;break;case`ANMF`:var h,g;(g=n.frames[r]={}).offset_x=2*d(e,t),t+=3,g.offset_y=2*d(e,t),t+=3,g.width=1+d(e,t),t+=3,g.height=1+d(e,t),t+=3,g.duration=d(e,t),t+=3,h=e[t++],g.dispose=1&h,g.blend=h>>1&1}s!=`ANMF`&&(t+=p)}return n}}(_,0);v.response=_,v.rgbaoutput=!0,v.dataurl=!1;var y=v.header?v.header:null,b=v.frames?v.frames:null;if(y){y.loop_counter=y.loop_count,p=[y.canvas_height],m=[y.canvas_width];for(var x=0;x<b.length&&b[x].blend!=0;x++);}var S=b[0],C=g.WebPDecodeRGBA(_,S.src_off,S.src_size,m,p);S.rgba=C,S.imgwidth=m[0],S.imgheight=p[0];for(var w=0;w<m[0]*p[0]*4;w++)h[w]=C[w];return this.width=m,this.height=p,this.data=h,this}function _m(){var e,t=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?n:`<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>`+n.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)+`</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>`,this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write(`<< /Type /Metadata /Subtype /XML /Length `+e.length+` >>`),this.internal.write(`stream`),this.internal.write(e),this.internal.write(`endstream`),this.internal.write(`endobj`)}function vm(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write(`/Metadata `+this.internal.__metadata__.metadataObjectNumber+` 0 R`)}(function(e){var t,n,i,a,o,s,c,l,u,d=function(e){return e||={},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||`#000000`,this.fillStyle=e.fillStyle||`#000000`,this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||`10px sans-serif`,this.textBaseline=e.textBaseline||`alphabetic`,this.textAlign=e.textAlign||`left`,this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||`miter`,this.lineCap=e.lineCap||`butt`,this.path=e.path||[],this.transform=e.transform===void 0?new l:e.transform.clone(),this.globalCompositeOperation=e.globalCompositeOperation||`normal`,this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new s,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new s,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect=typeof e.ignoreClearRect!=`boolean`||e.ignoreClearRect,this};e.events.push([`initialized`,function(){this.context2d=new f(this),t=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,c=this.internal.Rectangle,l=this.internal.Matrix,u=new d}]);var f=function(e){Object.defineProperty(this,`canvas`,{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,`pdf`,{get:function(){return t}});var n=!1;Object.defineProperty(this,`pageWrapXEnabled`,{get:function(){return n},set:function(e){n=!!e}});var r=!1;Object.defineProperty(this,`pageWrapYEnabled`,{get:function(){return r},set:function(e){r=!!e}});var i=0;Object.defineProperty(this,`posX`,{get:function(){return i},set:function(e){isNaN(e)||(i=e)}});var a=0;Object.defineProperty(this,`posY`,{get:function(){return a},set:function(e){isNaN(e)||(a=e)}}),Object.defineProperty(this,`margin`,{get:function(){return u.margin},set:function(e){var t;typeof e==`number`?t=[e,e,e,e]:((t=[,,,,])[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),u.margin=t}});var o=!1;Object.defineProperty(this,`autoPaging`,{get:function(){return o},set:function(e){o=e}});var s=0;Object.defineProperty(this,`lastBreak`,{get:function(){return s},set:function(e){s=e}});var c=[];Object.defineProperty(this,`pageBreaks`,{get:function(){return c},set:function(e){c=e}}),Object.defineProperty(this,`ctx`,{get:function(){return u},set:function(e){e instanceof d&&(u=e)}}),Object.defineProperty(this,`path`,{get:function(){return u.path},set:function(e){u.path=e}});var l=[];Object.defineProperty(this,`ctxStack`,{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,`fillStyle`,{get:function(){return this.ctx.fillStyle},set:function(e){var t=p(e);this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=t.a===0,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,`strokeStyle`,{get:function(){return this.ctx.strokeStyle},set:function(e){var t=p(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=t.a===0,this.ctx.strokeOpacity=t.a,t.a===0?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,`lineCap`,{get:function(){return this.ctx.lineCap},set:function(e){[`butt`,`round`,`square`].indexOf(e)!==-1&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,`lineWidth`,{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,`lineJoin`,{get:function(){return this.ctx.lineJoin},set:function(e){[`bevel`,`round`,`miter`].indexOf(e)!==-1&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,`miterLimit`,{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,`textBaseline`,{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,`textAlign`,{get:function(){return this.ctx.textAlign},set:function(e){[`right`,`end`,`center`,`left`,`start`].indexOf(e)!==-1&&(this.ctx.textAlign=e)}});var f=null,m=null,h=null;Object.defineProperty(this,`fontFaces`,{get:function(){return h},set:function(e){f=null,m=null,h=e}}),Object.defineProperty(this,`font`,{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,(t=/^\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-z0-9]+?)\s*$/i.exec(e))!==null){var n=t[1];t[2];var r=t[3],i=t[4];t[5];var a=t[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i=Math.floor(o===`px`?parseFloat(i)*this.pdf.internal.scaleFactor:o===`em`?parseFloat(i)*this.pdf.getFontSize():parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(e){var t,n,r=[],i=e.trim();if(i===``)return em;if(i in Wp)return[Wp[i]];for(;i!==``;){switch(n=null,t=(i=Kp(i)).charAt(0)){case`"`:case`'`:n=qp(i.substring(1),t);break;default:n=Jp(i)}if(n===null||(r.push(n[0]),(i=Kp(n[1]))!==``&&i.charAt(0)!==`,`))return em;i=i.replace(/^,/,``)}return r}(a);if(this.fontFaces){var c=function(e,t,n){for(var r=(n||={}).defaultFontFamily||`times`,i=Object.assign({},Up,n.genericFontFamilies||{}),a=null,o=null,s=0;s<t.length;++s)if(i[(a=Vp(t[s])).family]&&(a.family=i[a.family]),e.hasOwnProperty(a.family)){o=e[a.family];break}if(!(o||=e[r]))throw Error(`Could not find a font-family for the rule '`+Gp(a)+`' and default family '`+r+`'.`);if(o=function(e,t){if(t[e])return t[e];var n=Rp[e],r=Hp(t,Lp,n,n<=Rp.normal?-1:1);if(!r)throw Error(`Could not find a matching font-stretch value for `+e);return r}(a.stretch,o),o=function(e,t){if(t[e])return t[e];for(var n=Ip[e],r=0;r<n.length;++r)if(t[n[r]])return t[n[r]];throw Error(`Could not find a matching font-style for `+e)}(a.style,o),!(o=function(e,t){if(t[e])return t[e];if(e===400&&t[500])return t[500];if(e===500&&t[400])return t[400];var n=Bp[e],r=Hp(t,zp,n,e<400?-1:1);if(!r)throw Error(`Could not find a matching font-weight for value `+e);return r}(a.weight,o)))throw Error(`Failed to resolve a font for the rule '`+Gp(a)+`'.`);return o}(function(e,t){var n=e.getFontList(),r=JSON.stringify(n);return(f===null||m!==r)&&(f=function(e){for(var t={},n=0;n<e.length;++n){var r=Vp(e[n]),i=r.family,a=r.stretch,o=r.style,s=r.weight;t[i]=t[i]||{},t[i][a]=t[i][a]||{},t[i][a][o]=t[i][a][o]||{},t[i][a][o][s]=r}return t}(function(e){var t=[];return Object.keys(e).forEach(function(n){e[n].forEach(function(e){var r=null;switch(e){case`bold`:r={family:n,weight:`bold`};break;case`italic`:r={family:n,style:`italic`};break;case`bolditalic`:r={family:n,weight:`bold`,style:`italic`};break;case``:case`normal`:r={family:n}}r!==null&&(r.ref={name:n,style:e},t.push(r))})}),t}(n).concat(t)),m=r),f}(this.pdf,this.fontFaces),s.map(function(e){return{family:e,stretch:`normal`,weight:r,style:n}}));this.pdf.setFont(c.ref.name,c.ref.style)}else{var l=``;(r===`bold`||parseInt(r,10)>=700||n===`bold`)&&(l=`bold`),n===`italic`&&(l+=`italic`),l.length===0&&(l=`normal`);for(var u=``,d={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`},p=0;p<s.length;p++){if(this.pdf.internal.getFont(s[p],l,{noFallback:!0,disableWarning:!0})!==void 0){u=s[p];break}if(l===`bolditalic`&&this.pdf.internal.getFont(s[p],`bold`,{noFallback:!0,disableWarning:!0})!==void 0)u=s[p],l=`bold`;else if(this.pdf.internal.getFont(s[p],`normal`,{noFallback:!0,disableWarning:!0})!==void 0){u=s[p],l=`normal`;break}}if(u===``){for(var h=0;h<s.length;h++)if(d[s[h]]){u=d[s[h]];break}}u=u===``?`Times`:u,this.pdf.setFont(u,l)}}}}),Object.defineProperty(this,`globalCompositeOperation`,{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,`globalAlpha`,{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,`lineDashOffset`,{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,ee.call(this)}}),Object.defineProperty(this,`lineDash`,{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,ee.call(this)}}),Object.defineProperty(this,`ignoreClearRect`,{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=!!e}})};f.prototype.setLineDash=function(e){this.lineDash=e},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){x.call(this,`fill`,!1)},f.prototype.stroke=function(){x.call(this,`stroke`,!1)},f.prototype.beginPath=function(){this.path=[{type:`begin`}]},f.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw vf.error(`jsPDF.context2d.moveTo: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.moveTo`);var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:`mt`,x:n.x,y:n.y}),this.ctx.lastPoint=new s(e,t)},f.prototype.closePath=function(){var e=new s(0,0),t=0;for(t=this.path.length-1;t!==-1;t--)if(this.path[t].type===`begin`&&r(this.path[t+1])===`object`&&typeof this.path[t+1].x==`number`){e=new s(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:`close`}),this.ctx.lastPoint=new s(e.x,e.y)},f.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw vf.error(`jsPDF.context2d.lineTo: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.lineTo`);var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:`lt`,x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},f.prototype.quadraticCurveTo=function(e,t,n,r){if(isNaN(n)||isNaN(r)||isNaN(e)||isNaN(t))throw vf.error(`jsPDF.context2d.quadraticCurveTo: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.quadraticCurveTo`);var i=this.ctx.transform.applyToPoint(new s(n,r)),a=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:`qct`,x1:a.x,y1:a.y,x:i.x,y:i.y}),this.ctx.lastPoint=new s(i.x,i.y)},f.prototype.bezierCurveTo=function(e,t,n,r,i,a){if(isNaN(i)||isNaN(a)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw vf.error(`jsPDF.context2d.bezierCurveTo: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.bezierCurveTo`);var o=this.ctx.transform.applyToPoint(new s(i,a)),c=this.ctx.transform.applyToPoint(new s(e,t)),l=this.ctx.transform.applyToPoint(new s(n,r));this.path.push({type:`bct`,x1:c.x,y1:c.y,x2:l.x,y2:l.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},f.prototype.arc=function(e,t,n,r,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i))throw vf.error(`jsPDF.context2d.arc: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.arc`);if(a=!!a,!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new s(e,t));e=o.x,t=o.y;var c=this.ctx.transform.applyToPoint(new s(0,n)),l=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt((c.x-l.x)**2+(c.y-l.y)**2)}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:`arc`,x:e,y:t,radius:n,startAngle:r,endAngle:i,counterclockwise:a})},f.prototype.arcTo=function(e,t,n,r,i){throw Error(`arcTo not implemented.`)},f.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw vf.error(`jsPDF.context2d.rect: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.rect`);this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},f.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw vf.error(`jsPDF.context2d.fillRect: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.fillRect`);if(!m.call(this)){var i={};this.lineCap!==`butt`&&(i.lineCap=this.lineCap,this.lineCap=`butt`),this.lineJoin!==`miter`&&(i.lineJoin=this.lineJoin,this.lineJoin=`miter`),this.beginPath(),this.rect(e,t,n,r),this.fill(),i.hasOwnProperty(`lineCap`)&&(this.lineCap=i.lineCap),i.hasOwnProperty(`lineJoin`)&&(this.lineJoin=i.lineJoin)}},f.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw vf.error(`jsPDF.context2d.strokeRect: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.strokeRect`);h.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},f.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw vf.error(`jsPDF.context2d.clearRect: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.clearRect`);this.ignoreClearRect||(this.fillStyle=`#ffffff`,this.fillRect(e,t,n,r))},f.prototype.save=function(e){e=typeof e!=`boolean`||e;for(var t=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(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},f.prototype.restore=function(e){e=typeof e!=`boolean`||e;for(var t=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(t),e&&this.ctxStack.length!==0&&(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)},f.prototype.toDataURL=function(){throw Error(`toDataUrl not implemented.`)};var p=function(e){var t,n,r,i;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,r=0,i=0;else{var a=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(a!==null)t=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),i=1;else if((a=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e))!==null)t=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),i=parseFloat(a[4]);else{if(i=1,typeof e==`string`&&e.charAt(0)!==`#`){var o=new Cf(e);e=o.ok?o.toHex():`#000000`}e.length===4?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,r=e.substring(3,4),r+=r):(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:t,g:n,b:r,a:i,style:e}},m=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},h=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};f.prototype.fillText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||typeof e!=`string`)throw vf.error(`jsPDF.context2d.fillText: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.fillText`);if(r=isNaN(r)?void 0:r,!m.call(this)){var i=F(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;k.call(this,{text:e,x:t,y:n,scale:a,angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.strokeText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||typeof e!=`string`)throw vf.error(`jsPDF.context2d.strokeText: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.strokeText`);if(!h.call(this)){r=isNaN(r)?void 0:r;var i=F(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;k.call(this,{text:e,x:t,y:n,scale:a,renderingMode:`stroke`,angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.measureText=function(e){if(typeof e!=`string`)throw vf.error(`jsPDF.context2d.measureText: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.measureText`);var t=this.pdf,n=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),i=t.getStringUnitWidth(e)*r/t.internal.scaleFactor;return new function(e){var t=(e||={}).width||0;return Object.defineProperty(this,`width`,{get:function(){return t}}),this}({width:i*=Math.round(96*n/72*1e4)/1e4})},f.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw vf.error(`jsPDF.context2d.scale: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.scale`);var n=new l(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.rotate=function(e){if(isNaN(e))throw vf.error(`jsPDF.context2d.rotate: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.rotate`);var t=new l(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},f.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw vf.error(`jsPDF.context2d.translate: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.translate`);var n=new l(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.transform=function(e,t,n,r,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a))throw vf.error(`jsPDF.context2d.transform: Invalid arguments`,arguments),Error(`Invalid arguments passed to jsPDF.context2d.transform`);var o=new l(e,t,n,r,i,a);this.ctx.transform=this.ctx.transform.multiply(o)},f.prototype.setTransform=function(e,t,n,r,i,a){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,a=isNaN(a)?0:a,this.ctx.transform=new l(e,t,n,r,i,a)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(e,t,n,r,i,a,o,s,u){var d=this.pdf.getImageProperties(e),f=1,p=1,m=1,h=1;r!==void 0&&s!==void 0&&(m=s/r,h=u/i,f=d.width/r*s/r,p=d.height/i*u/i),a===void 0&&(a=t,o=n,t=0,n=0),r!==void 0&&s===void 0&&(s=r,u=i),r===void 0&&s===void 0&&(s=d.width,u=d.height);var v=this.ctx.transform.decompose(),x=F(v.rotate.shx),C=new l,w=(C=(C=(C=C.multiply(v.translate)).multiply(v.skew)).multiply(v.scale)).applyToRectangle(new c(a-t*m,o-n*h,r*f,i*p));if(this.autoPaging){for(var T,E=_.call(this,w),D=[],O=0;O<E.length;O+=1)D.indexOf(E[O])===-1&&D.push(E[O]);b(D);for(var k=D[0],A=D[D.length-1],j=k;j<A+1;j++){this.pdf.setPage(j);var M=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],N=j===1?this.posY+this.margin[0]:this.margin[0],P=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],I=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],L=j===1?0:P+(j-2)*I;if(this.ctx.clip_path.length!==0){var ee=this.path;T=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(T,this.posX+this.margin[3],-L+N+this.ctx.prevPageLastElemOffset),S.call(this,`fill`,!0),this.path=ee}var R=JSON.parse(JSON.stringify(w));R=y([R],this.posX+this.margin[3],-L+N+this.ctx.prevPageLastElemOffset)[0];var z=(j>k||j<A)&&g.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],M,I,null).clip().discardPath()),this.pdf.addImage(e,`JPEG`,R.x,R.y,R.w,R.h,null,null,x),z&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(e,`JPEG`,w.x,w.y,w.w,w.h,null,null,x)};var _=function(e,t,n){var r=[];t||=this.pdf.internal.pageSize.width,n||=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case`mt`:case`lt`:r.push(Math.floor((e.y+i)/n)+1);break;case`arc`:r.push(Math.floor((e.y+i-e.radius)/n)+1),r.push(Math.floor((e.y+i+e.radius)/n)+1);break;case`qct`:var a=I(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);r.push(Math.floor((a.y+i)/n)+1),r.push(Math.floor((a.y+a.h+i)/n)+1);break;case`bct`:var o=L(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);r.push(Math.floor((o.y+i)/n)+1),r.push(Math.floor((o.y+o.h+i)/n)+1);break;case`rect`:r.push(Math.floor((e.y+i)/n)+1),r.push(Math.floor((e.y+e.h+i)/n)+1)}for(var s=0;s<r.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<r[s];)v.call(this);return r},v=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,a=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=a},y=function(e,t,n){for(var r=0;r<e.length;r++)switch(e[r].type){case`bct`:e[r].x2+=t,e[r].y2+=n;case`qct`:e[r].x1+=t,e[r].y1+=n;default:e[r].x+=t,e[r].y+=n}return e},b=function(e){return e.sort(function(e,t){return e-t})},x=function(e,t){var n=this.fillStyle,r=this.strokeStyle,i=this.lineCap,a=this.lineWidth,o=Math.abs(a*this.ctx.transform.scaleX),s=this.lineJoin;if(this.autoPaging){for(var c,l,u=JSON.parse(JSON.stringify(this.path)),d=JSON.parse(JSON.stringify(this.path)),f=[],p=0;p<d.length;p++)if(d[p].x!==void 0)for(var m=_.call(this,d[p]),h=0;h<m.length;h+=1)f.indexOf(m[h])===-1&&f.push(m[h]);for(var x=0;x<f.length;x++)for(;this.pdf.internal.getNumberOfPages()<f[x];)v.call(this);b(f);for(var C=f[0],w=f[f.length-1],T=C;T<w+1;T++){this.pdf.setPage(T),this.fillStyle=n,this.strokeStyle=r,this.lineCap=i,this.lineWidth=o,this.lineJoin=s;var E=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],D=T===1?this.posY+this.margin[0]:this.margin[0],O=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],k=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],A=T===1?0:O+(T-2)*k;if(this.ctx.clip_path.length!==0){var j=this.path;c=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(c,this.posX+this.margin[3],-A+D+this.ctx.prevPageLastElemOffset),S.call(this,e,!0),this.path=j}if(l=JSON.parse(JSON.stringify(u)),this.path=y(l,this.posX+this.margin[3],-A+D+this.ctx.prevPageLastElemOffset),!1===t||T===0){var M=(T>C||T<w)&&g.call(this);M&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],E,k,null).clip().discardPath()),S.call(this,e,t),M&&this.pdf.restoreGraphicsState()}this.lineWidth=a}this.path=u}else this.lineWidth=o,S.call(this,e,t),this.lineWidth=a},S=function(e,t){if((e!==`stroke`||t||!h.call(this))&&(e===`stroke`||t||!m.call(this))){for(var n,r,i=[],a=this.path,o=0;o<a.length;o++){var s=a[o];switch(s.type){case`begin`:i.push({begin:!0});break;case`close`:i.push({close:!0});break;case`mt`:i.push({start:s,deltas:[],abs:[]});break;case`lt`:var c=i.length;if(a[o-1]&&!isNaN(a[o-1].x)&&(n=[s.x-a[o-1].x,s.y-a[o-1].y],c>0)){for(;c>=0;c--)if(!0!==i[c-1].close&&!0!==i[c-1].begin){i[c-1].deltas.push(n),i[c-1].abs.push(s);break}}break;case`bct`:n=[s.x1-a[o-1].x,s.y1-a[o-1].y,s.x2-a[o-1].x,s.y2-a[o-1].y,s.x-a[o-1].x,s.y-a[o-1].y],i[i.length-1].deltas.push(n);break;case`qct`:var l=a[o-1].x+2/3*(s.x1-a[o-1].x),u=a[o-1].y+2/3*(s.y1-a[o-1].y),d=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),p=s.x,g=s.y;n=[l-a[o-1].x,u-a[o-1].y,d-a[o-1].x,f-a[o-1].y,p-a[o-1].x,g-a[o-1].y],i[i.length-1].deltas.push(n);break;case`arc`:i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=t?null:e===`stroke`?`stroke`:`fill`;for(var _=!1,v=0;v<i.length;v++)if(i[v].arc)for(var y=i[v].abs,b=0;b<y.length;b++){var x=y[b];x.type===`arc`?T.call(this,x.x,x.y,x.radius,x.startAngle,x.endAngle,x.counterclockwise,void 0,t,!_):A.call(this,x.x,x.y),_=!0}else if(!0===i[v].close)this.pdf.internal.out(`h`),_=!1;else if(!0!==i[v].begin){var S=i[v].start.x,C=i[v].start.y;j.call(this,i[v].deltas,S,C),_=!0}r&&E.call(this,r),t&&D.call(this)}},C=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case`bottom`:return e-n;case`top`:return e+t-n;case`hanging`:return e+t-2*n;case`middle`:return e+t/2-n;default:return e}},w=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return this.colorStops.length===0?`#000000`:this.colorStops[0][1]},e.isCanvasGradient=!0,e},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var T=function(e,t,n,r,i,a,o,s,c){for(var l=N.call(this,n,r,i,a),u=0;u<l.length;u++){var d=l[u];u===0&&(c?O.call(this,d.x1+e,d.y1+t):A.call(this,d.x1+e,d.y1+t)),M.call(this,e,t,d.x2,d.y2,d.x3,d.y3,d.x4,d.y4)}s?D.call(this):E.call(this,o)},E=function(e){switch(e){case`stroke`:this.pdf.internal.out(`S`);break;case`fill`:this.pdf.internal.out(`f`)}},D=function(){this.pdf.clip(),this.pdf.discardPath()},O=function(e,t){this.pdf.internal.out(n(e)+` `+i(t)+` m`)},k=function(e){var t;switch(e.align){case`right`:case`end`:t=`right`;break;case`center`:t=`center`;break;default:t=`left`}var n,r,i,a=this.pdf.getTextDimensions(e.text),o=C.call(this,e.y),u=w.call(this,o)-a.h,d=this.ctx.transform.applyToPoint(new s(e.x,o));if(this.autoPaging){var f=this.ctx.transform.decompose(),p=new l;p=(p=(p=p.multiply(f.translate)).multiply(f.skew)).multiply(f.scale);for(var m=this.ctx.transform.applyToRectangle(new c(e.x,o,a.w,a.h)),h=p.applyToRectangle(new c(e.x,u,a.w,a.h)),v=_.call(this,h),x=[],T=0;T<v.length;T+=1)x.indexOf(v[T])===-1&&x.push(v[T]);b(x);for(var E=x[0],D=x[x.length-1],O=E;O<D+1;O++){this.pdf.setPage(O);var k=O===1?this.posY+this.margin[0]:this.margin[0],A=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],j=this.pdf.internal.pageSize.height-this.margin[2],M=j-this.margin[0],N=this.pdf.internal.pageSize.width-this.margin[1],P=N-this.margin[3],F=O===1?0:A+(O-2)*M;if(this.ctx.clip_path.length!==0){var I=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(n,this.posX+this.margin[3],-1*F+k),S.call(this,`fill`,!0),this.path=I}var L=y([JSON.parse(JSON.stringify(h))],this.posX+this.margin[3],-F+k+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),i=this.lineWidth,this.lineWidth=i*e.scale);var ee=this.autoPaging!==`text`;if(ee||L.y+L.h<=j){if(ee||L.y>=k&&L.x<=N){var R=ee?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||N-L.x)[0],z=y([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-F+k+this.ctx.prevPageLastElemOffset)[0],B=ee&&(O>E||O<D)&&g.call(this);B&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],P,M,null).clip().discardPath()),this.pdf.text(R,z.x,z.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),B&&this.pdf.restoreGraphicsState()}}else L.y<j&&(this.ctx.prevPageLastElemOffset+=j-L.y);e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=i)}}else e.scale>=.01&&(r=this.pdf.internal.getFontSize(),this.pdf.setFontSize(r*e.scale),i=this.lineWidth,this.lineWidth=i*e.scale),this.pdf.text(e.text,d.x+this.posX,d.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(r),this.lineWidth=i)},A=function(e,t,r,a){r||=0,a||=0,this.pdf.internal.out(n(e+r)+` `+i(t+a)+` l`)},j=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},M=function(e,n,r,i,s,c,l,u){this.pdf.internal.out([t(a(r+e)),t(o(i+n)),t(a(s+e)),t(o(c+n)),t(a(l+e)),t(o(u+n)),`c`].join(` `))},N=function(e,t,n,r){for(var i=2*Math.PI,a=Math.PI/2;t>n;)t-=i;var o=Math.abs(n-t);o<i&&r&&(o=i-o);for(var s=[],c=r?-1:1,l=t;o>1e-5;){var u=l+c*Math.min(o,a);s.push(P.call(this,e,l,u)),o-=Math.abs(u-l),l=u}return s},P=function(e,t,n){var r=(n-t)/2,i=e*Math.cos(r),a=e*Math.sin(r),o=i,s=-a,c=o*o+s*s,l=c+o*i+s*a,u=4/3*(Math.sqrt(2*c*l)-l)/(o*a-s*i),d=o-u*s,f=s+u*o,p=d,m=-f,h=r+t,g=Math.cos(h),_=Math.sin(h);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:d*g-f*_,y2:d*_+f*g,x3:p*g-m*_,y3:p*_+m*g,x4:e*Math.cos(n),y4:e*Math.sin(n)}},F=function(e){return 180*e/Math.PI},I=function(e,t,n,r,i,a){var o=e+.5*(n-e),s=t+.5*(r-t),l=i+.5*(n-i),u=a+.5*(r-a),d=Math.min(e,i,o,l),f=Math.max(e,i,o,l),p=Math.min(t,a,s,u),m=Math.max(t,a,s,u);return new c(d,p,f-d,m-p)},L=function(e,t,n,r,i,a,o,s){var l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=n-e,w=r-t,T=i-n,E=a-r,D=o-i,O=s-a;for(u=0;u<41;u++)_=(h=(d=e+(l=u/40)*C)+l*((p=n+l*T)-d))+l*(p+l*(i+l*D-p)-h),v=(g=(f=t+l*w)+l*((m=r+l*E)-f))+l*(m+l*(a+l*O-m)-g),u==0?(y=_,b=v,x=_,S=v):(y=Math.min(y,_),b=Math.min(b,v),x=Math.max(x,_),S=Math.max(S,v));return new c(Math.round(y),Math.round(b),Math.round(x-y),Math.round(S-b))},ee=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}})(Z.API),function(e){var t=function(e){var t,n,r,i,a,o,s,c,l,u;for(/[^\x00-\xFF]/.test(e),n=[],r=0,i=(e+=t=`\0\0\0\0`.slice(e.length%4||4)).length;i>r;r+=4)(a=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))===0?n.push(122):(o=(a=((a=((a=((a=(a-(u=a%85))/85)-(l=a%85))/85)-(c=a%85))/85)-(s=a%85))/85)%85,n.push(o+33,s+33,c+33,l+33,u+33));return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+`~>`},n=function(e){var t,n,r,i,a,o=String,s=`length`,c=255,l=`charCodeAt`,u=`slice`,d=`replace`;for(e[u](-2),e=e[u](0,-2)[d](/\s/g,``)[d](`z`,`!!!!!`),r=[],i=0,a=(e+=t=`uuuuu`[u](e[s]%5||5))[s];a>i;i+=5)n=52200625*(e[l](i)-33)+614125*(e[l](i+1)-33)+7225*(e[l](i+2)-33)+85*(e[l](i+3)-33)+(e[l](i+4)-33),r.push(c&n>>24,c&n>>16,c&n>>8,c&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[s]),o.fromCharCode.apply(o,r)},r=function(e){return e.split(``).map(function(e){return(`0`+e.charCodeAt().toString(16)).slice(-2)}).join(``)+`>`},i=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((e=e.replace(/\s/g,``)).indexOf(`>`)!==-1&&(e=e.substr(0,e.indexOf(`>`))),e.length%2&&(e+=`0`),!1===t.test(e))return``;for(var n=``,r=0;r<e.length;r+=2)n+=String.fromCharCode(`0x`+(e[r]+e[r+1]));return n},a=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=po(t)).reduce(function(e,t){return e+String.fromCharCode(t)},``)};e.processDataByFilters=function(e,o){var s=0,c=e||``,l=[];for(typeof(o||=[])==`string`&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case`ASCII85Decode`:case`/ASCII85Decode`:c=n(c),l.push(`/ASCII85Encode`);break;case`ASCII85Encode`:case`/ASCII85Encode`:c=t(c),l.push(`/ASCII85Decode`);break;case`ASCIIHexDecode`:case`/ASCIIHexDecode`:c=i(c),l.push(`/ASCIIHexEncode`);break;case`ASCIIHexEncode`:case`/ASCIIHexEncode`:c=r(c),l.push(`/ASCIIHexDecode`);break;case`FlateEncode`:case`/FlateEncode`:c=a(c),l.push(`/FlateDecode`);break;default:throw Error(`The filter: "`+o[s]+`" is not implemented`)}return{data:c,reverseChain:l.reverse().join(` `)}}}(Z.API),function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n=typeof n==`function`?n:function(){};var r=void 0;try{r=function(e,t,n){var r=new XMLHttpRequest,i=0,a=function(e){var t=e.length,n=[],r=String.fromCharCode;for(i=0;i<t;i+=1)n.push(r(255&e.charCodeAt(i)));return n.join(``)};if(r.open(`GET`,e,!t),r.overrideMimeType(`text/plain; charset=x-user-defined`),!1===t&&(r.onload=function(){r.status===200?n(a(this.responseText)):n(void 0)}),r.send(null),t&&r.status===200)return a(r.responseText)}(e,t,n)}catch{}return r}(e,t,n)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(Z.API),function(e){function n(){return(X.html2canvas?Promise.resolve(X.html2canvas):_(()=>import(`./html2canvas-BioCIJao.js`).then(e=>t(e.default)),__vite__mapDeps([0,1]))).catch(function(e){return Promise.reject(Error(`Could not load html2canvas: `+e))}).then(function(e){return e.default?e.default:e})}function i(){return(X.DOMPurify?Promise.resolve(X.DOMPurify):_(()=>import(`./purify.es-BIPMmIPG.js`),[])).catch(function(e){return Promise.reject(Error(`Could not load dompurify: `+e))}).then(function(e){return e.default?e.default:e})}var a=function(e){var t=r(e);return t===`undefined`?`undefined`:t===`string`||e instanceof String?`string`:t===`number`||e instanceof Number?`number`:t===`function`||e instanceof Function?`function`:e&&e.constructor===Array?`array`:e&&e.nodeType===1?`element`:t===`object`?`object`:`unknown`},o=function(e,t){var n=document.createElement(e);for(var r in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[r]=t.style[r];return n},s=function e(t,n){for(var r=t.nodeType===3?document.createTextNode(t.nodeValue):t.cloneNode(!1),i=t.firstChild;i;i=i.nextSibling)!0!==n&&i.nodeType===1&&i.nodeName===`SCRIPT`||r.appendChild(e(i,n));return t.nodeType===1&&(t.nodeName===`CANVAS`?(r.width=t.width,r.height=t.height,r.getContext(`2d`).drawImage(t,0,0)):t.nodeName!==`TEXTAREA`&&t.nodeName!==`SELECT`||(r.value=t.value),r.addEventListener(`load`,function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft},!0)),r},c=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(e,t){return e.__proto__=t||c.prototype,e},c.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`}},c.prototype.from=function(e,t){return this.then(function(){switch(t||=function(e){switch(a(e)){case`string`:return`string`;case`element`:return e.nodeName.toLowerCase()===`canvas`?`canvas`:`element`;default:return`unknown`}}(e),t){case`string`:return this.then(i).then(function(t){return this.set({src:o(`div`,{innerHTML:e,dompurify:t})})});case`element`:return this.set({src:e});case`canvas`:return this.set({canvas:e});case`img`:return this.set({img:e});default:return this.error(`Unknown source type.`)}})},c.prototype.to=function(e){switch(e){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.`)}},c.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 e={position:`relative`,display:`inline-block`,width:(typeof this.opt.width!=`number`||isNaN(this.opt.width)||typeof this.opt.windowWidth!=`number`||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},t=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);t.tagName===`BODY`&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+`px`),this.prop.overlay=o(`div`,{className:`html2pdf__overlay`,style:{position:`fixed`,overflow:`hidden`,zIndex:1e3,left:`-100000px`,right:0,bottom:0,top:0}}),this.prop.container=o(`div`,{className:`html2pdf__container`,style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(o(`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`})},c.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(n).then(function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},c.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(n).then(function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,r=typeof this.opt.width!=`number`||isNaN(this.opt.width)||typeof this.opt.windowWidth!=`number`||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:r,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 i.onrendered,t.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var a=0;a<n.length;++a){var o=n[a],s=o.src.find(function(e){return e.format===`truetype`});s&&t.addFont(s.url,o.ref.name,o.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=i.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,t.context2d.save(!0),e(this.prop.container,i)}).then(function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL(`image/`+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement(`img`),this.prop.img.src=e})},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},c.prototype.output=function(e,t,n){return(n||=`pdf`).toLowerCase()===`img`||n.toLowerCase()===`image`?this.outputImg(e,t):this.outputPdf(e,t)},c.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(e,t)})},c.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){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 "`+e+`" is not supported.`}})},c.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},c.prototype.set=function(e){if(a(e)!==`object`)return this;var t=Object.keys(e||{}).map(function(t){if(t in c.template.prop)return function(){this.prop[t]=e[t]};switch(t){case`margin`:return this.setMargin.bind(this,e.margin);case`jsPDF`:return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case`pageSize`:return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},c.prototype.get=function(e,t){return this.then(function(){var n=e in c.template.prop?this.prop[e]:this.opt[e];return t?t(n):n})},c.prototype.setMargin=function(e){return this.then(function(){switch(a(e)){case`number`:e=[e,e,e,e];case`array`:if(e.length===2&&(e=[e[0],e[1],e[0],e[1]]),e.length===4)break;default:return this.error(`Invalid margin array.`)}this.opt.margin=e}).then(this.setPageSize)},c.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then(function(){(e||=Z.getPageSize(this.opt.jsPDF)).hasOwnProperty(`inner`)||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},c.prototype.setProgress=function(e,t,n,r){return e!=null&&(this.progress.val=e),t!=null&&(this.progress.state=t),n!=null&&(this.progress.n=n),r!=null&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},c.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(e){return n.updateProgress(1),e})})},c.prototype.thenCore=function(e,t,n){n||=Promise.prototype.then;var r=this;e&&=e.bind(r),t&&=t.bind(r);var i=Promise.toString().indexOf(`[native code]`)!==-1&&Promise.name===`Promise`?r:c.convert(Object.assign({},r),Promise.prototype),a=n.call(i,e,t);return c.convert(a,r.__proto__)},c.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},c.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},c.prototype.catch=function(e){e&&=e.bind(this);var t=Promise.prototype.catch.call(this,e);return c.convert(t,this)},c.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},c.prototype.error=function(e){return this.then(function(){throw Error(e)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,Z.getPageSize=function(e,t,n){if(r(e)===`object`){var i=e;e=i.orientation,t=i.unit||t,n=i.format||n}t||=`mm`,n||=`a4`,e=(``+(e||`P`)).toLowerCase();var a,o=(``+n).toLowerCase(),s={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(t){case`pt`:a=1;break;case`mm`:a=72/25.4;break;case`cm`:a=72/2.54;break;case`in`:a=72;break;case`px`:a=.75;break;case`pc`:case`em`:a=12;break;case`ex`:a=6;break;default:throw`Invalid unit: `+t}var c,l=0,u=0;if(s.hasOwnProperty(o))l=s[o][1]/a,u=s[o][0]/a;else try{l=n[1],u=n[0]}catch{throw Error(`Invalid format: `+n)}if(e===`p`||e===`portrait`)e=`p`,u>l&&(c=u,u=l,l=c);else{if(e!==`l`&&e!==`landscape`)throw`Invalid orientation: `+e;e=`l`,l>u&&(c=u,u=l,l=c)}return{width:u,height:l,unit:t,k:a,orientation:e}},e.html=function(e,t){(t||={}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Vp):null;var n=new c(t);return t.worker?n:n.from(e).doCallback()}}(Z.API),Z.API.addJS=function(e){var t,n,r=function(e){for(var t=``,n=0;n<e.length;n++){var r=e[n];if(r===`(`||r===`)`){for(var i=0,a=n-1;a>=0&&e[a]===`\\`;a--)i++;t+=i%2==0?`\\`+r:r}else t+=r}return t}(e);return this.internal.events.subscribe(`postPutResources`,function(){t=this.internal.newObject(),this.internal.out(`<<`),this.internal.out(`/Names [(EmbeddedJS) `+(t+1)+` 0 R]`),this.internal.out(`>>`),this.internal.out(`endobj`),n=this.internal.newObject(),this.internal.out(`<<`),this.internal.out(`/S /JavaScript`),this.internal.out(`/JS (`+r+`)`),this.internal.out(`>>`),this.internal.out(`endobj`)}),this.internal.events.subscribe(`putCatalog`,function(){t!==void 0&&n!==void 0&&this.internal.out(`/Names <</JavaScript `+t+` 0 R>>`)}),this},function(e){var t;e.events.push([`postPutResources`,function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),i=0;i<r.length;i++){var a=r[i],o=n.exec(a);if(o!=null){var s=o[1];e.internal.newObjectDeferredBegin(s,!1)}e.internal.write(a)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,l=[];for(i=0;i<c;i++){var u=e.internal.newObject();l.push(u);var d=e.internal.getPageInfo(i+1);e.internal.write(`<< /D[`+d.objId+` 0 R /XYZ null null null]>> endobj`)}var f=e.internal.newObject();for(e.internal.write(`<< /Names [ `),i=0;i<l.length;i++)e.internal.write(`(page_`+(i+1)+`)`+l[i]+` 0 R`);e.internal.write(` ] >>`,`endobj`),t=e.internal.newObject(),e.internal.write(`<< /Dests `+f+` 0 R`),e.internal.write(`>>`,`endobj`)}}]),e.events.push([`putCatalog`,function(){var e=this;e.outline.root.children.length>0&&(e.internal.write(`/Outlines`,this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write(`/Names `+t+` 0 R`))}]),e.events.push([`initialized`,function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return e??=this.root,e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val=``,this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line(`/Type /Outlines`),e.children.length>0&&(this.line(`/First `+this.makeRef(e.children[0])),this.line(`/Last `+this.makeRef(e.children[e.children.length-1]))),this.line(`/Count `+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var i=t.children[r];this.objStart(i),this.line(`/Title `+this.makeString(i.title)),this.line(`/Parent `+this.makeRef(t)),r>0&&this.line(`/Prev `+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line(`/Next `+this.makeRef(t.children[r+1])),i.children.length>0&&(this.line(`/First `+this.makeRef(i.children[0])),this.line(`/Last `+this.makeRef(i.children[i.children.length-1])));var a=this.count=this.count_r({count:0},i);if(a>0&&this.line(`/Count `+a),i.options&&i.options.pageNumber){var o=e.internal.getPageInfo(i.options.pageNumber);this.line(`/Dest [`+o.objId+` 0 R /XYZ 0 `+n(0)+` 0]`)}this.objEnd()}for(var s=0;s<t.children.length;s++)this.renderItems(t.children[s])},e.outline.line=function(e){this.ctx.val+=e+`\r
|
|
61
|
+
`},e.outline.makeRef=function(e){return e.id+` 0 R`},e.outline.makeString=function(t){return`(`+e.internal.pdfEscape(t)+`)`},e.outline.objStart=function(e){this.ctx.val+=`\r
|
|
62
|
+
`+e.id+` 0 obj\r
|
|
63
|
+
<<\r
|
|
64
|
+
`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
65
|
+
endobj\r
|
|
66
|
+
`},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(Z.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,r,i,a,o){var s,c=this.decode.DCT_DECODE,l=null;if(typeof e==`string`||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=a||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,s=function(e){for(var n,r=256*e.charCodeAt(4)+e.charCodeAt(5),i=e.length,a={width:0,height:0,numcomponents:1},o=4;o<i;o+=2){if(o+=r,t.indexOf(e.charCodeAt(o+1))!==-1){n=256*e.charCodeAt(o+5)+e.charCodeAt(o+6),a={width:256*e.charCodeAt(o+7)+e.charCodeAt(o+8),height:n,numcomponents:e.charCodeAt(o+9)};break}r=256*e.charCodeAt(o+2)+e.charCodeAt(o+3)}return a}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),s.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}l={data:e,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:c,index:n,alias:r}}return l}}(Z.API),Z.API.processPNG=function(e,t,n,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,a=gf(e,{checkCrc:!0}),o=a.width,s=a.height,c=a.channels,l=a.palette,u=a.depth;i=l&&c===1?function(e){for(var t=e.width,n=e.height,r=e.data,i=e.palette,a=e.depth,o=!1,s=[],c=[],l=void 0,u=!1,d=0,f=0;f<i.length;f++){var p=bo(i[f],4),m=p[0],h=p[1],g=p[2],_=p[3];s.push(m,h,g),_!=null&&(_===0?(d++,c.length<1&&c.push(f)):_<255&&(u=!0))}if(u||d>1){o=!0,c=void 0;var v=t*n;l=new Uint8Array(v);for(var y=new DataView(r.buffer),b=0;b<v;b++){var x=bo(i[lm(y,b,a)],4)[3];l[b]=x}}else d===0&&(c=void 0);return{colorSpace:`Indexed`,colorsPerPixel:1,sMaskBitsPerComponent:o?8:void 0,colorBytes:r,alphaBytes:l,needSMask:o,palette:s,mask:c}}(a):c===2||c===4?function(e){for(var t=e.data,n=e.width,r=e.height,i=e.channels,a=e.depth,o=i===2?`DeviceGray`:`DeviceRGB`,s=i-1,c=n*r,l=s,u=c*l,d=1*c,f=Math.ceil(u*a/8),p=Math.ceil(d*a/8),m=new Uint8Array(f),h=new Uint8Array(p),g=new DataView(t.buffer),_=new DataView(m.buffer),v=new DataView(h.buffer),y=!1,b=0;b<c;b++){for(var x=b*i,S=0;S<l;S++)um(_,lm(g,x+S,a),b*l+S,a);var C=lm(g,x+l,a);C<(1<<a)-1&&(y=!0),um(v,C,1*b,a)}return{colorSpace:o,colorsPerPixel:s,sMaskBitsPerComponent:y?a:void 0,colorBytes:m,alphaBytes:h,needSMask:y}}(a):function(e){var t=e.data,n=e.channels===1?`DeviceGray`:`DeviceRGB`;return{colorSpace:n,colorsPerPixel:n===`DeviceGray`?1:3,colorBytes:t instanceof Uint16Array?function(e){for(var t=e.length,n=new Uint8Array(2*t),r=new DataView(n.buffer,n.byteOffset,n.byteLength),i=0;i<t;i++)r.setUint16(2*i,e[i],!1);return n}(t):t,needSMask:!1}}(a);var d,f,p,m=i,h=m.colorSpace,g=m.colorsPerPixel,_=m.sMaskBitsPerComponent,v=m.colorBytes,y=m.alphaBytes,b=m.needSMask,x=m.palette,S=m.mask,C=null;return r!==Z.API.image_compression.NONE&&typeof po==`function`?(C=function(e){var t;switch(e){case Z.API.image_compression.FAST:t=11;break;case Z.API.image_compression.MEDIUM:t=13;break;case Z.API.image_compression.SLOW:t=14;break;default:t=12}return t}(r),d=this.decode.FLATE_DECODE,f=`/Predictor ${C} /Colors ${g} /BitsPerComponent ${u} /Columns ${o}`,e=tm(v,Math.ceil(o*g*u/8),g,u,r),b&&(p=tm(y,Math.ceil(o*_/8),1,_,r))):(d=void 0,f=void 0,e=v,b&&(p=y)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:n,data:e,index:t,filter:d,decodeParameters:f,transparency:S,palette:x,sMask:p,predictor:C,width:o,height:s,bitsPerComponent:u,sMaskBitsPerComponent:_,colorSpace:h}}},function(e){e.processGIF89A=function(t,n,r,i){var a=new fm(t),o=a.width,s=a.height,c=[];a.decodeAndBlitFrameRGBA(0,c);var l={data:c,width:o,height:s},u=new mm(100).encode(l,100);return e.processJPEG.call(this,u,n,r,i)},e.processGIF87A=e.processGIF89A}(Z.API),hm.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,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},hm.prototype.parseBGR=function(){this.pos=this.offset;var e=`bit`+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw Error(`Image dimensions exceed 512MB, which is too large.`);this.data=new Uint8Array(t);try{this[e]()}catch(e){vf.log(`bit decode error:`+e)}},hm.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var c=this.palette[a>>7-s&1];this.data[o+4*s]=c.blue,this.data[o+4*s+1]=c.green,this.data[o+4*s+2]=c.red,this.data[o+4*s+3]=255}n!==0&&(this.pos+=4-n)}},hm.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=a>>4,c=15&a,l=this.palette[s];if(this.data[o]=l.blue,this.data[o+1]=l.green,this.data[o+2]=l.red,this.data[o+3]=255,2*i+1>=this.width)break;l=this.palette[c],this.data[o+4]=l.blue,this.data[o+4+1]=l.green,this.data[o+4+2]=l.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},hm.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},hm.prototype.bit15=function(){for(var e=this.width%3,t=31,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,c=(a>>10&t)/t*255|0,l=a>>15?255:0,u=r*this.width*4+4*i;this.data[u]=c,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=l}this.pos+=e}},hm.prototype.bit16=function(){for(var e=this.width%3,t=31,n=63,r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,c=(o>>5&n)/n*255|0,l=(o>>11)/t*255|0,u=i*this.width*4+4*a;this.data[u]=l,this.data[u+1]=c,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},hm.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*n;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},hm.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},hm.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,i){var a=new hm(t,!1),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},l=new mm(100).encode(c,100);return e.processJPEG.call(this,l,n,r,i)}}(Z.API),gm.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,i){var a=new gm(t),o=a.width,s=a.height,c={data:a.getData(),width:o,height:s},l=new mm(100).encode(c,100);return e.processJPEG.call(this,l,n,r,i)}}(Z.API),Z.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,c=0,l=0;l<i;l+=4){var u=r[l],d=r[l+1],f=r[l+2],p=r[l+3];a[s++]=u,a[s++]=d,a[s++]=f,o[c++]=p}var m=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:m,index:t,alias:n,colorSpace:`DeviceRGB`,bitsPerComponent:8,width:e.width,height:e.height}},Z.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{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`}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,!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},Yp=Z.API,Xp=Yp.getCharWidthsArray=function(e,t){var n,i,a=(t||={}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),c=t.widths?t.widths:a.metadata.Unicode.widths,l=c.fof?c.fof:1,u=t.kerning?t.kerning:a.metadata.Unicode.kerning,d=u.fof?u.fof:1,f=!1!==t.doKerning,p=0,m=e.length,h=0,g=c[0]||l,_=[];for(n=0;n<m;n++)i=e.charCodeAt(n),typeof a.metadata.widthOfString==`function`?_.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i))+1e3/o*s||0)/1e3):(p=f&&r(u[i])===`object`&&!isNaN(parseInt(u[i][h],10))?u[i][h]/d:0,_.push((c[i]||g)/l+p)),h=i;return _},Zp=Yp.getStringUnitWidth=function(e,t){var n=(t||={}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Yp.processArabic&&(e=Yp.processArabic(e)),typeof r.metadata.widthOfString==`function`?r.metadata.widthOfString(e,n,i)/n:Xp.apply(this,arguments).reduce(function(e,t){return e+t},0)},Qp=function(e,t,n,r){for(var i=[],a=0,o=e.length,s=0;a!==o&&s+t[a]<n;)s+=t[a],a++;i.push(e.slice(0,a));var c=a;for(s=0;a!==o;)s+t[a]>r&&(i.push(e.slice(c,a)),s=0,c=a),s+=t[a],a++;return c!==a&&i.push(e.slice(c,a)),i},$p=function(e,t,n){n||={};var r,i,a,o,s,c,l,u=[],d=[u],f=n.textIndent||0,p=0,m=0,h=e.split(` `),g=Xp.apply(this,[` `,n])[0];if(c=n.lineIndent===-1?h[0].length+2:n.lineIndent||0){var _=Array(c).join(` `),v=[];h.map(function(e){(e=e.split(/\s*\n/)).length>1?v=v.concat(e.map(function(e,t){return(t&&e.length?`
|
|
67
|
+
`:``)+e})):v.push(e[0])}),h=v,c=Zp.apply(this,[_,n])}for(a=0,o=h.length;a<o;a++){var y=0;if(r=h[a],c&&r[0]==`
|
|
68
|
+
`&&(r=r.substr(1),y=1),f+p+(m=(i=Xp.apply(this,[r,n])).reduce(function(e,t){return e+t},0))>t||y){if(m>t){for(s=Qp.apply(this,[r,i,t-(f+p),t]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);m=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(e,t){return e+t},0)}else u=[r];d.push(u),f=m+c,p=g}else u.push(r),f+=p+m,p=g}return l=c?function(e,t){return(t?_:``)+e.join(` `)}:function(e){return e.join(` `)},d.map(l)},Yp.splitTextToSize=function(e,t,n){var r,i=(n||={}).fontSize||this.internal.getFontSize(),a=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle),n=`Unicode`;return t.metadata[n]?{widths:t.metadata[n].widths||{0:1},kerning:t.metadata[n].kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,c,l=[];for(s=0,c=r.length;s<c;s++)l=l.concat($p.apply(this,[r[s],o,a]));return l},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t=`0123456789abcdef`,n=`klmnopqrstuvwxyz`,i={},a={},o=0;o<16;o++)i[n[o]]=t[o],a[t[o]]=n[o];var s=function(e){return`0x`+parseInt(e,10).toString(16)},c=e.__fontmetrics__.compress=function(e){var t,n,i,o,l=[`{`];for(var u in e){if(t=e[u],isNaN(parseInt(u,10))?n=`'`+u+`'`:(u=parseInt(u,10),n=(n=s(u).slice(2)).slice(0,-1)+a[n.slice(-1)]),typeof t==`number`)t<0?(i=s(t).slice(3),o=`-`):(i=s(t).slice(2),o=``),i=o+i.slice(0,-1)+a[i.slice(-1)];else{if(r(t)!==`object`)throw Error(`Don't know what to do with value type `+r(t)+`.`);i=c(t)}l.push(n+i)}return l.push(`}`),l.join(``)},l=e.__fontmetrics__.uncompress=function(e){if(typeof e!=`string`)throw Error(`Invalid argument passed to uncompress.`);for(var t,n,r,a,o={},s=1,c=o,l=[],u=``,d=``,f=e.length-1,p=1;p<f;p+=1)(a=e[p])==`'`?t?(r=t.join(``),t=void 0):t=[]:t?t.push(a):a==`{`?(l.push([c,r]),c={},r=void 0):a==`}`?((n=l.pop())[0][n[1]]=c,r=void 0,c=n[0]):a==`-`?s=-1:r===void 0?i.hasOwnProperty(a)?(u+=i[a],r=parseInt(u,16)*s,s=1,u=``):u+=a:i.hasOwnProperty(a)?(d+=i[a],c[r]=parseInt(d,16)*s,s=1,r=void 0,d=``):d+=a;return o},u={codePages:[`WinAnsiEncoding`],WinAnsiEncoding:l(`{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}`)},d={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},f={Unicode:{"Courier-Oblique":l(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Times-BoldItalic":l(`{'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":l(`{'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:l(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Courier-BoldOblique":l(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Times-Bold":l(`{'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:l(`{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}`),Helvetica:l(`{'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":l(`{'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:l(`{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}`),"Courier-Bold":l(`{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}`),"Times-Italic":l(`{'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":l(`{'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":l(`{'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}}}`)}};e.events.push([`addFont`,function(e){var t=e.font,n=f.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var r=d.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(Z.API),function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n};e.API.events.push([`addFont`,function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(a===void 0)throw Error(`Font does not exist in vFS, import fonts or remove declaration doc.addFont('`+i.postScriptName+`').`);if(typeof(r=!1===a.existsFileInVFS(i.postScriptName)?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!=`string`)throw Error(`Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('`+i.postScriptName+`').`);(function(n,r){r=/^\x00\x01\x00\x00/.test(r)?t(r):t(wf(r)),n.metadata=e.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]})(i,r)}}])}(Z),Z.API.addSvgAsImage=function(e,t,n,r,i,a,o,s){if(isNaN(t)||isNaN(n))throw vf.error(`jsPDF.addSvgAsImage: Invalid coordinates`,arguments),Error(`Invalid coordinates passed to jsPDF.addSvgAsImage`);if(isNaN(r)||isNaN(i))throw vf.error(`jsPDF.addSvgAsImage: Invalid measurements`,arguments),Error(`Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage`);var c=document.createElement(`canvas`);c.width=r,c.height=i;var l=c.getContext(`2d`);l.fillStyle=`#fff`,l.fillRect(0,0,c.width,c.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return(X.canvg?Promise.resolve(X.canvg):_(()=>import(`./index.es-CT2S0Jlh.js`),__vite__mapDeps([2,1,3]))).catch(function(e){return Promise.reject(Error(`Could not load canvg: `+e))}).then(function(e){return e.default?e.default:e}).then(function(t){return t.fromString(l,e,u)},function(){return Promise.reject(Error(`Could not load canvg.`))}).then(function(e){return e.render(u)}).then(function(){d.addImage(c.toDataURL(`image/jpeg`,1),t,n,r,i,o,s)})},Z.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,`g`),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),`g`),n=this.pdfEscape16(this.internal.getNumberOfPages()+``,this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},Z.API.viewerPreferences=function(e,t){var n;e||={},t||=!1;var i,a,o,s={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}},c=Object.keys(s),l=[],u=0,d=0,f=0;function p(e,t){var n,r=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(r=!0);return r}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e===`reset`||!0===t){var m=c.length;for(f=0;f<m;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1}if(r(e)===`object`){for(a in e)if(o=e[a],p(c,a)&&o!==void 0){if(n[a].type===`boolean`&&typeof o==`boolean`)n[a].value=o;else if(n[a].type===`name`&&p(n[a].valueSet,o))n[a].value=o;else if(n[a].type===`integer`&&Number.isInteger(o))n[a].value=o;else if(n[a].type===`array`){for(u=0;u<o.length;u+=1)if(i=!0,o[u].length===1&&typeof o[u][0]==`number`)l.push(String(o[u]-1));else if(o[u].length>1){for(d=0;d<o[u].length;d+=1)typeof o[u][d]!=`number`&&(i=!1);!0===i&&l.push([o[u][0]-1,o[u][1]-1].join(` `))}n[a].value=`[`+l.join(` `)+`]`}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0}}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe(`putCatalog`,function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&(n[e].type===`name`?t.push(`/`+e+` /`+n[e].value):t.push(`/`+e+` `+n[e].value));t.length!==0&&this.internal.write(`/ViewerPreferences
|
|
69
|
+
<<
|
|
70
|
+
`+t.join(`
|
|
71
|
+
`)+`
|
|
72
|
+
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Z.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??`http://jspdf.default.namespaceuri/`,rawXml:typeof t==`boolean`&&t},this.internal.events.subscribe(`putCatalog`,vm),this.internal.events.subscribe(`postPutResources`,_m)),this},function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,i=[``,`0`,`00`,`000`,`0000`],a=[``],o=0,s=e.length;o<s;++o){if(n=t.metadata.characterToGlyph(e.charCodeAt(o)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(o),r.indexOf(n)==-1&&(r.push(n),r.push([parseInt(t.metadata.widthOfGlyph(n),10)])),n==`0`)return a.join(``);n=n.toString(16),a.push(i[4-n.length],n)}return a.join(``)},r=function(e){var t,n,r,i,a,o,s;for(a=`/CIDInit /ProcSet findresource begin
|
|
73
|
+
12 dict begin
|
|
74
|
+
begincmap
|
|
75
|
+
/CIDSystemInfo <<
|
|
76
|
+
/Registry (Adobe)
|
|
77
|
+
/Ordering (UCS)
|
|
78
|
+
/Supplement 0
|
|
79
|
+
>> def
|
|
80
|
+
/CMapName /Adobe-Identity-UCS def
|
|
81
|
+
/CMapType 2 def
|
|
82
|
+
1 begincodespacerange
|
|
83
|
+
<0000><ffff>
|
|
84
|
+
endcodespacerange`,r=[],o=0,s=(n=Object.keys(e).sort(function(e,t){return e-t})).length;o<s;o++)t=n[o],r.length>=100&&(a+=`
|
|
85
|
+
`+r.length+` beginbfchar
|
|
86
|
+
`+r.join(`
|
|
87
|
+
`)+`
|
|
88
|
+
endbfchar`,r=[]),e[t]!==void 0&&e[t]!==null&&typeof e[t].toString==`function`&&(i=(`0000`+e[t].toString(16)).slice(-4),t=(`0000`+(+t).toString(16)).slice(-4),r.push(`<`+t+`><`+i+`>`));return r.length&&(a+=`
|
|
89
|
+
`+r.length+` beginbfchar
|
|
90
|
+
`+r.join(`
|
|
91
|
+
`)+`
|
|
92
|
+
endbfchar
|
|
93
|
+
`),a+`endcmap
|
|
94
|
+
CMapName currentdict /CMap defineresource pop
|
|
95
|
+
end
|
|
96
|
+
end`};t.events.push([`putFont`,function(t){(function(t){var n=t.font,i=t.out,a=t.newObject,o=t.putStream;if(n.metadata instanceof e.API.TTFFont&&n.encoding===`Identity-H`){for(var s=n.metadata.Unicode.widths,c=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),l=``,u=0;u<c.length;u++)l+=String.fromCharCode(c[u]);var d=a();o({data:l,addLength1:!0,objectId:d}),i(`endobj`);var f=a();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:f}),i(`endobj`);var p=a();i(`<<`),i(`/Type /FontDescriptor`),i(`/FontName /`+Uf(n.fontName)),i(`/FontFile2 `+d+` 0 R`),i(`/FontBBox `+e.API.PDFObject.convert(n.metadata.bbox)),i(`/Flags `+n.metadata.flags),i(`/StemV `+n.metadata.stemV),i(`/ItalicAngle `+n.metadata.italicAngle),i(`/Ascent `+n.metadata.ascender),i(`/Descent `+n.metadata.decender),i(`/CapHeight `+n.metadata.capHeight),i(`>>`),i(`endobj`);var m=a();i(`<<`),i(`/Type /Font`),i(`/BaseFont /`+Uf(n.fontName)),i(`/FontDescriptor `+p+` 0 R`),i(`/W `+e.API.PDFObject.convert(s)),i(`/CIDToGIDMap /Identity`),i(`/DW 1000`),i(`/Subtype /CIDFontType2`),i(`/CIDSystemInfo`),i(`<<`),i(`/Supplement 0`),i(`/Registry (Adobe)`),i(`/Ordering (`+n.encoding+`)`),i(`>>`),i(`>>`),i(`endobj`),n.objectNumber=a(),i(`<<`),i(`/Type /Font`),i(`/Subtype /Type0`),i(`/ToUnicode `+f+` 0 R`),i(`/BaseFont /`+Uf(n.fontName)),i(`/Encoding /`+n.encoding),i(`/DescendantFonts [`+m+` 0 R]`),i(`>>`),i(`endobj`),n.isAlreadyPutted=!0}})(t)}]),t.events.push([`putFont`,function(t){(function(t){var n=t.font,i=t.out,a=t.newObject,o=t.putStream;if(n.metadata instanceof e.API.TTFFont&&n.encoding===`WinAnsiEncoding`){for(var s=n.metadata.rawData,c=``,l=0;l<s.length;l++)c+=String.fromCharCode(s[l]);var u=a();o({data:c,addLength1:!0,objectId:u}),i(`endobj`);var d=a();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),i(`endobj`);var f=a();i(`<<`),i(`/Descent `+n.metadata.decender),i(`/CapHeight `+n.metadata.capHeight),i(`/StemV `+n.metadata.stemV),i(`/Type /FontDescriptor`),i(`/FontFile2 `+u+` 0 R`),i(`/Flags 96`),i(`/FontBBox `+e.API.PDFObject.convert(n.metadata.bbox)),i(`/FontName /`+Uf(n.fontName)),i(`/ItalicAngle `+n.metadata.italicAngle),i(`/Ascent `+n.metadata.ascender),i(`>>`),i(`endobj`),n.objectNumber=a();for(var p=0;p<n.metadata.hmtx.widths.length;p++)n.metadata.hmtx.widths[p]=parseInt(n.metadata.hmtx.widths[p]*(1e3/n.metadata.head.unitsPerEm));i(`<</Subtype/TrueType/Type/Font/ToUnicode `+d+` 0 R/BaseFont/`+Uf(n.fontName)+`/FontDescriptor `+f+` 0 R/Encoding/`+n.encoding+` /FirstChar 29 /LastChar 255 /Widths `+e.API.PDFObject.convert(n.metadata.hmtx.widths)+`>>`),i(`endobj`),n.isAlreadyPutted=!0}})(t)}]);var i=function(e){var t,r=e.text||``,i=e.x,a=e.y,o=e.options||{},s=e.mutex||{},c=s.pdfEscape,l=s.activeFontKey,u=s.fonts,d=l,f=``,p=0,m=``,h=u[d].encoding;if(u[d].encoding!==`Identity-H`)return{text:r,x:i,y:a,options:o,mutex:s};for(m=r,d=l,Array.isArray(r)&&(m=r[0]),p=0;p<m.length;p+=1)u[d].metadata.hasOwnProperty(`cmap`)&&(t=u[d].metadata.cmap.unicode.codeMap[m[p].charCodeAt(0)]),t||m[p].charCodeAt(0)<256&&u[d].metadata.hasOwnProperty(`Unicode`)?f+=m[p]:f+=``;var g=``;return parseInt(d.slice(1))<14||h===`WinAnsiEncoding`?g=c(f,d).split(``).map(function(e){return e.charCodeAt(0).toString(16)}).join(``):h===`Identity-H`&&(g=n(f,u[d])),s.isHex=!0,{text:g,x:i,y:a,options:o,mutex:s}};t.events.push([`postProcessText`,function(e){var t=e.text||``,n=[],r={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var a=0;for(a=0;a<t.length;a+=1)Array.isArray(t[a])&&t[a].length===3?n.push([i(Object.assign({},r,{text:t[a][0]})).text,t[a][1],t[a][2]]):n.push(i(Object.assign({},r,{text:t[a]})).text);e.text=n}else e.text=i(Object.assign({},r,{text:t})).text}])}(Z),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]===void 0?null:this.internal.vFS[e]}}(Z.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,i,a,o,s,c,l=t,u=[[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]],d=[[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]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},m=`(.).(.<.>.<.[.].[.{.}.{.«.».«.‹.›.‹.⁅.⁆.⁅.⁽.⁾.⁽.₍.₎.₍.≤.≥.≤.〈.〉.〈.﹙.﹚.﹙.﹛.﹜.﹛.﹝.﹞.﹝.﹤.﹥.﹤`.split(`.`),h=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)$/),g=!1,_=0;this.__bidiEngine__={};var v=function(e){var t=e.charCodeAt(),n=t>>8,r=p[n];return r===void 0?n===252||n===253?`AL`:h.test(n)?`L`:n===8?`R`:`N`:l[256*r+(255&t)]},y=function(e){for(var t,n=0;n<e.length;n++){if((t=v(e.charAt(n)))===`L`)return!1;if(t===`R`)return!0}return!1},b=function(e,t,o,s){var c,l,u,d,f=t[s];switch(f){case`L`:case`R`:case`LRE`:case`RLE`:case`LRO`:case`RLO`:case`PDF`:g=!1;break;case`N`:case`AN`:break;case`EN`:g&&(f=`AN`);break;case`AL`:g=!0,f=`R`;break;case`WS`:case`BN`:f=`N`;break;case`CS`:s<1||s+1>=t.length||(c=o[s-1])!==`EN`&&c!==`AN`||(l=t[s+1])!==`EN`&&l!==`AN`?f=`N`:g&&(l=`AN`),f=l===c?l:`N`;break;case`ES`:f=(c=s>0?o[s-1]:`B`)===`EN`&&s+1<t.length&&t[s+1]===`EN`?`EN`:`N`;break;case`ET`:if(s>0&&o[s-1]===`EN`){f=`EN`;break}if(g){f=`N`;break}for(u=s+1,d=t.length;u<d&&t[u]===`ET`;)u++;f=u<d&&t[u]===`EN`?`EN`:`N`;break;case`NSM`:if(i&&!a){for(d=t.length,u=s+1;u<d&&t[u]===`NSM`;)u++;if(u<d){var p=e[s],m=p>=1425&&p<=2303||p===64286;if(c=t[u],m&&(c===`R`||c===`AL`)){f=`R`;break}}}f=s<1||(c=t[s-1])===`B`?`N`:o[s-1];break;case`B`:g=!1,n=!0,f=_;break;case`S`:r=!0,f=`N`}return f},x=function(e,t,n){var r=e.split(``);return n&&S(r,n,{hiLevel:_}),r.reverse(),t&&t.reverse(),r.join(``)},S=function(e,t,i){var a,o,s,c,l,p=-1,m=e.length,h=0,y=[],x=_?d:u,S=[];for(g=!1,n=!1,r=!1,o=0;o<m;o++)S[o]=v(e[o]);for(s=0;s<m;s++){if(l=h,y[s]=b(e,S,y,s),a=240&(h=x[l][f[y[s]]]),h&=15,t[s]=c=x[h][5],a>0)if(a===16){for(o=p;o<s;o++)t[o]=1;p=-1}else p=-1;if(x[h][6])p===-1&&(p=s);else if(p>-1){for(o=p;o<s;o++)t[o]=c;p=-1}S[s]===`B`&&(t[s]=0),i.hiLevel|=c}r&&function(e,t,n){for(var r=0;r<n;r++)if(e[r]===`S`){t[r]=_;for(var i=r-1;i>=0&&e[i]===`WS`;i--)t[i]=_}}(S,t,m)},C=function(e,t,r,i,a){if(!(a.hiLevel<e)){if(e===1&&_===1&&!n)return t.reverse(),void(r&&r.reverse());for(var o,s,c,l,u=t.length,d=0;d<u;){if(i[d]>=e){for(c=d+1;c<u&&i[c]>=e;)c++;for(l=d,s=c-1;l<s;l++,s--)o=t[l],t[l]=t[s],t[s]=o,r&&(o=r[l],r[l]=r[s],r[s]=o);d=c}d++}}},w=function(e,t,n){var r=e.split(``),i={hiLevel:_};return n||=[],S(r,n,i),function(e,t,n){if(n.hiLevel!==0&&c)for(var r,i=0;i<e.length;i++)t[i]===1&&(r=m.indexOf(e[i]))>=0&&(e[i]=m[r+1])}(r,n,i),C(2,r,t,n,i),C(1,r,t,n,i),r.join(``)};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;a===void 0&&(a=y(e)),s===void 0&&(s=y(e))}(e,t),i||!o||s)if(i&&o&&a^s)_=+!!a,e=x(e,t,n);else if(!i&&o&&s)_=+!!a,e=w(e,t,n),e=x(e,t);else if(!i||a||o||s){if(i&&!o&&a^s)e=x(e,t),a?(_=0,e=w(e,t,n)):(_=1,e=w(e,t,n),e=x(e,t));else if(i&&a&&!o&&s)_=1,e=w(e,t,n),e=x(e,t);else if(!i&&!o&&a^s){var r=c;a?(_=1,e=w(e,t,n),_=0,c=!1,e=w(e,t,n),c=r):(_=0,e=w(e,t,n),e=x(e,t),_=1,c=!1,e=w(e,t,n),c=r,e=x(e,t))}}else _=0,e=w(e,t,n);else _=+!!a,e=w(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(i=e.isInputVisual,o=e.isOutputVisual,a=e.isInputRtl,s=e.isOutputRtl,c=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=`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`.split(`.`),n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push([`postProcessText`,function(e){var t=e.text;e.x,e.y;var r=e.options||{};e.mutex,r.lang;var i=[];if(r.isInputVisual=typeof r.isInputVisual!=`boolean`||r.isInputVisual,n.setOptions(r),Object.prototype.toString.call(t)===`[object Array]`){var a=0;for(i=[],a=0;a<t.length;a+=1)Object.prototype.toString.call(t[a])===`[object Array]`?i.push([n.doBidiReorder(t[a][0]),t[a][1],t[a][2]]):i.push([n.doBidiReorder(t[a])]);e.text=i}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(Z),Z.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new bm(e),this.contents.pos=4,t.readString(4)===`ttcf`)throw Error(`TTCF not supported.`);t.pos=0,this.parse(),this.subset=new zm(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new xm(this.contents),this.head=new wm(this),this.name=new jm(this),this.cmap=new Em(this),this.toUnicode={},this.hhea=new Dm(this),this.maxp=new Mm(this),this.hmtx=new Nm(this),this.post=new km(this),this.os2=new Om(this),this.loca=new Rm(this),this.glyf=new Fm(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]},e.prototype.registerTTF=function(){var e,t,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,r,i;for(i=[],t=0,n=(r=this.bbox).length;t<n;t++)e=r[t],i.push(Math.round(e*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),32768&(t=r>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+`.`+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=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw Error(`No unicode cmap for font`)},e.prototype.characterToGlyph=function(e){return this.cmap.unicode?.codeMap[e]||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,i,a,o;for(a=0,i=0,o=(e=``+e).length;0<=o?i<o:i>o;i=0<=o?++i:--i)r=e.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(r))+1e3/t*n||0;return t/1e3*a},e.prototype.lineHeight=function(e,t){var n;return t??=!1,n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var ym,bm=function(){function e(e){this.data=e??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join(``)},e.prototype.writeString=function(e){var t,n,r;for(r=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,r,i,a,o,s;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^a)+256*(255^o)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*i+65536*a+256*o+s},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r,i;for(i=[],n=0,r=e.length;n<r;n++)t=e[n],i.push(this.writeByte(t));return i},e}(),xm=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,i,a,o,s,c,l,u,d,f,p,m;for(m in f=Object.keys(t).length,s=Math.log(2),u=16*Math.floor(Math.log(f)/s),a=Math.floor(u/s),l=16*f-u,(r=new bm).writeInt(this.scalarType),r.writeShort(f),r.writeShort(u),r.writeShort(a),r.writeShort(l),i=16*f,c=r.pos+i,o=null,p=[],t)for(d=t[m],r.writeString(m),r.writeInt(e(d)),r.writeInt(c),r.writeInt(d.length),p=p.concat(d),m===`head`&&(o=c),c+=d.length;c%4;)p.push(0),c++;return r.write(p),n=2981146554-e(r.data),r.pos=o+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,i;for(e=Pm.call(e);e.length%4;)e.push(0);for(r=new bm(e),n=0,t=0,i=e.length;t<i;t=t+=4)n+=r.readUInt32();return 4294967295&n},t}(),Sm={}.hasOwnProperty,Cm=function(e,t){for(var n in t)Sm.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};ym=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var wm=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Cm(e,ym),e.prototype.tag=`head`,e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new bm).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),Tm=function(){function e(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(f=e.readUInt16(),d=f/2,e.pos+=6,i=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,m=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),c=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,o=function(){var t,n;for(n=[],s=t=0;0<=r?t<r:t>r;s=0<=r?++t:--t)n.push(e.readUInt16());return n}(),s=g=0,v=i.length;g<v;s=++g)for(h=i[s],n=_=p=m[s];p<=h?_<=h:_>=h;n=p<=h?++_:--_)l[s]===0?a=n+c[s]:(a=o[l[s]/2+(n-p)-(d-s)]||0)!==0&&(a+=c[s]),this.codeMap[n]=65535&a}e.pos=u}return e.encode=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,ee,R,z,B,te,V,ne,re,ie,ae;switch(k=new bm,a=Object.keys(e).sort(function(e,t){return e-t}),t){case`macroman`:for(m=0,h=function(){var e=[];for(p=0;p<256;++p)e.push(0);return e}(),_={0:0},i={},A=0,P=a.length;A<P;A++)_[ne=e[r=a[A]]]??(_[ne]=++m),i[r]={old:e[r],new:_[e[r]]},h[r]=_[e[r]];return k.writeUInt16(1),k.writeUInt16(0),k.writeUInt32(12),k.writeUInt16(0),k.writeUInt16(262),k.writeUInt16(0),k.write(h),{charMap:i,subtable:k.data,maxGlyphID:m+1};case`unicode`:for(D=[],u=[],v=0,_={},n={},g=c=null,j=0,F=a.length;j<F;j++)_[b=e[r=a[j]]]??(_[b]=++v),n[r]={old:b,new:_[b]},o=_[b]-r,g!=null&&o===c||(g&&u.push(g),D.push(r),c=o),g=r;for(g&&u.push(g),u.push(65535),D.push(65535),T=2*(w=D.length),C=2*(Math.log(w)/Math.LN2)**2,d=Math.log(C/2)/Math.LN2,S=2*w-C,s=[],x=[],f=[],p=M=0,I=D.length;M<I;p=++M){if(E=D[p],l=u[p],E===65535){s.push(0),x.push(0);break}if(E-(O=n[E].new)>=32768)for(s.push(0),x.push(2*(f.length+w-p)),r=N=E;E<=l?N<=l:N>=l;r=E<=l?++N:--N)f.push(n[r].new);else s.push(O-E),x.push(0)}for(k.writeUInt16(3),k.writeUInt16(1),k.writeUInt32(12),k.writeUInt16(4),k.writeUInt16(16+8*w+2*f.length),k.writeUInt16(0),k.writeUInt16(T),k.writeUInt16(C),k.writeUInt16(d),k.writeUInt16(S),te=0,L=u.length;te<L;te++)r=u[te],k.writeUInt16(r);for(k.writeUInt16(0),V=0,ee=D.length;V<ee;V++)r=D[V],k.writeUInt16(r);for(re=0,R=s.length;re<R;re++)o=s[re],k.writeUInt16(o);for(ie=0,z=x.length;ie<z;ie++)y=x[ie],k.writeUInt16(y);for(ae=0,B=f.length;ae<B;ae++)m=f[ae],k.writeUInt16(m);return{charMap:n,subtable:k.data,maxGlyphID:v+1}}},e}(),Em=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Cm(e,ym),e.prototype.tag=`cmap`,e.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new Tm(e,this.offset),this.tables.push(t),t.isUnicode&&this.unicode==null&&(this.unicode=t);return!0},e.encode=function(e,t){var n,r;return t??=`macroman`,n=Tm.encode(e,t),(r=new bm).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),Dm=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Cm(e,ym),e.prototype.tag=`hhea`,e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),Om=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Cm(e,ym),e.prototype.tag=`OS/2`,e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),km=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Cm(e,ym),e.prototype.tag=`post`,e.prototype.parse=function(e){var t,n,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(n=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,r;for(r=[],i=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;i=0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},e}(),Am=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},jm=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Cm(e,ym),e.prototype.tag=`name`,e.prototype.parse=function(e){var t,n,r,i,a,o,s,c,l,u,d;for(e.pos=this.offset,e.readShort(),t=e.readShort(),o=e.readShort(),n=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+o+e.readShort()});for(s={},i=l=0,u=n.length;l<u;i=++l)r=n[i],e.pos=r.offset,c=e.readString(r.length),a=new Am(c,r),s[d=r.nameID]??(s[d]=[]),s[r.nameID].push(a);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{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}(),Mm=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Cm(e,ym),e.prototype.tag=`maxp`,e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),Nm=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Cm(e,ym),e.prototype.tag=`hmtx`,e.prototype.parse=function(e){var t,n,r,i,a,o,s;for(e.pos=this.offset,this.metrics=[],t=0,o=this.file.hhea.numberOfMetrics;0<=o?t<o:t>o;t=0<=o?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],t=n=0;0<=r?n<r:n>r;t=0<=r?++n:--n)i.push(e.readInt16());return i}(),this.widths=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.metrics).length;e<t;e++)i=n[e],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],t=a=0;0<=r?a<r:a>r;t=0<=r?++a:--a)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),Pm=[].slice,Fm=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Cm(e,ym),e.prototype.tag=`glyf`,e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,r,i,a,o,s,c,l,u;return e in this.cache?this.cache[e]:(i=this.file.loca,t=this.file.contents,n=i.indexOf(e),(r=i.lengthOf(e))===0?this.cache[e]=null:(t.pos=this.offset+n,a=(o=new bm(t.read(r))).readShort(),c=o.readShort(),u=o.readShort(),s=o.readShort(),l=o.readShort(),this.cache[e]=a===-1?new Lm(o,c,u,s,l):new Im(o,a,c,u,s,l),this.cache[e]))},e.prototype.encode=function(e,t,n){var r,i,a,o,s;for(a=[],i=[],o=0,s=t.length;o<s;o++)r=e[t[o]],i.push(a.length),r&&(a=a.concat(r.encode(n)));return i.push(a.length),{table:a,offsets:i}},e}(),Im=function(){function e(e,t,n,r,i,a){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Lm=function(){function e(e,t,n,r,i){var a,o;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new bm(Pm.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),Rm=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Cm(e,ym),e.prototype.tag=`loca`,e.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=t===0?function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=2)r.push(2*e.readUInt16());return r}.call(this):function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=4)r.push(e.readUInt32());return r}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,a=0;a<n.length;++a)if(n[a]=r,i<t.length&&t[i]==a){++i,n[a]=r;var o=this.offsets[a],s=this.offsets[a+1]-o;s>0&&(r+=s)}for(var c=Array(4*n.length),l=0;l<n.length;++l)c[4*l+3]=255&n[l],c[4*l+2]=(65280&n[l])>>8,c[4*l+1]=(16711680&n[l])>>16,c[4*l]=(4278190080&n[l])>>24;return c},e}(),zm=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r,i;for(t in r=this.font.cmap.tables[0].codeMap,e={},i=this.subset)n=i[t],e[t]=r[n];return e},e.prototype.glyphsFor=function(e){var t,n,r,i,a,o,s;for(r={},a=0,o=e.length;a<o;a++)r[i=e[a]]=this.font.glyf.glyphFor(i);for(i in t=[],r)(n=r[i])!=null&&n.compound&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(i in s=this.glyphsFor(t))n=s[i],r[i]=n;return r},e.prototype.encode=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;for(r in n=Em.encode(this.generateCmap(),`unicode`),a=this.glyphsFor(e),f={0:0},g=n.charMap)f[(s=g[r]).old]=s.new;for(p in d=n.maxGlyphID,a)p in f||(f[p]=d++);return l=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(f),u=Object.keys(l).sort(function(e,t){return e-t}),m=function(){var e,t,n;for(n=[],e=0,t=u.length;e<t;e++)o=u[e],n.push(l[o]);return n}(),i=this.font.glyf.encode(a,m,f),c=this.font.loca.encode(i.offsets,m),h={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,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(t)},this.font.os2.exists&&(h[`OS/2`]=this.font.os2.raw()),this.font.directory.encode(h)},e}();Z.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join(`0`)+e).slice(-t)},t.convert=function(n){var r,i,a,o;if(Array.isArray(n))return`[`+function(){var e,i,a;for(a=[],e=0,i=n.length;e<i;e++)r=n[e],a.push(t.convert(r));return a}().join(` `)+`]`;if(typeof n==`string`)return`/`+n;if(n?.isString)return`(`+n+`)`;if(n instanceof Date)return`(D:`+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+`Z)`;if({}.toString.call(n)===`[object Object]`){for(i in a=[`<<`],n)o=n[i],a.push(`/`+i+` `+t.convert(o));return a.push(`>>`),a.join(`
|
|
97
|
+
`)}return``+n},t}();function Bm(){let[e,t]=(0,f.useState)([]),[n,r]=(0,f.useState)([]),[i,a]=(0,f.useState)(``),[o,s]=(0,f.useState)({employeeNumber:``,departmentCode:``,month:``,grossSalary:``,totalDeduction:``}),c={employeeNumber:``,departmentCode:``,month:``,grossSalary:``,totalDeduction:``},l=async()=>{let[e,n]=await Promise.all([Ea.get(`http://localhost:5000/salary`),Ea.get(`http://localhost:5000/employees`)]);t(e.data),r(n.data)};(0,f.useEffect)(()=>{l()},[]);let u=async e=>{e.preventDefault();let t={...o,grossSalary:Number(o.grossSalary),totalDeduction:Number(o.totalDeduction)};i?await Ea.put(`http://localhost:5000/salary/${i}`,t):await Ea.post(`http://localhost:5000/salary`,t),s(c),a(``),l()},d=e=>{let t=n.find(t=>t.employeeNumber===e);s({...o,employeeNumber:e,departmentCode:t?.departmentCode||``})},p=e=>{a(e._id),s({employeeNumber:e.employeeNumber,departmentCode:e.departmentCode,month:e.month,grossSalary:e.grossSalary,totalDeduction:e.totalDeduction})},m=async e=>{await Ea.delete(`http://localhost:5000/salary/${e}`),l()};return(0,q.jsx)(`div`,{className:`min-h-screen p-4 md:p-8`,children:(0,q.jsxs)(`div`,{className:`mx-auto max-w-6xl`,children:[(0,q.jsxs)(`div`,{className:`mb-6 flex flex-col gap-4 rounded-3xl bg-slate-900 p-6 text-white shadow-2xl md:flex-row md:items-center md:justify-between`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`p`,{className:`text-sm uppercase tracking-[0.3em] text-cyan-300`,children:`Payroll`}),(0,q.jsx)(`h2`,{className:`mt-2 text-3xl font-bold`,children:`Salary Form`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-slate-300`,children:`Insert, retrieve, update, and delete are used here only.`})]}),(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,q.jsx)(ln,{to:`/dashboard`,className:`rounded-xl bg-white/10 px-4 py-3 text-sm font-semibold hover:bg-white/20`,children:`Back`}),(0,q.jsx)(`button`,{onClick:()=>{let t=new Z;t.text(`Payroll Report`,10,10),e.forEach((e,n)=>{t.text(`${e.employeeNumber} - ${e.netSalary}`,10,20+n*10)}),t.save(`report.pdf`)},className:`rounded-xl bg-cyan-400 px-4 py-3 text-sm font-semibold text-slate-950 hover:bg-cyan-300`,children:`Download PDF`})]})]}),(0,q.jsxs)(`div`,{className:`grid gap-6 lg:grid-cols-[1.05fr_0.95fr]`,children:[(0,q.jsxs)(`form`,{onSubmit:u,className:`rounded-3xl bg-white p-6 shadow-xl ring-1 ring-slate-200`,children:[(0,q.jsx)(`h3`,{className:`text-2xl font-bold text-slate-900`,children:i?`Update Salary`:`Add Salary`}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-slate-500`,children:`Retrieve, edit, and delete records from the list.`}),(0,q.jsxs)(`div`,{className:`mt-6 grid gap-4 md:grid-cols-2`,children:[(0,q.jsxs)(`div`,{className:`md:col-span-2`,children:[(0,q.jsx)(`label`,{className:`mb-2 block text-sm font-semibold text-slate-700`,children:`Employee`}),(0,q.jsxs)(`select`,{value:o.employeeNumber,onChange:e=>d(e.target.value),className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`,required:!0,children:[(0,q.jsx)(`option`,{value:``,children:`Select employee`}),n.map(e=>(0,q.jsxs)(`option`,{value:e.employeeNumber,children:[e.employeeNumber,` - `,e.firstName,` `,e.lastName]},e._id))]})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`label`,{className:`mb-2 block text-sm font-semibold text-slate-700`,children:`Department Code`}),(0,q.jsx)(`input`,{value:o.departmentCode,onChange:e=>s({...o,departmentCode:e.target.value}),placeholder:`Department code`,className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`,required:!0})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`label`,{className:`mb-2 block text-sm font-semibold text-slate-700`,children:`Month`}),(0,q.jsx)(`input`,{value:o.month,onChange:e=>s({...o,month:e.target.value}),placeholder:`April 2026`,className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`,required:!0})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`label`,{className:`mb-2 block text-sm font-semibold text-slate-700`,children:`Gross Salary`}),(0,q.jsx)(`input`,{type:`number`,value:o.grossSalary,onChange:e=>s({...o,grossSalary:e.target.value}),placeholder:`500000`,className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`,required:!0})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`label`,{className:`mb-2 block text-sm font-semibold text-slate-700`,children:`Total Deduction`}),(0,q.jsx)(`input`,{type:`number`,value:o.totalDeduction,onChange:e=>s({...o,totalDeduction:e.target.value}),placeholder:`50000`,className:`w-full rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 outline-none focus:border-cyan-400 focus:bg-white`,required:!0})]})]}),(0,q.jsxs)(`div`,{className:`mt-6 flex gap-3`,children:[(0,q.jsx)(`button`,{className:`w-full rounded-2xl bg-slate-900 px-4 py-3 font-semibold text-white hover:bg-slate-800`,children:i?`Update Salary`:`Save Salary`}),i&&(0,q.jsx)(`button`,{type:`button`,onClick:()=>{a(``),s(c)},className:`w-full rounded-2xl bg-slate-200 px-4 py-3 font-semibold text-slate-800 hover:bg-slate-300`,children:`Cancel`})]})]}),(0,q.jsxs)(`div`,{className:`rounded-3xl bg-white p-6 shadow-xl ring-1 ring-slate-200`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h3`,{className:`text-2xl font-bold text-slate-900`,children:`Saved Salaries`}),(0,q.jsxs)(`p`,{className:`mt-2 text-sm text-slate-500`,children:[e.length,` record(s)`]})]}),(0,q.jsx)(`div`,{className:`rounded-2xl bg-cyan-50 px-4 py-3 text-sm font-semibold text-cyan-700`,children:`Retrieved list`})]}),(0,q.jsxs)(`div`,{className:`mt-6 space-y-4`,children:[e.length===0&&(0,q.jsx)(`div`,{className:`rounded-2xl border border-dashed border-slate-300 bg-slate-50 p-6 text-center text-slate-500`,children:`No salary saved yet.`}),e.map(e=>(0,q.jsx)(`div`,{className:`rounded-2xl border border-slate-200 bg-slate-50 p-4`,children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-center md:justify-between`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`p`,{className:`text-lg font-bold text-slate-900`,children:e.employeeNumber}),(0,q.jsxs)(`p`,{className:`text-sm text-slate-500`,children:[e.departmentCode,` | `,e.month]}),(0,q.jsxs)(`p`,{className:`mt-1 text-sm text-slate-500`,children:[`Gross: `,e.grossSalary,` | Deduction: `,e.totalDeduction]})]}),(0,q.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,q.jsxs)(`div`,{className:`rounded-2xl bg-emerald-100 px-4 py-2 text-sm font-bold text-emerald-700`,children:[`Net: `,e.netSalary]}),(0,q.jsx)(`button`,{onClick:()=>p(e),className:`rounded-2xl bg-amber-100 px-4 py-2 text-sm font-bold text-amber-700 hover:bg-amber-200`,children:`Edit`}),(0,q.jsx)(`button`,{onClick:()=>m(e._id),className:`rounded-2xl bg-rose-100 px-4 py-2 text-sm font-bold text-rose-700 hover:bg-rose-200`,children:`Delete`})]})]})},e._id))]})]})]})]})})}function Vm({children:e}){return localStorage.getItem(`user`)?e:(0,q.jsx)(gt,{to:`/`})}function Hm(){return(0,q.jsx)(on,{children:(0,q.jsxs)(yt,{children:[(0,q.jsx)(_t,{path:`/`,element:(0,q.jsx)(On,{})}),(0,q.jsx)(_t,{path:`/dashboard`,element:(0,q.jsx)(Vm,{children:(0,q.jsx)(kn,{})})}),(0,q.jsx)(_t,{path:`/employee`,element:(0,q.jsx)(Vm,{children:(0,q.jsx)(Da,{})})}),(0,q.jsx)(_t,{path:`/department`,element:(0,q.jsx)(Vm,{children:(0,q.jsx)(Oa,{})})}),(0,q.jsx)(_t,{path:`/salary`,element:(0,q.jsx)(Vm,{children:(0,q.jsx)(Bm,{})})})]})})}(0,p.createRoot)(document.getElementById(`root`)).render((0,q.jsx)(f.StrictMode,{children:(0,q.jsx)(Hm,{})}));
|