@pie-element/drag-in-the-blank 10.1.2-next.2 → 10.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/CHANGELOG.json +1042 -0
  2. package/CHANGELOG.md +2183 -0
  3. package/LICENSE.md +5 -0
  4. package/README.md +1 -0
  5. package/configure/CHANGELOG.json +652 -0
  6. package/configure/CHANGELOG.md +1883 -0
  7. package/configure/lib/choice.js +137 -0
  8. package/configure/lib/choice.js.map +1 -0
  9. package/configure/lib/choices.js +319 -0
  10. package/configure/lib/choices.js.map +1 -0
  11. package/configure/lib/defaults.js +169 -0
  12. package/configure/lib/defaults.js.map +1 -0
  13. package/configure/lib/index.js +144 -0
  14. package/configure/lib/index.js.map +1 -0
  15. package/configure/lib/main.js +440 -0
  16. package/configure/lib/main.js.map +1 -0
  17. package/configure/lib/markupUtils.js +83 -0
  18. package/configure/lib/markupUtils.js.map +1 -0
  19. package/configure/package.json +25 -0
  20. package/configure/utils.js +17 -0
  21. package/controller/CHANGELOG.json +457 -0
  22. package/controller/CHANGELOG.md +1284 -0
  23. package/controller/lib/defaults.js +24 -0
  24. package/controller/lib/defaults.js.map +1 -0
  25. package/controller/lib/index.js +251 -0
  26. package/controller/lib/index.js.map +1 -0
  27. package/controller/lib/utils.js +39 -0
  28. package/controller/lib/utils.js.map +1 -0
  29. package/controller/package.json +16 -0
  30. package/docs/config-schema.json +2580 -0
  31. package/docs/config-schema.json.md +1905 -0
  32. package/docs/demo/config.js +8 -0
  33. package/docs/demo/generate.js +41 -0
  34. package/docs/demo/index.html +1 -0
  35. package/docs/demo/session.js +10 -0
  36. package/docs/pie-schema.json +1181 -0
  37. package/docs/pie-schema.json.md +853 -0
  38. package/lib/index.js +206 -0
  39. package/lib/index.js.map +1 -0
  40. package/lib/main.js +126 -0
  41. package/lib/main.js.map +1 -0
  42. package/package.json +22 -87
  43. package/configure.js +0 -2
  44. package/controller.js +0 -1
  45. package/dist/author/choice.d.ts +0 -22
  46. package/dist/author/choice.js +0 -88
  47. package/dist/author/choices.d.ts +0 -41
  48. package/dist/author/choices.js +0 -172
  49. package/dist/author/defaults.d.ts +0 -171
  50. package/dist/author/defaults.js +0 -123
  51. package/dist/author/index.d.ts +0 -42
  52. package/dist/author/index.js +0 -92
  53. package/dist/author/main.d.ts +0 -36
  54. package/dist/author/main.js +0 -301
  55. package/dist/author/markupUtils.d.ts +0 -17
  56. package/dist/author/markupUtils.js +0 -38
  57. package/dist/author/utils.d.ts +0 -9
  58. package/dist/author/utils.js +0 -7
  59. package/dist/browser/author/index.js +0 -39603
  60. package/dist/browser/author/index.js.map +0 -1
  61. package/dist/browser/controller/index.js +0 -176
  62. package/dist/browser/controller/index.js.map +0 -1
  63. package/dist/browser/delivery/index.js +0 -3414
  64. package/dist/browser/delivery/index.js.map +0 -1
  65. package/dist/browser/dist-BkH5WSi5.js +0 -121
  66. package/dist/browser/dist-BkH5WSi5.js.map +0 -1
  67. package/dist/browser/drag-in-the-blank.css +0 -2
  68. package/dist/browser/drag-provider-D0fyq5lq.js +0 -10946
  69. package/dist/browser/drag-provider-D0fyq5lq.js.map +0 -1
  70. package/dist/controller/defaults.d.ts +0 -26
  71. package/dist/controller/defaults.js +0 -20
  72. package/dist/controller/index.d.ts +0 -41
  73. package/dist/controller/index.js +0 -104
  74. package/dist/controller/utils.d.ts +0 -16
  75. package/dist/controller/utils.js +0 -14
  76. package/dist/delivery/index.d.ts +0 -21
  77. package/dist/delivery/index.js +0 -105
  78. package/dist/delivery/main.d.ts +0 -28
  79. package/dist/delivery/main.js +0 -83
  80. package/dist/index.d.ts +0 -1
  81. package/dist/index.iife.d.ts +0 -8
  82. package/dist/index.iife.js +0 -152
  83. package/dist/index.js +0 -2
  84. package/dist/runtime-support.d.ts +0 -12
  85. package/dist/runtime-support.js +0 -12
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["t","t","t","t","n","t","t","n","t","t","n","t","t","s","i","a","o","n","r","t","n","t","t","t","t","l","a","i","r","o","s","c","t","r","n","t","a","t","n","r","i","capitalize","useForkRef","React","CancelIcon","e","t"],"sources":["../../../../../lib-react/icons/dist/correct-response-icon.js","../../../../../shared/player-events/dist/index.js","../../../../../lib-react/correct-answer-toggle/dist/expander.js","../../../../../lib-react/translator/dist/en.js","../../../../../lib-react/translator/dist/es.js","../../../../../../node_modules/.bun/i18next@25.10.10+1fb4c65d43e298b9/node_modules/i18next/dist/esm/i18next.js","../../../../../lib-react/translator/dist/index.js","../../../../../lib-react/correct-answer-toggle/dist/index.js","../../../../../lib-react/mask-markup/dist/componentize.js","../../../../../lib-react/mask-markup/dist/_virtual/_rolldown/runtime.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixProperties.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssUnitless.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toUpperFirst.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixInfo.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenRe.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/camelize.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/separate.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenate.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toLowerFirst.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixer.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssPrefix.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/hasOwn.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isObject.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isFunction.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleObject.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleString.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js","../../../../../lib-react/mask-markup/dist/serialization.js","../../../../../lib-react/mask-markup/dist/mask.js","../../../../../lib-react/mask-markup/dist/with-mask.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/svg-icons/Cancel.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Chip/chipClasses.js","../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Chip/Chip.js","../../../../../lib-react/mask-markup/dist/choices/choice.js","../../../../../lib-react/drag/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js","../../../../../lib-react/drag/dist/placeholder.js","../../../../../lib-react/drag/dist/drag-in-the-blank-dp.js","../../../../../lib-react/mask-markup/dist/choices/index.js","../../../../../lib-react/mask-markup/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js","../../../../../lib-react/mask-markup/dist/components/blank.js","../../../../../lib-react/mask-markup/dist/drag-in-the-blank.js","../../../src/delivery/main.tsx","../../../src/delivery/index.ts"],"sourcesContent":["import \"react\";\nimport e from \"prop-types\";\nimport { jsx as t, jsxs as n } from \"react/jsx-runtime\";\nimport { styled as r } from \"@mui/material/styles\";\n//#region src/correct-response-icon.tsx\nvar i = ({ bgFill: e, fgFill: r }) => /* @__PURE__ */ n(\"svg\", {\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-283 359 34 35\",\n\tstyle: { enableBackground: \"new -283 359 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-266\",\n\t\t\tcy: \"375.9\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z\\n M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\ni.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired\n};\nvar a = ({ bgFill: e, fgFill: r, borderFill: i }) => /* @__PURE__ */ n(\"svg\", {\n\tpreserveAspectRatio: \"xMinYMin meet\",\n\tversion: \"1.1\",\n\tviewBox: \"-129.5 127 34 35\",\n\tstyle: { enableBackground: \"new -129.5 127 34 35\" },\n\tchildren: [\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#D0CAC5\",\n\t\t\t\tstroke: \"#E6E3E0\",\n\t\t\t\tstrokeWidth: .75,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5\\n C-97.4,153.5-104.3,160.4-112.9,160.4z\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\tstyle: {\n\t\t\t\tfill: \"#B3ABA4\",\n\t\t\t\tstroke: \"#CDC7C2\",\n\t\t\t\tstrokeWidth: .5,\n\t\t\t\tstrokeMiterlimit: 10\n\t\t\t},\n\t\t\td: \"M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z\"\n\t\t}),\n\t\t/* @__PURE__ */ t(\"circle\", {\n\t\t\tcx: \"-114.2\",\n\t\t\tcy: \"143.5\",\n\t\t\tr: \"14\",\n\t\t\tfill: e\n\t\t}),\n\t\t/* @__PURE__ */ t(\"path\", {\n\t\t\td: \"M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z\\n M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z\",\n\t\t\tfill: i\n\t\t}),\n\t\t/* @__PURE__ */ t(\"polygon\", {\n\t\t\tpoints: \"-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2\",\n\t\t\tfill: r\n\t\t})\n\t]\n});\na.propTypes = {\n\tbgFill: e.string.isRequired,\n\tfgFill: e.string.isRequired,\n\tborderFill: e.string.isRequired\n};\nvar o = r(\"div\")(({ size: e }) => ({\n\twidth: e || \"25px\",\n\theight: e || \"25px\"\n})), s = ({ open: e, size: n }) => /* @__PURE__ */ t(o, {\n\tsize: n,\n\tchildren: e ? /* @__PURE__ */ t(i, {\n\t\tbgFill: \"#bce2ff\",\n\t\tfgFill: \"#1a9cff\"\n\t}) : /* @__PURE__ */ t(a, {\n\t\tbgFill: \"white\",\n\t\tfgFill: \"#1a9cff\",\n\t\tborderFill: \"#bce2ff\"\n\t})\n});\ns.propTypes = {\n\topen: e.bool,\n\tsize: e.string\n}, s.defaultProps = { open: !1 };\n//#endregion\nexport { s as default };\n","//#region src/index.ts\nvar e = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"model-set\";\n\t}\n\tconstructor(t, n, r) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t,\n\t\t\t\thasModel: r\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n}, t = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"session-changed\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n};\n//#endregion\nexport { e as ModelSetEvent, t as SessionChangedEvent };\n","import { styled as e } from \"@mui/material/styles\";\nimport { CSSTransition as t } from \"react-transition-group\";\nimport { jsx as n } from \"react/jsx-runtime\";\nimport { useRef as r } from \"react\";\nimport i from \"prop-types\";\n//#region src/expander.tsx\nvar a = \"height ease-in 300ms, opacity ease-in 300ms\", o = e(\"div\")(() => ({\n\tposition: \"relative\",\n\theight: 0,\n\toverflow: \"hidden\",\n\tdisplay: \"flex\",\n\tvisibility: \"hidden\",\n\twidth: 0,\n\t\"&.enter\": {\n\t\ttransition: a,\n\t\topacity: 1,\n\t\theight: \"auto\",\n\t\twidth: \"auto\",\n\t\tvisibility: \"visible\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.enter-done\": {\n\t\theight: \"auto\",\n\t\tvisibility: \"visible\",\n\t\twidth: \"auto\",\n\t\tminHeight: \"25px\"\n\t},\n\t\"&.exit\": {\n\t\ttransition: a,\n\t\topacity: 0,\n\t\theight: 0,\n\t\tvisibility: \"visible\",\n\t\twidth: 0\n\t},\n\t\"&.exit-done\": {\n\t\topacity: 0,\n\t\tvisibility: \"hidden\",\n\t\theight: 0,\n\t\twidth: 0\n\t}\n})), s = (e) => {\n\tlet { show: i, children: a, className: s } = e, c = r(null);\n\treturn /* @__PURE__ */ n(t, {\n\t\tnodeRef: c,\n\t\tin: i,\n\t\tappear: !0,\n\t\tmountOnEnter: !1,\n\t\ttimeout: 300,\n\t\tclassNames: {\n\t\t\tenter: \"enter\",\n\t\t\tenterDone: \"enter-done\",\n\t\t\texit: \"exit\",\n\t\t\texitDone: \"exit-done\"\n\t\t},\n\t\tchildren: /* @__PURE__ */ n(o, {\n\t\t\tref: c,\n\t\t\tclassName: s,\n\t\t\tchildren: a\n\t\t})\n\t});\n};\ns.propTypes = {\n\tshow: i.bool.isRequired,\n\tclassName: i.string,\n\tchildren: i.oneOfType([i.arrayOf(i.node), i.node]).isRequired\n};\n//#endregion\nexport { s as default };\n","//#region src/en.ts\nvar e = {\n\ttranslation: {\n\t\tcategorize: {\n\t\t\tlimitMaxChoicesPerCategory: \"You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.\",\n\t\t\tmaxChoicesPerCategoryRestriction: \"To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].\"\n\t\t},\n\t\tebsr: { part: \"Part {{index}}\" },\n\t\tnumberLine: {\n\t\t\taddElementLimit_one: \"You can only add {{count}} element\",\n\t\t\taddElementLimit_other: \"You can only add {{count}} elements\",\n\t\t\tclearAll: \"Clear all\"\n\t\t},\n\t\timageClozeAssociation: {\n\t\t\treachedLimit_one: \"You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.\",\n\t\t\treachedLimit_other: \"Full\"\n\t\t},\n\t\tdrawingResponse: {\n\t\t\tfillColor: \"Fill color\",\n\t\t\toutlineColor: \"Outline color\",\n\t\t\tnoFill: \"No fill\",\n\t\t\tlightblue: \"Light blue\",\n\t\t\tlightyellow: \"Light yellow\",\n\t\t\tred: \"Red\",\n\t\t\torange: \"Orange\",\n\t\t\tyellow: \"Yellow\",\n\t\t\tviolet: \"Violet\",\n\t\t\tblue: \"Blue\",\n\t\t\tgreen: \"Green\",\n\t\t\twhite: \"White\",\n\t\t\tblack: \"Black\",\n\t\t\tonDoubleClick: \"Double click to edit this text. Press Enter to submit.\"\n\t\t},\n\t\tcharting: {\n\t\t\taddCategory: \"Add category\",\n\t\t\tactions: \"Actions\",\n\t\t\tadd: \"Add\",\n\t\t\tdelete: \"Delete\",\n\t\t\tnewLabel: \"New label\",\n\t\t\treachedLimit_other: \"There can't be more than {{count}} categories.\",\n\t\t\tkeyLegend: {\n\t\t\t\tincorrectAnswer: \"Student incorrect answer\",\n\t\t\t\tcorrectAnswer: \"Student correct answer\",\n\t\t\t\tcorrectKeyAnswer: \"Answer key correct\"\n\t\t\t}\n\t\t},\n\t\tgraphing: {\n\t\t\tpoint: \"Point\",\n\t\t\tcircle: \"Circle\",\n\t\t\tline: \"Line\",\n\t\t\tparabola: \"Parabola\",\n\t\t\tabsolute: \"Absolute Value\",\n\t\t\texponential: \"Exponential\",\n\t\t\tpolygon: \"Polygon\",\n\t\t\tray: \"Ray\",\n\t\t\tsegment: \"Segment\",\n\t\t\tsine: \"Sine\",\n\t\t\tvector: \"Vector\",\n\t\t\tlabel: \"Label\",\n\t\t\tredo: \"Redo\",\n\t\t\treset: \"Reset\"\n\t\t},\n\t\tmathInline: { primaryCorrectWithAlternates: \"Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.\" },\n\t\tmultipleChoice: {\n\t\t\tminSelections: \"Select at least {{minSelections}}.\",\n\t\t\tmaxSelections_one: \"Only {{maxSelections}} answer is allowed.\",\n\t\t\tmaxSelections_other: \"Only {{maxSelections}} answers are allowed.\",\n\t\t\tminmaxSelections_equal: \"Select {{minSelections}}.\",\n\t\t\tminmaxSelections_range: \"Select between {{minSelections}} and {{maxSelections}}.\"\n\t\t},\n\t\tselectText: {\n\t\t\tcorrectAnswerSelected: \"Correct\",\n\t\t\tcorrectAnswerNotSelected: \"Correct Answer Not Selected\",\n\t\t\tincorrectSelection: \"Incorrect Selection\",\n\t\t\tkey: \"Key\"\n\t\t}\n\t},\n\tcommon: {\n\t\tundo: \"Undo\",\n\t\tclearAll: \"Clear all\",\n\t\tcorrect: \"Correct\",\n\t\tincorrect: \"Incorrect\",\n\t\tshowCorrectAnswer: \"Show correct answer\",\n\t\thideCorrectAnswer: \"Hide correct answer\",\n\t\tcommonCorrectAnswerWithAlternates: \"Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.\",\n\t\twarning: \"Warning\",\n\t\tshowNote: \"Show Note\",\n\t\thideNote: \"Hide Note\",\n\t\tcancel: \"Cancel\"\n\t}\n};\n//#endregion\nexport { e as default };\n","//#region src/es.ts\nvar e = {\n\ttranslation: {\n\t\tcategorize: {\n\t\t\tlimitMaxChoicesPerCategory: \"Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.\",\n\t\t\tmaxChoicesPerCategoryRestriction: \"Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta\"\n\t\t},\n\t\tebsr: { part: \"Parte {{index}}\" },\n\t\tnumberLine: {\n\t\t\taddElementLimit_one: \"Solo puedes agregar {{count}} elemento\",\n\t\t\taddElementLimit_other: \"Solo puedes agregar {{count}} elementos\",\n\t\t\tclearAll: \"Borrar todo\"\n\t\t},\n\t\timageClozeAssociation: {\n\t\t\treachedLimit_one: \"Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.\",\n\t\t\treachedLimit_other: \"Lleno\"\n\t\t},\n\t\tdrawingResponse: {\n\t\t\tfillColor: \"Color de relleno\",\n\t\t\toutlineColor: \"Color del contorno\",\n\t\t\tnoFill: \"Sin relleno\",\n\t\t\tlightblue: \"Azul claro\",\n\t\t\tlightyellow: \"Amarillo claro\",\n\t\t\tred: \"Rojo\",\n\t\t\torange: \"Naranja\",\n\t\t\tyellow: \"Amarillo\",\n\t\t\tviolet: \"Violeta\",\n\t\t\tblue: \"Azul\",\n\t\t\tgreen: \"Verde\",\n\t\t\twhite: \"Blanco\",\n\t\t\tblack: \"Negro\",\n\t\t\tonDoubleClick: \"Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar\"\n\t\t},\n\t\tcharting: {\n\t\t\taddCategory: \"Añadir categoría\",\n\t\t\tactions: \"Acciones\",\n\t\t\tadd: \"Añadir\",\n\t\t\tdelete: \"Eliminar\",\n\t\t\tnewLabel: \"Nueva etiqueta\",\n\t\t\treachedLimit_other: \"No puede haber más de {{count}} categorías.\",\n\t\t\tkeyLegend: {\n\t\t\t\tincorrectAnswer: \"Respuesta incorrecta del estudiante\",\n\t\t\t\tcorrectAnswer: \"Respuesta correcta del estudiante\",\n\t\t\t\tcorrectKeyAnswer: \"Clave de respuesta correcta\"\n\t\t\t}\n\t\t},\n\t\tgraphing: {\n\t\t\tpoint: \"Punto\",\n\t\t\tcircle: \"Circulo\",\n\t\t\tline: \"Línea\",\n\t\t\tparabola: \"Parábola\",\n\t\t\tabsolute: \"Valor absoluto\",\n\t\t\texponential: \"Exponencial\",\n\t\t\tpolygon: \"Polígono\",\n\t\t\tray: \"Semirrecta\",\n\t\t\tsegment: \"Segmento \",\n\t\t\tsine: \"Seno\",\n\t\t\tvector: \"Vector\",\n\t\t\tlabel: \"Etiqueta\",\n\t\t\tredo: \"Rehacer\",\n\t\t\treset: \"Reiniciar\"\n\t\t},\n\t\tmathInline: { primaryCorrectWithAlternates: \"Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.\" },\n\t\tmultipleChoice: {\n\t\t\tminSelections: \"Seleccione al menos {{minSelections}}.\",\n\t\t\tmaxSelections_one: \"Sólo se permite {{maxSelections}} respuesta.\",\n\t\t\tmaxSelections_other: \"Sólo se permiten {{maxSelections}} respuestas.\",\n\t\t\tminmaxSelections_equal: \"Seleccione {{minSelections}}.\",\n\t\t\tminmaxSelections_range: \"Seleccione entre {{minSelections}} y {{maxSelections}}.\"\n\t\t},\n\t\tselectText: {\n\t\t\tcorrectAnswerSelected: \"Respuesta Correcta\",\n\t\t\tcorrectAnswerNotSelected: \"Respuesta Correcta No Seleccionada\",\n\t\t\tincorrectSelection: \"Selección Incorrecta\",\n\t\t\tkey: \"Clave\"\n\t\t}\n\t},\n\tcommon: {\n\t\tundo: \"Deshacer\",\n\t\tclearAll: \"Borrar todo\",\n\t\tcorrect: \"Correct\",\n\t\tincorrect: \"Incorrect\",\n\t\tshowCorrectAnswer: \"Mostrar respuesta correcta\",\n\t\thideCorrectAnswer: \"Ocultar respuesta correcta\",\n\t\tcommonCorrectAnswerWithAlternates: \"Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.\",\n\t\twarning: \"Advertencia\",\n\t\tshowNote: \"Mostrar Nota\",\n\t\thideNote: \"Ocultar Nota\",\n\t\tcancel: \"Cancelar\"\n\t}\n};\n//#endregion\nexport { e as default };\n","const isString = obj => typeof obj === 'string';\nconst defer = () => {\n let res;\n let rej;\n const promise = new Promise((resolve, reject) => {\n res = resolve;\n rej = reject;\n });\n promise.resolve = res;\n promise.reject = rej;\n return promise;\n};\nconst makeString = object => {\n if (object == null) return '';\n return '' + object;\n};\nconst copy = (a, s, t) => {\n a.forEach(m => {\n if (s[m]) t[m] = s[m];\n });\n};\nconst lastOfPathSeparatorRegExp = /###/g;\nconst cleanKey = key => key && key.indexOf('###') > -1 ? key.replace(lastOfPathSeparatorRegExp, '.') : key;\nconst canNotTraverseDeeper = object => !object || isString(object);\nconst getLastOfPath = (object, path, Empty) => {\n const stack = !isString(path) ? path : path.split('.');\n let stackIndex = 0;\n while (stackIndex < stack.length - 1) {\n if (canNotTraverseDeeper(object)) return {};\n const key = cleanKey(stack[stackIndex]);\n if (!object[key] && Empty) object[key] = new Empty();\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n object = object[key];\n } else {\n object = {};\n }\n ++stackIndex;\n }\n if (canNotTraverseDeeper(object)) return {};\n return {\n obj: object,\n k: cleanKey(stack[stackIndex])\n };\n};\nconst setPath = (object, path, newValue) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path, Object);\n if (obj !== undefined || path.length === 1) {\n obj[k] = newValue;\n return;\n }\n let e = path[path.length - 1];\n let p = path.slice(0, path.length - 1);\n let last = getLastOfPath(object, p, Object);\n while (last.obj === undefined && p.length) {\n e = `${p[p.length - 1]}.${e}`;\n p = p.slice(0, p.length - 1);\n last = getLastOfPath(object, p, Object);\n if (last?.obj && typeof last.obj[`${last.k}.${e}`] !== 'undefined') {\n last.obj = undefined;\n }\n }\n last.obj[`${last.k}.${e}`] = newValue;\n};\nconst pushPath = (object, path, newValue, concat) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path, Object);\n obj[k] = obj[k] || [];\n obj[k].push(newValue);\n};\nconst getPath = (object, path) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path);\n if (!obj) return undefined;\n if (!Object.prototype.hasOwnProperty.call(obj, k)) return undefined;\n return obj[k];\n};\nconst getPathWithDefaults = (data, defaultData, key) => {\n const value = getPath(data, key);\n if (value !== undefined) {\n return value;\n }\n return getPath(defaultData, key);\n};\nconst deepExtend = (target, source, overwrite) => {\n for (const prop in source) {\n if (prop !== '__proto__' && prop !== 'constructor') {\n if (prop in target) {\n if (isString(target[prop]) || target[prop] instanceof String || isString(source[prop]) || source[prop] instanceof String) {\n if (overwrite) target[prop] = source[prop];\n } else {\n deepExtend(target[prop], source[prop], overwrite);\n }\n } else {\n target[prop] = source[prop];\n }\n }\n }\n return target;\n};\nconst regexEscape = str => str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\nvar _entityMap = {\n '&': '&amp;',\n '<': '&lt;',\n '>': '&gt;',\n '\"': '&quot;',\n \"'\": '&#39;',\n '/': '&#x2F;'\n};\nconst escape = data => {\n if (isString(data)) {\n return data.replace(/[&<>\"'\\/]/g, s => _entityMap[s]);\n }\n return data;\n};\nclass RegExpCache {\n constructor(capacity) {\n this.capacity = capacity;\n this.regExpMap = new Map();\n this.regExpQueue = [];\n }\n getRegExp(pattern) {\n const regExpFromCache = this.regExpMap.get(pattern);\n if (regExpFromCache !== undefined) {\n return regExpFromCache;\n }\n const regExpNew = new RegExp(pattern);\n if (this.regExpQueue.length === this.capacity) {\n this.regExpMap.delete(this.regExpQueue.shift());\n }\n this.regExpMap.set(pattern, regExpNew);\n this.regExpQueue.push(pattern);\n return regExpNew;\n }\n}\nconst chars = [' ', ',', '?', '!', ';'];\nconst looksLikeObjectPathRegExpCache = new RegExpCache(20);\nconst looksLikeObjectPath = (key, nsSeparator, keySeparator) => {\n nsSeparator = nsSeparator || '';\n keySeparator = keySeparator || '';\n const possibleChars = chars.filter(c => nsSeparator.indexOf(c) < 0 && keySeparator.indexOf(c) < 0);\n if (possibleChars.length === 0) return true;\n const r = looksLikeObjectPathRegExpCache.getRegExp(`(${possibleChars.map(c => c === '?' ? '\\\\?' : c).join('|')})`);\n let matched = !r.test(key);\n if (!matched) {\n const ki = key.indexOf(keySeparator);\n if (ki > 0 && !r.test(key.substring(0, ki))) {\n matched = true;\n }\n }\n return matched;\n};\nconst deepFind = (obj, path, keySeparator = '.') => {\n if (!obj) return undefined;\n if (obj[path]) {\n if (!Object.prototype.hasOwnProperty.call(obj, path)) return undefined;\n return obj[path];\n }\n const tokens = path.split(keySeparator);\n let current = obj;\n for (let i = 0; i < tokens.length;) {\n if (!current || typeof current !== 'object') {\n return undefined;\n }\n let next;\n let nextPath = '';\n for (let j = i; j < tokens.length; ++j) {\n if (j !== i) {\n nextPath += keySeparator;\n }\n nextPath += tokens[j];\n next = current[nextPath];\n if (next !== undefined) {\n if (['string', 'number', 'boolean'].indexOf(typeof next) > -1 && j < tokens.length - 1) {\n continue;\n }\n i += j - i + 1;\n break;\n }\n }\n current = next;\n }\n return current;\n};\nconst getCleanedCode = code => code?.replace(/_/g, '-');\n\nconst consoleLogger = {\n type: 'logger',\n log(args) {\n this.output('log', args);\n },\n warn(args) {\n this.output('warn', args);\n },\n error(args) {\n this.output('error', args);\n },\n output(type, args) {\n console?.[type]?.apply?.(console, args);\n }\n};\nclass Logger {\n constructor(concreteLogger, options = {}) {\n this.init(concreteLogger, options);\n }\n init(concreteLogger, options = {}) {\n this.prefix = options.prefix || 'i18next:';\n this.logger = concreteLogger || consoleLogger;\n this.options = options;\n this.debug = options.debug;\n }\n log(...args) {\n return this.forward(args, 'log', '', true);\n }\n warn(...args) {\n return this.forward(args, 'warn', '', true);\n }\n error(...args) {\n return this.forward(args, 'error', '');\n }\n deprecate(...args) {\n return this.forward(args, 'warn', 'WARNING DEPRECATED: ', true);\n }\n forward(args, lvl, prefix, debugOnly) {\n if (debugOnly && !this.debug) return null;\n if (isString(args[0])) args[0] = `${prefix}${this.prefix} ${args[0]}`;\n return this.logger[lvl](args);\n }\n create(moduleName) {\n return new Logger(this.logger, {\n ...{\n prefix: `${this.prefix}:${moduleName}:`\n },\n ...this.options\n });\n }\n clone(options) {\n options = options || this.options;\n options.prefix = options.prefix || this.prefix;\n return new Logger(this.logger, options);\n }\n}\nvar baseLogger = new Logger();\n\nclass EventEmitter {\n constructor() {\n this.observers = {};\n }\n on(events, listener) {\n events.split(' ').forEach(event => {\n if (!this.observers[event]) this.observers[event] = new Map();\n const numListeners = this.observers[event].get(listener) || 0;\n this.observers[event].set(listener, numListeners + 1);\n });\n return this;\n }\n off(event, listener) {\n if (!this.observers[event]) return;\n if (!listener) {\n delete this.observers[event];\n return;\n }\n this.observers[event].delete(listener);\n }\n emit(event, ...args) {\n if (this.observers[event]) {\n const cloned = Array.from(this.observers[event].entries());\n cloned.forEach(([observer, numTimesAdded]) => {\n for (let i = 0; i < numTimesAdded; i++) {\n observer(...args);\n }\n });\n }\n if (this.observers['*']) {\n const cloned = Array.from(this.observers['*'].entries());\n cloned.forEach(([observer, numTimesAdded]) => {\n for (let i = 0; i < numTimesAdded; i++) {\n observer.apply(observer, [event, ...args]);\n }\n });\n }\n }\n}\n\nclass ResourceStore extends EventEmitter {\n constructor(data, options = {\n ns: ['translation'],\n defaultNS: 'translation'\n }) {\n super();\n this.data = data || {};\n this.options = options;\n if (this.options.keySeparator === undefined) {\n this.options.keySeparator = '.';\n }\n if (this.options.ignoreJSONStructure === undefined) {\n this.options.ignoreJSONStructure = true;\n }\n }\n addNamespaces(ns) {\n if (this.options.ns.indexOf(ns) < 0) {\n this.options.ns.push(ns);\n }\n }\n removeNamespaces(ns) {\n const index = this.options.ns.indexOf(ns);\n if (index > -1) {\n this.options.ns.splice(index, 1);\n }\n }\n getResource(lng, ns, key, options = {}) {\n const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n const ignoreJSONStructure = options.ignoreJSONStructure !== undefined ? options.ignoreJSONStructure : this.options.ignoreJSONStructure;\n let path;\n if (lng.indexOf('.') > -1) {\n path = lng.split('.');\n } else {\n path = [lng, ns];\n if (key) {\n if (Array.isArray(key)) {\n path.push(...key);\n } else if (isString(key) && keySeparator) {\n path.push(...key.split(keySeparator));\n } else {\n path.push(key);\n }\n }\n }\n const result = getPath(this.data, path);\n if (!result && !ns && !key && lng.indexOf('.') > -1) {\n lng = path[0];\n ns = path[1];\n key = path.slice(2).join('.');\n }\n if (result || !ignoreJSONStructure || !isString(key)) return result;\n return deepFind(this.data?.[lng]?.[ns], key, keySeparator);\n }\n addResource(lng, ns, key, value, options = {\n silent: false\n }) {\n const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;\n let path = [lng, ns];\n if (key) path = path.concat(keySeparator ? key.split(keySeparator) : key);\n if (lng.indexOf('.') > -1) {\n path = lng.split('.');\n value = ns;\n ns = path[1];\n }\n this.addNamespaces(ns);\n setPath(this.data, path, value);\n if (!options.silent) this.emit('added', lng, ns, key, value);\n }\n addResources(lng, ns, resources, options = {\n silent: false\n }) {\n for (const m in resources) {\n if (isString(resources[m]) || Array.isArray(resources[m])) this.addResource(lng, ns, m, resources[m], {\n silent: true\n });\n }\n if (!options.silent) this.emit('added', lng, ns, resources);\n }\n addResourceBundle(lng, ns, resources, deep, overwrite, options = {\n silent: false,\n skipCopy: false\n }) {\n let path = [lng, ns];\n if (lng.indexOf('.') > -1) {\n path = lng.split('.');\n deep = resources;\n resources = ns;\n ns = path[1];\n }\n this.addNamespaces(ns);\n let pack = getPath(this.data, path) || {};\n if (!options.skipCopy) resources = JSON.parse(JSON.stringify(resources));\n if (deep) {\n deepExtend(pack, resources, overwrite);\n } else {\n pack = {\n ...pack,\n ...resources\n };\n }\n setPath(this.data, path, pack);\n if (!options.silent) this.emit('added', lng, ns, resources);\n }\n removeResourceBundle(lng, ns) {\n if (this.hasResourceBundle(lng, ns)) {\n delete this.data[lng][ns];\n }\n this.removeNamespaces(ns);\n this.emit('removed', lng, ns);\n }\n hasResourceBundle(lng, ns) {\n return this.getResource(lng, ns) !== undefined;\n }\n getResourceBundle(lng, ns) {\n if (!ns) ns = this.options.defaultNS;\n return this.getResource(lng, ns);\n }\n getDataByLanguage(lng) {\n return this.data[lng];\n }\n hasLanguageSomeTranslations(lng) {\n const data = this.getDataByLanguage(lng);\n const n = data && Object.keys(data) || [];\n return !!n.find(v => data[v] && Object.keys(data[v]).length > 0);\n }\n toJSON() {\n return this.data;\n }\n}\n\nvar postProcessor = {\n processors: {},\n addPostProcessor(module) {\n this.processors[module.name] = module;\n },\n handle(processors, value, key, options, translator) {\n processors.forEach(processor => {\n value = this.processors[processor]?.process(value, key, options, translator) ?? value;\n });\n return value;\n }\n};\n\nconst PATH_KEY = Symbol('i18next/PATH_KEY');\nfunction createProxy() {\n const state = [];\n const handler = Object.create(null);\n let proxy;\n handler.get = (target, key) => {\n proxy?.revoke?.();\n if (key === PATH_KEY) return state;\n state.push(key);\n proxy = Proxy.revocable(target, handler);\n return proxy.proxy;\n };\n return Proxy.revocable(Object.create(null), handler).proxy;\n}\nfunction keysFromSelector(selector, opts) {\n const {\n [PATH_KEY]: path\n } = selector(createProxy());\n const keySeparator = opts?.keySeparator ?? '.';\n const nsSeparator = opts?.nsSeparator ?? ':';\n if (path.length > 1 && nsSeparator) {\n const ns = opts?.ns;\n const nsArray = Array.isArray(ns) ? ns : null;\n if (nsArray && nsArray.length > 1 && nsArray.slice(1).includes(path[0])) {\n return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;\n }\n }\n return path.join(keySeparator);\n}\n\nconst checkedLoadedFor = {};\nconst shouldHandleAsObject = res => !isString(res) && typeof res !== 'boolean' && typeof res !== 'number';\nclass Translator extends EventEmitter {\n constructor(services, options = {}) {\n super();\n copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, this);\n this.options = options;\n if (this.options.keySeparator === undefined) {\n this.options.keySeparator = '.';\n }\n this.logger = baseLogger.create('translator');\n }\n changeLanguage(lng) {\n if (lng) this.language = lng;\n }\n exists(key, o = {\n interpolation: {}\n }) {\n const opt = {\n ...o\n };\n if (key == null) return false;\n const resolved = this.resolve(key, opt);\n if (resolved?.res === undefined) return false;\n const isObject = shouldHandleAsObject(resolved.res);\n if (opt.returnObjects === false && isObject) {\n return false;\n }\n return true;\n }\n extractFromKey(key, opt) {\n let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;\n if (nsSeparator === undefined) nsSeparator = ':';\n const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;\n let namespaces = opt.ns || this.options.defaultNS || [];\n const wouldCheckForNsInKey = nsSeparator && key.indexOf(nsSeparator) > -1;\n const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !opt.keySeparator && !this.options.userDefinedNsSeparator && !opt.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);\n if (wouldCheckForNsInKey && !seemsNaturalLanguage) {\n const m = key.match(this.interpolator.nestingRegexp);\n if (m && m.length > 0) {\n return {\n key,\n namespaces: isString(namespaces) ? [namespaces] : namespaces\n };\n }\n const parts = key.split(nsSeparator);\n if (nsSeparator !== keySeparator || nsSeparator === keySeparator && this.options.ns.indexOf(parts[0]) > -1) namespaces = parts.shift();\n key = parts.join(keySeparator);\n }\n return {\n key,\n namespaces: isString(namespaces) ? [namespaces] : namespaces\n };\n }\n translate(keys, o, lastKey) {\n let opt = typeof o === 'object' ? {\n ...o\n } : o;\n if (typeof opt !== 'object' && this.options.overloadTranslationOptionHandler) {\n opt = this.options.overloadTranslationOptionHandler(arguments);\n }\n if (typeof opt === 'object') opt = {\n ...opt\n };\n if (!opt) opt = {};\n if (keys == null) return '';\n if (typeof keys === 'function') keys = keysFromSelector(keys, {\n ...this.options,\n ...opt\n });\n if (!Array.isArray(keys)) keys = [String(keys)];\n keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {\n ...this.options,\n ...opt\n }) : String(k));\n const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;\n const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;\n const {\n key,\n namespaces\n } = this.extractFromKey(keys[keys.length - 1], opt);\n const namespace = namespaces[namespaces.length - 1];\n let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;\n if (nsSeparator === undefined) nsSeparator = ':';\n const lng = opt.lng || this.language;\n const appendNamespaceToCIMode = opt.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;\n if (lng?.toLowerCase() === 'cimode') {\n if (appendNamespaceToCIMode) {\n if (returnDetails) {\n return {\n res: `${namespace}${nsSeparator}${key}`,\n usedKey: key,\n exactUsedKey: key,\n usedLng: lng,\n usedNS: namespace,\n usedParams: this.getUsedParamsDetails(opt)\n };\n }\n return `${namespace}${nsSeparator}${key}`;\n }\n if (returnDetails) {\n return {\n res: key,\n usedKey: key,\n exactUsedKey: key,\n usedLng: lng,\n usedNS: namespace,\n usedParams: this.getUsedParamsDetails(opt)\n };\n }\n return key;\n }\n const resolved = this.resolve(keys, opt);\n let res = resolved?.res;\n const resUsedKey = resolved?.usedKey || key;\n const resExactUsedKey = resolved?.exactUsedKey || key;\n const noObject = ['[object Number]', '[object Function]', '[object RegExp]'];\n const joinArrays = opt.joinArrays !== undefined ? opt.joinArrays : this.options.joinArrays;\n const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;\n const needsPluralHandling = opt.count !== undefined && !isString(opt.count);\n const hasDefaultValue = Translator.hasDefaultValue(opt);\n const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, opt) : '';\n const defaultValueSuffixOrdinalFallback = opt.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, {\n ordinal: false\n }) : '';\n const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;\n const defaultValue = needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] || opt[`defaultValue${defaultValueSuffix}`] || opt[`defaultValue${defaultValueSuffixOrdinalFallback}`] || opt.defaultValue;\n let resForObjHndl = res;\n if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {\n resForObjHndl = defaultValue;\n }\n const handleAsObject = shouldHandleAsObject(resForObjHndl);\n const resType = Object.prototype.toString.apply(resForObjHndl);\n if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && noObject.indexOf(resType) < 0 && !(isString(joinArrays) && Array.isArray(resForObjHndl))) {\n if (!opt.returnObjects && !this.options.returnObjects) {\n if (!this.options.returnedObjectHandler) {\n this.logger.warn('accessing an object - but returnObjects options is not enabled!');\n }\n const r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {\n ...opt,\n ns: namespaces\n }) : `key '${key} (${this.language})' returned an object instead of string.`;\n if (returnDetails) {\n resolved.res = r;\n resolved.usedParams = this.getUsedParamsDetails(opt);\n return resolved;\n }\n return r;\n }\n if (keySeparator) {\n const resTypeIsArray = Array.isArray(resForObjHndl);\n const copy = resTypeIsArray ? [] : {};\n const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;\n for (const m in resForObjHndl) {\n if (Object.prototype.hasOwnProperty.call(resForObjHndl, m)) {\n const deepKey = `${newKeyToUse}${keySeparator}${m}`;\n if (hasDefaultValue && !res) {\n copy[m] = this.translate(deepKey, {\n ...opt,\n defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : undefined,\n ...{\n joinArrays: false,\n ns: namespaces\n }\n });\n } else {\n copy[m] = this.translate(deepKey, {\n ...opt,\n ...{\n joinArrays: false,\n ns: namespaces\n }\n });\n }\n if (copy[m] === deepKey) copy[m] = resForObjHndl[m];\n }\n }\n res = copy;\n }\n } else if (handleAsObjectInI18nFormat && isString(joinArrays) && Array.isArray(res)) {\n res = res.join(joinArrays);\n if (res) res = this.extendTranslation(res, keys, opt, lastKey);\n } else {\n let usedDefault = false;\n let usedKey = false;\n if (!this.isValidLookup(res) && hasDefaultValue) {\n usedDefault = true;\n res = defaultValue;\n }\n if (!this.isValidLookup(res)) {\n usedKey = true;\n res = key;\n }\n const missingKeyNoValueFallbackToKey = opt.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey;\n const resForMissing = missingKeyNoValueFallbackToKey && usedKey ? undefined : res;\n const updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;\n if (usedKey || usedDefault || updateMissing) {\n this.logger.log(updateMissing ? 'updateKey' : 'missingKey', lng, namespace, key, updateMissing ? defaultValue : res);\n if (keySeparator) {\n const fk = this.resolve(key, {\n ...opt,\n keySeparator: false\n });\n if (fk && fk.res) this.logger.warn('Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.');\n }\n let lngs = [];\n const fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, opt.lng || this.language);\n if (this.options.saveMissingTo === 'fallback' && fallbackLngs && fallbackLngs[0]) {\n for (let i = 0; i < fallbackLngs.length; i++) {\n lngs.push(fallbackLngs[i]);\n }\n } else if (this.options.saveMissingTo === 'all') {\n lngs = this.languageUtils.toResolveHierarchy(opt.lng || this.language);\n } else {\n lngs.push(opt.lng || this.language);\n }\n const send = (l, k, specificDefaultValue) => {\n const defaultForMissing = hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing;\n if (this.options.missingKeyHandler) {\n this.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing, opt);\n } else if (this.backendConnector?.saveMissing) {\n this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing, opt);\n }\n this.emit('missingKey', l, namespace, k, res);\n };\n if (this.options.saveMissing) {\n if (this.options.saveMissingPlurals && needsPluralHandling) {\n lngs.forEach(language => {\n const suffixes = this.pluralResolver.getSuffixes(language, opt);\n if (needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] && suffixes.indexOf(`${this.options.pluralSeparator}zero`) < 0) {\n suffixes.push(`${this.options.pluralSeparator}zero`);\n }\n suffixes.forEach(suffix => {\n send([language], key + suffix, opt[`defaultValue${suffix}`] || defaultValue);\n });\n });\n } else {\n send(lngs, key, defaultValue);\n }\n }\n }\n res = this.extendTranslation(res, keys, opt, resolved, lastKey);\n if (usedKey && res === key && this.options.appendNamespaceToMissingKey) {\n res = `${namespace}${nsSeparator}${key}`;\n }\n if ((usedKey || usedDefault) && this.options.parseMissingKeyHandler) {\n res = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${namespace}${nsSeparator}${key}` : key, usedDefault ? res : undefined, opt);\n }\n }\n if (returnDetails) {\n resolved.res = res;\n resolved.usedParams = this.getUsedParamsDetails(opt);\n return resolved;\n }\n return res;\n }\n extendTranslation(res, key, opt, resolved, lastKey) {\n if (this.i18nFormat?.parse) {\n res = this.i18nFormat.parse(res, {\n ...this.options.interpolation.defaultVariables,\n ...opt\n }, opt.lng || this.language || resolved.usedLng, resolved.usedNS, resolved.usedKey, {\n resolved\n });\n } else if (!opt.skipInterpolation) {\n if (opt.interpolation) this.interpolator.init({\n ...opt,\n ...{\n interpolation: {\n ...this.options.interpolation,\n ...opt.interpolation\n }\n }\n });\n const skipOnVariables = isString(res) && (opt?.interpolation?.skipOnVariables !== undefined ? opt.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);\n let nestBef;\n if (skipOnVariables) {\n const nb = res.match(this.interpolator.nestingRegexp);\n nestBef = nb && nb.length;\n }\n let data = opt.replace && !isString(opt.replace) ? opt.replace : opt;\n if (this.options.interpolation.defaultVariables) data = {\n ...this.options.interpolation.defaultVariables,\n ...data\n };\n res = this.interpolator.interpolate(res, data, opt.lng || this.language || resolved.usedLng, opt);\n if (skipOnVariables) {\n const na = res.match(this.interpolator.nestingRegexp);\n const nestAft = na && na.length;\n if (nestBef < nestAft) opt.nest = false;\n }\n if (!opt.lng && resolved && resolved.res) opt.lng = this.language || resolved.usedLng;\n if (opt.nest !== false) res = this.interpolator.nest(res, (...args) => {\n if (lastKey?.[0] === args[0] && !opt.context) {\n this.logger.warn(`It seems you are nesting recursively key: ${args[0]} in key: ${key[0]}`);\n return null;\n }\n return this.translate(...args, key);\n }, opt);\n if (opt.interpolation) this.interpolator.reset();\n }\n const postProcess = opt.postProcess || this.options.postProcess;\n const postProcessorNames = isString(postProcess) ? [postProcess] : postProcess;\n if (res != null && postProcessorNames?.length && opt.applyPostProcessor !== false) {\n res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? {\n i18nResolved: {\n ...resolved,\n usedParams: this.getUsedParamsDetails(opt)\n },\n ...opt\n } : opt, this);\n }\n return res;\n }\n resolve(keys, opt = {}) {\n let found;\n let usedKey;\n let exactUsedKey;\n let usedLng;\n let usedNS;\n if (isString(keys)) keys = [keys];\n if (Array.isArray(keys)) keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {\n ...this.options,\n ...opt\n }) : k);\n keys.forEach(k => {\n if (this.isValidLookup(found)) return;\n const extracted = this.extractFromKey(k, opt);\n const key = extracted.key;\n usedKey = key;\n let namespaces = extracted.namespaces;\n if (this.options.fallbackNS) namespaces = namespaces.concat(this.options.fallbackNS);\n const needsPluralHandling = opt.count !== undefined && !isString(opt.count);\n const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;\n const needsContextHandling = opt.context !== undefined && (isString(opt.context) || typeof opt.context === 'number') && opt.context !== '';\n const codes = opt.lngs ? opt.lngs : this.languageUtils.toResolveHierarchy(opt.lng || this.language, opt.fallbackLng);\n namespaces.forEach(ns => {\n if (this.isValidLookup(found)) return;\n usedNS = ns;\n if (!checkedLoadedFor[`${codes[0]}-${ns}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(usedNS)) {\n checkedLoadedFor[`${codes[0]}-${ns}`] = true;\n this.logger.warn(`key \"${usedKey}\" for languages \"${codes.join(', ')}\" won't get resolved as namespace \"${usedNS}\" was not yet loaded`, 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n }\n codes.forEach(code => {\n if (this.isValidLookup(found)) return;\n usedLng = code;\n const finalKeys = [key];\n if (this.i18nFormat?.addLookupKeys) {\n this.i18nFormat.addLookupKeys(finalKeys, key, code, ns, opt);\n } else {\n let pluralSuffix;\n if (needsPluralHandling) pluralSuffix = this.pluralResolver.getSuffix(code, opt.count, opt);\n const zeroSuffix = `${this.options.pluralSeparator}zero`;\n const ordinalPrefix = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;\n if (needsPluralHandling) {\n if (opt.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {\n finalKeys.push(key + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));\n }\n finalKeys.push(key + pluralSuffix);\n if (needsZeroSuffixLookup) {\n finalKeys.push(key + zeroSuffix);\n }\n }\n if (needsContextHandling) {\n const contextKey = `${key}${this.options.contextSeparator || '_'}${opt.context}`;\n finalKeys.push(contextKey);\n if (needsPluralHandling) {\n if (opt.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {\n finalKeys.push(contextKey + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));\n }\n finalKeys.push(contextKey + pluralSuffix);\n if (needsZeroSuffixLookup) {\n finalKeys.push(contextKey + zeroSuffix);\n }\n }\n }\n }\n let possibleKey;\n while (possibleKey = finalKeys.pop()) {\n if (!this.isValidLookup(found)) {\n exactUsedKey = possibleKey;\n found = this.getResource(code, ns, possibleKey, opt);\n }\n }\n });\n });\n });\n return {\n res: found,\n usedKey,\n exactUsedKey,\n usedLng,\n usedNS\n };\n }\n isValidLookup(res) {\n return res !== undefined && !(!this.options.returnNull && res === null) && !(!this.options.returnEmptyString && res === '');\n }\n getResource(code, ns, key, options = {}) {\n if (this.i18nFormat?.getResource) return this.i18nFormat.getResource(code, ns, key, options);\n return this.resourceStore.getResource(code, ns, key, options);\n }\n getUsedParamsDetails(options = {}) {\n const optionsKeys = ['defaultValue', 'ordinal', 'context', 'replace', 'lng', 'lngs', 'fallbackLng', 'ns', 'keySeparator', 'nsSeparator', 'returnObjects', 'returnDetails', 'joinArrays', 'postProcess', 'interpolation'];\n const useOptionsReplaceForData = options.replace && !isString(options.replace);\n let data = useOptionsReplaceForData ? options.replace : options;\n if (useOptionsReplaceForData && typeof options.count !== 'undefined') {\n data.count = options.count;\n }\n if (this.options.interpolation.defaultVariables) {\n data = {\n ...this.options.interpolation.defaultVariables,\n ...data\n };\n }\n if (!useOptionsReplaceForData) {\n data = {\n ...data\n };\n for (const key of optionsKeys) {\n delete data[key];\n }\n }\n return data;\n }\n static hasDefaultValue(options) {\n const prefix = 'defaultValue';\n for (const option in options) {\n if (Object.prototype.hasOwnProperty.call(options, option) && prefix === option.substring(0, prefix.length) && undefined !== options[option]) {\n return true;\n }\n }\n return false;\n }\n}\n\nclass LanguageUtil {\n constructor(options) {\n this.options = options;\n this.supportedLngs = this.options.supportedLngs || false;\n this.logger = baseLogger.create('languageUtils');\n }\n getScriptPartFromCode(code) {\n code = getCleanedCode(code);\n if (!code || code.indexOf('-') < 0) return null;\n const p = code.split('-');\n if (p.length === 2) return null;\n p.pop();\n if (p[p.length - 1].toLowerCase() === 'x') return null;\n return this.formatLanguageCode(p.join('-'));\n }\n getLanguagePartFromCode(code) {\n code = getCleanedCode(code);\n if (!code || code.indexOf('-') < 0) return code;\n const p = code.split('-');\n return this.formatLanguageCode(p[0]);\n }\n formatLanguageCode(code) {\n if (isString(code) && code.indexOf('-') > -1) {\n let formattedCode;\n try {\n formattedCode = Intl.getCanonicalLocales(code)[0];\n } catch (e) {}\n if (formattedCode && this.options.lowerCaseLng) {\n formattedCode = formattedCode.toLowerCase();\n }\n if (formattedCode) return formattedCode;\n if (this.options.lowerCaseLng) {\n return code.toLowerCase();\n }\n return code;\n }\n return this.options.cleanCode || this.options.lowerCaseLng ? code.toLowerCase() : code;\n }\n isSupportedCode(code) {\n if (this.options.load === 'languageOnly' || this.options.nonExplicitSupportedLngs) {\n code = this.getLanguagePartFromCode(code);\n }\n return !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(code) > -1;\n }\n getBestMatchFromCodes(codes) {\n if (!codes) return null;\n let found;\n codes.forEach(code => {\n if (found) return;\n const cleanedLng = this.formatLanguageCode(code);\n if (!this.options.supportedLngs || this.isSupportedCode(cleanedLng)) found = cleanedLng;\n });\n if (!found && this.options.supportedLngs) {\n codes.forEach(code => {\n if (found) return;\n const lngScOnly = this.getScriptPartFromCode(code);\n if (this.isSupportedCode(lngScOnly)) return found = lngScOnly;\n const lngOnly = this.getLanguagePartFromCode(code);\n if (this.isSupportedCode(lngOnly)) return found = lngOnly;\n found = this.options.supportedLngs.find(supportedLng => {\n if (supportedLng === lngOnly) return supportedLng;\n if (supportedLng.indexOf('-') < 0 && lngOnly.indexOf('-') < 0) return;\n if (supportedLng.indexOf('-') > 0 && lngOnly.indexOf('-') < 0 && supportedLng.substring(0, supportedLng.indexOf('-')) === lngOnly) return supportedLng;\n if (supportedLng.indexOf(lngOnly) === 0 && lngOnly.length > 1) return supportedLng;\n });\n });\n }\n if (!found) found = this.getFallbackCodes(this.options.fallbackLng)[0];\n return found;\n }\n getFallbackCodes(fallbacks, code) {\n if (!fallbacks) return [];\n if (typeof fallbacks === 'function') fallbacks = fallbacks(code);\n if (isString(fallbacks)) fallbacks = [fallbacks];\n if (Array.isArray(fallbacks)) return fallbacks;\n if (!code) return fallbacks.default || [];\n let found = fallbacks[code];\n if (!found) found = fallbacks[this.getScriptPartFromCode(code)];\n if (!found) found = fallbacks[this.formatLanguageCode(code)];\n if (!found) found = fallbacks[this.getLanguagePartFromCode(code)];\n if (!found) found = fallbacks.default;\n return found || [];\n }\n toResolveHierarchy(code, fallbackCode) {\n const fallbackCodes = this.getFallbackCodes((fallbackCode === false ? [] : fallbackCode) || this.options.fallbackLng || [], code);\n const codes = [];\n const addCode = c => {\n if (!c) return;\n if (this.isSupportedCode(c)) {\n codes.push(c);\n } else {\n this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`);\n }\n };\n if (isString(code) && (code.indexOf('-') > -1 || code.indexOf('_') > -1)) {\n if (this.options.load !== 'languageOnly') addCode(this.formatLanguageCode(code));\n if (this.options.load !== 'languageOnly' && this.options.load !== 'currentOnly') addCode(this.getScriptPartFromCode(code));\n if (this.options.load !== 'currentOnly') addCode(this.getLanguagePartFromCode(code));\n } else if (isString(code)) {\n addCode(this.formatLanguageCode(code));\n }\n fallbackCodes.forEach(fc => {\n if (codes.indexOf(fc) < 0) addCode(this.formatLanguageCode(fc));\n });\n return codes;\n }\n}\n\nconst suffixesOrder = {\n zero: 0,\n one: 1,\n two: 2,\n few: 3,\n many: 4,\n other: 5\n};\nconst dummyRule = {\n select: count => count === 1 ? 'one' : 'other',\n resolvedOptions: () => ({\n pluralCategories: ['one', 'other']\n })\n};\nclass PluralResolver {\n constructor(languageUtils, options = {}) {\n this.languageUtils = languageUtils;\n this.options = options;\n this.logger = baseLogger.create('pluralResolver');\n this.pluralRulesCache = {};\n }\n clearCache() {\n this.pluralRulesCache = {};\n }\n getRule(code, options = {}) {\n const cleanedCode = getCleanedCode(code === 'dev' ? 'en' : code);\n const type = options.ordinal ? 'ordinal' : 'cardinal';\n const cacheKey = JSON.stringify({\n cleanedCode,\n type\n });\n if (cacheKey in this.pluralRulesCache) {\n return this.pluralRulesCache[cacheKey];\n }\n let rule;\n try {\n rule = new Intl.PluralRules(cleanedCode, {\n type\n });\n } catch (err) {\n if (typeof Intl === 'undefined') {\n this.logger.error('No Intl support, please use an Intl polyfill!');\n return dummyRule;\n }\n if (!code.match(/-|_/)) return dummyRule;\n const lngPart = this.languageUtils.getLanguagePartFromCode(code);\n rule = this.getRule(lngPart, options);\n }\n this.pluralRulesCache[cacheKey] = rule;\n return rule;\n }\n needsPlural(code, options = {}) {\n let rule = this.getRule(code, options);\n if (!rule) rule = this.getRule('dev', options);\n return rule?.resolvedOptions().pluralCategories.length > 1;\n }\n getPluralFormsOfKey(code, key, options = {}) {\n return this.getSuffixes(code, options).map(suffix => `${key}${suffix}`);\n }\n getSuffixes(code, options = {}) {\n let rule = this.getRule(code, options);\n if (!rule) rule = this.getRule('dev', options);\n if (!rule) return [];\n return rule.resolvedOptions().pluralCategories.sort((pluralCategory1, pluralCategory2) => suffixesOrder[pluralCategory1] - suffixesOrder[pluralCategory2]).map(pluralCategory => `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ''}${pluralCategory}`);\n }\n getSuffix(code, count, options = {}) {\n const rule = this.getRule(code, options);\n if (rule) {\n return `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ''}${rule.select(count)}`;\n }\n this.logger.warn(`no plural rule found for: ${code}`);\n return this.getSuffix('dev', count, options);\n }\n}\n\nconst deepFindWithDefaults = (data, defaultData, key, keySeparator = '.', ignoreJSONStructure = true) => {\n let path = getPathWithDefaults(data, defaultData, key);\n if (!path && ignoreJSONStructure && isString(key)) {\n path = deepFind(data, key, keySeparator);\n if (path === undefined) path = deepFind(defaultData, key, keySeparator);\n }\n return path;\n};\nconst regexSafe = val => val.replace(/\\$/g, '$$$$');\nclass Interpolator {\n constructor(options = {}) {\n this.logger = baseLogger.create('interpolator');\n this.options = options;\n this.format = options?.interpolation?.format || (value => value);\n this.init(options);\n }\n init(options = {}) {\n if (!options.interpolation) options.interpolation = {\n escapeValue: true\n };\n const {\n escape: escape$1,\n escapeValue,\n useRawValueToEscape,\n prefix,\n prefixEscaped,\n suffix,\n suffixEscaped,\n formatSeparator,\n unescapeSuffix,\n unescapePrefix,\n nestingPrefix,\n nestingPrefixEscaped,\n nestingSuffix,\n nestingSuffixEscaped,\n nestingOptionsSeparator,\n maxReplaces,\n alwaysFormat\n } = options.interpolation;\n this.escape = escape$1 !== undefined ? escape$1 : escape;\n this.escapeValue = escapeValue !== undefined ? escapeValue : true;\n this.useRawValueToEscape = useRawValueToEscape !== undefined ? useRawValueToEscape : false;\n this.prefix = prefix ? regexEscape(prefix) : prefixEscaped || '{{';\n this.suffix = suffix ? regexEscape(suffix) : suffixEscaped || '}}';\n this.formatSeparator = formatSeparator || ',';\n this.unescapePrefix = unescapeSuffix ? '' : unescapePrefix || '-';\n this.unescapeSuffix = this.unescapePrefix ? '' : unescapeSuffix || '';\n this.nestingPrefix = nestingPrefix ? regexEscape(nestingPrefix) : nestingPrefixEscaped || regexEscape('$t(');\n this.nestingSuffix = nestingSuffix ? regexEscape(nestingSuffix) : nestingSuffixEscaped || regexEscape(')');\n this.nestingOptionsSeparator = nestingOptionsSeparator || ',';\n this.maxReplaces = maxReplaces || 1000;\n this.alwaysFormat = alwaysFormat !== undefined ? alwaysFormat : false;\n this.resetRegExp();\n }\n reset() {\n if (this.options) this.init(this.options);\n }\n resetRegExp() {\n const getOrResetRegExp = (existingRegExp, pattern) => {\n if (existingRegExp?.source === pattern) {\n existingRegExp.lastIndex = 0;\n return existingRegExp;\n }\n return new RegExp(pattern, 'g');\n };\n this.regexp = getOrResetRegExp(this.regexp, `${this.prefix}(.+?)${this.suffix}`);\n this.regexpUnescape = getOrResetRegExp(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`);\n this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}((?:[^()\"']+|\"[^\"]*\"|'[^']*'|\\\\((?:[^()]|\"[^\"]*\"|'[^']*')*\\\\))*?)${this.nestingSuffix}`);\n }\n interpolate(str, data, lng, options) {\n let match;\n let value;\n let replaces;\n const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};\n const handleFormat = key => {\n if (key.indexOf(this.formatSeparator) < 0) {\n const path = deepFindWithDefaults(data, defaultData, key, this.options.keySeparator, this.options.ignoreJSONStructure);\n return this.alwaysFormat ? this.format(path, undefined, lng, {\n ...options,\n ...data,\n interpolationkey: key\n }) : path;\n }\n const p = key.split(this.formatSeparator);\n const k = p.shift().trim();\n const f = p.join(this.formatSeparator).trim();\n return this.format(deepFindWithDefaults(data, defaultData, k, this.options.keySeparator, this.options.ignoreJSONStructure), f, lng, {\n ...options,\n ...data,\n interpolationkey: k\n });\n };\n this.resetRegExp();\n const missingInterpolationHandler = options?.missingInterpolationHandler || this.options.missingInterpolationHandler;\n const skipOnVariables = options?.interpolation?.skipOnVariables !== undefined ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;\n const todos = [{\n regex: this.regexpUnescape,\n safeValue: val => regexSafe(val)\n }, {\n regex: this.regexp,\n safeValue: val => this.escapeValue ? regexSafe(this.escape(val)) : regexSafe(val)\n }];\n todos.forEach(todo => {\n replaces = 0;\n while (match = todo.regex.exec(str)) {\n const matchedVar = match[1].trim();\n value = handleFormat(matchedVar);\n if (value === undefined) {\n if (typeof missingInterpolationHandler === 'function') {\n const temp = missingInterpolationHandler(str, match, options);\n value = isString(temp) ? temp : '';\n } else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {\n value = '';\n } else if (skipOnVariables) {\n value = match[0];\n continue;\n } else {\n this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`);\n value = '';\n }\n } else if (!isString(value) && !this.useRawValueToEscape) {\n value = makeString(value);\n }\n const safeValue = todo.safeValue(value);\n str = str.replace(match[0], safeValue);\n if (skipOnVariables) {\n todo.regex.lastIndex += value.length;\n todo.regex.lastIndex -= match[0].length;\n } else {\n todo.regex.lastIndex = 0;\n }\n replaces++;\n if (replaces >= this.maxReplaces) {\n break;\n }\n }\n });\n return str;\n }\n nest(str, fc, options = {}) {\n let match;\n let value;\n let clonedOptions;\n const handleHasOptions = (key, inheritedOptions) => {\n const sep = this.nestingOptionsSeparator;\n if (key.indexOf(sep) < 0) return key;\n const c = key.split(new RegExp(`${regexEscape(sep)}[ ]*{`));\n let optionsString = `{${c[1]}`;\n key = c[0];\n optionsString = this.interpolate(optionsString, clonedOptions);\n const matchedSingleQuotes = optionsString.match(/'/g);\n const matchedDoubleQuotes = optionsString.match(/\"/g);\n if ((matchedSingleQuotes?.length ?? 0) % 2 === 0 && !matchedDoubleQuotes || (matchedDoubleQuotes?.length ?? 0) % 2 !== 0) {\n optionsString = optionsString.replace(/'/g, '\"');\n }\n try {\n clonedOptions = JSON.parse(optionsString);\n if (inheritedOptions) clonedOptions = {\n ...inheritedOptions,\n ...clonedOptions\n };\n } catch (e) {\n this.logger.warn(`failed parsing options string in nesting for key ${key}`, e);\n return `${key}${sep}${optionsString}`;\n }\n if (clonedOptions.defaultValue && clonedOptions.defaultValue.indexOf(this.prefix) > -1) delete clonedOptions.defaultValue;\n return key;\n };\n while (match = this.nestingRegexp.exec(str)) {\n let formatters = [];\n clonedOptions = {\n ...options\n };\n clonedOptions = clonedOptions.replace && !isString(clonedOptions.replace) ? clonedOptions.replace : clonedOptions;\n clonedOptions.applyPostProcessor = false;\n delete clonedOptions.defaultValue;\n const keyEndIndex = /{.*}/.test(match[1]) ? match[1].lastIndexOf('}') + 1 : match[1].indexOf(this.formatSeparator);\n if (keyEndIndex !== -1) {\n formatters = match[1].slice(keyEndIndex).split(this.formatSeparator).map(elem => elem.trim()).filter(Boolean);\n match[1] = match[1].slice(0, keyEndIndex);\n }\n value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions);\n if (value && match[0] === str && !isString(value)) return value;\n if (!isString(value)) value = makeString(value);\n if (!value) {\n this.logger.warn(`missed to resolve ${match[1]} for nesting ${str}`);\n value = '';\n }\n if (formatters.length) {\n value = formatters.reduce((v, f) => this.format(v, f, options.lng, {\n ...options,\n interpolationkey: match[1].trim()\n }), value.trim());\n }\n str = str.replace(match[0], value);\n this.regexp.lastIndex = 0;\n }\n return str;\n }\n}\n\nconst parseFormatStr = formatStr => {\n let formatName = formatStr.toLowerCase().trim();\n const formatOptions = {};\n if (formatStr.indexOf('(') > -1) {\n const p = formatStr.split('(');\n formatName = p[0].toLowerCase().trim();\n const optStr = p[1].substring(0, p[1].length - 1);\n if (formatName === 'currency' && optStr.indexOf(':') < 0) {\n if (!formatOptions.currency) formatOptions.currency = optStr.trim();\n } else if (formatName === 'relativetime' && optStr.indexOf(':') < 0) {\n if (!formatOptions.range) formatOptions.range = optStr.trim();\n } else {\n const opts = optStr.split(';');\n opts.forEach(opt => {\n if (opt) {\n const [key, ...rest] = opt.split(':');\n const val = rest.join(':').trim().replace(/^'+|'+$/g, '');\n const trimmedKey = key.trim();\n if (!formatOptions[trimmedKey]) formatOptions[trimmedKey] = val;\n if (val === 'false') formatOptions[trimmedKey] = false;\n if (val === 'true') formatOptions[trimmedKey] = true;\n if (!isNaN(val)) formatOptions[trimmedKey] = parseInt(val, 10);\n }\n });\n }\n }\n return {\n formatName,\n formatOptions\n };\n};\nconst createCachedFormatter = fn => {\n const cache = {};\n return (v, l, o) => {\n let optForCache = o;\n if (o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey]) {\n optForCache = {\n ...optForCache,\n [o.interpolationkey]: undefined\n };\n }\n const key = l + JSON.stringify(optForCache);\n let frm = cache[key];\n if (!frm) {\n frm = fn(getCleanedCode(l), o);\n cache[key] = frm;\n }\n return frm(v);\n };\n};\nconst createNonCachedFormatter = fn => (v, l, o) => fn(getCleanedCode(l), o)(v);\nclass Formatter {\n constructor(options = {}) {\n this.logger = baseLogger.create('formatter');\n this.options = options;\n this.init(options);\n }\n init(services, options = {\n interpolation: {}\n }) {\n this.formatSeparator = options.interpolation.formatSeparator || ',';\n const cf = options.cacheInBuiltFormats ? createCachedFormatter : createNonCachedFormatter;\n this.formats = {\n number: cf((lng, opt) => {\n const formatter = new Intl.NumberFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n }),\n currency: cf((lng, opt) => {\n const formatter = new Intl.NumberFormat(lng, {\n ...opt,\n style: 'currency'\n });\n return val => formatter.format(val);\n }),\n datetime: cf((lng, opt) => {\n const formatter = new Intl.DateTimeFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n }),\n relativetime: cf((lng, opt) => {\n const formatter = new Intl.RelativeTimeFormat(lng, {\n ...opt\n });\n return val => formatter.format(val, opt.range || 'day');\n }),\n list: cf((lng, opt) => {\n const formatter = new Intl.ListFormat(lng, {\n ...opt\n });\n return val => formatter.format(val);\n })\n };\n }\n add(name, fc) {\n this.formats[name.toLowerCase().trim()] = fc;\n }\n addCached(name, fc) {\n this.formats[name.toLowerCase().trim()] = createCachedFormatter(fc);\n }\n format(value, format, lng, options = {}) {\n const formats = format.split(this.formatSeparator);\n if (formats.length > 1 && formats[0].indexOf('(') > 1 && formats[0].indexOf(')') < 0 && formats.find(f => f.indexOf(')') > -1)) {\n const lastIndex = formats.findIndex(f => f.indexOf(')') > -1);\n formats[0] = [formats[0], ...formats.splice(1, lastIndex)].join(this.formatSeparator);\n }\n const result = formats.reduce((mem, f) => {\n const {\n formatName,\n formatOptions\n } = parseFormatStr(f);\n if (this.formats[formatName]) {\n let formatted = mem;\n try {\n const valOptions = options?.formatParams?.[options.interpolationkey] || {};\n const l = valOptions.locale || valOptions.lng || options.locale || options.lng || lng;\n formatted = this.formats[formatName](mem, l, {\n ...formatOptions,\n ...options,\n ...valOptions\n });\n } catch (error) {\n this.logger.warn(error);\n }\n return formatted;\n } else {\n this.logger.warn(`there was no format function for ${formatName}`);\n }\n return mem;\n }, value);\n return result;\n }\n}\n\nconst removePending = (q, name) => {\n if (q.pending[name] !== undefined) {\n delete q.pending[name];\n q.pendingCount--;\n }\n};\nclass Connector extends EventEmitter {\n constructor(backend, store, services, options = {}) {\n super();\n this.backend = backend;\n this.store = store;\n this.services = services;\n this.languageUtils = services.languageUtils;\n this.options = options;\n this.logger = baseLogger.create('backendConnector');\n this.waitingReads = [];\n this.maxParallelReads = options.maxParallelReads || 10;\n this.readingCalls = 0;\n this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;\n this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;\n this.state = {};\n this.queue = [];\n this.backend?.init?.(services, options.backend, options);\n }\n queueLoad(languages, namespaces, options, callback) {\n const toLoad = {};\n const pending = {};\n const toLoadLanguages = {};\n const toLoadNamespaces = {};\n languages.forEach(lng => {\n let hasAllNamespaces = true;\n namespaces.forEach(ns => {\n const name = `${lng}|${ns}`;\n if (!options.reload && this.store.hasResourceBundle(lng, ns)) {\n this.state[name] = 2;\n } else if (this.state[name] < 0) ; else if (this.state[name] === 1) {\n if (pending[name] === undefined) pending[name] = true;\n } else {\n this.state[name] = 1;\n hasAllNamespaces = false;\n if (pending[name] === undefined) pending[name] = true;\n if (toLoad[name] === undefined) toLoad[name] = true;\n if (toLoadNamespaces[ns] === undefined) toLoadNamespaces[ns] = true;\n }\n });\n if (!hasAllNamespaces) toLoadLanguages[lng] = true;\n });\n if (Object.keys(toLoad).length || Object.keys(pending).length) {\n this.queue.push({\n pending,\n pendingCount: Object.keys(pending).length,\n loaded: {},\n errors: [],\n callback\n });\n }\n return {\n toLoad: Object.keys(toLoad),\n pending: Object.keys(pending),\n toLoadLanguages: Object.keys(toLoadLanguages),\n toLoadNamespaces: Object.keys(toLoadNamespaces)\n };\n }\n loaded(name, err, data) {\n const s = name.split('|');\n const lng = s[0];\n const ns = s[1];\n if (err) this.emit('failedLoading', lng, ns, err);\n if (!err && data) {\n this.store.addResourceBundle(lng, ns, data, undefined, undefined, {\n skipCopy: true\n });\n }\n this.state[name] = err ? -1 : 2;\n if (err && data) this.state[name] = 0;\n const loaded = {};\n this.queue.forEach(q => {\n pushPath(q.loaded, [lng], ns);\n removePending(q, name);\n if (err) q.errors.push(err);\n if (q.pendingCount === 0 && !q.done) {\n Object.keys(q.loaded).forEach(l => {\n if (!loaded[l]) loaded[l] = {};\n const loadedKeys = q.loaded[l];\n if (loadedKeys.length) {\n loadedKeys.forEach(n => {\n if (loaded[l][n] === undefined) loaded[l][n] = true;\n });\n }\n });\n q.done = true;\n if (q.errors.length) {\n q.callback(q.errors);\n } else {\n q.callback();\n }\n }\n });\n this.emit('loaded', loaded);\n this.queue = this.queue.filter(q => !q.done);\n }\n read(lng, ns, fcName, tried = 0, wait = this.retryTimeout, callback) {\n if (!lng.length) return callback(null, {});\n if (this.readingCalls >= this.maxParallelReads) {\n this.waitingReads.push({\n lng,\n ns,\n fcName,\n tried,\n wait,\n callback\n });\n return;\n }\n this.readingCalls++;\n const resolver = (err, data) => {\n this.readingCalls--;\n if (this.waitingReads.length > 0) {\n const next = this.waitingReads.shift();\n this.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);\n }\n if (err && data && tried < this.maxRetries) {\n setTimeout(() => {\n this.read.call(this, lng, ns, fcName, tried + 1, wait * 2, callback);\n }, wait);\n return;\n }\n callback(err, data);\n };\n const fc = this.backend[fcName].bind(this.backend);\n if (fc.length === 2) {\n try {\n const r = fc(lng, ns);\n if (r && typeof r.then === 'function') {\n r.then(data => resolver(null, data)).catch(resolver);\n } else {\n resolver(null, r);\n }\n } catch (err) {\n resolver(err);\n }\n return;\n }\n return fc(lng, ns, resolver);\n }\n prepareLoading(languages, namespaces, options = {}, callback) {\n if (!this.backend) {\n this.logger.warn('No backend was added via i18next.use. Will not load resources.');\n return callback && callback();\n }\n if (isString(languages)) languages = this.languageUtils.toResolveHierarchy(languages);\n if (isString(namespaces)) namespaces = [namespaces];\n const toLoad = this.queueLoad(languages, namespaces, options, callback);\n if (!toLoad.toLoad.length) {\n if (!toLoad.pending.length) callback();\n return null;\n }\n toLoad.toLoad.forEach(name => {\n this.loadOne(name);\n });\n }\n load(languages, namespaces, callback) {\n this.prepareLoading(languages, namespaces, {}, callback);\n }\n reload(languages, namespaces, callback) {\n this.prepareLoading(languages, namespaces, {\n reload: true\n }, callback);\n }\n loadOne(name, prefix = '') {\n const s = name.split('|');\n const lng = s[0];\n const ns = s[1];\n this.read(lng, ns, 'read', undefined, undefined, (err, data) => {\n if (err) this.logger.warn(`${prefix}loading namespace ${ns} for language ${lng} failed`, err);\n if (!err && data) this.logger.log(`${prefix}loaded namespace ${ns} for language ${lng}`, data);\n this.loaded(name, err, data);\n });\n }\n saveMissing(languages, namespace, key, fallbackValue, isUpdate, options = {}, clb = () => {}) {\n if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(namespace)) {\n this.logger.warn(`did not save key \"${key}\" as the namespace \"${namespace}\" was not yet loaded`, 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');\n return;\n }\n if (key === undefined || key === null || key === '') return;\n if (this.backend?.create) {\n const opts = {\n ...options,\n isUpdate\n };\n const fc = this.backend.create.bind(this.backend);\n if (fc.length < 6) {\n try {\n let r;\n if (fc.length === 5) {\n r = fc(languages, namespace, key, fallbackValue, opts);\n } else {\n r = fc(languages, namespace, key, fallbackValue);\n }\n if (r && typeof r.then === 'function') {\n r.then(data => clb(null, data)).catch(clb);\n } else {\n clb(null, r);\n }\n } catch (err) {\n clb(err);\n }\n } else {\n fc(languages, namespace, key, fallbackValue, clb, opts);\n }\n }\n if (!languages || !languages[0]) return;\n this.store.addResource(languages[0], namespace, key, fallbackValue);\n }\n}\n\nconst get = () => ({\n debug: false,\n initAsync: true,\n ns: ['translation'],\n defaultNS: ['translation'],\n fallbackLng: ['dev'],\n fallbackNS: false,\n supportedLngs: false,\n nonExplicitSupportedLngs: false,\n load: 'all',\n preload: false,\n simplifyPluralSuffix: true,\n keySeparator: '.',\n nsSeparator: ':',\n pluralSeparator: '_',\n contextSeparator: '_',\n partialBundledLanguages: false,\n saveMissing: false,\n updateMissing: false,\n saveMissingTo: 'fallback',\n saveMissingPlurals: true,\n missingKeyHandler: false,\n missingInterpolationHandler: false,\n postProcess: false,\n postProcessPassResolved: false,\n returnNull: false,\n returnEmptyString: true,\n returnObjects: false,\n joinArrays: false,\n returnedObjectHandler: false,\n parseMissingKeyHandler: false,\n appendNamespaceToMissingKey: false,\n appendNamespaceToCIMode: false,\n overloadTranslationOptionHandler: args => {\n let ret = {};\n if (typeof args[1] === 'object') ret = args[1];\n if (isString(args[1])) ret.defaultValue = args[1];\n if (isString(args[2])) ret.tDescription = args[2];\n if (typeof args[2] === 'object' || typeof args[3] === 'object') {\n const options = args[3] || args[2];\n Object.keys(options).forEach(key => {\n ret[key] = options[key];\n });\n }\n return ret;\n },\n interpolation: {\n escapeValue: true,\n format: value => value,\n prefix: '{{',\n suffix: '}}',\n formatSeparator: ',',\n unescapePrefix: '-',\n nestingPrefix: '$t(',\n nestingSuffix: ')',\n nestingOptionsSeparator: ',',\n maxReplaces: 1000,\n skipOnVariables: true\n },\n cacheInBuiltFormats: true\n});\nconst transformOptions = options => {\n if (isString(options.ns)) options.ns = [options.ns];\n if (isString(options.fallbackLng)) options.fallbackLng = [options.fallbackLng];\n if (isString(options.fallbackNS)) options.fallbackNS = [options.fallbackNS];\n if (options.supportedLngs?.indexOf?.('cimode') < 0) {\n options.supportedLngs = options.supportedLngs.concat(['cimode']);\n }\n if (typeof options.initImmediate === 'boolean') options.initAsync = options.initImmediate;\n return options;\n};\n\nconst noop = () => {};\nconst bindMemberFunctions = inst => {\n const mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));\n mems.forEach(mem => {\n if (typeof inst[mem] === 'function') {\n inst[mem] = inst[mem].bind(inst);\n }\n });\n};\nconst SUPPORT_NOTICE_KEY = '__i18next_supportNoticeShown';\nconst getSupportNoticeShown = () => {\n if (typeof globalThis !== 'undefined' && !!globalThis[SUPPORT_NOTICE_KEY]) return true;\n if (typeof process !== 'undefined' && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE) return true;\n if (typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'production') return true;\n return false;\n};\nconst setSupportNoticeShown = () => {\n if (typeof globalThis !== 'undefined') globalThis[SUPPORT_NOTICE_KEY] = true;\n};\nconst usesLocize = inst => {\n if (inst?.modules?.backend?.name?.indexOf('Locize') > 0) return true;\n if (inst?.modules?.backend?.constructor?.name?.indexOf('Locize') > 0) return true;\n if (inst?.options?.backend?.backends) {\n if (inst.options.backend.backends.some(b => b?.name?.indexOf('Locize') > 0 || b?.constructor?.name?.indexOf('Locize') > 0)) return true;\n }\n if (inst?.options?.backend?.projectId) return true;\n if (inst?.options?.backend?.backendOptions) {\n if (inst.options.backend.backendOptions.some(b => b?.projectId)) return true;\n }\n return false;\n};\nclass I18n extends EventEmitter {\n constructor(options = {}, callback) {\n super();\n this.options = transformOptions(options);\n this.services = {};\n this.logger = baseLogger;\n this.modules = {\n external: []\n };\n bindMemberFunctions(this);\n if (callback && !this.isInitialized && !options.isClone) {\n if (!this.options.initAsync) {\n this.init(options, callback);\n return this;\n }\n setTimeout(() => {\n this.init(options, callback);\n }, 0);\n }\n }\n init(options = {}, callback) {\n this.isInitializing = true;\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n if (options.defaultNS == null && options.ns) {\n if (isString(options.ns)) {\n options.defaultNS = options.ns;\n } else if (options.ns.indexOf('translation') < 0) {\n options.defaultNS = options.ns[0];\n }\n }\n const defOpts = get();\n this.options = {\n ...defOpts,\n ...this.options,\n ...transformOptions(options)\n };\n this.options.interpolation = {\n ...defOpts.interpolation,\n ...this.options.interpolation\n };\n if (options.keySeparator !== undefined) {\n this.options.userDefinedKeySeparator = options.keySeparator;\n }\n if (options.nsSeparator !== undefined) {\n this.options.userDefinedNsSeparator = options.nsSeparator;\n }\n if (typeof this.options.overloadTranslationOptionHandler !== 'function') {\n this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;\n }\n if (this.options.showSupportNotice !== false && !usesLocize(this) && !getSupportNoticeShown()) {\n if (typeof console !== 'undefined' && typeof console.info !== 'undefined') console.info('🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙');\n setSupportNoticeShown();\n }\n const createClassOnDemand = ClassOrObject => {\n if (!ClassOrObject) return null;\n if (typeof ClassOrObject === 'function') return new ClassOrObject();\n return ClassOrObject;\n };\n if (!this.options.isClone) {\n if (this.modules.logger) {\n baseLogger.init(createClassOnDemand(this.modules.logger), this.options);\n } else {\n baseLogger.init(null, this.options);\n }\n let formatter;\n if (this.modules.formatter) {\n formatter = this.modules.formatter;\n } else {\n formatter = Formatter;\n }\n const lu = new LanguageUtil(this.options);\n this.store = new ResourceStore(this.options.resources, this.options);\n const s = this.services;\n s.logger = baseLogger;\n s.resourceStore = this.store;\n s.languageUtils = lu;\n s.pluralResolver = new PluralResolver(lu, {\n prepend: this.options.pluralSeparator,\n simplifyPluralSuffix: this.options.simplifyPluralSuffix\n });\n const usingLegacyFormatFunction = this.options.interpolation.format && this.options.interpolation.format !== defOpts.interpolation.format;\n if (usingLegacyFormatFunction) {\n this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`);\n }\n if (formatter && (!this.options.interpolation.format || this.options.interpolation.format === defOpts.interpolation.format)) {\n s.formatter = createClassOnDemand(formatter);\n if (s.formatter.init) s.formatter.init(s, this.options);\n this.options.interpolation.format = s.formatter.format.bind(s.formatter);\n }\n s.interpolator = new Interpolator(this.options);\n s.utils = {\n hasLoadedNamespace: this.hasLoadedNamespace.bind(this)\n };\n s.backendConnector = new Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);\n s.backendConnector.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n if (this.modules.languageDetector) {\n s.languageDetector = createClassOnDemand(this.modules.languageDetector);\n if (s.languageDetector.init) s.languageDetector.init(s, this.options.detection, this.options);\n }\n if (this.modules.i18nFormat) {\n s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);\n if (s.i18nFormat.init) s.i18nFormat.init(this);\n }\n this.translator = new Translator(this.services, this.options);\n this.translator.on('*', (event, ...args) => {\n this.emit(event, ...args);\n });\n this.modules.external.forEach(m => {\n if (m.init) m.init(this);\n });\n }\n this.format = this.options.interpolation.format;\n if (!callback) callback = noop;\n if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {\n const codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];\n }\n if (!this.services.languageDetector && !this.options.lng) {\n this.logger.warn('init: no languageDetector is used and no lng is defined');\n }\n const storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];\n storeApi.forEach(fcName => {\n this[fcName] = (...args) => this.store[fcName](...args);\n });\n const storeApiChained = ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'];\n storeApiChained.forEach(fcName => {\n this[fcName] = (...args) => {\n this.store[fcName](...args);\n return this;\n };\n });\n const deferred = defer();\n const load = () => {\n const finish = (err, t) => {\n this.isInitializing = false;\n if (this.isInitialized && !this.initializedStoreOnce) this.logger.warn('init: i18next is already initialized. You should call init just once!');\n this.isInitialized = true;\n if (!this.options.isClone) this.logger.log('initialized', this.options);\n this.emit('initialized', this.options);\n deferred.resolve(t);\n callback(err, t);\n };\n if (this.languages && !this.isInitialized) return finish(null, this.t.bind(this));\n this.changeLanguage(this.options.lng, finish);\n };\n if (this.options.resources || !this.options.initAsync) {\n load();\n } else {\n setTimeout(load, 0);\n }\n return deferred;\n }\n loadResources(language, callback = noop) {\n let usedCallback = callback;\n const usedLng = isString(language) ? language : this.language;\n if (typeof language === 'function') usedCallback = language;\n if (!this.options.resources || this.options.partialBundledLanguages) {\n if (usedLng?.toLowerCase() === 'cimode' && (!this.options.preload || this.options.preload.length === 0)) return usedCallback();\n const toLoad = [];\n const append = lng => {\n if (!lng) return;\n if (lng === 'cimode') return;\n const lngs = this.services.languageUtils.toResolveHierarchy(lng);\n lngs.forEach(l => {\n if (l === 'cimode') return;\n if (toLoad.indexOf(l) < 0) toLoad.push(l);\n });\n };\n if (!usedLng) {\n const fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);\n fallbacks.forEach(l => append(l));\n } else {\n append(usedLng);\n }\n this.options.preload?.forEach?.(l => append(l));\n this.services.backendConnector.load(toLoad, this.options.ns, e => {\n if (!e && !this.resolvedLanguage && this.language) this.setResolvedLanguage(this.language);\n usedCallback(e);\n });\n } else {\n usedCallback(null);\n }\n }\n reloadResources(lngs, ns, callback) {\n const deferred = defer();\n if (typeof lngs === 'function') {\n callback = lngs;\n lngs = undefined;\n }\n if (typeof ns === 'function') {\n callback = ns;\n ns = undefined;\n }\n if (!lngs) lngs = this.languages;\n if (!ns) ns = this.options.ns;\n if (!callback) callback = noop;\n this.services.backendConnector.reload(lngs, ns, err => {\n deferred.resolve();\n callback(err);\n });\n return deferred;\n }\n use(module) {\n if (!module) throw new Error('You are passing an undefined module! Please check the object you are passing to i18next.use()');\n if (!module.type) throw new Error('You are passing a wrong module! Please check the object you are passing to i18next.use()');\n if (module.type === 'backend') {\n this.modules.backend = module;\n }\n if (module.type === 'logger' || module.log && module.warn && module.error) {\n this.modules.logger = module;\n }\n if (module.type === 'languageDetector') {\n this.modules.languageDetector = module;\n }\n if (module.type === 'i18nFormat') {\n this.modules.i18nFormat = module;\n }\n if (module.type === 'postProcessor') {\n postProcessor.addPostProcessor(module);\n }\n if (module.type === 'formatter') {\n this.modules.formatter = module;\n }\n if (module.type === '3rdParty') {\n this.modules.external.push(module);\n }\n return this;\n }\n setResolvedLanguage(l) {\n if (!l || !this.languages) return;\n if (['cimode', 'dev'].indexOf(l) > -1) return;\n for (let li = 0; li < this.languages.length; li++) {\n const lngInLngs = this.languages[li];\n if (['cimode', 'dev'].indexOf(lngInLngs) > -1) continue;\n if (this.store.hasLanguageSomeTranslations(lngInLngs)) {\n this.resolvedLanguage = lngInLngs;\n break;\n }\n }\n if (!this.resolvedLanguage && this.languages.indexOf(l) < 0 && this.store.hasLanguageSomeTranslations(l)) {\n this.resolvedLanguage = l;\n this.languages.unshift(l);\n }\n }\n changeLanguage(lng, callback) {\n this.isLanguageChangingTo = lng;\n const deferred = defer();\n this.emit('languageChanging', lng);\n const setLngProps = l => {\n this.language = l;\n this.languages = this.services.languageUtils.toResolveHierarchy(l);\n this.resolvedLanguage = undefined;\n this.setResolvedLanguage(l);\n };\n const done = (err, l) => {\n if (l) {\n if (this.isLanguageChangingTo === lng) {\n setLngProps(l);\n this.translator.changeLanguage(l);\n this.isLanguageChangingTo = undefined;\n this.emit('languageChanged', l);\n this.logger.log('languageChanged', l);\n }\n } else {\n this.isLanguageChangingTo = undefined;\n }\n deferred.resolve((...args) => this.t(...args));\n if (callback) callback(err, (...args) => this.t(...args));\n };\n const setLng = lngs => {\n if (!lng && !lngs && this.services.languageDetector) lngs = [];\n const fl = isString(lngs) ? lngs : lngs && lngs[0];\n const l = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);\n if (l) {\n if (!this.language) {\n setLngProps(l);\n }\n if (!this.translator.language) this.translator.changeLanguage(l);\n this.services.languageDetector?.cacheUserLanguage?.(l);\n }\n this.loadResources(l, err => {\n done(err, l);\n });\n };\n if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {\n setLng(this.services.languageDetector.detect());\n } else if (!lng && this.services.languageDetector && this.services.languageDetector.async) {\n if (this.services.languageDetector.detect.length === 0) {\n this.services.languageDetector.detect().then(setLng);\n } else {\n this.services.languageDetector.detect(setLng);\n }\n } else {\n setLng(lng);\n }\n return deferred;\n }\n getFixedT(lng, ns, keyPrefix) {\n const fixedT = (key, opts, ...rest) => {\n let o;\n if (typeof opts !== 'object') {\n o = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));\n } else {\n o = {\n ...opts\n };\n }\n o.lng = o.lng || fixedT.lng;\n o.lngs = o.lngs || fixedT.lngs;\n o.ns = o.ns || fixedT.ns;\n if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;\n const selectorOpts = {\n ...this.options,\n ...o\n };\n if (typeof o.keyPrefix === 'function') o.keyPrefix = keysFromSelector(o.keyPrefix, selectorOpts);\n const keySeparator = this.options.keySeparator || '.';\n let resultKey;\n if (o.keyPrefix && Array.isArray(key)) {\n resultKey = key.map(k => {\n if (typeof k === 'function') k = keysFromSelector(k, selectorOpts);\n return `${o.keyPrefix}${keySeparator}${k}`;\n });\n } else {\n if (typeof key === 'function') key = keysFromSelector(key, selectorOpts);\n resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;\n }\n return this.t(resultKey, o);\n };\n if (isString(lng)) {\n fixedT.lng = lng;\n } else {\n fixedT.lngs = lng;\n }\n fixedT.ns = ns;\n fixedT.keyPrefix = keyPrefix;\n return fixedT;\n }\n t(...args) {\n return this.translator?.translate(...args);\n }\n exists(...args) {\n return this.translator?.exists(...args);\n }\n setDefaultNamespace(ns) {\n this.options.defaultNS = ns;\n }\n hasLoadedNamespace(ns, options = {}) {\n if (!this.isInitialized) {\n this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages);\n return false;\n }\n if (!this.languages || !this.languages.length) {\n this.logger.warn('hasLoadedNamespace: i18n.languages were undefined or empty', this.languages);\n return false;\n }\n const lng = options.lng || this.resolvedLanguage || this.languages[0];\n const fallbackLng = this.options ? this.options.fallbackLng : false;\n const lastLng = this.languages[this.languages.length - 1];\n if (lng.toLowerCase() === 'cimode') return true;\n const loadNotPending = (l, n) => {\n const loadState = this.services.backendConnector.state[`${l}|${n}`];\n return loadState === -1 || loadState === 0 || loadState === 2;\n };\n if (options.precheck) {\n const preResult = options.precheck(this, loadNotPending);\n if (preResult !== undefined) return preResult;\n }\n if (this.hasResourceBundle(lng, ns)) return true;\n if (!this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;\n if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n return false;\n }\n loadNamespaces(ns, callback) {\n const deferred = defer();\n if (!this.options.ns) {\n if (callback) callback();\n return Promise.resolve();\n }\n if (isString(ns)) ns = [ns];\n ns.forEach(n => {\n if (this.options.ns.indexOf(n) < 0) this.options.ns.push(n);\n });\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n loadLanguages(lngs, callback) {\n const deferred = defer();\n if (isString(lngs)) lngs = [lngs];\n const preloaded = this.options.preload || [];\n const newLngs = lngs.filter(lng => preloaded.indexOf(lng) < 0 && this.services.languageUtils.isSupportedCode(lng));\n if (!newLngs.length) {\n if (callback) callback();\n return Promise.resolve();\n }\n this.options.preload = preloaded.concat(newLngs);\n this.loadResources(err => {\n deferred.resolve();\n if (callback) callback(err);\n });\n return deferred;\n }\n dir(lng) {\n if (!lng) lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);\n if (!lng) return 'rtl';\n try {\n const l = new Intl.Locale(lng);\n if (l && l.getTextInfo) {\n const ti = l.getTextInfo();\n if (ti && ti.direction) return ti.direction;\n }\n } catch (e) {}\n const rtlLngs = ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam', 'ckb'];\n const languageUtils = this.services?.languageUtils || new LanguageUtil(get());\n if (lng.toLowerCase().indexOf('-latn') > 1) return 'ltr';\n return rtlLngs.indexOf(languageUtils.getLanguagePartFromCode(lng)) > -1 || lng.toLowerCase().indexOf('-arab') > 1 ? 'rtl' : 'ltr';\n }\n static createInstance(options = {}, callback) {\n const instance = new I18n(options, callback);\n instance.createInstance = I18n.createInstance;\n return instance;\n }\n cloneInstance(options = {}, callback = noop) {\n const forkResourceStore = options.forkResourceStore;\n if (forkResourceStore) delete options.forkResourceStore;\n const mergedOptions = {\n ...this.options,\n ...options,\n ...{\n isClone: true\n }\n };\n const clone = new I18n(mergedOptions);\n if (options.debug !== undefined || options.prefix !== undefined) {\n clone.logger = clone.logger.clone(options);\n }\n const membersToCopy = ['store', 'services', 'language'];\n membersToCopy.forEach(m => {\n clone[m] = this[m];\n });\n clone.services = {\n ...this.services\n };\n clone.services.utils = {\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n };\n if (forkResourceStore) {\n const clonedData = Object.keys(this.store.data).reduce((prev, l) => {\n prev[l] = {\n ...this.store.data[l]\n };\n prev[l] = Object.keys(prev[l]).reduce((acc, n) => {\n acc[n] = {\n ...prev[l][n]\n };\n return acc;\n }, prev[l]);\n return prev;\n }, {});\n clone.store = new ResourceStore(clonedData, mergedOptions);\n clone.services.resourceStore = clone.store;\n }\n if (options.interpolation) {\n const defOpts = get();\n const mergedInterpolation = {\n ...defOpts.interpolation,\n ...this.options.interpolation,\n ...options.interpolation\n };\n const mergedForInterpolator = {\n ...mergedOptions,\n interpolation: mergedInterpolation\n };\n clone.services.interpolator = new Interpolator(mergedForInterpolator);\n }\n clone.translator = new Translator(clone.services, mergedOptions);\n clone.translator.on('*', (event, ...args) => {\n clone.emit(event, ...args);\n });\n clone.init(mergedOptions, callback);\n clone.translator.options = mergedOptions;\n clone.translator.backendConnector.services.utils = {\n hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)\n };\n return clone;\n }\n toJSON() {\n return {\n options: this.options,\n store: this.store,\n language: this.language,\n languages: this.languages,\n resolvedLanguage: this.resolvedLanguage\n };\n }\n}\nconst instance = I18n.createInstance();\n\nconst createInstance = instance.createInstance;\nconst dir = instance.dir;\nconst init = instance.init;\nconst loadResources = instance.loadResources;\nconst reloadResources = instance.reloadResources;\nconst use = instance.use;\nconst changeLanguage = instance.changeLanguage;\nconst getFixedT = instance.getFixedT;\nconst t = instance.t;\nconst exists = instance.exists;\nconst setDefaultNamespace = instance.setDefaultNamespace;\nconst hasLoadedNamespace = instance.hasLoadedNamespace;\nconst loadNamespaces = instance.loadNamespaces;\nconst loadLanguages = instance.loadLanguages;\n\nexport { changeLanguage, createInstance, instance as default, dir, exists, getFixedT, hasLoadedNamespace, init, keysFromSelector as keyFromSelector, loadLanguages, loadNamespaces, loadResources, reloadResources, setDefaultNamespace, t, use };\n","import e from \"./en.js\";\nimport t from \"./es.js\";\nimport n from \"i18next\";\n//#region src/index.ts\nn.init({\n\tfallbackLng: \"en\",\n\tlng: \"en\",\n\tdebug: !0,\n\tresources: {\n\t\ten: e,\n\t\tes: t\n\t}\n});\nvar r = {\n\ttranslator: {\n\t\t...n,\n\t\tt: (e, t) => {\n\t\t\tlet { lng: r } = t;\n\t\t\tswitch (r) {\n\t\t\t\tcase \"en_US\":\n\t\t\t\tcase \"en-US\":\n\t\t\t\t\tt.lng = \"en\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"es_ES\":\n\t\t\t\tcase \"es-ES\":\n\t\t\t\tcase \"es_MX\":\n\t\t\t\tcase \"es-MX\":\n\t\t\t\t\tt.lng = \"es\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: break;\n\t\t\t}\n\t\t\treturn n.t(e, {\n\t\t\t\tlng: r,\n\t\t\t\t...t\n\t\t\t});\n\t\t}\n\t},\n\tlanguageOptions: [{\n\t\tvalue: \"en_US\",\n\t\tlabel: \"English (US)\"\n\t}, {\n\t\tvalue: \"es_ES\",\n\t\tlabel: \"Spanish\"\n\t}]\n};\n//#endregion\nexport { r as default };\n","import e from \"./expander.js\";\nimport { styled as t } from \"@mui/material/styles\";\nimport { CSSTransition as n } from \"react-transition-group\";\nimport { CorrectResponse as r } from \"@pie-lib/icons\";\nimport * as i from \"@pie-lib/render-ui\";\nimport { Readable as a, color as o } from \"@pie-lib/render-ui\";\nimport { jsx as s, jsxs as c } from \"react/jsx-runtime\";\nimport l from \"react\";\nimport u from \"prop-types\";\nimport d from \"@pie-lib/translator\";\n//#region src/index.tsx\nfunction f(e) {\n\treturn typeof e == \"function\" || typeof e == \"object\" && !!e && typeof e.$$typeof == \"symbol\";\n}\nfunction p(e, t) {\n\treturn !e || f(e) ? e : f(e.default) ? e.default : t && f(e[t]) ? e[t] : t && f(e[t]?.default) ? e[t].default : e;\n}\nvar m = p(a, \"Readable\") || p(_.Readable, \"Readable\"), h = i, g = h.default, _ = g && typeof g == \"object\" ? g : h, { translator: v } = d, y = {\n\tWebkitTouchCallout: \"none\",\n\tWebkitUserSelect: \"none\",\n\tKhtmlUserSelect: \"none\",\n\tMozUserSelect: \"none\",\n\tmsUserSelect: \"none\",\n\tuserSelect: \"none\"\n}, b = t(\"div\")(() => ({\n\twidth: \"100%\",\n\tcursor: \"pointer\"\n})), x = t(\"div\")(() => ({\n\tmargin: \"0 auto\",\n\ttextAlign: \"center\",\n\tdisplay: \"flex\"\n})), S = t(\"div\")(() => ({\n\twidth: \"fit-content\",\n\tminWidth: \"140px\",\n\talignSelf: \"center\",\n\tverticalAlign: \"middle\",\n\tcolor: `var(--correct-answer-toggle-label-color, ${o.text()})`,\n\tfontWeight: \"normal\",\n\t...y\n})), C = t(\"div\")(() => ({\n\tposition: \"absolute\",\n\twidth: \"25px\",\n\t\"&.enter\": { opacity: \"0\" },\n\t\"&.enter-active\": {\n\t\topacity: \"1\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t},\n\t\"&.exit\": { opacity: \"1\" },\n\t\"&.exit-active\": {\n\t\topacity: \"0\",\n\t\ttransition: \"opacity 0.3s ease-in\"\n\t}\n})), w = t(\"div\")(() => ({\n\twidth: \"25px\",\n\tmarginRight: \"5px\",\n\tdisplay: \"flex\",\n\talignItems: \"center\"\n})), T = class t extends l.Component {\n\tstatic propTypes = {\n\t\tonToggle: u.func,\n\t\ttoggled: u.bool,\n\t\tshow: u.bool,\n\t\thideMessage: u.string,\n\t\tshowMessage: u.string,\n\t\tclassName: u.string,\n\t\tlanguage: u.string\n\t};\n\tstatic defaultProps = {\n\t\tshowMessage: \"Show correct answer\",\n\t\thideMessage: \"Hide correct answer\",\n\t\tshow: !1,\n\t\ttoggled: !1\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.state = { show: e.show }, this.openIconRef = l.createRef(), this.closedIconRef = l.createRef(), t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t};\n\t}\n\tonClick() {\n\t\tthis.props.onToggle(!this.props.toggled);\n\t}\n\tonTouch(e) {\n\t\te.preventDefault(), this.props.onToggle(!this.props.toggled);\n\t}\n\tUNSAFE_componentWillReceiveProps(e) {\n\t\tthis.setState({ show: e.show }), e.language !== this.props?.language && (t.defaultProps = {\n\t\t\t...t.defaultProps,\n\t\t\tshowMessage: v.t(\"common:showCorrectAnswer\", { lng: e.language }),\n\t\t\thideMessage: v.t(\"common:hideCorrectAnswer\", { lng: e.language })\n\t\t});\n\t}\n\trender() {\n\t\tlet { className: t, toggled: i, hideMessage: a, showMessage: o } = this.props;\n\t\treturn /* @__PURE__ */ s(b, {\n\t\t\tclassName: t,\n\t\t\tchildren: /* @__PURE__ */ s(e, {\n\t\t\t\tshow: this.state.show,\n\t\t\t\tchildren: /* @__PURE__ */ c(x, {\n\t\t\t\t\tonClick: this.onClick.bind(this),\n\t\t\t\t\tonTouchEnd: this.onTouch.bind(this),\n\t\t\t\t\tchildren: [/* @__PURE__ */ c(w, { children: [/* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.openIconRef,\n\t\t\t\t\t\ttimeout: 400,\n\t\t\t\t\t\tin: i,\n\t\t\t\t\t\texit: !i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.openIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-open\")\n\t\t\t\t\t\t})\n\t\t\t\t\t}), /* @__PURE__ */ s(n, {\n\t\t\t\t\t\tnodeRef: this.closedIconRef,\n\t\t\t\t\t\ttimeout: 5e3,\n\t\t\t\t\t\tin: !i,\n\t\t\t\t\t\texit: i,\n\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\tenter: \"enter\",\n\t\t\t\t\t\t\tenterActive: \"enter-active\",\n\t\t\t\t\t\t\texit: \"exit\",\n\t\t\t\t\t\t\texitActive: \"exit-active\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(C, {\n\t\t\t\t\t\t\tref: this.closedIconRef,\n\t\t\t\t\t\t\tchildren: /* @__PURE__ */ s(r, { open: i }, \"correct-closed\")\n\t\t\t\t\t\t})\n\t\t\t\t\t})] }), /* @__PURE__ */ s(m, {\n\t\t\t\t\t\tfalse: !0,\n\t\t\t\t\t\tchildren: /* @__PURE__ */ s(S, {\n\t\t\t\t\t\t\t\"aria-hidden\": !this.state.show,\n\t\t\t\t\t\t\tchildren: i ? a : o\n\t\t\t\t\t\t})\n\t\t\t\t\t})]\n\t\t\t\t})\n\t\t\t})\n\t\t});\n\t}\n};\n//#endregion\nexport { T as CorrectAnswerToggle, T as default };\n","//#region src/componentize.tsx\nvar e = /\\{\\{(\\d+)\\}\\}/g, t = (t, n) => t ? { markup: t.replace(e, (e, t) => `<span data-component=\"${n}\" data-id=\"${t}\"></span>`) } : { markup: \"\" };\n//#endregion\nexport { t as default };\n","//#region \\0rolldown/runtime.js\nvar e = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports);\n//#endregion\nexport { e as __commonJSMin };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixProperties.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = {\n\t\t\"border-radius\": 1,\n\t\t\"border-top-left-radius\": 1,\n\t\t\"border-top-right-radius\": 1,\n\t\t\"border-bottom-left-radius\": 1,\n\t\t\"border-bottom-right-radius\": 1,\n\t\t\"box-shadow\": 1,\n\t\torder: 1,\n\t\tflex: function(e, t) {\n\t\t\treturn [t + \"box-flex\"];\n\t\t},\n\t\t\"box-flex\": 1,\n\t\t\"box-align\": 1,\n\t\tanimation: 1,\n\t\t\"animation-duration\": 1,\n\t\t\"animation-name\": 1,\n\t\ttransition: 1,\n\t\t\"transition-duration\": 1,\n\t\ttransform: 1,\n\t\t\"transform-style\": 1,\n\t\t\"transform-origin\": 1,\n\t\t\"backface-visibility\": 1,\n\t\tperspective: 1,\n\t\t\"box-pack\": 1\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_prefixProperties };\n","\"use exports\";\nimport { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssUnitless.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = {\n\t\tanimation: 1,\n\t\t\"column-count\": 1,\n\t\tcolumns: 1,\n\t\t\"font-weight\": 1,\n\t\topacity: 1,\n\t\t\"order \": 1,\n\t\t\"z-index\": 1,\n\t\tzoom: 1,\n\t\tflex: 1,\n\t\t\"box-flex\": 1,\n\t\ttransform: 1,\n\t\tperspective: 1,\n\t\t\"box-pack\": 1,\n\t\t\"box-align\": 1,\n\t\tcolspan: 1,\n\t\trowspan: 1\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_cssUnitless };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toUpperFirst.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = function(e) {\n\t\treturn e.length ? e.charAt(0).toUpperCase() + e.substring(1) : e;\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_toUpperFirst };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_toUpperFirst as t } from \"./stringUtils/toUpperFirst.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixInfo.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tvar r = t(), i = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, a = typeof document > \"u\" ? {} : document.documentElement.style;\n\tn.exports = (function() {\n\t\tvar e = (function() {\n\t\t\tfor (var e in a) if (i.test(e)) return e.match(i)[0];\n\t\t\treturn \"WebkitOpacity\" in a ? \"Webkit\" : \"KhtmlOpacity\" in a ? \"Khtml\" : \"\";\n\t\t})();\n\t\treturn {\n\t\t\tstyle: e,\n\t\t\tcss: \"-\" + e.toLowerCase() + \"-\",\n\t\t\tdom: {\n\t\t\t\tWebkit: \"WebKit\",\n\t\t\t\tms: \"MS\",\n\t\t\t\to: \"WebKit\"\n\t\t\t}[e] || r(e)\n\t\t};\n\t})();\n}));\n//#endregion\nexport default n();\nexport { n as require_prefixInfo };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenRe.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = /[-\\s]+(.)?/g;\n}));\n//#endregion\nexport default t();\nexport { t as require_hyphenRe };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_hyphenRe as t } from \"./hyphenRe.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/camelize.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tvar r = function(e, t) {\n\t\treturn t ? t.toUpperCase() : \"\";\n\t}, i = t();\n\tn.exports = function(e) {\n\t\treturn e ? e.replace(i, r) : \"\";\n\t};\n}));\n//#endregion\nexport default n();\nexport { n as require_camelize };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/separate.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = /::/g, r = /([A-Z]+)([A-Z][a-z])/g, i = /([a-z\\d])([A-Z])/g, a = /_/g;\n\tt.exports = function(e, t) {\n\t\treturn e ? e.replace(n, \"/\").replace(r, \"$1_$2\").replace(i, \"$1_$2\").replace(a, t || \"-\") : \"\";\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_separate };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_separate as t } from \"./separate.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/hyphenate.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tvar r = t();\n\tn.exports = function(e) {\n\t\treturn r(e).toLowerCase();\n\t};\n}));\n//#endregion\nexport default n();\nexport { n as require_hyphenate };\n","import { __commonJSMin as e } from \"../../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/stringUtils/toLowerFirst.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tt.exports = function(e) {\n\t\treturn e.length ? e.charAt(0).toLowerCase() + e.substring(1) : e;\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_toLowerFirst };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_prefixProperties as t } from \"./prefixProperties.js\";\nimport { require_toUpperFirst as n } from \"./stringUtils/toUpperFirst.js\";\nimport { require_prefixInfo as r } from \"./prefixInfo.js\";\nimport { require_camelize as i } from \"./stringUtils/camelize.js\";\nimport { require_hyphenate as a } from \"./stringUtils/hyphenate.js\";\nimport { require_toLowerFirst as o } from \"./stringUtils/toLowerFirst.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/prefixer.js\nvar s = /* @__PURE__ */ e(((e, s) => {\n\tvar c = i(), l = a(), u = o(), d = n(), f = r(), p = t(), m = typeof document > \"u\" ? {} : document.documentElement.style;\n\ts.exports = function(e) {\n\t\treturn function(t, n) {\n\t\t\tn ||= {};\n\t\t\tvar r = u(c(t)), i = l(t), a = e ? r : i, o = f.style ? e ? f.style : f.css : \"\";\n\t\t\tif (r in m) return n.asString ? a : [a];\n\t\t\tvar s = a, h = p[i], g = [];\n\t\t\tif (e && (s = d(a)), typeof h == \"function\") {\n\t\t\t\tvar _ = h(a, o) || [];\n\t\t\t\t_ && !Array.isArray(_) && (_ = [_]), _.length && (_ = _.map(function(t) {\n\t\t\t\t\treturn e ? u(c(t)) : l(t);\n\t\t\t\t})), g = g.concat(_);\n\t\t\t}\n\t\t\treturn o && g.push(o + s), g.push(a), n.asString || g.length == 1 ? g[0] : g;\n\t\t};\n\t};\n}));\n//#endregion\nexport default s();\nexport { s as require_prefixer };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_prefixer as t } from \"./prefixer.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/cssPrefix.js\nvar n = /* @__PURE__ */ e(((e, n) => {\n\tn.exports = t()();\n}));\n//#endregion\nexport default n();\nexport { n as require_cssPrefix };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/hasOwn.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = Object.prototype.hasOwnProperty;\n\tt.exports = function(e, t) {\n\t\treturn n.call(e, t);\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_hasOwn };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isObject.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = Object.prototype.toString;\n\tt.exports = function(e) {\n\t\treturn !!e && n.call(e) === \"[object Object]\";\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_isObject };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/isFunction.js\nvar t = /* @__PURE__ */ e(((e, t) => {\n\tvar n = Object.prototype.toString;\n\tt.exports = function(e) {\n\t\treturn n.apply(e) === \"[object Function]\";\n\t};\n}));\n//#endregion\nexport default t();\nexport { t as require_isFunction };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_cssUnitless as t } from \"./cssUnitless.js\";\nimport { require_prefixInfo as n } from \"./prefixInfo.js\";\nimport { require_camelize as r } from \"./stringUtils/camelize.js\";\nimport { require_hyphenate as i } from \"./stringUtils/hyphenate.js\";\nimport { require_cssPrefix as a } from \"./cssPrefix.js\";\nimport { require_hasOwn as o } from \"./hasOwn.js\";\nimport { require_isObject as s } from \"./isObject.js\";\nimport { require_isFunction as c } from \"./isFunction.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleObject.js\nvar l = /* @__PURE__ */ e(((e, l) => {\n\tn();\n\tvar u = a(), d = i(), f = r(), p = o(), m = s(), h = c(), g = function(e, t, n, r) {\n\t\tu(t).forEach(function(t) {\n\t\t\te[r ? r(t) : t] = n;\n\t\t});\n\t}, _ = function(e) {\n\t\te = (e || \"\").split(\";\");\n\t\tvar t = {};\n\t\treturn e.forEach(function(e) {\n\t\t\tvar n = e.split(\":\");\n\t\t\tn.length == 2 && (t[n[0].trim()] = n[1].trim());\n\t\t}), t;\n\t}, v = { cssUnitless: t() }, y = function(e, t, n, r) {\n\t\ttypeof e == \"string\" && (e = _(e)), t ||= v, t.cssUnitless = t.cssUnitless || v.cssUnitless, r ||= {};\n\t\tvar i = t.scope || {}, a = t.addUnits == null ? i && i.addUnits != null ? i.addUnits : !0 : t.addUnits, o = (t.cssUnitless == null ? i ? i.cssUnitless : null : t.cssUnitless) || {}, s = (t.cssUnit || i ? i.cssUnit : null) || \"px\", c = t.prefixProperties || (i ? i.prefixProperties : null) || {}, l = t.camelize ? f : d, u, b, x, S, C, w, T, E;\n\t\tfor (x in e) if (p(e, x)) {\n\t\t\tif (S = e[x], b = d(n ? n + x : x), u = !1, E = !1, h(S) && (T = S.call(i || e, S, x, b, e), m(T) && T.value != null ? (S = T.value, E = T.prefix, b = T.name ? d(T.name) : b) : S = T), C = typeof S, w = C == \"number\" || C == \"string\" && S != \"\" && S * 1 == S, S == null || b == null || b === \"\") continue;\n\t\t\tif ((w || C == \"string\") && (u = !0), !u && S.value != null && S.prefix && (u = !0, E = S.prefix, S = S.value), u) {\n\t\t\t\tif (E ||= !!c[b], w && (S = a && !(b in o) ? S + s : S + \"\"), (b == \"border\" || !b.indexOf(\"border\") && !~b.indexOf(\"radius\") && !~b.indexOf(\"width\")) && w && (b += \"-width\"), !b.indexOf(\"border-radius-\") && (b.replace(/border(-radius)(-(.*))/, function(e, t, n) {\n\t\t\t\t\tvar r = {\n\t\t\t\t\t\t\"-top\": [\"-top-left\", \"-top-right\"],\n\t\t\t\t\t\t\"-left\": [\"-top-left\", \"-bottom-left\"],\n\t\t\t\t\t\t\"-right\": [\"-top-right\", \"-bottom-right\"],\n\t\t\t\t\t\t\"-bottom\": [\"-bottom-left\", \"-bottom-right\"]\n\t\t\t\t\t};\n\t\t\t\t\tn in r ? (b = [], r[n].forEach(function(e) {\n\t\t\t\t\t\tb.push(\"border\" + e + t);\n\t\t\t\t\t})) : b = \"border\" + n + t;\n\t\t\t\t}), Array.isArray(b))) {\n\t\t\t\t\tb.forEach(function(e) {\n\t\t\t\t\t\tE ? g(r, e, S, l) : r[l(e)] = S;\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tE ? g(r, b, S, l) : r[l(b)] = S;\n\t\t\t} else y(S, t, b + \"-\", r);\n\t\t}\n\t\treturn r;\n\t};\n\tl.exports = y;\n}));\n//#endregion\nexport default l();\nexport { l as require_toStyleObject };\n","import { __commonJSMin as e } from \"../../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_hasOwn as t } from \"./hasOwn.js\";\nimport { require_toStyleObject as n } from \"./toStyleObject.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/src/toStyleString.js\nvar r = /* @__PURE__ */ e(((e, r) => {\n\tvar i = n(), a = t();\n\tr.exports = function(e, t) {\n\t\te = i(e, t);\n\t\tvar n = [], r;\n\t\tfor (r in e) a(e, r) && n.push(r + \": \" + e[r]);\n\t\treturn n.join(\"; \");\n\t};\n}));\n//#endregion\nexport default r();\nexport { r as require_toStyleString };\n","import { __commonJSMin as e } from \"../../../../../_virtual/_rolldown/runtime.js\";\nimport { require_prefixProperties as t } from \"./src/prefixProperties.js\";\nimport { require_cssUnitless as n } from \"./src/cssUnitless.js\";\nimport { require_toStyleObject as r } from \"./src/toStyleObject.js\";\nimport { require_toStyleString as i } from \"./src/toStyleString.js\";\n//#region ../../../node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js\nvar a = /* @__PURE__ */ e(((e, a) => {\n\ta.exports = {\n\t\tprefixProperties: t(),\n\t\tcssUnitless: n(),\n\t\tobject: r(),\n\t\tstring: i()\n\t};\n}));\n//#endregion\nexport default a();\nexport { a as require_to_style };\n","import { require_to_style as e } from \"./node_modules/.bun/to-style@1.3.3/node_modules/to-style/index.js\";\nimport t from \"debug\";\n//#region src/serialization.ts\nvar n = e(), r = t(\"@pie-lib:mask-markup:serialization\"), i = [\"span\"], a = [\n\t\"em\",\n\t\"strong\",\n\t\"u\"\n], o = 3, s = 8, c = 1, l = (e) => {\n\tif (!e.attributes || e.attributes.length <= 0) return;\n\tlet t = {}, n;\n\tfor (n = 0; n < e.attributes.length; n++) {\n\t\tlet r = e.attributes[n];\n\t\tt[r.name] = r.value;\n\t}\n\treturn t;\n}, u = (e) => i.includes(e) ? \"inline\" : a.includes(e) ? \"mark\" : \"block\", d = (e) => {\n\tlet t = /([\\w-]*)\\s*:\\s*([^;]*)/g, n, r = {};\n\tfor (; n = t.exec(e);) r[n[1]] = n[2].trim();\n\treturn r;\n}, f = (e) => (0, n.object)(e, {\n\tcamelize: !0,\n\taddUnits: !1\n}), p = (e, t) => f(d(e.getAttribute(t))), m = (e, t, n) => {\n\tlet r = e.getAttribute(n);\n\treturn delete t.class, r;\n}, h = (e) => (t, n) => {\n\tif (!e.getAttribute) return t;\n\tif (e.getAttribute(n)) switch (n) {\n\t\tcase \"style\":\n\t\t\tt.style = p(e, n);\n\t\t\tbreak;\n\t\tcase \"class\":\n\t\t\tt.className = m(e, t, n);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tt[n] = e.getAttribute(n);\n\t\t\tbreak;\n\t}\n\treturn t;\n}, g = [\n\t\"border\",\n\t\"class\",\n\t\"style\"\n], _ = {\n\tb: \"bold\",\n\tem: \"italic\",\n\tu: \"underline\",\n\ts: \"strikethrough\",\n\tcode: \"code\",\n\tstrong: \"strong\"\n}, v = (e, t = []) => {\n\tif (e.nodeType === s) return null;\n\tif (e.nodeType === o) {\n\t\tlet n = { text: e.textContent };\n\t\treturn t.length > 0 && (n.marks = t.map((e) => ({\n\t\t\ttype: e,\n\t\t\tdata: void 0\n\t\t}))), {\n\t\t\tobject: \"text\",\n\t\t\tleaves: [n]\n\t\t};\n\t}\n\tif (e.nodeType === c) {\n\t\tlet n = e.tagName.toLowerCase(), i = _[n];\n\t\tif (i) return r(\"[deserialize] mark: \", i), {\n\t\t\t_flatten: !0,\n\t\t\tnodes: y(e.childNodes, [...t, i])\n\t\t};\n\t\tif (n === \"math\") return {\n\t\t\tisMath: !0,\n\t\t\tnodes: [e]\n\t\t};\n\t\tlet a = l(e) || {};\n\t\tn === \"audio\" && a.controls === \"\" && (a.controls = !0);\n\t\tlet o = g.reduce(h(e), { ...a }), s = u(n), c = y(e.childNodes, t);\n\t\treturn {\n\t\t\tobject: s,\n\t\t\ttype: n,\n\t\t\tdata: {\n\t\t\t\tdataset: { ...e.dataset },\n\t\t\t\tattributes: { ...o }\n\t\t\t},\n\t\t\tnodes: c\n\t\t};\n\t}\n\treturn null;\n}, y = (e, t = []) => {\n\tlet n = [];\n\tfor (let r = 0; r < e.length; r++) {\n\t\tlet i = v(e[r], t);\n\t\ti !== null && (i._flatten && i.nodes ? n.push(...i.nodes) : n.push(i));\n\t}\n\treturn n;\n}, b = (e) => {\n\tif (!e || !e.trim()) return {\n\t\tobject: \"value\",\n\t\tdocument: {\n\t\t\tobject: \"document\",\n\t\t\tdata: {},\n\t\t\tnodes: [{\n\t\t\t\tobject: \"block\",\n\t\t\t\ttype: \"span\",\n\t\t\t\tdata: {},\n\t\t\t\tisVoid: !1,\n\t\t\t\tnodes: []\n\t\t\t}]\n\t\t}\n\t};\n\tlet t = y(new DOMParser().parseFromString(e, \"text/html\").body.childNodes);\n\treturn !t.some((e) => e.object === \"block\" || e.object === \"inline\") && t.length > 0 && (t = [{\n\t\tobject: \"block\",\n\t\ttype: \"span\",\n\t\tdata: {},\n\t\tisVoid: !1,\n\t\tnodes: t\n\t}]), t.length === 0 && (t = [{\n\t\tobject: \"block\",\n\t\ttype: \"span\",\n\t\tdata: {},\n\t\tisVoid: !1,\n\t\tnodes: []\n\t}]), {\n\t\tobject: \"value\",\n\t\tdocument: {\n\t\t\tobject: \"document\",\n\t\t\tdata: {},\n\t\t\tnodes: t\n\t\t}\n\t};\n};\n//#endregion\nexport { _ as MARK_TAGS, b as deserialize };\n","import { MARK_TAGS as e } from \"./serialization.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { get as r } from \"@pie-element/shared-lodash\";\nimport { styled as i } from \"@mui/material/styles\";\nimport { renderMath as a } from \"@pie-element/shared-math-rendering-mathjax\";\nimport { jsx as o } from \"react/jsx-runtime\";\n//#region src/mask.tsx\nvar s = i(\"div\")(({ theme: e }) => ({\n\tpaddingTop: e.spacing(.5),\n\tpaddingBottom: e.spacing(.5)\n})), c = i(\"span\")(() => ({\n\tdisplay: \"inline-block\",\n\twidth: \".75em\"\n})), l = [\"tbody\", \"tr\"], u = (e, t) => {\n\tlet n = t.trim() === \"\", r = e && e.type;\n\tif (!(n && l.includes(r))) return t;\n}, d = (e) => {\n\tlet t = e.leaves.find((e) => r(e, \"marks\", []).length);\n\treturn t ? t.marks[0] : null;\n}, f = (t, n, r, i, a, l) => {\n\tif (!n) return null;\n\tlet p = [];\n\treturn (t.nodes || []).forEach((t, m) => {\n\t\tlet h = t.type ? `${t.type}-${m}` : `${m}`;\n\t\tif (t.isMath) return p.push(/* @__PURE__ */ o(\"span\", { dangerouslySetInnerHTML: { __html: `<math displaystyle=\"true\">${t.nodes[0].innerHTML}</math>` } })), p;\n\t\tif (i) {\n\t\t\tlet e = i(t, n, r);\n\t\t\tif (e) {\n\t\t\t\tlet n = t.data?.dataset?.component === \"blank\";\n\t\t\t\tn && p.push(/* @__PURE__ */ o(c, {}, `spacer-${m}`)), p.push(e), n && p.push(/* @__PURE__ */ o(c, {}, `spacer-${m}`));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif (t.object === \"text\") {\n\t\t\tlet n = t.leaves.reduce((e, t) => {\n\t\t\t\tlet n = t.text, r = u(a, n);\n\t\t\t\treturn r ? e + r : e;\n\t\t\t}, \"\"), r = d(t);\n\t\t\tif (r) {\n\t\t\t\tlet t;\n\t\t\t\tfor (t in e) if (e[t] === r.type) {\n\t\t\t\t\tlet e = t;\n\t\t\t\t\tp.push(/* @__PURE__ */ o(e, { children: n }, h));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else n.length > 0 && p.push(n);\n\t\t} else {\n\t\t\tlet e = f(t, n, r, i, t, l);\n\t\t\tif (t.type === \"p\" || t.type === \"paragraph\") p.push(/* @__PURE__ */ o(s, { children: e }, h));\n\t\t\telse {\n\t\t\t\tlet n = t.type;\n\t\t\t\tt.nodes && t.nodes.length > 0 ? p.push(/* @__PURE__ */ o(n, {\n\t\t\t\t\t...t.data.attributes,\n\t\t\t\t\tchildren: e\n\t\t\t\t}, h)) : p.push(/* @__PURE__ */ o(n, { ...t.data.attributes }, h));\n\t\t\t}\n\t\t}\n\t}), p;\n}, p = i(\"div\")(() => ({\n\tdisplay: \"initial\",\n\t\"&:not(.MathJax) table\": { borderCollapse: \"collapse\" },\n\t\"&:not(.MathJax) table td, &:not(.MathJax) table th\": {\n\t\tpadding: \"8px 12px\",\n\t\ttextAlign: \"left\"\n\t}\n})), m = class extends t.Component {\n\tconstructor(e) {\n\t\tsuper(e), this.internalContainerRef = t.createRef();\n\t}\n\tstatic propTypes = {\n\t\trenderChildren: n.func,\n\t\tlayout: n.object,\n\t\tvalue: n.object,\n\t\tonChange: n.func,\n\t\telementType: n.string,\n\t\tcontainerRef: n.oneOfType([n.func, n.shape({ current: n.instanceOf(Element) })])\n\t};\n\tcomponentDidMount() {\n\t\tlet e = this.props.containerRef || this.internalContainerRef;\n\t\te.current && typeof a == \"function\" && a(e.current);\n\t}\n\thandleChange = (e, t) => {\n\t\tlet n = {\n\t\t\t...this.props.value,\n\t\t\t[e]: t\n\t\t};\n\t\tthis.props.onChange(n);\n\t};\n\trender() {\n\t\tlet { value: e, layout: t, elementType: n, containerRef: r } = this.props, i = f(t, e, this.handleChange, this.props.renderChildren, null, n);\n\t\treturn /* @__PURE__ */ o(p, {\n\t\t\tref: r || this.internalContainerRef,\n\t\t\tchildren: i\n\t\t});\n\t}\n};\n//#endregion\nexport { m as default };\n","import { deserialize as e } from \"./serialization.js\";\nimport t from \"./mask.js\";\nimport n from \"./componentize.js\";\nimport r from \"react\";\nimport i from \"prop-types\";\nimport { jsx as a } from \"react/jsx-runtime\";\n//#region src/with-mask.tsx\nvar o = (t, r) => {\n\tlet { markup: i } = n(t, r);\n\treturn e(i).document;\n}, s = (e, n) => class extends r.Component {\n\tstatic propTypes = {\n\t\tmarkup: i.string,\n\t\tlayout: i.object,\n\t\tvalue: i.object,\n\t\tonChange: i.func,\n\t\tcustomMarkMarkupComponent: i.func,\n\t\telementType: i.string\n\t};\n\tconstructor(e) {\n\t\tsuper(e), this.containerRef = r.createRef();\n\t}\n\tcomponentDidUpdate(e) {\n\t\tif (this.props.markup !== e.markup) {\n\t\t\tlet e = this.containerRef.current;\n\t\t\t(e && e.querySelectorAll(\"[data-latex][data-math-handled=\\\"true\\\"]\") || []).forEach((e) => {\n\t\t\t\tlet t = e.querySelector(\"mjx-container\");\n\t\t\t\tt && e.removeChild(t), e.innerHTML = e.getAttribute(\"data-raw\"), e.removeAttribute(\"data-math-handled\");\n\t\t\t});\n\t\t}\n\t}\n\trender() {\n\t\tlet { markup: r, layout: i, value: s, onChange: c, elementType: l } = this.props, u = i || o(r, e);\n\t\treturn /* @__PURE__ */ a(t, {\n\t\t\tcontainerRef: this.containerRef,\n\t\t\telementType: l,\n\t\t\tlayout: u,\n\t\t\tvalue: s,\n\t\t\tonChange: c,\n\t\t\trenderChildren: n(this.props)\n\t\t});\n\t}\n};\n//#endregion\nexport { o as buildLayoutFromMarkup, s as withMask };\n","'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\"\n}), 'Cancel');","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getChipUtilityClass(slot) {\n return generateUtilityClass('MuiChip', slot);\n}\nconst chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorDefault', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);\nexport default chipClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport CancelIcon from \"../internal/svg-icons/Cancel.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport unsupportedProp from \"../utils/unsupportedProp.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport chipClasses, { getChipUtilityClass } from \"./chipClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disabled,\n size,\n color,\n iconColor,\n onDelete,\n clickable,\n variant\n } = ownerState;\n const slots = {\n root: ['root', variant, disabled && 'disabled', `size${capitalize(size)}`, `color${capitalize(color)}`, clickable && 'clickable', clickable && `clickableColor${capitalize(color)}`, onDelete && 'deletable', onDelete && `deletableColor${capitalize(color)}`, `${variant}${capitalize(color)}`],\n label: ['label', `label${capitalize(size)}`],\n avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],\n icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(iconColor)}`],\n deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]\n };\n return composeClasses(slots, getChipUtilityClass, classes);\n};\nconst ChipRoot = styled('div', {\n name: 'MuiChip',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n const {\n color,\n iconColor,\n clickable,\n onDelete,\n size,\n variant\n } = ownerState;\n return [{\n [`& .${chipClasses.avatar}`]: styles.avatar\n }, {\n [`& .${chipClasses.avatar}`]: styles[`avatar${capitalize(size)}`]\n }, {\n [`& .${chipClasses.avatar}`]: styles[`avatarColor${capitalize(color)}`]\n }, {\n [`& .${chipClasses.icon}`]: styles.icon\n }, {\n [`& .${chipClasses.icon}`]: styles[`icon${capitalize(size)}`]\n }, {\n [`& .${chipClasses.icon}`]: styles[`iconColor${capitalize(iconColor)}`]\n }, {\n [`& .${chipClasses.deleteIcon}`]: styles.deleteIcon\n }, {\n [`& .${chipClasses.deleteIcon}`]: styles[`deleteIcon${capitalize(size)}`]\n }, {\n [`& .${chipClasses.deleteIcon}`]: styles[`deleteIconColor${capitalize(color)}`]\n }, {\n [`& .${chipClasses.deleteIcon}`]: styles[`deleteIcon${capitalize(variant)}Color${capitalize(color)}`]\n }, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)}`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant], styles[`${variant}${capitalize(color)}`]];\n }\n})(memoTheme(({\n theme\n}) => {\n const textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];\n return {\n maxWidth: '100%',\n fontFamily: theme.typography.fontFamily,\n fontSize: theme.typography.pxToRem(13),\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: 32,\n lineHeight: 1.5,\n color: (theme.vars || theme).palette.text.primary,\n backgroundColor: (theme.vars || theme).palette.action.selected,\n borderRadius: 32 / 2,\n whiteSpace: 'nowrap',\n transition: theme.transitions.create(['background-color', 'box-shadow']),\n // reset cursor explicitly in case ButtonBase is used\n cursor: 'unset',\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n textDecoration: 'none',\n border: 0,\n // Remove `button` border\n padding: 0,\n // Remove `button` padding\n verticalAlign: 'middle',\n boxSizing: 'border-box',\n [`&.${chipClasses.disabled}`]: {\n opacity: (theme.vars || theme).palette.action.disabledOpacity,\n pointerEvents: 'none'\n },\n [`& .${chipClasses.avatar}`]: {\n marginLeft: 5,\n marginRight: -6,\n width: 24,\n height: 24,\n color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,\n fontSize: theme.typography.pxToRem(12)\n },\n [`& .${chipClasses.avatarColorPrimary}`]: {\n color: (theme.vars || theme).palette.primary.contrastText,\n backgroundColor: (theme.vars || theme).palette.primary.dark\n },\n [`& .${chipClasses.avatarColorSecondary}`]: {\n color: (theme.vars || theme).palette.secondary.contrastText,\n backgroundColor: (theme.vars || theme).palette.secondary.dark\n },\n [`& .${chipClasses.avatarSmall}`]: {\n marginLeft: 4,\n marginRight: -4,\n width: 18,\n height: 18,\n fontSize: theme.typography.pxToRem(10)\n },\n [`& .${chipClasses.icon}`]: {\n marginLeft: 5,\n marginRight: -6\n },\n [`& .${chipClasses.deleteIcon}`]: {\n WebkitTapHighlightColor: 'transparent',\n color: theme.alpha((theme.vars || theme).palette.text.primary, 0.26),\n fontSize: 22,\n cursor: 'pointer',\n margin: '0 5px 0 -6px',\n '&:hover': {\n color: theme.alpha((theme.vars || theme).palette.text.primary, 0.4)\n }\n },\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n height: 24,\n [`& .${chipClasses.icon}`]: {\n fontSize: 18,\n marginLeft: 4,\n marginRight: -4\n },\n [`& .${chipClasses.deleteIcon}`]: {\n fontSize: 16,\n marginRight: 4,\n marginLeft: -4\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['contrastText'])).map(([color]) => {\n return {\n props: {\n color\n },\n style: {\n backgroundColor: (theme.vars || theme).palette[color].main,\n color: (theme.vars || theme).palette[color].contrastText,\n [`& .${chipClasses.deleteIcon}`]: {\n color: theme.alpha((theme.vars || theme).palette[color].contrastText, 0.7),\n '&:hover, &:active': {\n color: (theme.vars || theme).palette[color].contrastText\n }\n }\n }\n };\n }), {\n props: props => props.iconColor === props.color,\n style: {\n [`& .${chipClasses.icon}`]: {\n color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor\n }\n }\n }, {\n props: props => props.iconColor === props.color && props.color !== 'default',\n style: {\n [`& .${chipClasses.icon}`]: {\n color: 'inherit'\n }\n }\n }, {\n props: {\n onDelete: true\n },\n style: {\n [`&.${chipClasses.focusVisible}`]: {\n backgroundColor: theme.alpha((theme.vars || theme).palette.action.selected, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.focusOpacity}`)\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => {\n return {\n props: {\n color,\n onDelete: true\n },\n style: {\n [`&.${chipClasses.focusVisible}`]: {\n background: (theme.vars || theme).palette[color].dark\n }\n }\n };\n }), {\n props: {\n clickable: true\n },\n style: {\n userSelect: 'none',\n WebkitTapHighlightColor: 'transparent',\n cursor: 'pointer',\n '&:hover': {\n backgroundColor: theme.alpha((theme.vars || theme).palette.action.selected, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`)\n },\n [`&.${chipClasses.focusVisible}`]: {\n backgroundColor: theme.alpha((theme.vars || theme).palette.action.selected, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.focusOpacity}`)\n },\n '&:active': {\n boxShadow: (theme.vars || theme).shadows[1]\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => ({\n props: {\n color,\n clickable: true\n },\n style: {\n [`&:hover, &.${chipClasses.focusVisible}`]: {\n backgroundColor: (theme.vars || theme).palette[color].dark\n }\n }\n })), {\n props: {\n variant: 'outlined'\n },\n style: {\n backgroundColor: 'transparent',\n border: theme.vars ? `1px solid ${theme.vars.palette.Chip.defaultBorder}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[700]}`,\n [`&.${chipClasses.clickable}:hover`]: {\n backgroundColor: (theme.vars || theme).palette.action.hover\n },\n [`&.${chipClasses.focusVisible}`]: {\n backgroundColor: (theme.vars || theme).palette.action.focus\n },\n [`& .${chipClasses.avatar}`]: {\n marginLeft: 4\n },\n [`& .${chipClasses.avatarSmall}`]: {\n marginLeft: 2\n },\n [`& .${chipClasses.icon}`]: {\n marginLeft: 4\n },\n [`& .${chipClasses.iconSmall}`]: {\n marginLeft: 2\n },\n [`& .${chipClasses.deleteIcon}`]: {\n marginRight: 5\n },\n [`& .${chipClasses.deleteIconSmall}`]: {\n marginRight: 3\n }\n }\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()) // no need to check for mainChannel as it's calculated from main\n .map(([color]) => ({\n props: {\n variant: 'outlined',\n color\n },\n style: {\n color: (theme.vars || theme).palette[color].main,\n border: `1px solid ${theme.alpha((theme.vars || theme).palette[color].main, 0.7)}`,\n [`&.${chipClasses.clickable}:hover`]: {\n backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)\n },\n [`&.${chipClasses.focusVisible}`]: {\n backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.focusOpacity)\n },\n [`& .${chipClasses.deleteIcon}`]: {\n color: theme.alpha((theme.vars || theme).palette[color].main, 0.7),\n '&:hover, &:active': {\n color: (theme.vars || theme).palette[color].main\n }\n }\n }\n }))]\n };\n}));\nconst ChipLabel = styled('span', {\n name: 'MuiChip',\n slot: 'Label',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n const {\n size\n } = ownerState;\n return [styles.label, styles[`label${capitalize(size)}`]];\n }\n})({\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n paddingLeft: 12,\n paddingRight: 12,\n whiteSpace: 'nowrap',\n variants: [{\n props: {\n variant: 'outlined'\n },\n style: {\n paddingLeft: 11,\n paddingRight: 11\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n paddingLeft: 8,\n paddingRight: 8\n }\n }, {\n props: {\n size: 'small',\n variant: 'outlined'\n },\n style: {\n paddingLeft: 7,\n paddingRight: 7\n }\n }]\n});\nfunction isDeleteKeyboardEvent(keyboardEvent) {\n return keyboardEvent.key === 'Backspace' || keyboardEvent.key === 'Delete';\n}\n\n/**\n * Chips represent complex entities in small blocks, such as a contact.\n */\nconst Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiChip'\n });\n const {\n avatar: avatarProp,\n className,\n clickable: clickableProp,\n color = 'default',\n component: ComponentProp,\n deleteIcon: deleteIconProp,\n disabled = false,\n icon: iconProp,\n label,\n onClick,\n onDelete,\n onKeyDown,\n onKeyUp,\n size = 'medium',\n variant = 'filled',\n tabIndex,\n skipFocusWhenDisabled = false,\n // TODO v6: Rename to `focusableWhenDisabled`.\n slots = {},\n slotProps = {},\n ...other\n } = props;\n const chipRef = React.useRef(null);\n const handleRef = useForkRef(chipRef, ref);\n const handleDeleteIconClick = event => {\n // Stop the event from bubbling up to the `Chip`\n event.stopPropagation();\n onDelete(event);\n };\n const handleKeyDown = event => {\n // Ignore events from children of `Chip`.\n if (event.currentTarget === event.target && isDeleteKeyboardEvent(event)) {\n // Will be handled in keyUp, otherwise some browsers\n // might init navigation\n event.preventDefault();\n }\n if (onKeyDown) {\n onKeyDown(event);\n }\n };\n const handleKeyUp = event => {\n // Ignore events from children of `Chip`.\n if (event.currentTarget === event.target) {\n if (onDelete && isDeleteKeyboardEvent(event)) {\n onDelete(event);\n }\n }\n if (onKeyUp) {\n onKeyUp(event);\n }\n };\n const clickable = clickableProp !== false && onClick ? true : clickableProp;\n const component = clickable || onDelete ? ButtonBase : ComponentProp || 'div';\n const ownerState = {\n ...props,\n component,\n disabled,\n size,\n color,\n iconColor: /*#__PURE__*/React.isValidElement(iconProp) ? iconProp.props.color || color : color,\n onDelete: !!onDelete,\n clickable,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n const moreProps = component === ButtonBase ? {\n component: ComponentProp || 'div',\n focusVisibleClassName: classes.focusVisible,\n ...(onDelete && {\n disableRipple: true\n })\n } : {};\n let deleteIcon = null;\n if (onDelete) {\n deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? (/*#__PURE__*/React.cloneElement(deleteIconProp, {\n className: clsx(deleteIconProp.props.className, classes.deleteIcon),\n onClick: handleDeleteIconClick\n })) : /*#__PURE__*/_jsx(CancelIcon, {\n className: classes.deleteIcon,\n onClick: handleDeleteIconClick\n });\n }\n let avatar = null;\n if (avatarProp && /*#__PURE__*/React.isValidElement(avatarProp)) {\n avatar = /*#__PURE__*/React.cloneElement(avatarProp, {\n className: clsx(classes.avatar, avatarProp.props.className)\n });\n }\n let icon = null;\n if (iconProp && /*#__PURE__*/React.isValidElement(iconProp)) {\n icon = /*#__PURE__*/React.cloneElement(iconProp, {\n className: clsx(classes.icon, iconProp.props.className)\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n if (avatar && icon) {\n console.error('MUI: The Chip component can not handle the avatar ' + 'and the icon prop at the same time. Pick one.');\n }\n }\n const externalForwardedProps = {\n slots,\n slotProps\n };\n const [RootSlot, rootProps] = useSlot('root', {\n elementType: ChipRoot,\n externalForwardedProps: {\n ...externalForwardedProps,\n ...other\n },\n ownerState,\n // The `component` prop is preserved because `Chip` relies on it for internal logic. If `shouldForwardComponentProp` were `false`, `useSlot` would remove the `component` prop, potentially breaking the component's behavior.\n shouldForwardComponentProp: true,\n ref: handleRef,\n className: clsx(classes.root, className),\n additionalProps: {\n disabled: clickable && disabled ? true : undefined,\n tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,\n ...moreProps\n },\n getSlotProps: handlers => ({\n ...handlers,\n onClick: event => {\n handlers.onClick?.(event);\n onClick?.(event);\n },\n onKeyDown: event => {\n handlers.onKeyDown?.(event);\n handleKeyDown(event);\n },\n onKeyUp: event => {\n handlers.onKeyUp?.(event);\n handleKeyUp(event);\n }\n })\n });\n const [LabelSlot, labelProps] = useSlot('label', {\n elementType: ChipLabel,\n externalForwardedProps,\n ownerState,\n className: classes.label\n });\n return /*#__PURE__*/_jsxs(RootSlot, {\n as: component,\n ...rootProps,\n children: [avatar || icon, /*#__PURE__*/_jsx(LabelSlot, {\n ...labelProps,\n children: label\n }), deleteIcon]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Chip.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The Avatar element to display.\n */\n avatar: PropTypes.element,\n /**\n * This prop isn't supported.\n * Use the `component` prop if you need to change the children structure.\n */\n children: unsupportedProp,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the chip will appear clickable, and will raise when pressed,\n * even if the onClick prop is not defined.\n * If `false`, the chip will not appear clickable, even if onClick prop is defined.\n * This can be used, for example,\n * along with the component prop to indicate an anchor Chip is clickable.\n * Note: this controls the UI and does not affect the onClick event.\n */\n clickable: PropTypes.bool,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'default'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * Override the default delete icon element. Shown only if `onDelete` is set.\n */\n deleteIcon: PropTypes.element,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * Icon element.\n */\n icon: PropTypes.element,\n /**\n * The content of the component.\n */\n label: PropTypes.node,\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n /**\n * Callback fired when the delete icon is clicked.\n * If set, the delete icon will be shown.\n */\n onDelete: PropTypes.func,\n /**\n * @ignore\n */\n onKeyDown: PropTypes.func,\n /**\n * @ignore\n */\n onKeyUp: PropTypes.func,\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * If `true`, allows the disabled chip to escape focus.\n * If `false`, allows the disabled chip to receive focus.\n * @default false\n */\n skipFocusWhenDisabled: PropTypes.bool,\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n label: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n label: PropTypes.elementType,\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @ignore\n */\n tabIndex: PropTypes.number,\n /**\n * The variant to use.\n * @default 'filled'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined']), PropTypes.string])\n} : void 0;\nexport default Chip;","import { useEffect as e, useRef as t } from \"react\";\nimport n from \"prop-types\";\nimport { styled as r } from \"@mui/material/styles\";\nimport { renderMath as i } from \"@pie-element/shared-math-rendering-mathjax\";\nimport { jsx as a } from \"react/jsx-runtime\";\nimport { useDraggable as o } from \"@dnd-kit/core\";\nimport s from \"@mui/material/Chip\";\nimport { color as c } from \"@pie-lib/render-ui\";\n//#region src/choices/choice.tsx\nvar l = \"MaskBlank\", u = r(\"span\")(({ theme: e, disabled: t }) => ({\n\tborder: `solid 0px ${e.palette.primary.main}`,\n\tborderRadius: e.spacing(2),\n\tmargin: e.spacing(.5),\n\ttransform: \"translate(0, 0)\",\n\tdisplay: \"inline-flex\",\n\t...t && {}\n})), d = r(s)(() => ({\n\tbackgroundColor: c.white(),\n\tborder: `1px solid ${c.text()}`,\n\tcolor: c.text(),\n\talignItems: \"center\",\n\tdisplay: \"inline-flex\",\n\theight: \"initial\",\n\tminHeight: \"32px\",\n\tfontSize: \"inherit\",\n\twhiteSpace: \"pre-wrap\",\n\tmaxWidth: \"374px\",\n\tpointerEvents: \"none\",\n\tborderRadius: \"3px\",\n\tpaddingTop: \"12px\",\n\tpaddingBottom: \"12px\",\n\t\"&.Mui-disabled\": { opacity: 1 }\n})), f = r(\"span\")(() => ({\n\twhiteSpace: \"normal\",\n\t\"& img\": {\n\t\tdisplay: \"block\",\n\t\tpadding: \"2px 0\"\n\t},\n\t\"& mjx-frac\": { fontSize: \"120% !important\" }\n}));\nfunction p({ choice: n, disabled: r, instanceId: s }) {\n\tlet c = t(null), { attributes: p, listeners: m, setNodeRef: h, isDragging: g } = o({\n\t\tid: `choice-${n.id}`,\n\t\tdata: {\n\t\t\tchoice: n,\n\t\t\tinstanceId: s,\n\t\t\tfromChoice: !0,\n\t\t\ttype: l\n\t\t},\n\t\tdisabled: r\n\t});\n\treturn e(() => {\n\t\ti(c.current);\n\t}, [n.value]), /* @__PURE__ */ a(u, {\n\t\tref: h,\n\t\tstyle: g ? {\n\t\t\twidth: c.current?.offsetWidth,\n\t\t\theight: c.current?.offsetHeight\n\t\t} : {},\n\t\tdisabled: r,\n\t\t...m,\n\t\t...p,\n\t\tchildren: /* @__PURE__ */ a(d, {\n\t\t\tclickable: !1,\n\t\t\tdisabled: r,\n\t\t\tref: c,\n\t\t\tlabel: /* @__PURE__ */ a(f, { dangerouslySetInnerHTML: { __html: n.value } })\n\t\t})\n\t});\n}\np.propTypes = {\n\tchoice: n.object.isRequired,\n\tdisabled: n.bool,\n\tinstanceId: n.oneOfType([n.string, n.number])\n};\n//#endregion\nexport { p as default };\n","//#region ../../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs\nfunction e(t) {\n\tvar n, r, i = \"\";\n\tif (typeof t == \"string\" || typeof t == \"number\") i += t;\n\telse if (typeof t == \"object\") if (Array.isArray(t)) {\n\t\tvar a = t.length;\n\t\tfor (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += \" \"), i += r);\n\t} else for (r in t) t[r] && (i && (i += \" \"), i += r);\n\treturn i;\n}\nfunction t() {\n\tfor (var t, n, r = 0, i = \"\", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += \" \"), i += n);\n\treturn i;\n}\n//#endregion\nexport { t as default };\n","import e from \"./node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js\";\nimport \"react\";\nimport { styled as t } from \"@mui/material/styles\";\nimport n from \"prop-types\";\nimport { color as r } from \"@pie-lib/render-ui\";\nimport { grey as i } from \"@mui/material/colors\";\nimport { jsx as a } from \"react/jsx-runtime\";\n//#region src/placeholder.tsx\nvar o = t(\"div\")(({ theme: e }) => ({\n\t\"&.placeholder\": {\n\t\tWebkitTouchCallout: \"none\",\n\t\tWebkitUserSelect: \"none\",\n\t\tKhtmlUserSelect: \"none\",\n\t\tMozUserSelect: \"none\",\n\t\tMsUserSelect: \"none\",\n\t\tuserSelect: \"none\",\n\t\twidth: \"100%\",\n\t\theight: \"100%\",\n\t\tbackground: r.white(),\n\t\ttransition: \"background-color 200ms linear, border-color 200ms linear\",\n\t\tboxSizing: \"border-box\",\n\t\tdisplay: \"grid\",\n\t\tgridRowGap: e.spacing(1),\n\t\tgridColumnGap: e.spacing(1),\n\t\tpadding: e.spacing(1),\n\t\tborder: `2px dashed ${r.black()}`\n\t},\n\t\"&.disabled\": {\n\t\tboxShadow: \"none\",\n\t\tbackground: e.palette.background.paper\n\t},\n\t\"&.over\": {\n\t\tborder: `1px solid ${i[500]}`,\n\t\tbackgroundColor: `${i[300]}`\n\t},\n\t\"&.board\": {\n\t\tpadding: e.spacing(1),\n\t\tdisplay: \"flex\",\n\t\tflexWrap: \"wrap\",\n\t\talignItems: \"center\",\n\t\tminHeight: \"100px\",\n\t\tjustifyContent: \"center\",\n\t\toverflow: \"hidden\",\n\t\ttouchAction: \"none\",\n\t\tbackgroundColor: r.backgroundDark()\n\t},\n\t\"&.categorizeBoard\": {\n\t\tpadding: e.spacing(.5),\n\t\tdisplay: \"flex\",\n\t\tflexWrap: \"wrap\",\n\t\talignItems: \"center\",\n\t\tminHeight: \"100px\",\n\t\tjustifyContent: \"center\",\n\t\toverflow: \"hidden\",\n\t\ttouchAction: \"none\",\n\t\tbackgroundColor: r.backgroundDark()\n\t},\n\t\"&.verticalPool\": {\n\t\tdisplay: \"flex\",\n\t\tflexFlow: \"column wrap\"\n\t}\n})), s = (t) => {\n\tlet { children: n, className: i, isOver: s, type: c, grid: l, disabled: u, choiceBoard: d, isCategorize: f, isVerticalPool: p, minHeight: m, extraStyles: h } = t, g = e(\"placeholder\", u && \"disabled\", s && \"over\", c, i), _ = {};\n\tif (l && l.columns && (_.gridTemplateColumns = `repeat(${l.columns}, 1fr)`), l && l.rows) {\n\t\tlet e = l.rowsRepeatValue || \"1fr\";\n\t\t_.gridTemplateRows = `repeat(${l.rows}, ${e})`;\n\t}\n\tc === \"choice\" && (_.border = `1px solid ${r.borderLight()}`, _.background = r.backgroundDark());\n\tlet v = f ? \"categorizeBoard\" : \"board\";\n\treturn /* @__PURE__ */ a(o, {\n\t\tstyle: {\n\t\t\t..._,\n\t\t\tminHeight: m,\n\t\t\t...h\n\t\t},\n\t\tclassName: e(d ? v : g, p && \"verticalPool\"),\n\t\tchildren: n\n\t});\n};\ns.propTypes = {\n\tchoiceBoard: n.bool,\n\tgrid: n.shape({\n\t\tcolumns: n.number,\n\t\trows: n.number,\n\t\trowsRepeatValue: n.string\n\t}),\n\tchildren: n.oneOfType([n.arrayOf(n.node), n.node]).isRequired,\n\tclassName: n.string,\n\tisOver: n.bool,\n\tindex: n.number,\n\ttype: n.string,\n\tdisabled: n.bool,\n\tisCategorize: n.bool,\n\tisVerticalPool: n.bool,\n\tminHeight: n.number\n};\n//#endregion\nexport { s as default };\n","import e from \"./placeholder.js\";\nimport \"react\";\nimport { styled as t } from \"@mui/material/styles\";\nimport n from \"prop-types\";\nimport { jsx as r } from \"react/jsx-runtime\";\nimport { useDroppable as i } from \"@dnd-kit/core\";\n//#region src/drag-in-the-blank-dp.tsx\nvar a = t(\"div\")({ minHeight: \"100px\" });\nfunction o({ children: t, disabled: n, classes: o, isVerticalPool: s, minHeight: c, instanceId: l, ...u }) {\n\tlet { setNodeRef: d, isOver: f } = i({\n\t\tid: \"drag-in-the-blank-droppable\",\n\t\tdata: {\n\t\t\ttype: \"MaskBlank\",\n\t\t\taccepts: [\"MaskBlank\"],\n\t\t\tid: \"drag-in-the-blank-droppable\",\n\t\t\ttoChoiceBoard: !0,\n\t\t\tinstanceId: l\n\t\t}\n\t});\n\treturn /* @__PURE__ */ r(\"div\", {\n\t\tref: d,\n\t\tchildren: /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(e, {\n\t\t\tisOver: f,\n\t\t\tchoiceBoard: !0,\n\t\t\tclassName: o,\n\t\t\tisVerticalPool: s,\n\t\t\textraStyles: {\n\t\t\t\twidth: \"100%\",\n\t\t\t\tminHeight: c || 100,\n\t\t\t\theight: \"auto\"\n\t\t\t},\n\t\t\tchildren: t\n\t\t}) })\n\t});\n}\no.propTypes = {\n\tid: n.oneOfType([n.string, n.number]).isRequired,\n\tchildren: n.node,\n\tdisabled: n.bool,\n\tonDrop: n.func,\n\tinstanceId: n.string\n};\n//#endregion\nexport { o as default };\n","import e from \"./choice.js\";\nimport t from \"react\";\nimport n from \"prop-types\";\nimport { findKey as r } from \"@pie-element/shared-lodash\";\nimport { jsx as i } from \"react/jsx-runtime\";\nimport { DragDroppablePlaceholder as a } from \"@pie-lib/drag\";\n//#region src/choices/index.tsx\nvar o = class extends t.Component {\n\tstatic propTypes = {\n\t\tdisabled: n.bool,\n\t\tduplicates: n.bool,\n\t\tchoices: n.arrayOf(n.shape({\n\t\t\tlabel: n.string,\n\t\t\tvalue: n.string\n\t\t})),\n\t\tvalue: n.object,\n\t\tchoicePosition: n.string.isRequired,\n\t\tinstanceId: n.string\n\t};\n\tgetStyleForWrapper = () => {\n\t\tlet { choicePosition: e } = this.props;\n\t\tswitch (e) {\n\t\t\tcase \"above\": return { margin: \"0 0 40px 0\" };\n\t\t\tcase \"below\": return { margin: \"40px 0 0 0\" };\n\t\t\tcase \"right\": return { margin: \"0 0 0 40px\" };\n\t\t\tdefault: return { margin: \"0 40px 0 0\" };\n\t\t}\n\t};\n\trender() {\n\t\tlet { disabled: t, duplicates: n, choices: o, value: s, instanceId: c } = this.props, l = o.filter((e) => n === !0 ? !0 : r(s, (t) => t === e.id) === void 0);\n\t\treturn /* @__PURE__ */ i(\"div\", {\n\t\t\tstyle: {\n\t\t\t\t...this.getStyleForWrapper(),\n\t\t\t\tminWidth: \"100px\"\n\t\t\t},\n\t\t\tchildren: /* @__PURE__ */ i(a, {\n\t\t\t\tdisabled: t,\n\t\t\t\tinstanceId: c,\n\t\t\t\tchildren: l.map((n, r) => /* @__PURE__ */ i(e, {\n\t\t\t\t\tdisabled: t,\n\t\t\t\t\tchoice: n,\n\t\t\t\t\tinstanceId: c\n\t\t\t\t}, `${n.value}-${r}`))\n\t\t\t})\n\t\t});\n\t}\n};\n//#endregion\nexport { o as default };\n","//#region ../../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs\nfunction e(t) {\n\tvar n, r, i = \"\";\n\tif (typeof t == \"string\" || typeof t == \"number\") i += t;\n\telse if (typeof t == \"object\") if (Array.isArray(t)) {\n\t\tvar a = t.length;\n\t\tfor (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += \" \"), i += r);\n\t} else for (r in t) t[r] && (i && (i += \" \"), i += r);\n\treturn i;\n}\nfunction t() {\n\tfor (var t, n, r = 0, i = \"\", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += \" \"), i += n);\n\treturn i;\n}\n//#endregion\nexport { t as default };\n","import e from \"../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js\";\nimport t, { useEffect as n, useRef as r, useState as i } from \"react\";\nimport a from \"prop-types\";\nimport { styled as o } from \"@mui/material/styles\";\nimport { renderMath as s } from \"@pie-element/shared-math-rendering-mathjax\";\nimport c from \"debug\";\nimport { jsx as l, jsxs as u } from \"react/jsx-runtime\";\nimport { useDraggable as d, useDroppable as f } from \"@dnd-kit/core\";\nimport p from \"@mui/material/Chip\";\nimport { color as m } from \"@pie-lib/render-ui\";\nimport { CSS as h } from \"@dnd-kit/utilities\";\nimport { grey as g } from \"@mui/material/colors\";\n//#region src/components/blank.tsx\nc(\"pie-lib:mask-markup:blank\");\nvar _ = o(\"span\")(({ dragged: e, over: t }) => ({\n\tborder: `solid 0px ${m.primary()}`,\n\tminWidth: \"200px\",\n\ttouchAction: \"none\",\n\toverflow: \"hidden\",\n\twhiteSpace: \"nowrap\",\n\topacity: 1,\n\t...t && {\n\t\twhiteSpace: \"nowrap\",\n\t\toverflow: \"hidden\"\n\t},\n\t...e && { opacity: .5 }\n})), v = o(p)(() => ({\n\tbackgroundColor: m.background(),\n\tborder: `2px dashed ${m.text()}`,\n\ttouchAction: \"none\",\n\tcolor: m.text(),\n\tfontSize: \"inherit\",\n\tmaxWidth: \"374px\",\n\tposition: \"relative\",\n\tborderRadius: \"3px\",\n\t\"&.over\": {\n\t\twhiteSpace: \"nowrap\",\n\t\toverflow: \"hidden\"\n\t},\n\t\"&.parentOver\": {\n\t\tborder: `1px solid ${g[500]}`,\n\t\tbackgroundColor: `${g[300]}`\n\t},\n\t\"&.correct\": { border: `solid 1px ${m.correct()}` },\n\t\"&.incorrect\": { border: `solid 1px ${m.incorrect()}` },\n\t\"&.Mui-disabled\": { opacity: 1 }\n})), y = o(\"span\")(() => ({\n\twhiteSpace: \"normal\",\n\tpointerEvents: \"none\",\n\t\"& img\": {\n\t\tdisplay: \"block\",\n\t\tpadding: \"2px 0\"\n\t},\n\t\"& p\": {\n\t\tmarginTop: \"0\",\n\t\tmarginBottom: \"0\"\n\t},\n\t\"& mjx-frac\": { fontSize: \"120% !important\" },\n\t\"&.over\": {\n\t\twhiteSpace: \"nowrap\",\n\t\toverflow: \"hidden\"\n\t},\n\t\"&.hidden\": {\n\t\tcolor: \"transparent\",\n\t\topacity: 0\n\t},\n\t\"&.dragged\": {\n\t\tposition: \"absolute\",\n\t\tleft: 16,\n\t\tmaxWidth: \"60px\",\n\t\ttop: \"50%\",\n\t\ttransform: \"translateY(-50%)\"\n\t}\n}));\nfunction b({ disabled: a, choice: o, isOver: c, isDragging: d, dragItem: f, correct: p, emptyResponseAreaWidth: m, emptyResponseAreaHeight: h }) {\n\tlet g = r(null), _ = r(null), b = r(null), [x, S] = i({\n\t\theight: 0,\n\t\twidth: 0\n\t}), C = () => {\n\t\tE();\n\t}, w = () => {\n\t\tlet e = _.current?.querySelector(\"img\");\n\t\te ? e.onload = C : setTimeout(() => {\n\t\t\tE();\n\t\t}, 300);\n\t}, T = () => _.current ? _.current.querySelector(\"mjx-container\") && _.current.parentElement ? _.current.parentElement : _.current.querySelector(\"img\") || _.current : null, E = () => {\n\t\tif (_.current && g.current) {\n\t\t\tg.current.style.width = \"auto\", g.current.style.height = \"auto\", g.current.offsetHeight;\n\t\t\tlet e = T() || _.current, t = e.getBoundingClientRect(), n = t.width || e.offsetWidth || 0, r = Math.max(t.height || 0, e.offsetHeight || 0, e.scrollHeight || 0, _.current.scrollHeight || 0), i = n + 24, a = r + 24, o = parseFloat(m) || 0, s = parseFloat(h) || 0, c = i <= o ? o : i, l = a <= s ? s : a;\n\t\t\tS((e) => ({\n\t\t\t\twidth: c > o ? c : e.width,\n\t\t\t\theight: l > s ? l : e.height\n\t\t\t})), g.current.style.width = `${c}px`, g.current.style.height = `${l}px`;\n\t\t}\n\t}, D = () => {\n\t\tlet e = isNaN(parseFloat(m)) ? 0 : parseFloat(m), t = isNaN(parseFloat(h)) ? 0 : parseFloat(h);\n\t\treturn {\n\t\t\theight: x.height || t,\n\t\t\twidth: x.width || e,\n\t\t\t...e ? {} : { minWidth: 90 },\n\t\t\t...t ? {} : { minHeight: 32 }\n\t\t};\n\t};\n\tn(() => {\n\t\tw();\n\t}, []), n(() => {\n\t\tg.current && s(g.current);\n\t}, [\n\t\tp,\n\t\tc,\n\t\tf?.choice?.value\n\t]), n(() => {\n\t\tif (!o) {\n\t\t\tS({\n\t\t\t\theight: 0,\n\t\t\t\twidth: 0\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tw();\n\t}, [o]), n(() => {\n\t\t!c && !d && (b.current = {\n\t\t\twidth: g.current.offsetWidth,\n\t\t\theight: g.current.offsetHeight\n\t\t});\n\t}, [\n\t\to,\n\t\tc,\n\t\td\n\t]);\n\tlet O = f && c && f.choice && f.choice.value, k = o && o.value, A = c || d ? {\n\t\twidth: b.current?.width,\n\t\theight: b.current?.height\n\t} : D();\n\treturn /* @__PURE__ */ l(v, {\n\t\tclickable: !1,\n\t\tdisabled: a,\n\t\tref: g,\n\t\tcomponent: \"span\",\n\t\tlabel: /* @__PURE__ */ u(t.Fragment, { children: [/* @__PURE__ */ l(y, {\n\t\t\tref: _,\n\t\t\tdraggable: !0,\n\t\t\tclassName: e({\n\t\t\t\tover: c,\n\t\t\t\thidden: O\n\t\t\t}),\n\t\t\tdangerouslySetInnerHTML: { __html: k || \"\" }\n\t\t}), O && /* @__PURE__ */ l(y, {\n\t\t\tdraggable: !0,\n\t\t\tclassName: e({\n\t\t\t\tover: c,\n\t\t\t\tdragged: !0\n\t\t\t}),\n\t\t\tdangerouslySetInnerHTML: { __html: O || \"\" }\n\t\t})] }),\n\t\tclassName: e({\n\t\t\tover: c,\n\t\t\tparentOver: c,\n\t\t\tcorrect: p !== void 0 && p,\n\t\t\tincorrect: p !== void 0 && !p\n\t\t}),\n\t\tvariant: a ? \"outlined\" : void 0,\n\t\tstyle: A\n\t});\n}\nb.defaultProps = {\n\temptyResponseAreaWidth: 0,\n\temptyResponseAreaHeight: 0\n}, b.propTypes = {\n\tid: a.oneOfType([a.string, a.number]),\n\tdisabled: a.bool,\n\tduplicates: a.bool,\n\tchoice: a.object,\n\tisOver: a.bool,\n\tdragItem: a.object,\n\tcorrect: a.bool,\n\tonChange: a.func,\n\temptyResponseAreaWidth: a.oneOfType([a.string, a.number]),\n\temptyResponseAreaHeight: a.oneOfType([a.string, a.number]),\n\tinstanceId: a.string\n};\nfunction x({ id: e, disabled: t, duplicates: n, choice: r, correct: i, onChange: a, emptyResponseAreaWidth: o, emptyResponseAreaHeight: s, instanceId: c }) {\n\tlet { attributes: u, listeners: p, setNodeRef: m, transform: g, isDragging: v } = d({\n\t\tid: `mask-blank-drag-${e}`,\n\t\tdisabled: t || !r,\n\t\tdata: {\n\t\t\tid: e,\n\t\t\tchoice: r,\n\t\t\tinstanceId: c,\n\t\t\tfromChoice: !1,\n\t\t\ttype: \"MaskBlank\"\n\t\t}\n\t}), { setNodeRef: y, isOver: x, active: S } = f({\n\t\tid: `mask-blank-drop-${e}`,\n\t\tdata: {\n\t\t\tid: e,\n\t\t\taccepts: [\"MaskBlank\"],\n\t\t\tinstanceId: c\n\t\t}\n\t});\n\treturn /* @__PURE__ */ l(_, {\n\t\tref: (e) => {\n\t\t\tm(e), y(e);\n\t\t},\n\t\tstyle: { transform: h.Translate.toString(g) },\n\t\tdragged: v,\n\t\tover: x,\n\t\t...u,\n\t\t...p,\n\t\tchildren: /* @__PURE__ */ l(b, {\n\t\t\tid: e,\n\t\t\tdisabled: t,\n\t\t\tduplicates: n,\n\t\t\tchoice: r,\n\t\t\tisOver: x,\n\t\t\tdragItem: S?.data?.current,\n\t\t\tcorrect: i,\n\t\t\tonChange: a,\n\t\t\temptyResponseAreaWidth: o,\n\t\t\temptyResponseAreaHeight: s,\n\t\t\tinstanceId: c\n\t\t})\n\t});\n}\nx.defaultProps = {\n\temptyResponseAreaWidth: 0,\n\temptyResponseAreaHeight: 0\n}, x.propTypes = {\n\tid: a.oneOfType([a.string, a.number]),\n\tdisabled: a.bool,\n\tduplicates: a.bool,\n\tchoice: a.object,\n\tcorrect: a.bool,\n\tonChange: a.func,\n\temptyResponseAreaWidth: a.oneOfType([a.string, a.number]),\n\temptyResponseAreaHeight: a.oneOfType([a.string, a.number]),\n\tinstanceId: a.string\n};\n//#endregion\nexport { x as default };\n","import { withMask as e } from \"./with-mask.js\";\nimport t from \"./choices/choice.js\";\nimport n from \"./choices/index.js\";\nimport r from \"./components/blank.js\";\nimport i from \"react\";\nimport a from \"prop-types\";\nimport { jsx as o, jsxs as s } from \"react/jsx-runtime\";\nimport { DragProvider as c } from \"@pie-lib/drag\";\nimport { DragOverlay as l, rectIntersection as u } from \"@dnd-kit/core\";\n//#region src/drag-in-the-blank.tsx\nvar d = e(\"blank\", (e) => (t, n, i) => {\n\tlet a = t.data?.dataset || {};\n\tif (a.component === \"blank\") {\n\t\tlet { disabled: s, duplicates: c, correctResponse: l, feedback: u, showCorrectAnswer: d, emptyResponseAreaWidth: f, emptyResponseAreaHeight: p, instanceId: m, isDragging: h } = e, g = d ? l[a.id] : n[a.id], _ = g && e.choices.find((e) => e.id === g);\n\t\treturn /* @__PURE__ */ o(r, {\n\t\t\tcorrect: d || u && u[a.id],\n\t\t\tdisabled: s,\n\t\t\tduplicates: c,\n\t\t\tchoice: _,\n\t\t\tid: a.id,\n\t\t\temptyResponseAreaWidth: f,\n\t\t\temptyResponseAreaHeight: p,\n\t\t\tonChange: (e, t) => {\n\t\t\t\tlet r = { ...n };\n\t\t\t\tt === void 0 ? delete r[e] : r[e] = t, i(r);\n\t\t\t},\n\t\t\tinstanceId: m,\n\t\t\tisDragging: h\n\t\t}, `${t.type}-${a.id}`);\n\t}\n}), f = class extends i.Component {\n\tconstructor(e) {\n\t\tsuper(e), this.state = {\n\t\t\tactiveDragItem: null,\n\t\t\tdropAnimation: void 0\n\t\t};\n\t}\n\tstatic propTypes = {\n\t\tmarkup: a.string,\n\t\tlayout: a.object,\n\t\tchoicesPosition: a.string,\n\t\tchoices: a.array,\n\t\tvalue: a.object,\n\t\tonChange: a.func,\n\t\tduplicates: a.bool,\n\t\tdisabled: a.bool,\n\t\tfeedback: a.object,\n\t\tcorrectResponse: a.object,\n\t\tshowCorrectAnswer: a.bool,\n\t\temptyResponseAreaWidth: a.oneOfType([a.string, a.number]),\n\t\temptyResponseAreaHeight: a.oneOfType([a.string, a.number]),\n\t\tinstanceId: a.string\n\t};\n\tstatic defaultProps = { instanceId: \"drag-in-the-blank\" };\n\thandleDragStart = (e) => {\n\t\tlet { active: t } = e;\n\t\tt?.data?.current && this.setState({\n\t\t\tactiveDragItem: t.data.current,\n\t\t\tdropAnimation: void 0\n\t\t});\n\t};\n\trenderDragOverlay = () => {\n\t\tlet { activeDragItem: e } = this.state;\n\t\treturn e && e.type === \"MaskBlank\" ? /* @__PURE__ */ o(t, {\n\t\t\tdisabled: e.disabled,\n\t\t\tchoice: e.choice,\n\t\t\tinstanceId: e.instanceId\n\t\t}) : null;\n\t};\n\thandleDragEnd = (e) => {\n\t\tlet { active: t, over: n } = e, { onChange: r, value: i } = this.props, a = t?.data?.current, o = n?.data?.current, s = !!t && !!n && a?.type === \"MaskBlank\" && o?.accepts?.includes(\"MaskBlank\");\n\t\tif (this.setState({\n\t\t\tactiveDragItem: null,\n\t\t\tdropAnimation: s ? null : void 0\n\t\t}), !s || !r) return;\n\t\tlet c = a, l = o.id;\n\t\tif (o.toChoiceBoard === !0) {\n\t\t\tif (!c.fromChoice && c.id) {\n\t\t\t\tlet e = { ...i };\n\t\t\t\tdelete e[c.id], r(e);\n\t\t\t}\n\t\t} else if (c.fromChoice === !0) {\n\t\t\tif (l && l !== \"drag-in-the-blank-droppable\") {\n\t\t\t\tlet e = { ...i };\n\t\t\t\te[l] = c.choice.id, r(e);\n\t\t\t}\n\t\t} else if (c.id && c.id !== l) {\n\t\t\tlet e = { ...i };\n\t\t\te[l] = c.choice.id, delete e[c.id], r(e);\n\t\t}\n\t};\n\tgetPositionDirection = (e) => {\n\t\tlet t, n, r;\n\t\tswitch (e) {\n\t\t\tcase \"left\":\n\t\t\t\tt = \"row\", r = \"center\";\n\t\t\t\tbreak;\n\t\t\tcase \"right\":\n\t\t\t\tt = \"row-reverse\", n = \"flex-end\", r = \"center\";\n\t\t\t\tbreak;\n\t\t\tcase \"below\":\n\t\t\t\tt = \"column-reverse\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tt = \"column\";\n\t\t\t\tbreak;\n\t\t}\n\t\treturn {\n\t\t\tflexDirection: t,\n\t\t\tjustifyContent: n,\n\t\t\talignItems: r\n\t\t};\n\t};\n\trender() {\n\t\tlet { markup: e, duplicates: t, value: r, onChange: i, choicesPosition: a, choices: f, correctResponse: p, disabled: m, feedback: h, showCorrectAnswer: g, emptyResponseAreaWidth: _, emptyResponseAreaHeight: v, layout: y, instanceId: b } = this.props, x = a || \"below\", S = {\n\t\t\tdisplay: \"flex\",\n\t\t\tminWidth: \"100px\",\n\t\t\t...this.getPositionDirection(x)\n\t\t};\n\t\treturn /* @__PURE__ */ o(c, {\n\t\t\tonDragStart: this.handleDragStart,\n\t\t\tonDragEnd: this.handleDragEnd,\n\t\t\tcollisionDetection: u,\n\t\t\tchildren: /* @__PURE__ */ s(\"div\", {\n\t\t\t\tref: (e) => this.rootRef = e,\n\t\t\t\tstyle: S,\n\t\t\t\tchildren: [\n\t\t\t\t\t/* @__PURE__ */ o(n, {\n\t\t\t\t\t\tchoicePosition: x,\n\t\t\t\t\t\tchoices: f,\n\t\t\t\t\t\tvalue: r,\n\t\t\t\t\t\tduplicates: t,\n\t\t\t\t\t\tdisabled: m,\n\t\t\t\t\t\tinstanceId: b\n\t\t\t\t\t}),\n\t\t\t\t\t/* @__PURE__ */ o(d, {\n\t\t\t\t\t\telementType: \"drag-in-the-blank\",\n\t\t\t\t\t\tmarkup: e,\n\t\t\t\t\t\tlayout: y,\n\t\t\t\t\t\tvalue: r,\n\t\t\t\t\t\tchoices: f,\n\t\t\t\t\t\tonChange: i,\n\t\t\t\t\t\tdisabled: m,\n\t\t\t\t\t\tduplicates: t,\n\t\t\t\t\t\tfeedback: h,\n\t\t\t\t\t\tcorrectResponse: p,\n\t\t\t\t\t\tshowCorrectAnswer: g,\n\t\t\t\t\t\temptyResponseAreaWidth: _,\n\t\t\t\t\t\temptyResponseAreaHeight: v,\n\t\t\t\t\t\tinstanceId: b,\n\t\t\t\t\t\tisDragging: !!this.state.activeDragItem\n\t\t\t\t\t}),\n\t\t\t\t\t/* @__PURE__ */ o(l, {\n\t\t\t\t\t\tstyle: { pointerEvents: \"none\" },\n\t\t\t\t\t\tdropAnimation: this.state.dropAnimation,\n\t\t\t\t\t\tchildren: this.renderDragOverlay()\n\t\t\t\t\t})\n\t\t\t\t]\n\t\t\t})\n\t\t});\n\t}\n};\n//#endregion\nexport { f as default };\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/drag-in-the-blank/src/main.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport CorrectAnswerToggle from '@pie-lib/correct-answer-toggle';\nimport { DragInTheBlank } from '@pie-lib/mask-markup';\nimport { color, Collapsible as CollapsibleImport, hasText, hasMedia, PreviewPrompt as PreviewPromptImport, UiLayout as UiLayoutImport } from '@pie-lib/render-ui';\n\nfunction isRenderableReactInteropType(value: any) {\n return (\n typeof value === 'function' ||\n (typeof value === 'object' && value !== null && typeof value.$$typeof === 'symbol')\n );\n}\n\nfunction unwrapReactInteropSymbol(maybeSymbol: any, namedExport?: string) {\n if (!maybeSymbol) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol)) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol.default)) return maybeSymbol.default;\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport])) {\n return maybeSymbol[namedExport];\n }\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport]?.default)) {\n return maybeSymbol[namedExport].default;\n }\n return maybeSymbol;\n}\nconst UiLayout = unwrapReactInteropSymbol(UiLayoutImport, 'UiLayout') || unwrapReactInteropSymbol(renderUi.UiLayout, 'UiLayout');\nconst PreviewPrompt = unwrapReactInteropSymbol(PreviewPromptImport, 'PreviewPrompt') || unwrapReactInteropSymbol(renderUi.PreviewPrompt, 'PreviewPrompt');\nconst Collapsible = unwrapReactInteropSymbol(CollapsibleImport, 'Collapsible') || unwrapReactInteropSymbol(renderUi.Collapsible, 'Collapsible');\nimport * as RenderUiNamespace from '@pie-lib/render-ui';\nconst renderUiNamespaceAny = RenderUiNamespace as any;\nconst renderUiDefaultMaybe = renderUiNamespaceAny['default'];\nconst renderUi =\n renderUiDefaultMaybe && typeof renderUiDefaultMaybe === 'object'\n ? renderUiDefaultMaybe\n : renderUiNamespaceAny;\nimport { styled } from '@mui/material/styles';\n\nconst StyledUiLayout: any = styled(UiLayout)({\n color: color.text(),\n backgroundColor: color.background(),\n '& tr > td': {\n color: color.text(),\n },\n position: 'relative',\n});\n\nconst StyledCollapsible: any = styled(Collapsible)(({ theme }) => ({\n marginBottom: theme.spacing(2),\n}));\n\nconst StyledRationale: any = styled(Collapsible)(({ theme }) => ({\n marginTop: theme.spacing(2),\n}));\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object,\n value: PropTypes.object,\n feedback: PropTypes.object,\n onChange: PropTypes.func,\n };\n\n static defaultProps = {\n value: {},\n };\n\n state = {\n showCorrectAnswer: false,\n };\n\n toggleShowCorrect: any = () => {\n this.setState({ showCorrectAnswer: !this.state.showCorrectAnswer });\n };\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n const { model: nextModel } = nextProps;\n\n if (nextModel && !nextModel.correctResponse && this.state.showCorrectAnswer !== false) {\n this.setState({ showCorrectAnswer: false });\n }\n }\n\n render() {\n const { showCorrectAnswer } = this.state;\n const { model, onChange, value } = this.props;\n const { extraCSSRules, prompt, mode, language, fontSizeFactor, autoplayAudioEnabled, customAudioButton } = model;\n const modelWithValue = { ...model, value };\n const showCorrectAnswerToggle = mode === 'evaluate';\n\n const showRationale = model.rationale && (hasText(model.rationale) || hasMedia(model.rationale));\n const showTeacherInstructions =\n model.teacherInstructions && (hasText(model.teacherInstructions) || hasMedia(model.teacherInstructions));\n\n return (\n <StyledUiLayout\n extraCSSRules={extraCSSRules}\n id={'main-container'}\n fontSizeFactor={fontSizeFactor}\n >\n {showTeacherInstructions && (\n <StyledCollapsible\n labels={{ hidden: 'Show Teacher Instructions', visible: 'Hide Teacher Instructions' }}\n >\n <PreviewPrompt prompt={model.teacherInstructions} />\n </StyledCollapsible>\n )}\n\n {prompt && (\n <PreviewPrompt\n className=\"prompt\"\n prompt={prompt}\n autoplayAudioEnabled={autoplayAudioEnabled}\n customAudioButton={customAudioButton}\n />\n )}\n\n <CorrectAnswerToggle\n show={showCorrectAnswerToggle}\n toggled={showCorrectAnswer}\n onToggle={this.toggleShowCorrect}\n language={language}\n />\n\n <DragInTheBlank {...modelWithValue} onChange={onChange} showCorrectAnswer={showCorrectAnswer} />\n\n {showRationale && (\n <StyledRationale labels={{ hidden: 'Show Rationale', visible: 'Hide Rationale' }}>\n <PreviewPrompt prompt={model.rationale} />\n </StyledRationale>\n )}\n </StyledUiLayout>\n );\n }\n}\n\nexport default Main;\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/drag-in-the-blank/src/index.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { renderMath } from '@pie-element/shared-math-rendering-mathjax';\nimport { EnableAudioAutoplayImage as EnableAudioAutoplayImageImport } from '@pie-lib/render-ui';\n\nfunction isRenderableReactInteropType(value: any) {\n return (\n typeof value === 'function' ||\n (typeof value === 'object' && value !== null && typeof value.$$typeof === 'symbol')\n );\n}\n\nfunction unwrapReactInteropSymbol(maybeSymbol: any, namedExport?: string) {\n if (!maybeSymbol) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol)) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol.default)) return maybeSymbol.default;\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport])) {\n return maybeSymbol[namedExport];\n }\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport]?.default)) {\n return maybeSymbol[namedExport].default;\n }\n return maybeSymbol;\n}\nconst EnableAudioAutoplayImage = unwrapReactInteropSymbol(EnableAudioAutoplayImageImport, 'EnableAudioAutoplayImage') || unwrapReactInteropSymbol(renderUi.EnableAudioAutoplayImage, 'EnableAudioAutoplayImage');\nimport * as RenderUiNamespace from '@pie-lib/render-ui';\nconst renderUiNamespaceAny = RenderUiNamespace as any;\nconst renderUiDefaultMaybe = renderUiNamespaceAny['default'];\nconst renderUi =\n renderUiDefaultMaybe && typeof renderUiDefaultMaybe === 'object'\n ? renderUiDefaultMaybe\n : renderUiNamespaceAny;\nimport { ModelSetEvent, SessionChangedEvent } from '@pie-element/shared-player-events';\nimport Main from './main.js';\n\nexport const isComplete = (session, model, audioComplete, elementContext) => {\n const { autoplayAudioEnabled, completeAudioEnabled, responseAreasToBeFilled } = model || {};\n\n if (autoplayAudioEnabled && completeAudioEnabled && !audioComplete) {\n if (elementContext) {\n const audio = elementContext.querySelector('audio');\n const isInsidePrompt = audio && audio.closest('#preview-prompt');\n\n // only require audio completion if audio exists and is inside the prompt\n if (audio && isInsidePrompt) {\n return false;\n }\n }\n }\n\n if (!session || !session.value) {\n return false;\n }\n\n const filledResponseAreas = Object.values(session.value || {}).filter((val) => !!val).length;\n\n return filledResponseAreas >= responseAreasToBeFilled;\n};\n\nexport default class DragInTheBlank extends HTMLElement {\n constructor() {\n super();\n this._model = null;\n this._session = null;\n this._audioInitialized = false;\n this.audioComplete = false;\n this._root = null;\n }\n\n set model(m) {\n this._model = m;\n this.dispatchEvent(\n new ModelSetEvent(\n this.tagName.toLowerCase(),\n isComplete(this._session, this._model, this.audioComplete, this),\n !!this._model,\n ),\n );\n // reset the audioInitialized to false since the model changed, and we might need to reinitialize the audio\n this._audioInitialized = false;\n this._render();\n }\n\n set session(s) {\n this._session = s;\n this._render();\n }\n\n get session() {\n return this._session;\n }\n\n _render: any = () => {\n if (this._model && this._session) {\n let elem = React.createElement(Main, {\n model: this._model,\n value: this._session.value,\n onChange: this.changeSession,\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(elem);\n setTimeout(() => renderMath(this), 0);\n }\n };\n\n dispatchChangedEvent: any = () => {\n this.dispatchEvent(\n new SessionChangedEvent(\n this.tagName.toLowerCase(),\n isComplete(this._session, this._model, this.audioComplete, this),\n ),\n );\n };\n\n changeSession: any = (value) => {\n this.session.value = value;\n this.session.selector = 'Mouse';\n\n this.dispatchChangedEvent();\n this._render();\n };\n\n _createAudioInfoToast() {\n const info = document.createElement('div');\n info.id = 'play-audio-info';\n\n Object.assign(info.style, {\n position: 'absolute',\n top: 0,\n width: '100%',\n height: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n background: 'white',\n zIndex: '1000',\n cursor: 'pointer',\n });\n\n const img = document.createElement('img');\n img.src = EnableAudioAutoplayImage;\n img.alt = 'Click anywhere to enable audio autoplay';\n img.width = 500;\n img.height = 300;\n\n info.appendChild(img);\n return info;\n }\n\n connectedCallback() {\n this._render();\n\n // Observation: audio in Chrome will have the autoplay attribute,\n // while other browsers will not have the autoplay attribute and will need a user interaction to play the audio\n // This workaround fixes the issue of audio being cached and played on any user interaction in Safari and Firefox\n const observer = new MutationObserver((mutationsList, observer) => {\n mutationsList.forEach((mutation) => {\n if (mutation.type === 'childList') {\n if (this._audioInitialized) return;\n const audio = this.querySelector('audio');\n const isInsidePrompt = audio && audio.closest('#preview-prompt');\n\n if (!this._model) return;\n if (!this._model.autoplayAudioEnabled) return;\n if (audio && !isInsidePrompt) return;\n if (!audio) return;\n\n const info = this._createAudioInfoToast();\n const container = this.querySelector('#main-container');\n const enableAudio = () => {\n if (this.querySelector('#play-audio-info')) {\n audio.play();\n container.removeChild(info);\n }\n\n document.removeEventListener('click', enableAudio);\n };\n\n // if the audio is paused, it means the user has not interacted with the page yet and the audio will not play\n // FIX FOR SAFARI: play with a slight delay to check if autoplay was blocked\n setTimeout(() => {\n if (audio.paused && !this.querySelector('#play-audio-info')) {\n // add info message as a toast to enable audio playback\n container.appendChild(info);\n document.addEventListener('click', enableAudio);\n } else {\n document.removeEventListener('click', enableAudio);\n }\n }, 500);\n\n // we need to listen for the playing event to remove the toast in case the audio plays because of re-rendering\n const handlePlaying = () => {\n //timestamp when auto-played audio started playing\n this._session.audioStartTime = this._session.audioStartTime || new Date().getTime();\n\n const info = this.querySelector('#play-audio-info');\n if (info) {\n container.removeChild(info);\n }\n\n audio.removeEventListener('playing', handlePlaying);\n };\n\n audio.addEventListener('playing', handlePlaying);\n\n // we need to listen for the ended event to update the isComplete state\n const handleEnded = () => {\n //timestamp when auto-played audio completed playing\n this._session.audioEndTime = this._session.audioEndTime || new Date().getTime();\n\n let { audioStartTime, audioEndTime, waitTime } = this._session;\n if (!waitTime && audioStartTime && audioEndTime) {\n // waitTime is elapsed time the user waited for auto-played audio to finish\n this._session.waitTime = audioEndTime - audioStartTime;\n }\n\n this.audioComplete = true;\n this.dispatchChangedEvent();\n audio.removeEventListener('ended', handleEnded);\n };\n\n audio.addEventListener('ended', handleEnded);\n\n // store references to remove later\n this._audio = audio;\n this._handlePlaying = handlePlaying;\n this._handleEnded = handleEnded;\n this._enableAudio = enableAudio;\n // set to true to prevent multiple initializations\n this._audioInitialized = true;\n\n observer.disconnect();\n }\n });\n });\n\n observer.observe(this, { childList: true, subtree: true });\n }\n\n disconnectedCallback() {\n document.removeEventListener('click', this._enableAudio);\n\n if (this._audio) {\n this._audio.removeEventListener('playing', this._handlePlaying);\n this._audio.removeEventListener('ended', this._handleEnded);\n this._audio = null;\n }\n\n if (this._root) {\n this._root.unmount();\n }\n }\n}\n"],"x_google_ignoreList":[5,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,30,31,32,34,38],"mappings":";;;;;;;mCAKI,MAAK,EAAE,QAAQ,GAAG,QAAQ,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