@scalant/resume-builder 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/resume-builder.es.js +64 -41
- package/dist/resume-builder.umd.js +1 -1
- package/package.json +2 -2
|
@@ -52305,8 +52305,13 @@ function requireLib() {
|
|
|
52305
52305
|
var libExports = requireLib();
|
|
52306
52306
|
const ReactQuill = /* @__PURE__ */ getDefaultExportFromCjs(libExports), quill = "_quill_1fivm_1", styles$8 = {
|
|
52307
52307
|
quill
|
|
52308
|
-
}, RichTextEditor = ({
|
|
52309
|
-
|
|
52308
|
+
}, RichTextEditor = ({
|
|
52309
|
+
form: C,
|
|
52310
|
+
fieldName: $,
|
|
52311
|
+
placeholder: F = "Enter text...",
|
|
52312
|
+
onValuesChange: V
|
|
52313
|
+
}) => {
|
|
52314
|
+
const K = {
|
|
52310
52315
|
toolbar: [
|
|
52311
52316
|
[{ header: [1, 2, 3, !1] }],
|
|
52312
52317
|
["bold", "italic", "underline", "strike"],
|
|
@@ -52314,7 +52319,7 @@ const ReactQuill = /* @__PURE__ */ getDefaultExportFromCjs(libExports), quill =
|
|
|
52314
52319
|
["link"],
|
|
52315
52320
|
["clean"]
|
|
52316
52321
|
]
|
|
52317
|
-
},
|
|
52322
|
+
}, J = [
|
|
52318
52323
|
"header",
|
|
52319
52324
|
"bold",
|
|
52320
52325
|
"italic",
|
|
@@ -52328,15 +52333,13 @@ const ReactQuill = /* @__PURE__ */ getDefaultExportFromCjs(libExports), quill =
|
|
|
52328
52333
|
ReactQuill,
|
|
52329
52334
|
{
|
|
52330
52335
|
theme: "snow",
|
|
52331
|
-
modules:
|
|
52332
|
-
formats:
|
|
52336
|
+
modules: K,
|
|
52337
|
+
formats: J,
|
|
52333
52338
|
placeholder: F,
|
|
52334
52339
|
className: styles$8.quill,
|
|
52335
52340
|
value: C.getFieldValue($),
|
|
52336
|
-
onChange: (
|
|
52337
|
-
C.setFieldsValue({ [$]:
|
|
52338
|
-
const ee = C.getFieldsValue();
|
|
52339
|
-
C.onValuesChange && C.onValuesChange({ [$]: J }, ee);
|
|
52341
|
+
onChange: (ee) => {
|
|
52342
|
+
C.setFieldsValue({ [$]: ee }), V && V({ [$]: ee }, C.getFieldsValue());
|
|
52340
52343
|
}
|
|
52341
52344
|
}
|
|
52342
52345
|
);
|
|
@@ -52344,7 +52347,8 @@ const ReactQuill = /* @__PURE__ */ getDefaultExportFromCjs(libExports), quill =
|
|
|
52344
52347
|
RichTextEditor.propTypes = {
|
|
52345
52348
|
form: PropTypes.object.isRequired,
|
|
52346
52349
|
fieldName: PropTypes.string.isRequired,
|
|
52347
|
-
placeholder: PropTypes.string
|
|
52350
|
+
placeholder: PropTypes.string,
|
|
52351
|
+
onValuesChange: PropTypes.func
|
|
52348
52352
|
};
|
|
52349
52353
|
const { Text: Text$5 } = Typography, ProjectFormItem = ({ item: C, formId: $, required: F = !1 }) => {
|
|
52350
52354
|
var ae, oe;
|
|
@@ -52421,7 +52425,8 @@ const { Text: Text$5 } = Typography, ProjectFormItem = ({ item: C, formId: $, re
|
|
|
52421
52425
|
{
|
|
52422
52426
|
form: J,
|
|
52423
52427
|
fieldName: "description",
|
|
52424
|
-
placeholder: "Enter Key Points"
|
|
52428
|
+
placeholder: "Enter Key Points",
|
|
52429
|
+
onValuesChange: ee
|
|
52425
52430
|
}
|
|
52426
52431
|
)
|
|
52427
52432
|
),
|
|
@@ -52723,7 +52728,8 @@ const { Text: Text$5 } = Typography, ProjectFormItem = ({ item: C, formId: $, re
|
|
|
52723
52728
|
{
|
|
52724
52729
|
form: J,
|
|
52725
52730
|
fieldName: "short_description",
|
|
52726
|
-
placeholder: "Enter Description"
|
|
52731
|
+
placeholder: "Enter Description",
|
|
52732
|
+
onValuesChange: ee
|
|
52727
52733
|
}
|
|
52728
52734
|
))
|
|
52729
52735
|
)) : /* @__PURE__ */ React__default.createElement(Card, { key: C.id }, /* @__PURE__ */ React__default.createElement(Flex, { justify: "space-between", align: "center" }, /* @__PURE__ */ React__default.createElement(Flex, { vertical: !0, gap: 4 }, /* @__PURE__ */ React__default.createElement(Text$4, { strong: !0 }, (oe = C.formData) != null && oe.university ? (ne = C.formData) == null ? void 0 : ne.university : "---"), /* @__PURE__ */ React__default.createElement(Text$4, null, (ie = C.formData) != null && ie.degree ? `${C.formData.degree}, ` : "---", /* @__PURE__ */ React__default.createElement(Divider, { type: "vertical" }), (se = C.formData) != null && se.graduation_date ? `${C.formData.graduation_date.format("YYYY")}` : "---")), /* @__PURE__ */ React__default.createElement(RefIcon$y, { onClick: te })));
|
|
@@ -52843,7 +52849,7 @@ const { Text: Text$5 } = Typography, ProjectFormItem = ({ item: C, formId: $, re
|
|
|
52843
52849
|
const ce = {
|
|
52844
52850
|
form_stage: "education_details_form",
|
|
52845
52851
|
isPopulated: !0,
|
|
52846
|
-
|
|
52852
|
+
educations: se
|
|
52847
52853
|
};
|
|
52848
52854
|
C == null || C(), yield ee({
|
|
52849
52855
|
resumeId: (de = V == null ? void 0 : V.resume_details) == null ? void 0 : de.id,
|
|
@@ -52969,7 +52975,8 @@ const { Text: Text$5 } = Typography, ProjectFormItem = ({ item: C, formId: $, re
|
|
|
52969
52975
|
{
|
|
52970
52976
|
form: J,
|
|
52971
52977
|
fieldName: "short_description",
|
|
52972
|
-
placeholder: "Enter Key Points"
|
|
52978
|
+
placeholder: "Enter Key Points",
|
|
52979
|
+
onValuesChange: ee
|
|
52973
52980
|
}
|
|
52974
52981
|
))
|
|
52975
52982
|
)) : /* @__PURE__ */ React__default.createElement(Card, { key: C.id }, /* @__PURE__ */ React__default.createElement(Flex, { justify: "space-between", align: "center" }, /* @__PURE__ */ React__default.createElement(Flex, { vertical: !0, gap: 4 }, /* @__PURE__ */ React__default.createElement(Text$3, { strong: !0 }, (ae = C.formData) == null ? void 0 : ae.company), /* @__PURE__ */ React__default.createElement(Text$3, null, (oe = C.formData) != null && oe.position ? `${(ne = C.formData) == null ? void 0 : ne.position}, ` : "---", /* @__PURE__ */ React__default.createElement(Divider, { type: "vertical" }), (ie = C.formData) != null && ie.from ? `${(se = C.formData) == null ? void 0 : se.from.format("YYYY")}` : "---", "-", (de = C.formData) != null && de.to ? `${(ce = C.formData) == null ? void 0 : ce.to.format("YYYY")}` : (le = C.formData) != null && le.is_current ? "Present" : "---")), /* @__PURE__ */ React__default.createElement(RefIcon$y, { onClick: te })));
|
|
@@ -53091,9 +53098,7 @@ const { Text: Text$5 } = Typography, ProjectFormItem = ({ item: C, formId: $, re
|
|
|
53091
53098
|
form_stage: "work_experience_details_form",
|
|
53092
53099
|
isPopulated: !0,
|
|
53093
53100
|
upgrade: !1,
|
|
53094
|
-
|
|
53095
|
-
projects: [],
|
|
53096
|
-
achievements: []
|
|
53101
|
+
previous_experiences: se
|
|
53097
53102
|
};
|
|
53098
53103
|
C == null || C(), yield ee({
|
|
53099
53104
|
resumeId: (de = V == null ? void 0 : V.resume_details) == null ? void 0 : de.id,
|
|
@@ -53130,13 +53135,19 @@ const { Text: Text$5 } = Typography, ProjectFormItem = ({ item: C, formId: $, re
|
|
|
53130
53135
|
const F = useDispatch(), V = useSelector(
|
|
53131
53136
|
(ee) => ee.scalantResumeBuilder.formStore.forms[$]
|
|
53132
53137
|
), [K] = Form.useForm(), J = (ee, te) => {
|
|
53133
|
-
const
|
|
53134
|
-
(
|
|
53138
|
+
const re = (V == null ? void 0 : V.achievementsItems) || [C], ae = re.findIndex(
|
|
53139
|
+
(ne) => ne.id === C.id
|
|
53135
53140
|
);
|
|
53136
|
-
|
|
53141
|
+
let oe;
|
|
53142
|
+
ae === -1 ? oe = [
|
|
53143
|
+
...re,
|
|
53144
|
+
dn(Jr({}, C), { formData: te, saved: !0 })
|
|
53145
|
+
] : oe = re.map(
|
|
53146
|
+
(ne) => ne.id === C.id ? dn(Jr({}, ne), { formData: te, saved: !0 }) : ne
|
|
53147
|
+
), F(
|
|
53137
53148
|
updateFormData({
|
|
53138
53149
|
formId: $,
|
|
53139
|
-
data: { achievementsItems:
|
|
53150
|
+
data: { achievementsItems: oe }
|
|
53140
53151
|
})
|
|
53141
53152
|
);
|
|
53142
53153
|
};
|
|
@@ -53154,7 +53165,8 @@ const { Text: Text$5 } = Typography, ProjectFormItem = ({ item: C, formId: $, re
|
|
|
53154
53165
|
{
|
|
53155
53166
|
form: K,
|
|
53156
53167
|
fieldName: "description",
|
|
53157
|
-
placeholder: "Enter your achievements description"
|
|
53168
|
+
placeholder: "Enter your achievements description",
|
|
53169
|
+
onValuesChange: J
|
|
53158
53170
|
}
|
|
53159
53171
|
))
|
|
53160
53172
|
);
|
|
@@ -53170,20 +53182,21 @@ const { Text: Text$5 } = Typography, ProjectFormItem = ({ item: C, formId: $, re
|
|
|
53170
53182
|
}
|
|
53171
53183
|
]
|
|
53172
53184
|
}, CustomForm = ({ onComplete: C }) => {
|
|
53185
|
+
var re;
|
|
53173
53186
|
const $ = useDispatch(), F = useSelector(
|
|
53174
|
-
(
|
|
53187
|
+
(ae) => ae.scalantResumeBuilder.resumeBuilder.resumeData
|
|
53175
53188
|
), V = useSelector(
|
|
53176
|
-
(
|
|
53189
|
+
(ae) => ae.scalantResumeBuilder.formStore.forms[FORM_ID]
|
|
53177
53190
|
), K = useSelector(
|
|
53178
|
-
(
|
|
53191
|
+
(ae) => ae.scalantResumeBuilder.formStore.initializedForms[FORM_ID]
|
|
53179
53192
|
), [J] = useUpdateResumeDetailsMutation(), ee = useMemo$1(
|
|
53180
53193
|
() => F != null && F.achievements ? {
|
|
53181
|
-
achievementsItems: F.achievements.map((
|
|
53182
|
-
id:
|
|
53194
|
+
achievementsItems: F.achievements.map((ae) => ({
|
|
53195
|
+
id: ae.id,
|
|
53183
53196
|
completed: !0,
|
|
53184
53197
|
saved: !0,
|
|
53185
53198
|
formData: {
|
|
53186
|
-
description:
|
|
53199
|
+
description: ae.description
|
|
53187
53200
|
}
|
|
53188
53201
|
}))
|
|
53189
53202
|
} : initialFormData,
|
|
@@ -53193,33 +53206,43 @@ const { Text: Text$5 } = Typography, ProjectFormItem = ({ item: C, formId: $, re
|
|
|
53193
53206
|
K || $(initializeForm({ formId: FORM_ID, initialData: ee }));
|
|
53194
53207
|
}, [$, K, ee]);
|
|
53195
53208
|
const te = () => fn(null, null, function* () {
|
|
53196
|
-
var
|
|
53197
|
-
const
|
|
53198
|
-
if (
|
|
53209
|
+
var ie;
|
|
53210
|
+
const ae = (V == null ? void 0 : V.achievementsItems) || [];
|
|
53211
|
+
if (ae.some((se) => !se.saved)) {
|
|
53199
53212
|
staticMethods.error(
|
|
53200
53213
|
"Please save all custom form items before marking as complete"
|
|
53201
53214
|
);
|
|
53202
53215
|
return;
|
|
53203
53216
|
}
|
|
53204
|
-
|
|
53205
|
-
|
|
53206
|
-
|
|
53217
|
+
console.log(ae);
|
|
53218
|
+
const ne = ae.map((se) => ({
|
|
53219
|
+
id: se.id,
|
|
53220
|
+
description: se.formData.description
|
|
53207
53221
|
}));
|
|
53208
53222
|
try {
|
|
53209
|
-
const
|
|
53223
|
+
const se = {
|
|
53210
53224
|
form_stage: "achievement_details_form",
|
|
53211
53225
|
isPopulated: !0,
|
|
53212
|
-
achievements:
|
|
53226
|
+
achievements: ne
|
|
53213
53227
|
};
|
|
53214
53228
|
C == null || C(), yield J({
|
|
53215
|
-
resumeId: (
|
|
53216
|
-
payload:
|
|
53229
|
+
resumeId: (ie = F == null ? void 0 : F.resume_details) == null ? void 0 : ie.id,
|
|
53230
|
+
payload: se
|
|
53217
53231
|
}).unwrap(), staticMethods.success("Achievements updated successfully");
|
|
53218
|
-
} catch (
|
|
53219
|
-
staticMethods.error(`Failed to update achievements: ${
|
|
53232
|
+
} catch (se) {
|
|
53233
|
+
staticMethods.error(`Failed to update achievements: ${se.message}`);
|
|
53220
53234
|
}
|
|
53221
53235
|
});
|
|
53222
|
-
return /* @__PURE__ */ React__default.createElement(Flex, { vertical: !0, gap: 16 }, /* @__PURE__ */ React__default.createElement(Space, { direction: "vertical", style: { width: "100%" } }, /* @__PURE__ */ React__default.createElement(Flex, { vertical: !0, gap: 16 }, ((V == null ? void 0 : V.achievementsItems)
|
|
53236
|
+
return /* @__PURE__ */ React__default.createElement(Flex, { vertical: !0, gap: 16 }, /* @__PURE__ */ React__default.createElement(Space, { direction: "vertical", style: { width: "100%" } }, /* @__PURE__ */ React__default.createElement(Flex, { vertical: !0, gap: 16 }, ((re = V == null ? void 0 : V.achievementsItems) != null && re.length ? V.achievementsItems : [
|
|
53237
|
+
{
|
|
53238
|
+
id: null,
|
|
53239
|
+
completed: !1,
|
|
53240
|
+
saved: !1,
|
|
53241
|
+
formData: {
|
|
53242
|
+
description: ""
|
|
53243
|
+
}
|
|
53244
|
+
}
|
|
53245
|
+
]).map((ae) => /* @__PURE__ */ React__default.createElement(CustomFormItem, { key: ae.id, item: ae, formId: FORM_ID }))), /* @__PURE__ */ React__default.createElement(Flex, { gap: 16 }, /* @__PURE__ */ React__default.createElement(Button$1, { type: "primary", block: !0, onClick: te }, "Save and Compile"), /* @__PURE__ */ React__default.createElement(Button$1, { type: "default", onClick: te, block: !0 }, "Save and Next"))), /* @__PURE__ */ React__default.createElement(AiSuggestionBanner, null));
|
|
53223
53246
|
}, ALL_FORMS_KEYS = {
|
|
53224
53247
|
personal_details: "personalDetails",
|
|
53225
53248
|
projects: "projects",
|
|
@@ -464,7 +464,7 @@ Valid keys: `+JSON.stringify(Object.keys(Oe),null," "));var $e=ze(qe,He,Fe,je,M
|
|
|
464
464
|
`),Je}function We(Ye,Je){if(Me(Ye)&&Ye.nextElementSibling!=null&&!je(Je,`
|
|
465
465
|
|
|
466
466
|
`)){var et=Ye.offsetHeight+parseFloat(Fe(Ye).marginTop)+parseFloat(Fe(Ye).marginBottom);Ye.nextElementSibling.offsetTop>Ye.offsetTop+et*1.5&&Je.insert(`
|
|
467
|
-
`)}return Je}function Ge(Ye,Je){var et={},nt=Ye.style||{};return nt.fontStyle&&Fe(Ye).fontStyle==="italic"&&(et.italic=!0),nt.fontWeight&&(Fe(Ye).fontWeight.startsWith("bold")||parseInt(Fe(Ye).fontWeight)>=700)&&(et.bold=!0),Object.keys(et).length>0&&(Je=Te(Je,et)),parseFloat(nt.textIndent||0)>0&&(Je=new re.default().insert(" ").concat(Je)),Je}function Xe(Ye,Je){var et=Ye.data;if(Ye.parentNode.tagName==="O:P")return Je.insert(et.trim());if(et.trim().length===0&&Ye.parentNode.classList.contains("ql-clipboard"))return Je;if(!Fe(Ye.parentNode).whiteSpace.startsWith("pre")){var nt=function(ut,pt){return pt=pt.replace(/[^\u00a0]/g,""),pt.length<1&&ut?" ":pt};et=et.replace(/\r\n/g," ").replace(/\n/g," "),et=et.replace(/\s\s+/g,nt.bind(nt,!0)),(Ye.previousSibling==null&&Me(Ye.parentNode)||Ye.previousSibling!=null&&Me(Ye.previousSibling))&&(et=et.replace(/^\s+/,nt.bind(nt,!1))),(Ye.nextSibling==null&&Me(Ye.parentNode)||Ye.nextSibling!=null&&Me(Ye.nextSibling))&&(et=et.replace(/\s+$/,nt.bind(nt,!1)))}return Je.insert(et)}V.default=we,V.matchAttributor=Ke,V.matchBlot=He,V.matchNewline=Be,V.matchSpacing=We,V.matchText=Xe},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function de(ce,le){for(var me=0;me<le.length;me++){var fe=le[me];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ce,fe.key,fe)}}return function(ce,le,me){return le&&de(ce.prototype,le),me&&de(ce,me),ce}}(),ee=function de(ce,le,me){ce===null&&(ce=Function.prototype);var fe=Object.getOwnPropertyDescriptor(ce,le);if(fe===void 0){var he=Object.getPrototypeOf(ce);return he===null?void 0:de(he,le,me)}else{if("value"in fe)return fe.value;var ue=fe.get;return ue===void 0?void 0:ue.call(me)}},te=K(6),ne=ae(te);function ae(de){return de&&de.__esModule?de:{default:de}}function oe(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}function re(de,ce){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:de}function ie(de,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);de.prototype=Object.create(ce&&ce.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(de,ce):de.__proto__=ce)}var se=function(de){ie(ce,de);function ce(){return oe(this,ce),re(this,(ce.__proto__||Object.getPrototypeOf(ce)).apply(this,arguments))}return J(ce,[{key:"optimize",value:function(me){ee(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"optimize",this).call(this,me),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return ee(ce.__proto__||Object.getPrototypeOf(ce),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),ce}(ne.default);se.blotName="bold",se.tagName=["STRONG","B"],V.default=se},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.addControls=V.default=void 0;var J=function(){function Se(Re,Ce){var xe=[],Pe=!0,Ae=!1,Le=void 0;try{for(var ke=Re[Symbol.iterator](),Ne;!(Pe=(Ne=ke.next()).done)&&(xe.push(Ne.value),!(Ce&&xe.length===Ce));Pe=!0);}catch(Oe){Ae=!0,Le=Oe}finally{try{!Pe&&ke.return&&ke.return()}finally{if(Ae)throw Le}}return xe}return function(Re,Ce){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return Se(Re,Ce);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ee=function(){function Se(Re,Ce){for(var xe=0;xe<Ce.length;xe++){var Pe=Ce[xe];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(Re,Pe.key,Pe)}}return function(Re,Ce,xe){return Ce&&Se(Re.prototype,Ce),xe&&Se(Re,xe),Re}}(),te=K(2),ne=me(te),ae=K(0),oe=me(ae),re=K(5),ie=me(re),se=K(10),de=me(se),ce=K(9),le=me(ce);function me(Se){return Se&&Se.__esModule?Se:{default:Se}}function fe(Se,Re,Ce){return Re in Se?Object.defineProperty(Se,Re,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):Se[Re]=Ce,Se}function he(Se,Re){if(!(Se instanceof Re))throw new TypeError("Cannot call a class as a function")}function ue(Se,Re){if(!Se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Re&&(typeof Re=="object"||typeof Re=="function")?Re:Se}function pe(Se,Re){if(typeof Re!="function"&&Re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Re);Se.prototype=Object.create(Re&&Re.prototype,{constructor:{value:Se,enumerable:!1,writable:!0,configurable:!0}}),Re&&(Object.setPrototypeOf?Object.setPrototypeOf(Se,Re):Se.__proto__=Re)}var ve=(0,de.default)("quill:toolbar"),ge=function(Se){pe(Re,Se);function Re(Ce,xe){he(this,Re);var Pe=ue(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,Ce,xe));if(Array.isArray(Pe.options.container)){var Ae=document.createElement("div");be(Ae,Pe.options.container),Ce.container.parentNode.insertBefore(Ae,Ce.container),Pe.container=Ae}else typeof Pe.options.container=="string"?Pe.container=document.querySelector(Pe.options.container):Pe.container=Pe.options.container;if(!(Pe.container instanceof HTMLElement)){var Le;return Le=ve.error("Container required for toolbar",Pe.options),ue(Pe,Le)}return Pe.container.classList.add("ql-toolbar"),Pe.controls=[],Pe.handlers={},Object.keys(Pe.options.handlers).forEach(function(ke){Pe.addHandler(ke,Pe.options.handlers[ke])}),[].forEach.call(Pe.container.querySelectorAll("button, select"),function(ke){Pe.attach(ke)}),Pe.quill.on(ie.default.events.EDITOR_CHANGE,function(ke,Ne){ke===ie.default.events.SELECTION_CHANGE&&Pe.update(Ne)}),Pe.quill.on(ie.default.events.SCROLL_OPTIMIZE,function(){var ke=Pe.quill.selection.getRange(),Ne=J(ke,1),Oe=Ne[0];Pe.update(Oe)}),Pe}return ee(Re,[{key:"addHandler",value:function(xe,Pe){this.handlers[xe]=Pe}},{key:"attach",value:function(xe){var Pe=this,Ae=[].find.call(xe.classList,function(ke){return ke.indexOf("ql-")===0});if(Ae){if(Ae=Ae.slice(3),xe.tagName==="BUTTON"&&xe.setAttribute("type","button"),this.handlers[Ae]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Ae]==null){ve.warn("ignoring attaching to disabled format",Ae,xe);return}if(oe.default.query(Ae)==null){ve.warn("ignoring attaching to nonexistent format",Ae,xe);return}}var Le=xe.tagName==="SELECT"?"change":"click";xe.addEventListener(Le,function(ke){var Ne=void 0;if(xe.tagName==="SELECT"){if(xe.selectedIndex<0)return;var Oe=xe.options[xe.selectedIndex];Oe.hasAttribute("selected")?Ne=!1:Ne=Oe.value||!1}else xe.classList.contains("ql-active")?Ne=!1:Ne=xe.value||!xe.hasAttribute("value"),ke.preventDefault();Pe.quill.focus();var Ee=Pe.quill.selection.getRange(),we=J(Ee,1),Te=we[0];if(Pe.handlers[Ae]!=null)Pe.handlers[Ae].call(Pe,Ne);else if(oe.default.query(Ae).prototype instanceof oe.default.Embed){if(Ne=prompt("Enter "+Ae),!Ne)return;Pe.quill.updateContents(new ne.default().retain(Te.index).delete(Te.length).insert(fe({},Ae,Ne)),ie.default.sources.USER)}else Pe.quill.format(Ae,Ne,ie.default.sources.USER);Pe.update(Te)}),this.controls.push([Ae,xe])}}},{key:"update",value:function(xe){var Pe=xe==null?{}:this.quill.getFormat(xe);this.controls.forEach(function(Ae){var Le=J(Ae,2),ke=Le[0],Ne=Le[1];if(Ne.tagName==="SELECT"){var Oe=void 0;if(xe==null)Oe=null;else if(Pe[ke]==null)Oe=Ne.querySelector("option[selected]");else if(!Array.isArray(Pe[ke])){var Ee=Pe[ke];typeof Ee=="string"&&(Ee=Ee.replace(/\"/g,'\\"')),Oe=Ne.querySelector('option[value="'+Ee+'"]')}Oe==null?(Ne.value="",Ne.selectedIndex=-1):Oe.selected=!0}else if(xe==null)Ne.classList.remove("ql-active");else if(Ne.hasAttribute("value")){var we=Pe[ke]===Ne.getAttribute("value")||Pe[ke]!=null&&Pe[ke].toString()===Ne.getAttribute("value")||Pe[ke]==null&&!Ne.getAttribute("value");Ne.classList.toggle("ql-active",we)}else Ne.classList.toggle("ql-active",Pe[ke]!=null)})}}]),Re}(le.default);ge.DEFAULTS={};function _e(Se,Re,Ce){var xe=document.createElement("button");xe.setAttribute("type","button"),xe.classList.add("ql-"+Re),Ce!=null&&(xe.value=Ce),Se.appendChild(xe)}function be(Se,Re){Array.isArray(Re[0])||(Re=[Re]),Re.forEach(function(Ce){var xe=document.createElement("span");xe.classList.add("ql-formats"),Ce.forEach(function(Pe){if(typeof Pe=="string")_e(xe,Pe);else{var Ae=Object.keys(Pe)[0],Le=Pe[Ae];Array.isArray(Le)?ye(xe,Ae,Le):_e(xe,Ae,Le)}}),Se.appendChild(xe)})}function ye(Se,Re,Ce){var xe=document.createElement("select");xe.classList.add("ql-"+Re),Ce.forEach(function(Pe){var Ae=document.createElement("option");Pe!==!1?Ae.setAttribute("value",Pe):Ae.setAttribute("selected","selected"),xe.appendChild(Ae)}),Se.appendChild(xe)}ge.DEFAULTS={container:null,handlers:{clean:function(){var Re=this,Ce=this.quill.getSelection();if(Ce!=null)if(Ce.length==0){var xe=this.quill.getFormat();Object.keys(xe).forEach(function(Pe){oe.default.query(Pe,oe.default.Scope.INLINE)!=null&&Re.quill.format(Pe,!1)})}else this.quill.removeFormat(Ce,ie.default.sources.USER)},direction:function(Re){var Ce=this.quill.getFormat().align;Re==="rtl"&&Ce==null?this.quill.format("align","right",ie.default.sources.USER):!Re&&Ce==="right"&&this.quill.format("align",!1,ie.default.sources.USER),this.quill.format("direction",Re,ie.default.sources.USER)},indent:function(Re){var Ce=this.quill.getSelection(),xe=this.quill.getFormat(Ce),Pe=parseInt(xe.indent||0);if(Re==="+1"||Re==="-1"){var Ae=Re==="+1"?1:-1;xe.direction==="rtl"&&(Ae*=-1),this.quill.format("indent",Pe+Ae,ie.default.sources.USER)}},link:function(Re){Re===!0&&(Re=prompt("Enter link URL:")),this.quill.format("link",Re,ie.default.sources.USER)},list:function(Re){var Ce=this.quill.getSelection(),xe=this.quill.getFormat(Ce);Re==="check"?xe.list==="checked"||xe.list==="unchecked"?this.quill.format("list",!1,ie.default.sources.USER):this.quill.format("list","unchecked",ie.default.sources.USER):this.quill.format("list",Re,ie.default.sources.USER)}}},V.default=ge,V.addControls=be},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function de(ce,le){for(var me=0;me<le.length;me++){var fe=le[me];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ce,fe.key,fe)}}return function(ce,le,me){return le&&de(ce.prototype,le),me&&de(ce,me),ce}}(),ee=function de(ce,le,me){ce===null&&(ce=Function.prototype);var fe=Object.getOwnPropertyDescriptor(ce,le);if(fe===void 0){var he=Object.getPrototypeOf(ce);return he===null?void 0:de(he,le,me)}else{if("value"in fe)return fe.value;var ue=fe.get;return ue===void 0?void 0:ue.call(me)}},te=K(28),ne=ae(te);function ae(de){return de&&de.__esModule?de:{default:de}}function oe(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}function re(de,ce){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:de}function ie(de,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);de.prototype=Object.create(ce&&ce.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(de,ce):de.__proto__=ce)}var se=function(de){ie(ce,de);function ce(le,me){oe(this,ce);var fe=re(this,(ce.__proto__||Object.getPrototypeOf(ce)).call(this,le));return fe.label.innerHTML=me,fe.container.classList.add("ql-color-picker"),[].slice.call(fe.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(he){he.classList.add("ql-primary")}),fe}return J(ce,[{key:"buildItem",value:function(me){var fe=ee(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"buildItem",this).call(this,me);return fe.style.backgroundColor=me.getAttribute("value")||"",fe}},{key:"selectItem",value:function(me,fe){ee(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"selectItem",this).call(this,me,fe);var he=this.label.querySelector(".ql-color-label"),ue=me&&me.getAttribute("data-value")||"";he&&(he.tagName==="line"?he.style.stroke=ue:he.style.fill=ue)}}]),ce}(ne.default);V.default=se},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function de(ce,le){for(var me=0;me<le.length;me++){var fe=le[me];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ce,fe.key,fe)}}return function(ce,le,me){return le&&de(ce.prototype,le),me&&de(ce,me),ce}}(),ee=function de(ce,le,me){ce===null&&(ce=Function.prototype);var fe=Object.getOwnPropertyDescriptor(ce,le);if(fe===void 0){var he=Object.getPrototypeOf(ce);return he===null?void 0:de(he,le,me)}else{if("value"in fe)return fe.value;var ue=fe.get;return ue===void 0?void 0:ue.call(me)}},te=K(28),ne=ae(te);function ae(de){return de&&de.__esModule?de:{default:de}}function oe(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}function re(de,ce){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:de}function ie(de,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);de.prototype=Object.create(ce&&ce.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(de,ce):de.__proto__=ce)}var se=function(de){ie(ce,de);function ce(le,me){oe(this,ce);var fe=re(this,(ce.__proto__||Object.getPrototypeOf(ce)).call(this,le));return fe.container.classList.add("ql-icon-picker"),[].forEach.call(fe.container.querySelectorAll(".ql-picker-item"),function(he){he.innerHTML=me[he.getAttribute("data-value")||""]}),fe.defaultItem=fe.container.querySelector(".ql-selected"),fe.selectItem(fe.defaultItem),fe}return J(ce,[{key:"selectItem",value:function(me,fe){ee(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"selectItem",this).call(this,me,fe),me=me||this.defaultItem,this.label.innerHTML=me.innerHTML}}]),ce}(ne.default);V.default=se},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function ne(ae,oe){for(var re=0;re<oe.length;re++){var ie=oe[re];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(ae,ie.key,ie)}}return function(ae,oe,re){return oe&&ne(ae.prototype,oe),re&&ne(ae,re),ae}}();function ee(ne,ae){if(!(ne instanceof ae))throw new TypeError("Cannot call a class as a function")}var te=function(){function ne(ae,oe){var re=this;ee(this,ne),this.quill=ae,this.boundsContainer=oe||document.body,this.root=ae.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){re.root.style.marginTop=-1*re.quill.root.scrollTop+"px"}),this.hide()}return J(ne,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(oe){var re=oe.left+oe.width/2-this.root.offsetWidth/2,ie=oe.bottom+this.quill.root.scrollTop;this.root.style.left=re+"px",this.root.style.top=ie+"px",this.root.classList.remove("ql-flip");var se=this.boundsContainer.getBoundingClientRect(),de=this.root.getBoundingClientRect(),ce=0;if(de.right>se.right&&(ce=se.right-de.right,this.root.style.left=re+ce+"px"),de.left<se.left&&(ce=se.left-de.left,this.root.style.left=re+ce+"px"),de.bottom>se.bottom){var le=de.bottom-de.top,me=oe.bottom-oe.top+le;this.root.style.top=ie-me+"px",this.root.classList.add("ql-flip")}return ce}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),ne}();V.default=te},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function ye(Se,Re){var Ce=[],xe=!0,Pe=!1,Ae=void 0;try{for(var Le=Se[Symbol.iterator](),ke;!(xe=(ke=Le.next()).done)&&(Ce.push(ke.value),!(Re&&Ce.length===Re));xe=!0);}catch(Ne){Pe=!0,Ae=Ne}finally{try{!xe&&Le.return&&Le.return()}finally{if(Pe)throw Ae}}return Ce}return function(Se,Re){if(Array.isArray(Se))return Se;if(Symbol.iterator in Object(Se))return ye(Se,Re);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ee=function ye(Se,Re,Ce){Se===null&&(Se=Function.prototype);var xe=Object.getOwnPropertyDescriptor(Se,Re);if(xe===void 0){var Pe=Object.getPrototypeOf(Se);return Pe===null?void 0:ye(Pe,Re,Ce)}else{if("value"in xe)return xe.value;var Ae=xe.get;return Ae===void 0?void 0:Ae.call(Ce)}},te=function(){function ye(Se,Re){for(var Ce=0;Ce<Re.length;Ce++){var xe=Re[Ce];xe.enumerable=xe.enumerable||!1,xe.configurable=!0,"value"in xe&&(xe.writable=!0),Object.defineProperty(Se,xe.key,xe)}}return function(Se,Re,Ce){return Re&&ye(Se.prototype,Re),Ce&&ye(Se,Ce),Se}}(),ne=K(3),ae=he(ne),oe=K(8),re=he(oe),ie=K(43),se=he(ie),de=K(27),ce=he(de),le=K(15),me=K(41),fe=he(me);function he(ye){return ye&&ye.__esModule?ye:{default:ye}}function ue(ye,Se){if(!(ye instanceof Se))throw new TypeError("Cannot call a class as a function")}function pe(ye,Se){if(!ye)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Se&&(typeof Se=="object"||typeof Se=="function")?Se:ye}function ve(ye,Se){if(typeof Se!="function"&&Se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Se);ye.prototype=Object.create(Se&&Se.prototype,{constructor:{value:ye,enumerable:!1,writable:!0,configurable:!0}}),Se&&(Object.setPrototypeOf?Object.setPrototypeOf(ye,Se):ye.__proto__=Se)}var ge=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],_e=function(ye){ve(Se,ye);function Se(Re,Ce){ue(this,Se),Ce.modules.toolbar!=null&&Ce.modules.toolbar.container==null&&(Ce.modules.toolbar.container=ge);var xe=pe(this,(Se.__proto__||Object.getPrototypeOf(Se)).call(this,Re,Ce));return xe.quill.container.classList.add("ql-snow"),xe}return te(Se,[{key:"extendToolbar",value:function(Ce){Ce.container.classList.add("ql-snow"),this.buildButtons([].slice.call(Ce.container.querySelectorAll("button")),fe.default),this.buildPickers([].slice.call(Ce.container.querySelectorAll("select")),fe.default),this.tooltip=new be(this.quill,this.options.bounds),Ce.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(xe,Pe){Ce.handlers.link.call(Ce,!Pe.format.link)})}}]),Se}(se.default);_e.DEFAULTS=(0,ae.default)(!0,{},se.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Se){if(Se){var Re=this.quill.getSelection();if(Re==null||Re.length==0)return;var Ce=this.quill.getText(Re);/^\S+@\S+\.\S+$/.test(Ce)&&Ce.indexOf("mailto:")!==0&&(Ce="mailto:"+Ce);var xe=this.quill.theme.tooltip;xe.edit("link",Ce)}else this.quill.format("link",!1)}}}}});var be=function(ye){ve(Se,ye);function Se(Re,Ce){ue(this,Se);var xe=pe(this,(Se.__proto__||Object.getPrototypeOf(Se)).call(this,Re,Ce));return xe.preview=xe.root.querySelector("a.ql-preview"),xe}return te(Se,[{key:"listen",value:function(){var Ce=this;ee(Se.prototype.__proto__||Object.getPrototypeOf(Se.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(xe){Ce.root.classList.contains("ql-editing")?Ce.save():Ce.edit("link",Ce.preview.textContent),xe.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(xe){if(Ce.linkRange!=null){var Pe=Ce.linkRange;Ce.restoreFocus(),Ce.quill.formatText(Pe,"link",!1,re.default.sources.USER),delete Ce.linkRange}xe.preventDefault(),Ce.hide()}),this.quill.on(re.default.events.SELECTION_CHANGE,function(xe,Pe,Ae){if(xe!=null){if(xe.length===0&&Ae===re.default.sources.USER){var Le=Ce.quill.scroll.descendant(ce.default,xe.index),ke=J(Le,2),Ne=ke[0],Oe=ke[1];if(Ne!=null){Ce.linkRange=new le.Range(xe.index-Oe,Ne.length());var Ee=ce.default.formats(Ne.domNode);Ce.preview.textContent=Ee,Ce.preview.setAttribute("href",Ee),Ce.show(),Ce.position(Ce.quill.getBounds(Ce.linkRange));return}}else delete Ce.linkRange;Ce.hide()}})}},{key:"show",value:function(){ee(Se.prototype.__proto__||Object.getPrototypeOf(Se.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),Se}(ie.BaseTooltip);be.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),V.default=_e},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=K(29),ee=lt(J),te=K(36),ne=K(38),ae=K(64),oe=K(65),re=lt(oe),ie=K(66),se=lt(ie),de=K(67),ce=lt(de),le=K(37),me=K(26),fe=K(39),he=K(40),ue=K(56),pe=lt(ue),ve=K(68),ge=lt(ve),_e=K(27),be=lt(_e),ye=K(69),Se=lt(ye),Re=K(70),Ce=lt(Re),xe=K(71),Pe=lt(xe),Ae=K(72),Le=lt(Ae),ke=K(73),Ne=lt(ke),Oe=K(13),Ee=lt(Oe),we=K(74),Te=lt(we),Fe=K(75),je=lt(Fe),Me=K(57),qe=lt(Me),Ue=K(41),Ke=lt(Ue),He=K(28),ze=lt(He),$e=K(59),De=lt($e),Be=K(60),We=lt(Be),Ge=K(61),Xe=lt(Ge),Ye=K(108),Je=lt(Ye),et=K(62),nt=lt(et);function lt(ut){return ut&&ut.__esModule?ut:{default:ut}}ee.default.register({"attributors/attribute/direction":ne.DirectionAttribute,"attributors/class/align":te.AlignClass,"attributors/class/background":le.BackgroundClass,"attributors/class/color":me.ColorClass,"attributors/class/direction":ne.DirectionClass,"attributors/class/font":fe.FontClass,"attributors/class/size":he.SizeClass,"attributors/style/align":te.AlignStyle,"attributors/style/background":le.BackgroundStyle,"attributors/style/color":me.ColorStyle,"attributors/style/direction":ne.DirectionStyle,"attributors/style/font":fe.FontStyle,"attributors/style/size":he.SizeStyle},!0),ee.default.register({"formats/align":te.AlignClass,"formats/direction":ne.DirectionClass,"formats/indent":ae.IndentClass,"formats/background":le.BackgroundStyle,"formats/color":me.ColorStyle,"formats/font":fe.FontClass,"formats/size":he.SizeClass,"formats/blockquote":re.default,"formats/code-block":Ee.default,"formats/header":se.default,"formats/list":ce.default,"formats/bold":pe.default,"formats/code":Oe.Code,"formats/italic":ge.default,"formats/link":be.default,"formats/script":Se.default,"formats/strike":Ce.default,"formats/underline":Pe.default,"formats/image":Le.default,"formats/video":Ne.default,"formats/list/item":de.ListItem,"modules/formula":Te.default,"modules/syntax":je.default,"modules/toolbar":qe.default,"themes/bubble":Je.default,"themes/snow":nt.default,"ui/icons":Ke.default,"ui/picker":ze.default,"ui/icon-picker":We.default,"ui/color-picker":De.default,"ui/tooltip":Xe.default},!0),V.default=ee.default},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.IndentClass=void 0;var J=function(){function ce(le,me){for(var fe=0;fe<me.length;fe++){var he=me[fe];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(le,he.key,he)}}return function(le,me,fe){return me&&ce(le.prototype,me),fe&&ce(le,fe),le}}(),ee=function ce(le,me,fe){le===null&&(le=Function.prototype);var he=Object.getOwnPropertyDescriptor(le,me);if(he===void 0){var ue=Object.getPrototypeOf(le);return ue===null?void 0:ce(ue,me,fe)}else{if("value"in he)return he.value;var pe=he.get;return pe===void 0?void 0:pe.call(fe)}},te=K(0),ne=ae(te);function ae(ce){return ce&&ce.__esModule?ce:{default:ce}}function oe(ce,le){if(!(ce instanceof le))throw new TypeError("Cannot call a class as a function")}function re(ce,le){if(!ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le&&(typeof le=="object"||typeof le=="function")?le:ce}function ie(ce,le){if(typeof le!="function"&&le!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof le);ce.prototype=Object.create(le&&le.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}),le&&(Object.setPrototypeOf?Object.setPrototypeOf(ce,le):ce.__proto__=le)}var se=function(ce){ie(le,ce);function le(){return oe(this,le),re(this,(le.__proto__||Object.getPrototypeOf(le)).apply(this,arguments))}return J(le,[{key:"add",value:function(fe,he){if(he==="+1"||he==="-1"){var ue=this.value(fe)||0;he=he==="+1"?ue+1:ue-1}return he===0?(this.remove(fe),!0):ee(le.prototype.__proto__||Object.getPrototypeOf(le.prototype),"add",this).call(this,fe,he)}},{key:"canAdd",value:function(fe,he){return ee(le.prototype.__proto__||Object.getPrototypeOf(le.prototype),"canAdd",this).call(this,fe,he)||ee(le.prototype.__proto__||Object.getPrototypeOf(le.prototype),"canAdd",this).call(this,fe,parseInt(he))}},{key:"value",value:function(fe){return parseInt(ee(le.prototype.__proto__||Object.getPrototypeOf(le.prototype),"value",this).call(this,fe))||void 0}}]),le}(ne.default.Attributor.Class),de=new se("indent","ql-indent",{scope:ne.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});V.IndentClass=de},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=K(4),ee=te(J);function te(ie){return ie&&ie.__esModule?ie:{default:ie}}function ne(ie,se){if(!(ie instanceof se))throw new TypeError("Cannot call a class as a function")}function ae(ie,se){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:ie}function oe(ie,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);ie.prototype=Object.create(se&&se.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,se):ie.__proto__=se)}var re=function(ie){oe(se,ie);function se(){return ne(this,se),ae(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(ee.default);re.blotName="blockquote",re.tagName="blockquote",V.default=re},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function se(de,ce){for(var le=0;le<ce.length;le++){var me=ce[le];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(de,me.key,me)}}return function(de,ce,le){return ce&&se(de.prototype,ce),le&&se(de,le),de}}(),ee=K(4),te=ne(ee);function ne(se){return se&&se.__esModule?se:{default:se}}function ae(se,de){if(!(se instanceof de))throw new TypeError("Cannot call a class as a function")}function oe(se,de){if(!se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de&&(typeof de=="object"||typeof de=="function")?de:se}function re(se,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof de);se.prototype=Object.create(de&&de.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(se,de):se.__proto__=de)}var ie=function(se){re(de,se);function de(){return ae(this,de),oe(this,(de.__proto__||Object.getPrototypeOf(de)).apply(this,arguments))}return J(de,null,[{key:"formats",value:function(le){return this.tagName.indexOf(le.tagName)+1}}]),de}(te.default);ie.blotName="header",ie.tagName=["H1","H2","H3","H4","H5","H6"],V.default=ie},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.default=V.ListItem=void 0;var J=function(){function ue(pe,ve){for(var ge=0;ge<ve.length;ge++){var _e=ve[ge];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(pe,_e.key,_e)}}return function(pe,ve,ge){return ve&&ue(pe.prototype,ve),ge&&ue(pe,ge),pe}}(),ee=function ue(pe,ve,ge){pe===null&&(pe=Function.prototype);var _e=Object.getOwnPropertyDescriptor(pe,ve);if(_e===void 0){var be=Object.getPrototypeOf(pe);return be===null?void 0:ue(be,ve,ge)}else{if("value"in _e)return _e.value;var ye=_e.get;return ye===void 0?void 0:ye.call(ge)}},te=K(0),ne=se(te),ae=K(4),oe=se(ae),re=K(25),ie=se(re);function se(ue){return ue&&ue.__esModule?ue:{default:ue}}function de(ue,pe,ve){return pe in ue?Object.defineProperty(ue,pe,{value:ve,enumerable:!0,configurable:!0,writable:!0}):ue[pe]=ve,ue}function ce(ue,pe){if(!(ue instanceof pe))throw new TypeError("Cannot call a class as a function")}function le(ue,pe){if(!ue)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return pe&&(typeof pe=="object"||typeof pe=="function")?pe:ue}function me(ue,pe){if(typeof pe!="function"&&pe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof pe);ue.prototype=Object.create(pe&&pe.prototype,{constructor:{value:ue,enumerable:!1,writable:!0,configurable:!0}}),pe&&(Object.setPrototypeOf?Object.setPrototypeOf(ue,pe):ue.__proto__=pe)}var fe=function(ue){me(pe,ue);function pe(){return ce(this,pe),le(this,(pe.__proto__||Object.getPrototypeOf(pe)).apply(this,arguments))}return J(pe,[{key:"format",value:function(ge,_e){ge===he.blotName&&!_e?this.replaceWith(ne.default.create(this.statics.scope)):ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"format",this).call(this,ge,_e)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(ge,_e){return this.parent.isolate(this.offset(this.parent),this.length()),ge===this.parent.statics.blotName?(this.parent.replaceWith(ge,_e),this):(this.parent.unwrap(),ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"replaceWith",this).call(this,ge,_e))}}],[{key:"formats",value:function(ge){return ge.tagName===this.tagName?void 0:ee(pe.__proto__||Object.getPrototypeOf(pe),"formats",this).call(this,ge)}}]),pe}(oe.default);fe.blotName="list-item",fe.tagName="LI";var he=function(ue){me(pe,ue),J(pe,null,[{key:"create",value:function(ge){var _e=ge==="ordered"?"OL":"UL",be=ee(pe.__proto__||Object.getPrototypeOf(pe),"create",this).call(this,_e);return(ge==="checked"||ge==="unchecked")&&be.setAttribute("data-checked",ge==="checked"),be}},{key:"formats",value:function(ge){if(ge.tagName==="OL")return"ordered";if(ge.tagName==="UL")return ge.hasAttribute("data-checked")?ge.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function pe(ve){ce(this,pe);var ge=le(this,(pe.__proto__||Object.getPrototypeOf(pe)).call(this,ve)),_e=function(ye){if(ye.target.parentNode===ve){var Se=ge.statics.formats(ve),Re=ne.default.find(ye.target);Se==="checked"?Re.format("list","unchecked"):Se==="unchecked"&&Re.format("list","checked")}};return ve.addEventListener("touchstart",_e),ve.addEventListener("mousedown",_e),ge}return J(pe,[{key:"format",value:function(ge,_e){this.children.length>0&&this.children.tail.format(ge,_e)}},{key:"formats",value:function(){return de({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(ge,_e){if(ge instanceof fe)ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"insertBefore",this).call(this,ge,_e);else{var be=_e==null?this.length():_e.offset(this),ye=this.split(be);ye.parent.insertBefore(ge,ye)}}},{key:"optimize",value:function(ge){ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"optimize",this).call(this,ge);var _e=this.next;_e!=null&&_e.prev===this&&_e.statics.blotName===this.statics.blotName&&_e.domNode.tagName===this.domNode.tagName&&_e.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(_e.moveChildren(this),_e.remove())}},{key:"replace",value:function(ge){if(ge.statics.blotName!==this.statics.blotName){var _e=ne.default.create(this.statics.defaultChild);ge.moveChildren(_e),this.appendChild(_e)}ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"replace",this).call(this,ge)}}]),pe}(ie.default);he.blotName="list",he.scope=ne.default.Scope.BLOCK_BLOT,he.tagName=["OL","UL"],he.defaultChild="list-item",he.allowedChildren=[fe],V.ListItem=fe,V.default=he},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=K(56),ee=te(J);function te(ie){return ie&&ie.__esModule?ie:{default:ie}}function ne(ie,se){if(!(ie instanceof se))throw new TypeError("Cannot call a class as a function")}function ae(ie,se){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:ie}function oe(ie,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);ie.prototype=Object.create(se&&se.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,se):ie.__proto__=se)}var re=function(ie){oe(se,ie);function se(){return ne(this,se),ae(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(ee.default);re.blotName="italic",re.tagName=["EM","I"],V.default=re},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function de(ce,le){for(var me=0;me<le.length;me++){var fe=le[me];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ce,fe.key,fe)}}return function(ce,le,me){return le&&de(ce.prototype,le),me&&de(ce,me),ce}}(),ee=function de(ce,le,me){ce===null&&(ce=Function.prototype);var fe=Object.getOwnPropertyDescriptor(ce,le);if(fe===void 0){var he=Object.getPrototypeOf(ce);return he===null?void 0:de(he,le,me)}else{if("value"in fe)return fe.value;var ue=fe.get;return ue===void 0?void 0:ue.call(me)}},te=K(6),ne=ae(te);function ae(de){return de&&de.__esModule?de:{default:de}}function oe(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}function re(de,ce){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:de}function ie(de,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);de.prototype=Object.create(ce&&ce.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(de,ce):de.__proto__=ce)}var se=function(de){ie(ce,de);function ce(){return oe(this,ce),re(this,(ce.__proto__||Object.getPrototypeOf(ce)).apply(this,arguments))}return J(ce,null,[{key:"create",value:function(me){return me==="super"?document.createElement("sup"):me==="sub"?document.createElement("sub"):ee(ce.__proto__||Object.getPrototypeOf(ce),"create",this).call(this,me)}},{key:"formats",value:function(me){if(me.tagName==="SUB")return"sub";if(me.tagName==="SUP")return"super"}}]),ce}(ne.default);se.blotName="script",se.tagName=["SUB","SUP"],V.default=se},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=K(6),ee=te(J);function te(ie){return ie&&ie.__esModule?ie:{default:ie}}function ne(ie,se){if(!(ie instanceof se))throw new TypeError("Cannot call a class as a function")}function ae(ie,se){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:ie}function oe(ie,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);ie.prototype=Object.create(se&&se.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,se):ie.__proto__=se)}var re=function(ie){oe(se,ie);function se(){return ne(this,se),ae(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(ee.default);re.blotName="strike",re.tagName="S",V.default=re},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=K(6),ee=te(J);function te(ie){return ie&&ie.__esModule?ie:{default:ie}}function ne(ie,se){if(!(ie instanceof se))throw new TypeError("Cannot call a class as a function")}function ae(ie,se){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:ie}function oe(ie,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);ie.prototype=Object.create(se&&se.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,se):ie.__proto__=se)}var re=function(ie){oe(se,ie);function se(){return ne(this,se),ae(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(ee.default);re.blotName="underline",re.tagName="U",V.default=re},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function le(me,fe){for(var he=0;he<fe.length;he++){var ue=fe[he];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(me,ue.key,ue)}}return function(me,fe,he){return fe&&le(me.prototype,fe),he&&le(me,he),me}}(),ee=function le(me,fe,he){me===null&&(me=Function.prototype);var ue=Object.getOwnPropertyDescriptor(me,fe);if(ue===void 0){var pe=Object.getPrototypeOf(me);return pe===null?void 0:le(pe,fe,he)}else{if("value"in ue)return ue.value;var ve=ue.get;return ve===void 0?void 0:ve.call(he)}},te=K(0),ne=oe(te),ae=K(27);function oe(le){return le&&le.__esModule?le:{default:le}}function re(le,me){if(!(le instanceof me))throw new TypeError("Cannot call a class as a function")}function ie(le,me){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:le}function se(le,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);le.prototype=Object.create(me&&me.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(le,me):le.__proto__=me)}var de=["alt","height","width"],ce=function(le){se(me,le);function me(){return re(this,me),ie(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}return J(me,[{key:"format",value:function(he,ue){de.indexOf(he)>-1?ue?this.domNode.setAttribute(he,ue):this.domNode.removeAttribute(he):ee(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"format",this).call(this,he,ue)}}],[{key:"create",value:function(he){var ue=ee(me.__proto__||Object.getPrototypeOf(me),"create",this).call(this,he);return typeof he=="string"&&ue.setAttribute("src",this.sanitize(he)),ue}},{key:"formats",value:function(he){return de.reduce(function(ue,pe){return he.hasAttribute(pe)&&(ue[pe]=he.getAttribute(pe)),ue},{})}},{key:"match",value:function(he){return/\.(jpe?g|gif|png)$/.test(he)||/^data:image\/.+;base64/.test(he)}},{key:"sanitize",value:function(he){return(0,ae.sanitize)(he,["http","https","data"])?he:"//:0"}},{key:"value",value:function(he){return he.getAttribute("src")}}]),me}(ne.default.Embed);ce.blotName="image",ce.tagName="IMG",V.default=ce},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function le(me,fe){for(var he=0;he<fe.length;he++){var ue=fe[he];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(me,ue.key,ue)}}return function(me,fe,he){return fe&&le(me.prototype,fe),he&&le(me,he),me}}(),ee=function le(me,fe,he){me===null&&(me=Function.prototype);var ue=Object.getOwnPropertyDescriptor(me,fe);if(ue===void 0){var pe=Object.getPrototypeOf(me);return pe===null?void 0:le(pe,fe,he)}else{if("value"in ue)return ue.value;var ve=ue.get;return ve===void 0?void 0:ve.call(he)}},te=K(4),ne=K(27),ae=oe(ne);function oe(le){return le&&le.__esModule?le:{default:le}}function re(le,me){if(!(le instanceof me))throw new TypeError("Cannot call a class as a function")}function ie(le,me){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:le}function se(le,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);le.prototype=Object.create(me&&me.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(le,me):le.__proto__=me)}var de=["height","width"],ce=function(le){se(me,le);function me(){return re(this,me),ie(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}return J(me,[{key:"format",value:function(he,ue){de.indexOf(he)>-1?ue?this.domNode.setAttribute(he,ue):this.domNode.removeAttribute(he):ee(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"format",this).call(this,he,ue)}}],[{key:"create",value:function(he){var ue=ee(me.__proto__||Object.getPrototypeOf(me),"create",this).call(this,he);return ue.setAttribute("frameborder","0"),ue.setAttribute("allowfullscreen",!0),ue.setAttribute("src",this.sanitize(he)),ue}},{key:"formats",value:function(he){return de.reduce(function(ue,pe){return he.hasAttribute(pe)&&(ue[pe]=he.getAttribute(pe)),ue},{})}},{key:"sanitize",value:function(he){return ae.default.sanitize(he)}},{key:"value",value:function(he){return he.getAttribute("src")}}]),me}(te.BlockEmbed);ce.blotName="video",ce.className="ql-video",ce.tagName="IFRAME",V.default=ce},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.default=V.FormulaBlot=void 0;var J=function(){function he(ue,pe){for(var ve=0;ve<pe.length;ve++){var ge=pe[ve];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(ue,ge.key,ge)}}return function(ue,pe,ve){return pe&&he(ue.prototype,pe),ve&&he(ue,ve),ue}}(),ee=function he(ue,pe,ve){ue===null&&(ue=Function.prototype);var ge=Object.getOwnPropertyDescriptor(ue,pe);if(ge===void 0){var _e=Object.getPrototypeOf(ue);return _e===null?void 0:he(_e,pe,ve)}else{if("value"in ge)return ge.value;var be=ge.get;return be===void 0?void 0:be.call(ve)}},te=K(35),ne=se(te),ae=K(5),oe=se(ae),re=K(9),ie=se(re);function se(he){return he&&he.__esModule?he:{default:he}}function de(he,ue){if(!(he instanceof ue))throw new TypeError("Cannot call a class as a function")}function ce(he,ue){if(!he)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue&&(typeof ue=="object"||typeof ue=="function")?ue:he}function le(he,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ue);he.prototype=Object.create(ue&&ue.prototype,{constructor:{value:he,enumerable:!1,writable:!0,configurable:!0}}),ue&&(Object.setPrototypeOf?Object.setPrototypeOf(he,ue):he.__proto__=ue)}var me=function(he){le(ue,he);function ue(){return de(this,ue),ce(this,(ue.__proto__||Object.getPrototypeOf(ue)).apply(this,arguments))}return J(ue,null,[{key:"create",value:function(ve){var ge=ee(ue.__proto__||Object.getPrototypeOf(ue),"create",this).call(this,ve);return typeof ve=="string"&&(window.katex.render(ve,ge,{throwOnError:!1,errorColor:"#f00"}),ge.setAttribute("data-value",ve)),ge}},{key:"value",value:function(ve){return ve.getAttribute("data-value")}}]),ue}(ne.default);me.blotName="formula",me.className="ql-formula",me.tagName="SPAN";var fe=function(he){le(ue,he),J(ue,null,[{key:"register",value:function(){oe.default.register(me,!0)}}]);function ue(){de(this,ue);var pe=ce(this,(ue.__proto__||Object.getPrototypeOf(ue)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return pe}return ue}(ie.default);V.FormulaBlot=me,V.default=fe},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.default=V.CodeToken=V.CodeBlock=void 0;var J=function(){function ve(ge,_e){for(var be=0;be<_e.length;be++){var ye=_e[be];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ge,ye.key,ye)}}return function(ge,_e,be){return _e&&ve(ge.prototype,_e),be&&ve(ge,be),ge}}(),ee=function ve(ge,_e,be){ge===null&&(ge=Function.prototype);var ye=Object.getOwnPropertyDescriptor(ge,_e);if(ye===void 0){var Se=Object.getPrototypeOf(ge);return Se===null?void 0:ve(Se,_e,be)}else{if("value"in ye)return ye.value;var Re=ye.get;return Re===void 0?void 0:Re.call(be)}},te=K(0),ne=ce(te),ae=K(5),oe=ce(ae),re=K(9),ie=ce(re),se=K(13),de=ce(se);function ce(ve){return ve&&ve.__esModule?ve:{default:ve}}function le(ve,ge){if(!(ve instanceof ge))throw new TypeError("Cannot call a class as a function")}function me(ve,ge){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:ve}function fe(ve,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);ve.prototype=Object.create(ge&&ge.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,ge):ve.__proto__=ge)}var he=function(ve){fe(ge,ve);function ge(){return le(this,ge),me(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return J(ge,[{key:"replaceWith",value:function(be){this.domNode.textContent=this.domNode.textContent,this.attach(),ee(ge.prototype.__proto__||Object.getPrototypeOf(ge.prototype),"replaceWith",this).call(this,be)}},{key:"highlight",value:function(be){var ye=this.domNode.textContent;this.cachedText!==ye&&((ye.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=be(ye),this.domNode.normalize(),this.attach()),this.cachedText=ye)}}]),ge}(de.default);he.className="ql-syntax";var ue=new ne.default.Attributor.Class("token","hljs",{scope:ne.default.Scope.INLINE}),pe=function(ve){fe(ge,ve),J(ge,null,[{key:"register",value:function(){oe.default.register(ue,!0),oe.default.register(he,!0)}}]);function ge(_e,be){le(this,ge);var ye=me(this,(ge.__proto__||Object.getPrototypeOf(ge)).call(this,_e,be));if(typeof ye.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var Se=null;return ye.quill.on(oe.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(Se),Se=setTimeout(function(){ye.highlight(),Se=null},ye.options.interval)}),ye.highlight(),ye}return J(ge,[{key:"highlight",value:function(){var be=this;if(!this.quill.selection.composing){this.quill.update(oe.default.sources.USER);var ye=this.quill.getSelection();this.quill.scroll.descendants(he).forEach(function(Se){Se.highlight(be.options.highlight)}),this.quill.update(oe.default.sources.SILENT),ye!=null&&this.quill.setSelection(ye,oe.default.sources.SILENT)}}}]),ge}(ie.default);pe.DEFAULTS={highlight:function(){return window.hljs==null?null:function(ve){var ge=window.hljs.highlightAuto(ve);return ge.value}}(),interval:1e3},V.CodeBlock=he,V.CodeToken=ue,V.default=pe},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(F,V){F.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(F,V){F.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(F,V){F.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(F,V){F.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.default=V.BubbleTooltip=void 0;var J=function ge(_e,be,ye){_e===null&&(_e=Function.prototype);var Se=Object.getOwnPropertyDescriptor(_e,be);if(Se===void 0){var Re=Object.getPrototypeOf(_e);return Re===null?void 0:ge(Re,be,ye)}else{if("value"in Se)return Se.value;var Ce=Se.get;return Ce===void 0?void 0:Ce.call(ye)}},ee=function(){function ge(_e,be){for(var ye=0;ye<be.length;ye++){var Se=be[ye];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(_e,Se.key,Se)}}return function(_e,be,ye){return be&&ge(_e.prototype,be),ye&&ge(_e,ye),_e}}(),te=K(3),ne=le(te),ae=K(8),oe=le(ae),re=K(43),ie=le(re),se=K(15),de=K(41),ce=le(de);function le(ge){return ge&&ge.__esModule?ge:{default:ge}}function me(ge,_e){if(!(ge instanceof _e))throw new TypeError("Cannot call a class as a function")}function fe(ge,_e){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e&&(typeof _e=="object"||typeof _e=="function")?_e:ge}function he(ge,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _e);ge.prototype=Object.create(_e&&_e.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),_e&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,_e):ge.__proto__=_e)}var ue=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],pe=function(ge){he(_e,ge);function _e(be,ye){me(this,_e),ye.modules.toolbar!=null&&ye.modules.toolbar.container==null&&(ye.modules.toolbar.container=ue);var Se=fe(this,(_e.__proto__||Object.getPrototypeOf(_e)).call(this,be,ye));return Se.quill.container.classList.add("ql-bubble"),Se}return ee(_e,[{key:"extendToolbar",value:function(ye){this.tooltip=new ve(this.quill,this.options.bounds),this.tooltip.root.appendChild(ye.container),this.buildButtons([].slice.call(ye.container.querySelectorAll("button")),ce.default),this.buildPickers([].slice.call(ye.container.querySelectorAll("select")),ce.default)}}]),_e}(ie.default);pe.DEFAULTS=(0,ne.default)(!0,{},ie.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_e){_e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var ve=function(ge){he(_e,ge);function _e(be,ye){me(this,_e);var Se=fe(this,(_e.__proto__||Object.getPrototypeOf(_e)).call(this,be,ye));return Se.quill.on(oe.default.events.EDITOR_CHANGE,function(Re,Ce,xe,Pe){if(Re===oe.default.events.SELECTION_CHANGE)if(Ce!=null&&Ce.length>0&&Pe===oe.default.sources.USER){Se.show(),Se.root.style.left="0px",Se.root.style.width="",Se.root.style.width=Se.root.offsetWidth+"px";var Ae=Se.quill.getLines(Ce.index,Ce.length);if(Ae.length===1)Se.position(Se.quill.getBounds(Ce));else{var Le=Ae[Ae.length-1],ke=Se.quill.getIndex(Le),Ne=Math.min(Le.length()-1,Ce.index+Ce.length-ke),Oe=Se.quill.getBounds(new se.Range(ke,Ne));Se.position(Oe)}}else document.activeElement!==Se.textbox&&Se.quill.hasFocus()&&Se.hide()}),Se}return ee(_e,[{key:"listen",value:function(){var ye=this;J(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){ye.root.classList.remove("ql-editing")}),this.quill.on(oe.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!ye.root.classList.contains("ql-hidden")){var Se=ye.quill.getSelection();Se!=null&&ye.position(ye.quill.getBounds(Se))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(ye){var Se=J(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"position",this).call(this,ye),Re=this.root.querySelector(".ql-tooltip-arrow");if(Re.style.marginLeft="",Se===0)return Se;Re.style.marginLeft=-1*Se-Re.offsetWidth/2+"px"}}]),_e}(re.BaseTooltip);ve.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),V.BubbleTooltip=ve,V.default=pe},function(F,V,K){F.exports=K(63)}]).default})}(quill$2)),quill$2.exports}var lib,hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib;hasRequiredLib=1;var C=lib&&lib.__extends||function(){var oe=function(re,ie){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,de){se.__proto__=de}||function(se,de){for(var ce in de)de.hasOwnProperty(ce)&&(se[ce]=de[ce])},oe(re,ie)};return function(re,ie){oe(re,ie);function se(){this.constructor=re}re.prototype=ie===null?Object.create(ie):(se.prototype=ie.prototype,new se)}}(),$=lib&&lib.__assign||function(){return $=Object.assign||function(oe){for(var re,ie=1,se=arguments.length;ie<se;ie++){re=arguments[ie];for(var de in re)Object.prototype.hasOwnProperty.call(re,de)&&(oe[de]=re[de])}return oe},$.apply(this,arguments)},F=lib&&lib.__spreadArrays||function(){for(var oe=0,re=0,ie=arguments.length;re<ie;re++)oe+=arguments[re].length;for(var se=Array(oe),de=0,re=0;re<ie;re++)for(var ce=arguments[re],le=0,me=ce.length;le<me;le++,de++)se[de]=ce[le];return se},V=lib&&lib.__importDefault||function(oe){return oe&&oe.__esModule?oe:{default:oe}},K=V(React),J=V(ReactDOM),ee=V(requireIsEqual()),te=V(requireQuill()),ne=function(oe){C(re,oe);function re(ie){var se=oe.call(this,ie)||this;se.dirtyProps=["modules","formats","bounds","theme","children"],se.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],se.state={generation:0},se.selection=null,se.onEditorChange=function(ce,le,me,fe){var he,ue,pe,ve;ce==="text-change"?(ue=(he=se).onEditorChangeText)===null||ue===void 0||ue.call(he,se.editor.root.innerHTML,le,fe,se.unprivilegedEditor):ce==="selection-change"&&((ve=(pe=se).onEditorChangeSelection)===null||ve===void 0||ve.call(pe,le,fe,se.unprivilegedEditor))};var de=se.isControlled()?ie.value:ie.defaultValue;return se.value=de!=null?de:"",se}return re.prototype.validateProps=function(ie){var se;if(K.default.Children.count(ie.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(K.default.Children.count(ie.children)){var de=K.default.Children.only(ie.children);if(((se=de)===null||se===void 0?void 0:se.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&ie.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},re.prototype.shouldComponentUpdate=function(ie,se){var de=this,ce;if(this.validateProps(ie),!this.editor||this.state.generation!==se.generation)return!0;if("value"in ie){var le=this.getEditorContents(),me=(ce=ie.value,ce!=null?ce:"");this.isEqualValue(me,le)||this.setEditorContents(this.editor,me)}return ie.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,ie.readOnly),F(this.cleanProps,this.dirtyProps).some(function(fe){return!ee.default(ie[fe],de.props[fe])})},re.prototype.shouldComponentRegenerate=function(ie){var se=this;return this.dirtyProps.some(function(de){return!ee.default(ie[de],se.props[de])})},re.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},re.prototype.componentWillUnmount=function(){this.destroyEditor()},re.prototype.componentDidUpdate=function(ie,se){var de=this;if(this.editor&&this.shouldComponentRegenerate(ie)){var ce=this.editor.getContents(),le=this.editor.getSelection();this.regenerationSnapshot={delta:ce,selection:le},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==se.generation){var me=this.regenerationSnapshot,ce=me.delta,fe=me.selection;delete this.regenerationSnapshot,this.instantiateEditor();var he=this.editor;he.setContents(ce),ae(function(){return de.setEditorSelection(he,fe)})}},re.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},re.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},re.prototype.isControlled=function(){return"value"in this.props},re.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},re.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},re.prototype.createEditor=function(ie,se){var de=new te.default(ie,se);return se.tabIndex!=null&&this.setEditorTabIndex(de,se.tabIndex),this.hookEditor(de),de},re.prototype.hookEditor=function(ie){this.unprivilegedEditor=this.makeUnprivilegedEditor(ie),ie.on("editor-change",this.onEditorChange)},re.prototype.unhookEditor=function(ie){ie.off("editor-change",this.onEditorChange)},re.prototype.getEditorContents=function(){return this.value},re.prototype.getEditorSelection=function(){return this.selection},re.prototype.isDelta=function(ie){return ie&&ie.ops},re.prototype.isEqualValue=function(ie,se){return this.isDelta(ie)&&this.isDelta(se)?ee.default(ie.ops,se.ops):ee.default(ie,se)},re.prototype.setEditorContents=function(ie,se){var de=this;this.value=se;var ce=this.getEditorSelection();typeof se=="string"?ie.setContents(ie.clipboard.convert(se)):ie.setContents(se),ae(function(){return de.setEditorSelection(ie,ce)})},re.prototype.setEditorSelection=function(ie,se){if(this.selection=se,se){var de=ie.getLength();se.index=Math.max(0,Math.min(se.index,de-1)),se.length=Math.max(0,Math.min(se.length,de-1-se.index)),ie.setSelection(se)}},re.prototype.setEditorTabIndex=function(ie,se){var de,ce;!((ce=(de=ie)===null||de===void 0?void 0:de.scroll)===null||ce===void 0)&&ce.domNode&&(ie.scroll.domNode.tabIndex=se)},re.prototype.setEditorReadOnly=function(ie,se){se?ie.disable():ie.enable()},re.prototype.makeUnprivilegedEditor=function(ie){var se=ie;return{getHTML:function(){return se.root.innerHTML},getLength:se.getLength.bind(se),getText:se.getText.bind(se),getContents:se.getContents.bind(se),getSelection:se.getSelection.bind(se),getBounds:se.getBounds.bind(se)}},re.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var ie=J.default.findDOMNode(this.editingArea);if(!ie)throw new Error("Cannot find element for editing area");if(ie.nodeType===3)throw new Error("Editing area cannot be a text node");return ie},re.prototype.renderEditingArea=function(){var ie=this,se=this.props,de=se.children,ce=se.preserveWhitespace,le=this.state.generation,me={key:le,ref:function(fe){ie.editingArea=fe}};return K.default.Children.count(de)?K.default.cloneElement(K.default.Children.only(de),me):ce?K.default.createElement("pre",$({},me)):K.default.createElement("div",$({},me))},re.prototype.render=function(){var ie;return K.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(ie=this.props.className,ie!=null?ie:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},re.prototype.onEditorChangeText=function(ie,se,de,ce){var le,me;if(this.editor){var fe=this.isDelta(this.value)?ce.getContents():ce.getHTML();fe!==this.getEditorContents()&&(this.lastDeltaChangeSet=se,this.value=fe,(me=(le=this.props).onChange)===null||me===void 0||me.call(le,ie,se,de,ce))}},re.prototype.onEditorChangeSelection=function(ie,se,de){var ce,le,me,fe,he,ue;if(this.editor){var pe=this.getEditorSelection(),ve=!pe&&ie,ge=pe&&!ie;ee.default(ie,pe)||(this.selection=ie,(le=(ce=this.props).onChangeSelection)===null||le===void 0||le.call(ce,ie,se,de),ve?(fe=(me=this.props).onFocus)===null||fe===void 0||fe.call(me,ie,se,de):ge&&((ue=(he=this.props).onBlur)===null||ue===void 0||ue.call(he,pe,se,de)))}},re.prototype.focus=function(){this.editor&&this.editor.focus()},re.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},re.displayName="React Quill",re.Quill=te.default,re.defaultProps={theme:"snow",modules:{},readOnly:!1},re}(K.default.Component);function ae(oe){Promise.resolve().then(oe)}return lib=ne,lib}var libExports=requireLib();const ReactQuill=getDefaultExportFromCjs(libExports),quill="_quill_1fivm_1",styles$8={quill},RichTextEditor=({form:C,fieldName:$,placeholder:F="Enter text..."})=>{const V={toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],["link"],["clean"]]},K=["header","bold","italic","underline","strike","list","bullet","link"];return React.createElement(ReactQuill,{theme:"snow",modules:V,formats:K,placeholder:F,className:styles$8.quill,value:C.getFieldValue($),onChange:J=>{C.setFieldsValue({[$]:J});const ee=C.getFieldsValue();C.onValuesChange&&C.onValuesChange({[$]:J},ee)}})};RichTextEditor.propTypes={form:PropTypes.object.isRequired,fieldName:PropTypes.string.isRequired,placeholder:PropTypes.string};const{Text:Text$5}=Typography,ProjectFormItem=({item:C,formId:$,required:F=!1})=>{var ae,oe;const V=reactRedux.useDispatch(),K=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.forms[$]),[J]=Form.useForm(),ee=(re,ie)=>{const de=((K==null?void 0:K.projectItems)||[]).map(ce=>ce.id===C.id?fr(lr({},ce),{formData:ie,completed:PROJECT_FORM_REQUIRED_FIELDS.every(le=>ie[le])}):ce);V(updateFormData({formId:$,data:{projectItems:de}}))},te=()=>{const ie=((K==null?void 0:K.projectItems)||[]).map(se=>se.id===C.id?fr(lr({},se),{expanded:!se.expanded}):se);V(updateFormData({formId:$,data:{projectItems:ie}}))},ne=()=>{const ie=((K==null?void 0:K.projectItems)||[]).filter(se=>se.id!==C.id);V(updateFormData({formId:$,data:{projectItems:ie}}))};return C.expanded?React.createElement(Card,{key:C.id},React.createElement(Flex,{gap:16,justify:"space-between"},React.createElement(Flex,{gap:4},React.createElement(Text$5,null,"Project ",C.id),((K==null?void 0:K.projectItems)||[]).length>1&&React.createElement(RefIcon$e,{onClick:ne})),React.createElement(RefIcon$r,{onClick:te})),React.createElement(Form,{form:J,layout:"vertical",initialValues:C.formData,onValuesChange:ee},React.createElement(Form.Item,{name:"title",label:"Project Name",rules:[{required:F}]},React.createElement(Input,{placeholder:"Enter Project Name"})),React.createElement(Form.Item,{name:"project_link",label:"Project Link",rules:[{required:F}]},React.createElement(Input,{placeholder:"Enter Project Link"})),React.createElement(Form.Item,{name:"description",label:"Key Points",rules:[{required:F}]},React.createElement(RichTextEditor,{form:J,fieldName:"description",placeholder:"Enter Key Points"})),React.createElement(Flex,{gap:16},React.createElement(Button$1,{type:"primary",onClick:te},"Save"),React.createElement(Button$1,{type:"default",onClick:te},"Cancel")))):React.createElement(Card,{key:C.id},React.createElement(Flex,{justify:"space-between",align:"center"},React.createElement(Text$5,{strong:!0},(ae=C.formData)!=null&&ae.title?(oe=C.formData)==null?void 0:oe.title:"---"),React.createElement(RefIcon$y,{onClick:te})))},FORM_ID$3="projectForm",initialFormData$3={projectItems:[{id:1,completed:!1,expanded:!0,formData:{title:"",project_link:"",description:""}}]},ProjectForm=({onComplete:C,required:$=!1})=>{const F=reactRedux.useDispatch(),V=reactRedux.useSelector(re=>re.scalantResumeBuilder.resumeBuilder.resumeData),K=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.forms[FORM_ID$3]),J=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.initializedForms[FORM_ID$3]),[ee]=useUpdateResumeDetailsMutation(),te=React.useMemo(()=>V!=null&&V.projects?{projectItems:V.projects.map((re,ie)=>({id:ie,completed:!0,expanded:!1,formData:{title:re.title,project_link:re.project_link,description:re.description}}))}:initialFormData$3,[V==null?void 0:V.projects]);React.useEffect(()=>{J||F(initializeForm({formId:FORM_ID$3,initialData:te}))},[F,J,te]);const ne=()=>{const re=(K==null?void 0:K.projectItems)||[],ie=re.length+1;F(updateFormData({formId:FORM_ID$3,data:{projectItems:[...re.map(se=>fr(lr({},se),{expanded:!1})),{id:ie,completed:!1,expanded:!0,formData:{title:"",project_link:"",description:""}}]}}))},ae=re=>re.map(ie=>({id:ie.id,title:ie.formData.title,description:ie.formData.description,project_link:ie.formData.project_link,data_source:"careers_hub",workplace_type:null,workplace_id:null,user_id:V==null?void 0:V.user_id})),oe=()=>pr(null,null,function*(){var de;const re=(K==null?void 0:K.projectItems)||[];if(re.some(ce=>!ce.completed)){staticMethods.error("Please fill all project items before marking as complete");return}const se=ae(re);try{const ce={form_stage:"project_details_form",isPopulated:!0,projects:se,upgrade:!1};yield ee({resumeId:(de=V==null?void 0:V.resume_details)==null?void 0:de.id,payload:ce}).unwrap(),staticMethods.success("Projects updated successfully"),C==null||C()}catch(ce){staticMethods.error(`Failed to update projects: ${ce.message}`)}});return React.createElement(Flex,{vertical:!0,gap:16},React.createElement(Space,{direction:"vertical",style:{width:"100%"}},React.createElement(Flex,{vertical:!0,gap:16},((K==null?void 0:K.projectItems)||[]).map(re=>React.createElement(ProjectFormItem,{key:re.id,item:re,formId:FORM_ID$3,required:$}))),React.createElement(Button$1,{type:"dashed",block:!0,icon:React.createElement(RefIcon$s,null),onClick:ne},"Add Project"),React.createElement(Flex,{gap:16},React.createElement(Button$1,{type:"primary",block:!0,onClick:oe},"Save and Compile"),React.createElement(Button$1,{type:"default",onClick:oe,block:!0},"Save and Next"))))},midWidth="_midWidth_wiezh_1",fullWidth="_fullWidth_wiezh_5",styles$7={midWidth,fullWidth},{Text:Text$4}=Typography,EducationFormItem=({item:C,formId:$,required:F=!1})=>{var oe,re,ie,se;const V=reactRedux.useDispatch(),K=reactRedux.useSelector(de=>de.scalantResumeBuilder.formStore.forms[$]),[J]=Form.useForm(),ee=(de,ce)=>{const me=((K==null?void 0:K.educationItems)||[]).map(fe=>fe.id===C.id?fr(lr({},fe),{formData:ce,completed:EDUCATION_FORM_REQUIRED_FIELDS.every(he=>ce[he])}):fe);V(updateFormData({formId:$,data:{educationItems:me}}))},te=()=>{const ce=((K==null?void 0:K.educationItems)||[]).map(le=>le.id===C.id?fr(lr({},le),{expanded:!le.expanded}):le);V(updateFormData({formId:$,data:{educationItems:ce}}))},ne=()=>{const ce=((K==null?void 0:K.educationItems)||[]).filter(le=>le.id!==C.id);V(updateFormData({formId:$,data:{educationItems:ce}}))},ae=React.createElement(Form.Item,{name:"grade_type",noStyle:!0},React.createElement(Select,{options:[{label:"CGPA",value:"cgpa"},{label:"Percentage",value:"percentage"}]}));return C.expanded?React.createElement(Card,{key:C.id},React.createElement(Flex,{gap:16,justify:"space-between"},React.createElement(Flex,{gap:4},React.createElement(Text$4,{strong:!0},"Education ",C.id),((K==null?void 0:K.educationItems)||[]).length>1&&React.createElement(RefIcon$e,{onClick:ne})),React.createElement(RefIcon$r,{onClick:te})),React.createElement(Form,{form:J,layout:"vertical",onValuesChange:ee,initialValues:lr({grade_type:"cgpa"},C.formData)},React.createElement(Form.Item,{name:"university",label:"University Name",rules:[{required:F}]},React.createElement(Input,{placeholder:"Enter University Name"})),React.createElement(Flex,{gap:16},React.createElement(Form.Item,{name:"degree",label:"Degree Type",rules:[{required:F}],className:styles$7.midWidth},React.createElement(Select,{placeholder:"Select Degree Type",options:[{label:"BE/B.Tech/Bs",value:"bachelor"},{label:"ME/M.Tech",value:"master"},{label:"Dual Degree - BE + ME",value:"dual"},{label:"Ms",value:"ms"},{label:"MBA",value:"mba"},{label:"MCA/BCA",value:"mca_bca"},{label:"BE + MBA",value:"be_mba"},{label:"Other",value:"other"}]})),React.createElement(Form.Item,{name:"field",label:"Field of Study",className:styles$7.midWidth},React.createElement(Select,{placeholder:"Select Field of Study",options:[{label:"Computer Science",value:"computer-science"},{label:"Information Technology",value:"information-technology"},{label:"Mathematics and Computing",value:"mathematics-and-computing"},{label:"Electronics",value:"electronics"},{label:"Mechanical",value:"mechanical"},{label:"Civil",value:"civil"},{label:"MBA",value:"mba"},{label:"Electical",value:"electrical"},{label:"Other",value:"other"}]}))),React.createElement(Flex,{gap:16,className:styles$7.fullWidth},React.createElement(Form.Item,{name:"marks",label:"Marks (Final/Current)",rules:[{required:F}],className:styles$7.midWidth},React.createElement(TypedInputNumber,{placeholder:"Enter Marks",addonAfter:ae})),React.createElement(Form.Item,{name:"graduation_date",label:"Graduation (Actual/Expected)",rules:[{required:F}],className:styles$7.midWidth},React.createElement(DatePicker,{placeholder:"Select Graduation Date",format:"YYYY-MM-DD"}))),React.createElement(Form.Item,{name:"short_description",label:"Description"},React.createElement(RichTextEditor,{form:J,fieldName:"short_description",placeholder:"Enter Description"})))):React.createElement(Card,{key:C.id},React.createElement(Flex,{justify:"space-between",align:"center"},React.createElement(Flex,{vertical:!0,gap:4},React.createElement(Text$4,{strong:!0},(oe=C.formData)!=null&&oe.university?(re=C.formData)==null?void 0:re.university:"---"),React.createElement(Text$4,null,(ie=C.formData)!=null&&ie.degree?`${C.formData.degree}, `:"---",React.createElement(Divider,{type:"vertical"}),(se=C.formData)!=null&&se.graduation_date?`${C.formData.graduation_date.format("YYYY")}`:"---")),React.createElement(RefIcon$y,{onClick:te})))},FORM_ID$2="educationForm",initialFormData$2={educationItems:[{id:1,completed:!1,expanded:!0,formData:{university:"",degree:"",field:"",marks:"",marks_type:"",graduation_date:"",short_description:""}}]},EducationForm=({onComplete:C,required:$=!1})=>{const F=reactRedux.useDispatch(),V=reactRedux.useSelector(re=>re.scalantResumeBuilder.resumeBuilder.resumeData),K=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.forms[FORM_ID$2]),J=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.initializedForms[FORM_ID$2]),[ee]=useUpdateResumeDetailsMutation(),te=React.useMemo(()=>V!=null&&V.education?{educationItems:V.education.map((re,ie)=>({id:ie,completed:!0,expanded:!1,formData:{university:re.university,degree:re.degree,field:re.field,marks:re.marks,marks_type:re.marks_type,graduation_date:re.graduation_date?dayjs(re.graduation_date):null,short_description:re.short_description}}))}:initialFormData$2,[V==null?void 0:V.education]);React.useEffect(()=>{J||F(initializeForm({formId:FORM_ID$2,initialData:te}))},[F,J,te]);const ne=()=>{const re=(K==null?void 0:K.educationItems)||[],ie=re.length+1;F(updateFormData({formId:FORM_ID$2,data:{educationItems:[...re,{id:ie,completed:!1,expanded:!0,formData:{university:"",degree:"",field:"",marks:"",marks_type:"",graduation_date:"",short_description:""}}]}}))},ae=re=>re.map(ie=>({id:ie.id,university:ie.formData.institute,degree:ie.formData.degree,field:ie.formData.branch,marks:ie.formData.grades,marks_type:ie.formData.gradeType,graduation_date:ie.formData.graduation_date,short_description:ie.formData.short_description,data_source:"careers_hub",university_city:null,math_score:null,math_score_type:null,show_marks_in_resume:!1,show_branch_in_resume:!1,user_id:V==null?void 0:V.user_id,creator:null,degree_free_text:null,field_free_text:null,projects:null,board:null,from:null,to:null,created_at:new Date().toISOString(),updated_at:new Date().toISOString()})),oe=()=>pr(null,null,function*(){var de;const re=(K==null?void 0:K.educationItems)||[];if(re.some(ce=>!ce.completed)){staticMethods.error("Please fill all education items before marking as complete");return}const se=ae(re);try{const ce={form_stage:"education_details_form",isPopulated:!0,education:se};C==null||C(),yield ee({resumeId:(de=V==null?void 0:V.resume_details)==null?void 0:de.id,payload:ce}).unwrap(),staticMethods.success("Education details updated successfully")}catch(ce){staticMethods.error(`Failed to update education details: ${ce.message}`)}});return React.createElement(Flex,{vertical:!0,gap:16},React.createElement(Space,{direction:"vertical",style:{width:"100%"}},React.createElement(Flex,{vertical:!0,gap:16},((K==null?void 0:K.educationItems)||[]).map(re=>React.createElement(EducationFormItem,{key:re.id,item:re,formId:FORM_ID$2,required:$}))),React.createElement(Button$1,{type:"dashed",block:!0,icon:React.createElement(RefIcon$s,null),onClick:ne},((K==null?void 0:K.educationItems)||[]).length===1?"Add secondary education":"Add another education"),React.createElement(Flex,{gap:16},React.createElement(Button$1,{type:"primary",block:!0,onClick:oe},"Save and Compile"),React.createElement(Button$1,{type:"default",onClick:oe,block:!0},"Save and Next"))))},{Text:Text$3}=Typography,WorkExperienceFormItem=({item:C,formId:$,required:F=!1})=>{var ae,oe,re,ie,se,de,ce,le,me,fe;const V=reactRedux.useDispatch(),K=reactRedux.useSelector(he=>he.scalantResumeBuilder.formStore.forms[$]),[J]=Form.useForm(),ee=(he,ue)=>{const ve=((K==null?void 0:K.workExperienceItems)||[]).map(ge=>ge.id===C.id?fr(lr({},ge),{formData:ue,completed:WORK_EXPERIENCE_FORM_REQUIRED_FIELDS.every(_e=>ue[_e])}):ge);V(updateFormData({formId:$,data:{workExperienceItems:ve}}))},te=()=>{const ue=((K==null?void 0:K.workExperienceItems)||[]).map(pe=>pe.id===C.id?fr(lr({},pe),{expanded:!pe.expanded}):pe);V(updateFormData({formId:$,data:{workExperienceItems:ue}}))},ne=()=>{const ue=((K==null?void 0:K.workExperienceItems)||[]).filter(pe=>pe.id!==C.id);V(updateFormData({formId:$,data:{workExperienceItems:ue}}))};return C.expanded?React.createElement(Card,{key:C.id},React.createElement(Flex,{gap:16,justify:"space-between"},React.createElement(Flex,{gap:4},React.createElement(Text$3,null,"Work Experience ",C.id),((K==null?void 0:K.workExperienceItems)||[]).length>1&&React.createElement(RefIcon$e,{onClick:ne,style:{color:"red"}})),React.createElement(RefIcon$r,{onClick:te})),React.createElement(Form,{form:J,layout:"vertical",initialValues:C.formData,onValuesChange:ee},React.createElement(Form.Item,{name:"company",label:"Company",rules:[{required:F}]},React.createElement(Input,{placeholder:"Enter Company"})),React.createElement(Form.Item,{name:"position",label:"Position",rules:[{required:F}]},React.createElement(Input,{placeholder:"Enter Position"})),React.createElement(Form.Item,{name:"is_current",valuePropName:"checked"},React.createElement(Checkbox,null,"I am currently working here")),React.createElement(Flex,{gap:16},React.createElement(Form.Item,{name:"from",label:"Start Date",rules:[{required:F}]},React.createElement(DatePicker,{format:"YYYY-MM-DD"})),React.createElement(Form.Item,{name:"to",label:"End Date",rules:[{required:F&&!((me=C.formData)!=null&&me.is_current)}]},React.createElement(DatePicker,{format:"YYYY-MM-DD",disabled:(fe=C.formData)==null?void 0:fe.is_current}))),React.createElement(Form.Item,{name:"location",label:"Location"},React.createElement(Input,null)),React.createElement(Form.Item,{name:"short_description",label:"Key Points"},React.createElement(RichTextEditor,{form:J,fieldName:"short_description",placeholder:"Enter Key Points"})))):React.createElement(Card,{key:C.id},React.createElement(Flex,{justify:"space-between",align:"center"},React.createElement(Flex,{vertical:!0,gap:4},React.createElement(Text$3,{strong:!0},(ae=C.formData)==null?void 0:ae.company),React.createElement(Text$3,null,(oe=C.formData)!=null&&oe.position?`${(re=C.formData)==null?void 0:re.position}, `:"---",React.createElement(Divider,{type:"vertical"}),(ie=C.formData)!=null&&ie.from?`${(se=C.formData)==null?void 0:se.from.format("YYYY")}`:"---","-",(de=C.formData)!=null&&de.to?`${(ce=C.formData)==null?void 0:ce.to.format("YYYY")}`:(le=C.formData)!=null&&le.is_current?"Present":"---")),React.createElement(RefIcon$y,{onClick:te})))},FORM_ID$1="workExperienceForm",initialFormData$1={workExperienceItems:[{id:1,completed:!1,expanded:!0,formData:{company:"",position:"",from:"",to:"",short_description:"",location:"",is_current:!1}}]},WorkExperienceForm=({onComplete:C,required:$=!1})=>{const F=reactRedux.useDispatch(),V=reactRedux.useSelector(re=>re.scalantResumeBuilder.resumeBuilder.resumeData),K=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.forms[FORM_ID$1]),J=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.initializedForms[FORM_ID$1]),[ee]=useUpdateResumeDetailsMutation(),te=React.useMemo(()=>V!=null&&V.experience?{workExperienceItems:V.experience.map((re,ie)=>({id:ie,completed:!0,expanded:!1,formData:{company:re.company,position:re.position,from:re.from?dayjs(re.from):null,to:re.to?dayjs(re.to):null,location:re.location,short_description:re.short_description,is_current:re.is_current}}))}:initialFormData$1,[V==null?void 0:V.experience]);React.useEffect(()=>{J||F(initializeForm({formId:FORM_ID$1,initialData:te}))},[F,J,te]);const ne=()=>{const re=(K==null?void 0:K.workExperienceItems)||[],ie=re.length+1;F(updateFormData({formId:FORM_ID$1,data:{workExperienceItems:[...re.map(se=>fr(lr({},se),{expanded:!1})),{id:ie,completed:!1,expanded:!0,formData:{company:"",position:"",from:"",to:"",short_description:"",location:"",is_current:!1}}]}}))},ae=re=>re.map(ie=>({id:ie.id,user_id:V==null?void 0:V.user_id,company:ie.formData.company,position:ie.formData.position,from:ie.formData.from,to:ie.formData.to,short_description:ie.formData.short_description,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),is_current:ie.formData.is_current,creator:"candidate",experience_type:null,projects:null,location:ie.formData.location,freetext_position:null,base_ctc:0,variable_ctc:0,ctc_currency:0,team_size:null,data_source:"careers_hub",status:"active",show_user_work_experience_location:!1,industry:[]})),oe=()=>pr(null,null,function*(){var de;const re=(K==null?void 0:K.workExperienceItems)||[];if(re.some(ce=>!ce.completed)){staticMethods.error("Please fill all work experience items before marking as complete");return}const se=ae(re);try{const ce={form_stage:"work_experience_details_form",isPopulated:!0,upgrade:!1,previous_experience:se,projects:[],achievements:[]};C==null||C(),yield ee({resumeId:(de=V==null?void 0:V.resume_details)==null?void 0:de.id,payload:ce}).unwrap(),staticMethods.success("Work experience details updated successfully")}catch(ce){staticMethods.error(`Failed to update work experience details: ${ce}`)}});return React.createElement(Flex,{vertical:!0,gap:16},React.createElement(Space,{direction:"vertical",style:{width:"100%"}},React.createElement(Flex,{vertical:!0,gap:16},((K==null?void 0:K.workExperienceItems)||[]).map(re=>React.createElement(WorkExperienceFormItem,{key:re.id,item:re,formId:FORM_ID$1,required:$}))),React.createElement(Button$1,{type:"dashed",block:!0,icon:React.createElement(RefIcon$s,null),onClick:ne},"Add another experience"),React.createElement(Flex,{gap:16},React.createElement(Button$1,{type:"primary",block:!0,onClick:oe},"Save and Compile"),React.createElement(Button$1,{type:"default",onClick:oe,block:!0},"Save and Next"))))},container$4="_container_10god_1",title$1="_title_10god_7",button="_button_10god_11",bold="_bold_10god_23",styles$6={container:container$4,title:title$1,button,bold},{Text:Text$2}=Typography,AiSuggestionBanner=()=>React.createElement(Flex,{justify:"space-between",align:"center",className:styles$6.container},React.createElement(Text$2,{className:styles$6.title},React.createElement("span",{className:styles$6.bold},"Let AI do the heavy lifting")," — easily turn your work into powerful resume points!"),React.createElement(Button$1,{className:styles$6.button},"Write with",React.createElement("span",{className:styles$6.bold},"AI"))),CustomFormItem=({item:C,formId:$})=>{const F=reactRedux.useDispatch(),V=reactRedux.useSelector(ee=>ee.scalantResumeBuilder.formStore.forms[$]),[K]=Form.useForm(),J=(ee,te)=>{const ae=((V==null?void 0:V.achievementsItems)||[]).map(oe=>oe.id===C.id?fr(lr({},oe),{formData:te,saved:!0}):oe);F(updateFormData({formId:$,data:{achievementsItems:ae}}))};return React.createElement(Form,{key:C.id,form:K,layout:"vertical",onValuesChange:J,initialValues:C.formData},React.createElement(Form.Item,{name:"description",label:""},React.createElement(RichTextEditor,{form:K,fieldName:"description",placeholder:"Enter your achievements description"})))},FORM_ID="achievementsForm",initialFormData={achievementsItems:[{id:null,completed:!1,saved:!1,formData:{description:""}}]},CustomForm=({onComplete:C})=>{const $=reactRedux.useDispatch(),F=reactRedux.useSelector(ne=>ne.scalantResumeBuilder.resumeBuilder.resumeData),V=reactRedux.useSelector(ne=>ne.scalantResumeBuilder.formStore.forms[FORM_ID]),K=reactRedux.useSelector(ne=>ne.scalantResumeBuilder.formStore.initializedForms[FORM_ID]),[J]=useUpdateResumeDetailsMutation(),ee=React.useMemo(()=>F!=null&&F.achievements?{achievementsItems:F.achievements.map(ne=>({id:ne.id,completed:!0,saved:!0,formData:{description:ne.description}}))}:initialFormData,[F==null?void 0:F.achievements]);React.useEffect(()=>{K||$(initializeForm({formId:FORM_ID,initialData:ee}))},[$,K,ee]);const te=()=>pr(null,null,function*(){var re;const ne=(V==null?void 0:V.achievementsItems)||[];if(ne.some(ie=>!ie.saved)){staticMethods.error("Please save all custom form items before marking as complete");return}const oe=ne.map(ie=>({id:ie.id,description:ie.formData.description}));try{const ie={form_stage:"achievement_details_form",isPopulated:!0,achievements:oe};C==null||C(),yield J({resumeId:(re=F==null?void 0:F.resume_details)==null?void 0:re.id,payload:ie}).unwrap(),staticMethods.success("Achievements updated successfully")}catch(ie){staticMethods.error(`Failed to update achievements: ${ie.message}`)}});return React.createElement(Flex,{vertical:!0,gap:16},React.createElement(Space,{direction:"vertical",style:{width:"100%"}},React.createElement(Flex,{vertical:!0,gap:16},((V==null?void 0:V.achievementsItems)||[]).map(ne=>React.createElement(CustomFormItem,{key:ne.id,item:ne,formId:FORM_ID}))),React.createElement(Flex,{gap:16},React.createElement(Button$1,{type:"primary",block:!0,onClick:te},"Save and Compile"),React.createElement(Button$1,{type:"default",onClick:te,block:!0},"Save and Next"))),React.createElement(AiSuggestionBanner,null))},ALL_FORMS_KEYS={personal_details:"personalDetails",projects:"projects",experience:"experience",education:"education",skills:"skills",achievements:"achievements"},FORM_STEPS=[{key:"personalDetails",title:"Personal Info and Socials",subtitle:"Lets get to know you! Fill in your personal details",icon:RefIcon,component:PersonalInfoAndSocial},{key:"skills",title:"Skills and Toolset",subtitle:"Select from these industry-standard skills and tools",icon:RefIcon$1,component:SkillsAndToolkit},{key:"projects",title:"Projects",subtitle:"Add personal projects",icon:RefIcon$n,component:ProjectForm},{key:"education",title:"Education",subtitle:"Add academic background and certifications",icon:RefIcon$i,component:EducationForm},{key:"experience",title:"Work Experience",subtitle:"Add details about jobs and internships",icon:RefIcon$2,component:WorkExperienceForm},{key:"achievements",title:"Achievements",subtitle:"Add your achievements",icon:RefIcon$6,component:CustomForm}],STEP_ORDERS={ACADEMY_FRESHER:{order:["personalDetails","skills","projects","education","experience","achievements"],requiredForms:["personalDetails","skills","projects","education"]},ACADEMY_QA_AND_SALESFORCE:{order:["personalDetails","skills","projects","experience","education","achievements"],requiredForms:["personalDetails","skills","projects","experience","education"]},ACADEMY_EXCEPT_ENGINEERING:{order:["personalDetails","skills","experience","projects","education","achievements"],requiredForms:["personalDetails","skills","experience","education"]},ACADEMY_ENGINEERING:{order:["personalDetails","skills","experience","projects","education","achievements"],requiredForms:["personalDetails","skills","experience","education"]},DSML_FRESHER:{order:["personalDetails","skills","projects","experience","education","achievements"],requiredForms:["personalDetails","skills","projects","education"]},DSML_NON_DEV_IT_PROFESSIONAL:{order:["personalDetails","skills","projects","experience","education","achievements"],requiredForms:["personalDetails","skills","projects","experience","education"]},DSML_DEVELOPER:{order:["personalDetails","skills","projects","experience","education","achievements"],requiredForms:["personalDetails","skills","projects","experience","education"]}},getFormOrderDetails=(C,$)=>C==="academy"&&["Fresher","Non- Tech"].includes($)?STEP_ORDERS.ACADEMY_FRESHER:C==="academy"&&["Quality Assurance / SDE in Testing","Salesforce / Servicenow / RPA"].includes($)?STEP_ORDERS.ACADEMY_QA_AND_SALESFORCE:C==="academy"&&["Embedded Systems Engineer","Mobile Engineer","Frontend/Full-stack","Backend / Backend Heavy Full-stack","DevOps / Network Engineer","Data Engineer"].includes($)?STEP_ORDERS.ACADEMY_EXCEPT_ENGINEERING:C==="academy"&&$==="Engineering Leadership"?STEP_ORDERS.ACADEMY_ENGINEERING:C==="dsml"&&["Fresher","Non- Tech"].includes($)?STEP_ORDERS.DSML_FRESHER:C==="dsml"&&$==="Non-Developer & IT Professional"?STEP_ORDERS.DSML_NON_DEV_IT_PROFESSIONAL:C==="dsml"&&$==="Developer"?STEP_ORDERS.DSML_DEVELOPER:C==="dsml"&&["Data Analyst / Business Analyst","Data Scientist / Machine Learning Engineer"].includes($)?STEP_ORDERS.DSML_DATA_ANALYST_ML_ENGINEER:STEP_ORDERS.DSML_FRESHER,getRequiredFields=C=>{switch(C){case"personal_details":return PERSONAL_DETAILS_FORM_REQUIRED_FIELDS;case"projects":return PROJECT_FORM_REQUIRED_FIELDS;case"experience":return WORK_EXPERIENCE_FORM_REQUIRED_FIELDS;case"education":return EDUCATION_FORM_REQUIRED_FIELDS;default:return[]}},getAllIncompleteForms=C=>{const $=[];return Object.keys(ALL_FORMS_KEYS).forEach(F=>{const V=ALL_FORMS_KEYS[F],K=C[F];if(!K){$.push(V);return}const J=getRequiredFields(F);if(Array.isArray(K)){if(K.length===0){$.push(V);return}K.some(te=>J.some(ne=>{const ae=te[ne];return!Object.prototype.hasOwnProperty.call(te,ne)||ae===null||ae===void 0||ae===""||Array.isArray(ae)&&ae.length===0||typeof ae=="object"&&Object.keys(ae).length===0}))&&$.push(V)}else J.filter(te=>{const ne=K[te];return!Object.prototype.hasOwnProperty.call(K,te)||ne===null||ne===void 0||ne===""||Array.isArray(ne)&&ne.length===0||typeof ne=="object"&&Object.keys(ne).length===0}).length>0&&$.push(V)}),$},getFormSteps=(C,$,F,V)=>{if(!C)return[];const{currentJobRole:K}=C,J=getFormOrderDetails(V,K),ee=J.order,te=J.requiredForms;return ee.map(ae=>{const oe=FORM_STEPS.find(ie=>ie.key===ae);if(!oe)return null;let re=!1;return te.includes(ae)&&(re=!0),fr(lr({},oe),{status:$.includes(ae)?"incomplete":"complete",required:re,component:React.createElement(oe.component,{onComplete:F,required:re})})}).filter(Boolean)},initialState$1={currentIncompleteForm:"",nextIncompleteForm:"",allForms:STEPS_ORDER,incompleteForms:[]},resumeFormsSlice=toolkit.createSlice({name:"resumeForms",initialState:initialState$1,reducers:{setCurrentIncompleteForm:(C,$)=>{C.currentIncompleteForm=$.payload},setNextIncompleteForm:(C,$)=>{C.nextIncompleteForm=$.payload},setIncompleteForms:(C,$)=>{C.incompleteForms=$.payload}}}),{setCurrentIncompleteForm,setNextIncompleteForm,setIncompleteForms}=resumeFormsSlice.actions,resumeFormsReducer=resumeFormsSlice.reducer,avatar="_avatar_ger88_1",styles$5={avatar},{Title,Text:Text$1}=Typography,ResumeProfileCard=({resumePersonaData:C})=>{var te;const $=reactRedux.useDispatch(),F=reactRedux.useSelector(ne=>ne.scalantResumeBuilder.resumeBuilder.resumeData),V=(te=F==null?void 0:F.personal_details)==null?void 0:te.name,K=()=>{$(setCurrentStep(STEPS_ORDER.findIndex(ne=>ne.key===RESUME_BUILDER_STEPS.RESUME_BASIC_QUESTIONS.key)))};if(!C)return null;const{currentJobRole:J,totalWorkExperienceInTech:ee}=C;return React.createElement(Card,null,React.createElement(Flex,{justify:"space-between",align:"center"},React.createElement(Flex,{align:"center",gap:16},React.createElement(Avatar,{className:styles$5.avatar,size:"large",icon:React.createElement(RefIcon,null)}),React.createElement(Flex,{vertical:!0},React.createElement(Title,{level:5,style:{marginBottom:0}},V),React.createElement(Text$1,{type:"secondary"},J," |"," ",formatExperience(ee.yearsExperienceInTech,ee.monthsExperienceInTech)," ","of Work experience"))),React.createElement(Button$1,{onClick:K},"Edit Profile")))},ResumeTimeline=()=>{const C=reactRedux.useDispatch(),$=reactRedux.useSelector(ce=>ce.scalantResumeBuilder.resumeBuilder.program),[F,V]=React.useState(null),[K,J]=React.useState([]),ee=reactRedux.useSelector(ce=>ce.scalantResumeBuilder.resumeBuilder.resumeData),te=reactRedux.useSelector(ce=>ce.scalantResumeBuilder.resumeForms.incompleteForms),ne=reactRedux.useSelector(ce=>ce.scalantResumeBuilder.resumeForms.currentIncompleteForm),ae=React.useRef([]),[oe,re]=React.useState(!1),ie=reactRedux.useSelector(ce=>ce.scalantResumeBuilder.formStore.forms.basicQuestions);useBasicQuestionsForm(ee==null?void 0:ee.personal_details),React.useEffect(()=>{if(ee){J([]);const ce=getAllIncompleteForms(ee);reactRedux.batch(()=>{C(setIncompleteForms(ce)),ce.length>0?(C(setCurrentIncompleteForm(ce[0])),V(ce[0])):V(null)})}},[ee,C]),React.useEffect(()=>{re(!0)},[]),React.useEffect(()=>{oe&&F!==null&&ae.current[F]&&ae.current[F].scrollIntoView({behavior:"smooth",block:"start"})},[F,oe]);const se=ce=>{V(le=>le===ce?null:ce)},de=React.useCallback(()=>{let ce=[...te];if(F===ne&&(ce=ce.filter(le=>le!==ne),C(setIncompleteForms(ce))),ce.length>0){const le=ce[0];C(setCurrentIncompleteForm(le)),V(le)}else V(null)},[te,ne,C,F]);return React.useEffect(()=>{if(ie&&te.length>0){const ce=getFormSteps(ie,te,de,$);J(ce)}},[ie,te,de,$]),React.createElement("div",{className:styles$b.container},K&&K.length>0?React.createElement(Timeline,{mode:"left",items:[{dot:React.createElement(RefIcon$h,{className:styles$b.completeIcon}),children:React.createElement("div",null,React.createElement(ResumeProfileCard,{resumePersonaData:ie}))},...K.map(ce=>{let le;return ce.key===F?le=React.createElement(RefIcon$B,{className:styles$b.activeIcon}):ce.status==="complete"?le=React.createElement(RefIcon$h,{className:styles$b.completeIcon}):le=React.createElement(RefIcon$p,{className:styles$b.incompleteIcon}),{dot:le,children:React.createElement("div",{ref:me=>ae.current[ce.key]=me},React.createElement(ResumeStepCard,{key:ce.key,title:ce.title,subtitle:ce.subtitle,icon:ce.icon,status:ce.status,isActive:ce.key===F,expanded:ce.key===F,onClick:()=>se(ce.key),required:ce.required},ce.component))}})]}):React.createElement(Spin,null))},DEFAULT_FONT_SIZE="medium",FontSizeDropdown=({onFontSizeChange:C})=>{var ne;const $=reactRedux.useSelector(ae=>ae.scalantResumeBuilder.resumeBuilder.resumeData),F=(ne=$==null?void 0:$.resume_meta)==null?void 0:ne.font_size,[V,K]=React.useState(F||DEFAULT_FONT_SIZE),[J]=useUpdateResumePreferencesMutation(),ee=oe=>pr(null,[oe],function*({key:ae}){var re;K(ae),yield J({resume_id:(re=$==null?void 0:$.resume_details)==null?void 0:re.id,payload:{scaler_resume_template_font_choice:ae}}),C==null||C(ae)}),te=React.createElement(Menu,{onClick:ee,selectedKeys:[V]},React.createElement(Menu.Item,{key:"small"},"Small"),React.createElement(Menu.Item,{key:"medium"},"Medium"),React.createElement(Menu.Item,{key:"large"},"Large"));return React.createElement(Dropdown,{overlay:te,trigger:["click"]},React.createElement(FloatButton,{icon:React.createElement(RefIcon$7,null),tooltip:`Font Size: ${V.charAt(0).toUpperCase()+V.slice(1)}`}))},container$3="_container_tc6c5_1",floatButtonGroup="_floatButtonGroup_tc6c5_5",disabledButton="_disabledButton_tc6c5_10",dropdown="_dropdown_tc6c5_15",dropdownIcon="_dropdownIcon_tc6c5_22",styles$4={container:container$3,floatButtonGroup,disabledButton,dropdown,dropdownIcon},MAX_RESUMES=5,ResumeDropdown=({onAddResumeClick:C,onManageResumesClick:$,onResumeClick:F,selectedResumeId:V,resumeList:K})=>{var te;const J=K.length>=MAX_RESUMES,ee=[...K.map(ne=>({key:ne.id,label:ne.name,onClick:()=>F(ne.id)})),{type:"divider"},{key:"manage",label:"Manage Resumes",onClick:$},{key:"add",label:J?React.createElement(Tooltip,{title:"Maximum limit of 3 resumes reached"},React.createElement("span",null,"Add New Resume")):"Add New Resume",onClick:C,disabled:J}];return React.createElement(Dropdown,{menu:{items:ee,selectedKeys:[V==null?void 0:V.toString()]}},React.createElement("div",{className:styles$4.dropdown},(te=K.find(ne=>ne.id===V))==null?void 0:te.name,React.createElement(RefIcon$y,{className:styles$4.dropdownIcon})))};function commonjsRequire(C){throw new Error('Could not dynamically require "'+C+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf$1={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);var pdf=pdf$1.exports,hasRequiredPdf;function requirePdf(){return hasRequiredPdf||(hasRequiredPdf=1,function(module,exports){(function($,F){module.exports=F()})(pdf,function(){return(()=>{var __webpack_modules__=[,(C,$,F)=>{function V(ze){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?V=function(De){return typeof De}:V=function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},V(ze)}Object.defineProperty($,"__esModule",{value:!0}),$.StatTimer=$.RenderingCancelledException=$.PixelsPerInch=$.PageViewport=$.PDFDateString=$.LinkTarget=$.DOMStandardFontDataFactory=$.DOMSVGFactory=$.DOMCanvasFactory=$.DOMCMapReaderFactory=void 0,$.addLinkAttributes=Ne,$.deprecated=qe,$.getFilenameFromUrl=we,$.getPdfFilenameFromUrl=Te,$.getXfaPageViewport=He,$.isDataScheme=Oe,$.isPdfFile=Ee,$.isValidFetchUrl=je,$.loadScript=Me;var K=te(F(2)),J=F(4),ee=F(135);function te(ze){return ze&&ze.__esModule?ze:{default:ze}}function ne(ze,$e){var De=typeof Symbol!="undefined"&&ze[Symbol.iterator]||ze["@@iterator"];if(!De){if(Array.isArray(ze)||(De=ae(ze))||$e){De&&(ze=De);var Be=0,We=function(){};return{s:We,n:function(){return Be>=ze.length?{done:!0}:{done:!1,value:ze[Be++]}},e:function(et){throw et},f:We}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
467
|
+
`)}return Je}function Ge(Ye,Je){var et={},nt=Ye.style||{};return nt.fontStyle&&Fe(Ye).fontStyle==="italic"&&(et.italic=!0),nt.fontWeight&&(Fe(Ye).fontWeight.startsWith("bold")||parseInt(Fe(Ye).fontWeight)>=700)&&(et.bold=!0),Object.keys(et).length>0&&(Je=Te(Je,et)),parseFloat(nt.textIndent||0)>0&&(Je=new re.default().insert(" ").concat(Je)),Je}function Xe(Ye,Je){var et=Ye.data;if(Ye.parentNode.tagName==="O:P")return Je.insert(et.trim());if(et.trim().length===0&&Ye.parentNode.classList.contains("ql-clipboard"))return Je;if(!Fe(Ye.parentNode).whiteSpace.startsWith("pre")){var nt=function(ut,pt){return pt=pt.replace(/[^\u00a0]/g,""),pt.length<1&&ut?" ":pt};et=et.replace(/\r\n/g," ").replace(/\n/g," "),et=et.replace(/\s\s+/g,nt.bind(nt,!0)),(Ye.previousSibling==null&&Me(Ye.parentNode)||Ye.previousSibling!=null&&Me(Ye.previousSibling))&&(et=et.replace(/^\s+/,nt.bind(nt,!1))),(Ye.nextSibling==null&&Me(Ye.parentNode)||Ye.nextSibling!=null&&Me(Ye.nextSibling))&&(et=et.replace(/\s+$/,nt.bind(nt,!1)))}return Je.insert(et)}V.default=we,V.matchAttributor=Ke,V.matchBlot=He,V.matchNewline=Be,V.matchSpacing=We,V.matchText=Xe},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function de(ce,le){for(var me=0;me<le.length;me++){var fe=le[me];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ce,fe.key,fe)}}return function(ce,le,me){return le&&de(ce.prototype,le),me&&de(ce,me),ce}}(),ee=function de(ce,le,me){ce===null&&(ce=Function.prototype);var fe=Object.getOwnPropertyDescriptor(ce,le);if(fe===void 0){var he=Object.getPrototypeOf(ce);return he===null?void 0:de(he,le,me)}else{if("value"in fe)return fe.value;var ue=fe.get;return ue===void 0?void 0:ue.call(me)}},te=K(6),ne=ae(te);function ae(de){return de&&de.__esModule?de:{default:de}}function oe(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}function re(de,ce){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:de}function ie(de,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);de.prototype=Object.create(ce&&ce.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(de,ce):de.__proto__=ce)}var se=function(de){ie(ce,de);function ce(){return oe(this,ce),re(this,(ce.__proto__||Object.getPrototypeOf(ce)).apply(this,arguments))}return J(ce,[{key:"optimize",value:function(me){ee(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"optimize",this).call(this,me),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return ee(ce.__proto__||Object.getPrototypeOf(ce),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),ce}(ne.default);se.blotName="bold",se.tagName=["STRONG","B"],V.default=se},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.addControls=V.default=void 0;var J=function(){function Se(Re,Ce){var xe=[],Pe=!0,Ae=!1,Le=void 0;try{for(var ke=Re[Symbol.iterator](),Ne;!(Pe=(Ne=ke.next()).done)&&(xe.push(Ne.value),!(Ce&&xe.length===Ce));Pe=!0);}catch(Oe){Ae=!0,Le=Oe}finally{try{!Pe&&ke.return&&ke.return()}finally{if(Ae)throw Le}}return xe}return function(Re,Ce){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return Se(Re,Ce);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ee=function(){function Se(Re,Ce){for(var xe=0;xe<Ce.length;xe++){var Pe=Ce[xe];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(Re,Pe.key,Pe)}}return function(Re,Ce,xe){return Ce&&Se(Re.prototype,Ce),xe&&Se(Re,xe),Re}}(),te=K(2),ne=me(te),ae=K(0),oe=me(ae),re=K(5),ie=me(re),se=K(10),de=me(se),ce=K(9),le=me(ce);function me(Se){return Se&&Se.__esModule?Se:{default:Se}}function fe(Se,Re,Ce){return Re in Se?Object.defineProperty(Se,Re,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):Se[Re]=Ce,Se}function he(Se,Re){if(!(Se instanceof Re))throw new TypeError("Cannot call a class as a function")}function ue(Se,Re){if(!Se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Re&&(typeof Re=="object"||typeof Re=="function")?Re:Se}function pe(Se,Re){if(typeof Re!="function"&&Re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Re);Se.prototype=Object.create(Re&&Re.prototype,{constructor:{value:Se,enumerable:!1,writable:!0,configurable:!0}}),Re&&(Object.setPrototypeOf?Object.setPrototypeOf(Se,Re):Se.__proto__=Re)}var ve=(0,de.default)("quill:toolbar"),ge=function(Se){pe(Re,Se);function Re(Ce,xe){he(this,Re);var Pe=ue(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,Ce,xe));if(Array.isArray(Pe.options.container)){var Ae=document.createElement("div");be(Ae,Pe.options.container),Ce.container.parentNode.insertBefore(Ae,Ce.container),Pe.container=Ae}else typeof Pe.options.container=="string"?Pe.container=document.querySelector(Pe.options.container):Pe.container=Pe.options.container;if(!(Pe.container instanceof HTMLElement)){var Le;return Le=ve.error("Container required for toolbar",Pe.options),ue(Pe,Le)}return Pe.container.classList.add("ql-toolbar"),Pe.controls=[],Pe.handlers={},Object.keys(Pe.options.handlers).forEach(function(ke){Pe.addHandler(ke,Pe.options.handlers[ke])}),[].forEach.call(Pe.container.querySelectorAll("button, select"),function(ke){Pe.attach(ke)}),Pe.quill.on(ie.default.events.EDITOR_CHANGE,function(ke,Ne){ke===ie.default.events.SELECTION_CHANGE&&Pe.update(Ne)}),Pe.quill.on(ie.default.events.SCROLL_OPTIMIZE,function(){var ke=Pe.quill.selection.getRange(),Ne=J(ke,1),Oe=Ne[0];Pe.update(Oe)}),Pe}return ee(Re,[{key:"addHandler",value:function(xe,Pe){this.handlers[xe]=Pe}},{key:"attach",value:function(xe){var Pe=this,Ae=[].find.call(xe.classList,function(ke){return ke.indexOf("ql-")===0});if(Ae){if(Ae=Ae.slice(3),xe.tagName==="BUTTON"&&xe.setAttribute("type","button"),this.handlers[Ae]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Ae]==null){ve.warn("ignoring attaching to disabled format",Ae,xe);return}if(oe.default.query(Ae)==null){ve.warn("ignoring attaching to nonexistent format",Ae,xe);return}}var Le=xe.tagName==="SELECT"?"change":"click";xe.addEventListener(Le,function(ke){var Ne=void 0;if(xe.tagName==="SELECT"){if(xe.selectedIndex<0)return;var Oe=xe.options[xe.selectedIndex];Oe.hasAttribute("selected")?Ne=!1:Ne=Oe.value||!1}else xe.classList.contains("ql-active")?Ne=!1:Ne=xe.value||!xe.hasAttribute("value"),ke.preventDefault();Pe.quill.focus();var Ee=Pe.quill.selection.getRange(),we=J(Ee,1),Te=we[0];if(Pe.handlers[Ae]!=null)Pe.handlers[Ae].call(Pe,Ne);else if(oe.default.query(Ae).prototype instanceof oe.default.Embed){if(Ne=prompt("Enter "+Ae),!Ne)return;Pe.quill.updateContents(new ne.default().retain(Te.index).delete(Te.length).insert(fe({},Ae,Ne)),ie.default.sources.USER)}else Pe.quill.format(Ae,Ne,ie.default.sources.USER);Pe.update(Te)}),this.controls.push([Ae,xe])}}},{key:"update",value:function(xe){var Pe=xe==null?{}:this.quill.getFormat(xe);this.controls.forEach(function(Ae){var Le=J(Ae,2),ke=Le[0],Ne=Le[1];if(Ne.tagName==="SELECT"){var Oe=void 0;if(xe==null)Oe=null;else if(Pe[ke]==null)Oe=Ne.querySelector("option[selected]");else if(!Array.isArray(Pe[ke])){var Ee=Pe[ke];typeof Ee=="string"&&(Ee=Ee.replace(/\"/g,'\\"')),Oe=Ne.querySelector('option[value="'+Ee+'"]')}Oe==null?(Ne.value="",Ne.selectedIndex=-1):Oe.selected=!0}else if(xe==null)Ne.classList.remove("ql-active");else if(Ne.hasAttribute("value")){var we=Pe[ke]===Ne.getAttribute("value")||Pe[ke]!=null&&Pe[ke].toString()===Ne.getAttribute("value")||Pe[ke]==null&&!Ne.getAttribute("value");Ne.classList.toggle("ql-active",we)}else Ne.classList.toggle("ql-active",Pe[ke]!=null)})}}]),Re}(le.default);ge.DEFAULTS={};function _e(Se,Re,Ce){var xe=document.createElement("button");xe.setAttribute("type","button"),xe.classList.add("ql-"+Re),Ce!=null&&(xe.value=Ce),Se.appendChild(xe)}function be(Se,Re){Array.isArray(Re[0])||(Re=[Re]),Re.forEach(function(Ce){var xe=document.createElement("span");xe.classList.add("ql-formats"),Ce.forEach(function(Pe){if(typeof Pe=="string")_e(xe,Pe);else{var Ae=Object.keys(Pe)[0],Le=Pe[Ae];Array.isArray(Le)?ye(xe,Ae,Le):_e(xe,Ae,Le)}}),Se.appendChild(xe)})}function ye(Se,Re,Ce){var xe=document.createElement("select");xe.classList.add("ql-"+Re),Ce.forEach(function(Pe){var Ae=document.createElement("option");Pe!==!1?Ae.setAttribute("value",Pe):Ae.setAttribute("selected","selected"),xe.appendChild(Ae)}),Se.appendChild(xe)}ge.DEFAULTS={container:null,handlers:{clean:function(){var Re=this,Ce=this.quill.getSelection();if(Ce!=null)if(Ce.length==0){var xe=this.quill.getFormat();Object.keys(xe).forEach(function(Pe){oe.default.query(Pe,oe.default.Scope.INLINE)!=null&&Re.quill.format(Pe,!1)})}else this.quill.removeFormat(Ce,ie.default.sources.USER)},direction:function(Re){var Ce=this.quill.getFormat().align;Re==="rtl"&&Ce==null?this.quill.format("align","right",ie.default.sources.USER):!Re&&Ce==="right"&&this.quill.format("align",!1,ie.default.sources.USER),this.quill.format("direction",Re,ie.default.sources.USER)},indent:function(Re){var Ce=this.quill.getSelection(),xe=this.quill.getFormat(Ce),Pe=parseInt(xe.indent||0);if(Re==="+1"||Re==="-1"){var Ae=Re==="+1"?1:-1;xe.direction==="rtl"&&(Ae*=-1),this.quill.format("indent",Pe+Ae,ie.default.sources.USER)}},link:function(Re){Re===!0&&(Re=prompt("Enter link URL:")),this.quill.format("link",Re,ie.default.sources.USER)},list:function(Re){var Ce=this.quill.getSelection(),xe=this.quill.getFormat(Ce);Re==="check"?xe.list==="checked"||xe.list==="unchecked"?this.quill.format("list",!1,ie.default.sources.USER):this.quill.format("list","unchecked",ie.default.sources.USER):this.quill.format("list",Re,ie.default.sources.USER)}}},V.default=ge,V.addControls=be},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function de(ce,le){for(var me=0;me<le.length;me++){var fe=le[me];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ce,fe.key,fe)}}return function(ce,le,me){return le&&de(ce.prototype,le),me&&de(ce,me),ce}}(),ee=function de(ce,le,me){ce===null&&(ce=Function.prototype);var fe=Object.getOwnPropertyDescriptor(ce,le);if(fe===void 0){var he=Object.getPrototypeOf(ce);return he===null?void 0:de(he,le,me)}else{if("value"in fe)return fe.value;var ue=fe.get;return ue===void 0?void 0:ue.call(me)}},te=K(28),ne=ae(te);function ae(de){return de&&de.__esModule?de:{default:de}}function oe(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}function re(de,ce){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:de}function ie(de,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);de.prototype=Object.create(ce&&ce.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(de,ce):de.__proto__=ce)}var se=function(de){ie(ce,de);function ce(le,me){oe(this,ce);var fe=re(this,(ce.__proto__||Object.getPrototypeOf(ce)).call(this,le));return fe.label.innerHTML=me,fe.container.classList.add("ql-color-picker"),[].slice.call(fe.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(he){he.classList.add("ql-primary")}),fe}return J(ce,[{key:"buildItem",value:function(me){var fe=ee(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"buildItem",this).call(this,me);return fe.style.backgroundColor=me.getAttribute("value")||"",fe}},{key:"selectItem",value:function(me,fe){ee(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"selectItem",this).call(this,me,fe);var he=this.label.querySelector(".ql-color-label"),ue=me&&me.getAttribute("data-value")||"";he&&(he.tagName==="line"?he.style.stroke=ue:he.style.fill=ue)}}]),ce}(ne.default);V.default=se},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function de(ce,le){for(var me=0;me<le.length;me++){var fe=le[me];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ce,fe.key,fe)}}return function(ce,le,me){return le&&de(ce.prototype,le),me&&de(ce,me),ce}}(),ee=function de(ce,le,me){ce===null&&(ce=Function.prototype);var fe=Object.getOwnPropertyDescriptor(ce,le);if(fe===void 0){var he=Object.getPrototypeOf(ce);return he===null?void 0:de(he,le,me)}else{if("value"in fe)return fe.value;var ue=fe.get;return ue===void 0?void 0:ue.call(me)}},te=K(28),ne=ae(te);function ae(de){return de&&de.__esModule?de:{default:de}}function oe(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}function re(de,ce){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:de}function ie(de,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);de.prototype=Object.create(ce&&ce.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(de,ce):de.__proto__=ce)}var se=function(de){ie(ce,de);function ce(le,me){oe(this,ce);var fe=re(this,(ce.__proto__||Object.getPrototypeOf(ce)).call(this,le));return fe.container.classList.add("ql-icon-picker"),[].forEach.call(fe.container.querySelectorAll(".ql-picker-item"),function(he){he.innerHTML=me[he.getAttribute("data-value")||""]}),fe.defaultItem=fe.container.querySelector(".ql-selected"),fe.selectItem(fe.defaultItem),fe}return J(ce,[{key:"selectItem",value:function(me,fe){ee(ce.prototype.__proto__||Object.getPrototypeOf(ce.prototype),"selectItem",this).call(this,me,fe),me=me||this.defaultItem,this.label.innerHTML=me.innerHTML}}]),ce}(ne.default);V.default=se},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function ne(ae,oe){for(var re=0;re<oe.length;re++){var ie=oe[re];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(ae,ie.key,ie)}}return function(ae,oe,re){return oe&&ne(ae.prototype,oe),re&&ne(ae,re),ae}}();function ee(ne,ae){if(!(ne instanceof ae))throw new TypeError("Cannot call a class as a function")}var te=function(){function ne(ae,oe){var re=this;ee(this,ne),this.quill=ae,this.boundsContainer=oe||document.body,this.root=ae.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){re.root.style.marginTop=-1*re.quill.root.scrollTop+"px"}),this.hide()}return J(ne,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(oe){var re=oe.left+oe.width/2-this.root.offsetWidth/2,ie=oe.bottom+this.quill.root.scrollTop;this.root.style.left=re+"px",this.root.style.top=ie+"px",this.root.classList.remove("ql-flip");var se=this.boundsContainer.getBoundingClientRect(),de=this.root.getBoundingClientRect(),ce=0;if(de.right>se.right&&(ce=se.right-de.right,this.root.style.left=re+ce+"px"),de.left<se.left&&(ce=se.left-de.left,this.root.style.left=re+ce+"px"),de.bottom>se.bottom){var le=de.bottom-de.top,me=oe.bottom-oe.top+le;this.root.style.top=ie-me+"px",this.root.classList.add("ql-flip")}return ce}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),ne}();V.default=te},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function ye(Se,Re){var Ce=[],xe=!0,Pe=!1,Ae=void 0;try{for(var Le=Se[Symbol.iterator](),ke;!(xe=(ke=Le.next()).done)&&(Ce.push(ke.value),!(Re&&Ce.length===Re));xe=!0);}catch(Ne){Pe=!0,Ae=Ne}finally{try{!xe&&Le.return&&Le.return()}finally{if(Pe)throw Ae}}return Ce}return function(Se,Re){if(Array.isArray(Se))return Se;if(Symbol.iterator in Object(Se))return ye(Se,Re);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ee=function ye(Se,Re,Ce){Se===null&&(Se=Function.prototype);var xe=Object.getOwnPropertyDescriptor(Se,Re);if(xe===void 0){var Pe=Object.getPrototypeOf(Se);return Pe===null?void 0:ye(Pe,Re,Ce)}else{if("value"in xe)return xe.value;var Ae=xe.get;return Ae===void 0?void 0:Ae.call(Ce)}},te=function(){function ye(Se,Re){for(var Ce=0;Ce<Re.length;Ce++){var xe=Re[Ce];xe.enumerable=xe.enumerable||!1,xe.configurable=!0,"value"in xe&&(xe.writable=!0),Object.defineProperty(Se,xe.key,xe)}}return function(Se,Re,Ce){return Re&&ye(Se.prototype,Re),Ce&&ye(Se,Ce),Se}}(),ne=K(3),ae=he(ne),oe=K(8),re=he(oe),ie=K(43),se=he(ie),de=K(27),ce=he(de),le=K(15),me=K(41),fe=he(me);function he(ye){return ye&&ye.__esModule?ye:{default:ye}}function ue(ye,Se){if(!(ye instanceof Se))throw new TypeError("Cannot call a class as a function")}function pe(ye,Se){if(!ye)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Se&&(typeof Se=="object"||typeof Se=="function")?Se:ye}function ve(ye,Se){if(typeof Se!="function"&&Se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Se);ye.prototype=Object.create(Se&&Se.prototype,{constructor:{value:ye,enumerable:!1,writable:!0,configurable:!0}}),Se&&(Object.setPrototypeOf?Object.setPrototypeOf(ye,Se):ye.__proto__=Se)}var ge=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],_e=function(ye){ve(Se,ye);function Se(Re,Ce){ue(this,Se),Ce.modules.toolbar!=null&&Ce.modules.toolbar.container==null&&(Ce.modules.toolbar.container=ge);var xe=pe(this,(Se.__proto__||Object.getPrototypeOf(Se)).call(this,Re,Ce));return xe.quill.container.classList.add("ql-snow"),xe}return te(Se,[{key:"extendToolbar",value:function(Ce){Ce.container.classList.add("ql-snow"),this.buildButtons([].slice.call(Ce.container.querySelectorAll("button")),fe.default),this.buildPickers([].slice.call(Ce.container.querySelectorAll("select")),fe.default),this.tooltip=new be(this.quill,this.options.bounds),Ce.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(xe,Pe){Ce.handlers.link.call(Ce,!Pe.format.link)})}}]),Se}(se.default);_e.DEFAULTS=(0,ae.default)(!0,{},se.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Se){if(Se){var Re=this.quill.getSelection();if(Re==null||Re.length==0)return;var Ce=this.quill.getText(Re);/^\S+@\S+\.\S+$/.test(Ce)&&Ce.indexOf("mailto:")!==0&&(Ce="mailto:"+Ce);var xe=this.quill.theme.tooltip;xe.edit("link",Ce)}else this.quill.format("link",!1)}}}}});var be=function(ye){ve(Se,ye);function Se(Re,Ce){ue(this,Se);var xe=pe(this,(Se.__proto__||Object.getPrototypeOf(Se)).call(this,Re,Ce));return xe.preview=xe.root.querySelector("a.ql-preview"),xe}return te(Se,[{key:"listen",value:function(){var Ce=this;ee(Se.prototype.__proto__||Object.getPrototypeOf(Se.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(xe){Ce.root.classList.contains("ql-editing")?Ce.save():Ce.edit("link",Ce.preview.textContent),xe.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(xe){if(Ce.linkRange!=null){var Pe=Ce.linkRange;Ce.restoreFocus(),Ce.quill.formatText(Pe,"link",!1,re.default.sources.USER),delete Ce.linkRange}xe.preventDefault(),Ce.hide()}),this.quill.on(re.default.events.SELECTION_CHANGE,function(xe,Pe,Ae){if(xe!=null){if(xe.length===0&&Ae===re.default.sources.USER){var Le=Ce.quill.scroll.descendant(ce.default,xe.index),ke=J(Le,2),Ne=ke[0],Oe=ke[1];if(Ne!=null){Ce.linkRange=new le.Range(xe.index-Oe,Ne.length());var Ee=ce.default.formats(Ne.domNode);Ce.preview.textContent=Ee,Ce.preview.setAttribute("href",Ee),Ce.show(),Ce.position(Ce.quill.getBounds(Ce.linkRange));return}}else delete Ce.linkRange;Ce.hide()}})}},{key:"show",value:function(){ee(Se.prototype.__proto__||Object.getPrototypeOf(Se.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),Se}(ie.BaseTooltip);be.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),V.default=_e},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=K(29),ee=lt(J),te=K(36),ne=K(38),ae=K(64),oe=K(65),re=lt(oe),ie=K(66),se=lt(ie),de=K(67),ce=lt(de),le=K(37),me=K(26),fe=K(39),he=K(40),ue=K(56),pe=lt(ue),ve=K(68),ge=lt(ve),_e=K(27),be=lt(_e),ye=K(69),Se=lt(ye),Re=K(70),Ce=lt(Re),xe=K(71),Pe=lt(xe),Ae=K(72),Le=lt(Ae),ke=K(73),Ne=lt(ke),Oe=K(13),Ee=lt(Oe),we=K(74),Te=lt(we),Fe=K(75),je=lt(Fe),Me=K(57),qe=lt(Me),Ue=K(41),Ke=lt(Ue),He=K(28),ze=lt(He),$e=K(59),De=lt($e),Be=K(60),We=lt(Be),Ge=K(61),Xe=lt(Ge),Ye=K(108),Je=lt(Ye),et=K(62),nt=lt(et);function lt(ut){return ut&&ut.__esModule?ut:{default:ut}}ee.default.register({"attributors/attribute/direction":ne.DirectionAttribute,"attributors/class/align":te.AlignClass,"attributors/class/background":le.BackgroundClass,"attributors/class/color":me.ColorClass,"attributors/class/direction":ne.DirectionClass,"attributors/class/font":fe.FontClass,"attributors/class/size":he.SizeClass,"attributors/style/align":te.AlignStyle,"attributors/style/background":le.BackgroundStyle,"attributors/style/color":me.ColorStyle,"attributors/style/direction":ne.DirectionStyle,"attributors/style/font":fe.FontStyle,"attributors/style/size":he.SizeStyle},!0),ee.default.register({"formats/align":te.AlignClass,"formats/direction":ne.DirectionClass,"formats/indent":ae.IndentClass,"formats/background":le.BackgroundStyle,"formats/color":me.ColorStyle,"formats/font":fe.FontClass,"formats/size":he.SizeClass,"formats/blockquote":re.default,"formats/code-block":Ee.default,"formats/header":se.default,"formats/list":ce.default,"formats/bold":pe.default,"formats/code":Oe.Code,"formats/italic":ge.default,"formats/link":be.default,"formats/script":Se.default,"formats/strike":Ce.default,"formats/underline":Pe.default,"formats/image":Le.default,"formats/video":Ne.default,"formats/list/item":de.ListItem,"modules/formula":Te.default,"modules/syntax":je.default,"modules/toolbar":qe.default,"themes/bubble":Je.default,"themes/snow":nt.default,"ui/icons":Ke.default,"ui/picker":ze.default,"ui/icon-picker":We.default,"ui/color-picker":De.default,"ui/tooltip":Xe.default},!0),V.default=ee.default},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.IndentClass=void 0;var J=function(){function ce(le,me){for(var fe=0;fe<me.length;fe++){var he=me[fe];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(le,he.key,he)}}return function(le,me,fe){return me&&ce(le.prototype,me),fe&&ce(le,fe),le}}(),ee=function ce(le,me,fe){le===null&&(le=Function.prototype);var he=Object.getOwnPropertyDescriptor(le,me);if(he===void 0){var ue=Object.getPrototypeOf(le);return ue===null?void 0:ce(ue,me,fe)}else{if("value"in he)return he.value;var pe=he.get;return pe===void 0?void 0:pe.call(fe)}},te=K(0),ne=ae(te);function ae(ce){return ce&&ce.__esModule?ce:{default:ce}}function oe(ce,le){if(!(ce instanceof le))throw new TypeError("Cannot call a class as a function")}function re(ce,le){if(!ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le&&(typeof le=="object"||typeof le=="function")?le:ce}function ie(ce,le){if(typeof le!="function"&&le!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof le);ce.prototype=Object.create(le&&le.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}),le&&(Object.setPrototypeOf?Object.setPrototypeOf(ce,le):ce.__proto__=le)}var se=function(ce){ie(le,ce);function le(){return oe(this,le),re(this,(le.__proto__||Object.getPrototypeOf(le)).apply(this,arguments))}return J(le,[{key:"add",value:function(fe,he){if(he==="+1"||he==="-1"){var ue=this.value(fe)||0;he=he==="+1"?ue+1:ue-1}return he===0?(this.remove(fe),!0):ee(le.prototype.__proto__||Object.getPrototypeOf(le.prototype),"add",this).call(this,fe,he)}},{key:"canAdd",value:function(fe,he){return ee(le.prototype.__proto__||Object.getPrototypeOf(le.prototype),"canAdd",this).call(this,fe,he)||ee(le.prototype.__proto__||Object.getPrototypeOf(le.prototype),"canAdd",this).call(this,fe,parseInt(he))}},{key:"value",value:function(fe){return parseInt(ee(le.prototype.__proto__||Object.getPrototypeOf(le.prototype),"value",this).call(this,fe))||void 0}}]),le}(ne.default.Attributor.Class),de=new se("indent","ql-indent",{scope:ne.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});V.IndentClass=de},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=K(4),ee=te(J);function te(ie){return ie&&ie.__esModule?ie:{default:ie}}function ne(ie,se){if(!(ie instanceof se))throw new TypeError("Cannot call a class as a function")}function ae(ie,se){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:ie}function oe(ie,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);ie.prototype=Object.create(se&&se.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,se):ie.__proto__=se)}var re=function(ie){oe(se,ie);function se(){return ne(this,se),ae(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(ee.default);re.blotName="blockquote",re.tagName="blockquote",V.default=re},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function se(de,ce){for(var le=0;le<ce.length;le++){var me=ce[le];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(de,me.key,me)}}return function(de,ce,le){return ce&&se(de.prototype,ce),le&&se(de,le),de}}(),ee=K(4),te=ne(ee);function ne(se){return se&&se.__esModule?se:{default:se}}function ae(se,de){if(!(se instanceof de))throw new TypeError("Cannot call a class as a function")}function oe(se,de){if(!se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de&&(typeof de=="object"||typeof de=="function")?de:se}function re(se,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof de);se.prototype=Object.create(de&&de.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),de&&(Object.setPrototypeOf?Object.setPrototypeOf(se,de):se.__proto__=de)}var ie=function(se){re(de,se);function de(){return ae(this,de),oe(this,(de.__proto__||Object.getPrototypeOf(de)).apply(this,arguments))}return J(de,null,[{key:"formats",value:function(le){return this.tagName.indexOf(le.tagName)+1}}]),de}(te.default);ie.blotName="header",ie.tagName=["H1","H2","H3","H4","H5","H6"],V.default=ie},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.default=V.ListItem=void 0;var J=function(){function ue(pe,ve){for(var ge=0;ge<ve.length;ge++){var _e=ve[ge];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(pe,_e.key,_e)}}return function(pe,ve,ge){return ve&&ue(pe.prototype,ve),ge&&ue(pe,ge),pe}}(),ee=function ue(pe,ve,ge){pe===null&&(pe=Function.prototype);var _e=Object.getOwnPropertyDescriptor(pe,ve);if(_e===void 0){var be=Object.getPrototypeOf(pe);return be===null?void 0:ue(be,ve,ge)}else{if("value"in _e)return _e.value;var ye=_e.get;return ye===void 0?void 0:ye.call(ge)}},te=K(0),ne=se(te),ae=K(4),oe=se(ae),re=K(25),ie=se(re);function se(ue){return ue&&ue.__esModule?ue:{default:ue}}function de(ue,pe,ve){return pe in ue?Object.defineProperty(ue,pe,{value:ve,enumerable:!0,configurable:!0,writable:!0}):ue[pe]=ve,ue}function ce(ue,pe){if(!(ue instanceof pe))throw new TypeError("Cannot call a class as a function")}function le(ue,pe){if(!ue)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return pe&&(typeof pe=="object"||typeof pe=="function")?pe:ue}function me(ue,pe){if(typeof pe!="function"&&pe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof pe);ue.prototype=Object.create(pe&&pe.prototype,{constructor:{value:ue,enumerable:!1,writable:!0,configurable:!0}}),pe&&(Object.setPrototypeOf?Object.setPrototypeOf(ue,pe):ue.__proto__=pe)}var fe=function(ue){me(pe,ue);function pe(){return ce(this,pe),le(this,(pe.__proto__||Object.getPrototypeOf(pe)).apply(this,arguments))}return J(pe,[{key:"format",value:function(ge,_e){ge===he.blotName&&!_e?this.replaceWith(ne.default.create(this.statics.scope)):ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"format",this).call(this,ge,_e)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(ge,_e){return this.parent.isolate(this.offset(this.parent),this.length()),ge===this.parent.statics.blotName?(this.parent.replaceWith(ge,_e),this):(this.parent.unwrap(),ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"replaceWith",this).call(this,ge,_e))}}],[{key:"formats",value:function(ge){return ge.tagName===this.tagName?void 0:ee(pe.__proto__||Object.getPrototypeOf(pe),"formats",this).call(this,ge)}}]),pe}(oe.default);fe.blotName="list-item",fe.tagName="LI";var he=function(ue){me(pe,ue),J(pe,null,[{key:"create",value:function(ge){var _e=ge==="ordered"?"OL":"UL",be=ee(pe.__proto__||Object.getPrototypeOf(pe),"create",this).call(this,_e);return(ge==="checked"||ge==="unchecked")&&be.setAttribute("data-checked",ge==="checked"),be}},{key:"formats",value:function(ge){if(ge.tagName==="OL")return"ordered";if(ge.tagName==="UL")return ge.hasAttribute("data-checked")?ge.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function pe(ve){ce(this,pe);var ge=le(this,(pe.__proto__||Object.getPrototypeOf(pe)).call(this,ve)),_e=function(ye){if(ye.target.parentNode===ve){var Se=ge.statics.formats(ve),Re=ne.default.find(ye.target);Se==="checked"?Re.format("list","unchecked"):Se==="unchecked"&&Re.format("list","checked")}};return ve.addEventListener("touchstart",_e),ve.addEventListener("mousedown",_e),ge}return J(pe,[{key:"format",value:function(ge,_e){this.children.length>0&&this.children.tail.format(ge,_e)}},{key:"formats",value:function(){return de({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(ge,_e){if(ge instanceof fe)ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"insertBefore",this).call(this,ge,_e);else{var be=_e==null?this.length():_e.offset(this),ye=this.split(be);ye.parent.insertBefore(ge,ye)}}},{key:"optimize",value:function(ge){ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"optimize",this).call(this,ge);var _e=this.next;_e!=null&&_e.prev===this&&_e.statics.blotName===this.statics.blotName&&_e.domNode.tagName===this.domNode.tagName&&_e.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(_e.moveChildren(this),_e.remove())}},{key:"replace",value:function(ge){if(ge.statics.blotName!==this.statics.blotName){var _e=ne.default.create(this.statics.defaultChild);ge.moveChildren(_e),this.appendChild(_e)}ee(pe.prototype.__proto__||Object.getPrototypeOf(pe.prototype),"replace",this).call(this,ge)}}]),pe}(ie.default);he.blotName="list",he.scope=ne.default.Scope.BLOCK_BLOT,he.tagName=["OL","UL"],he.defaultChild="list-item",he.allowedChildren=[fe],V.ListItem=fe,V.default=he},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=K(56),ee=te(J);function te(ie){return ie&&ie.__esModule?ie:{default:ie}}function ne(ie,se){if(!(ie instanceof se))throw new TypeError("Cannot call a class as a function")}function ae(ie,se){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:ie}function oe(ie,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);ie.prototype=Object.create(se&&se.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,se):ie.__proto__=se)}var re=function(ie){oe(se,ie);function se(){return ne(this,se),ae(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(ee.default);re.blotName="italic",re.tagName=["EM","I"],V.default=re},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function de(ce,le){for(var me=0;me<le.length;me++){var fe=le[me];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(ce,fe.key,fe)}}return function(ce,le,me){return le&&de(ce.prototype,le),me&&de(ce,me),ce}}(),ee=function de(ce,le,me){ce===null&&(ce=Function.prototype);var fe=Object.getOwnPropertyDescriptor(ce,le);if(fe===void 0){var he=Object.getPrototypeOf(ce);return he===null?void 0:de(he,le,me)}else{if("value"in fe)return fe.value;var ue=fe.get;return ue===void 0?void 0:ue.call(me)}},te=K(6),ne=ae(te);function ae(de){return de&&de.__esModule?de:{default:de}}function oe(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}function re(de,ce){if(!de)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce&&(typeof ce=="object"||typeof ce=="function")?ce:de}function ie(de,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ce);de.prototype=Object.create(ce&&ce.prototype,{constructor:{value:de,enumerable:!1,writable:!0,configurable:!0}}),ce&&(Object.setPrototypeOf?Object.setPrototypeOf(de,ce):de.__proto__=ce)}var se=function(de){ie(ce,de);function ce(){return oe(this,ce),re(this,(ce.__proto__||Object.getPrototypeOf(ce)).apply(this,arguments))}return J(ce,null,[{key:"create",value:function(me){return me==="super"?document.createElement("sup"):me==="sub"?document.createElement("sub"):ee(ce.__proto__||Object.getPrototypeOf(ce),"create",this).call(this,me)}},{key:"formats",value:function(me){if(me.tagName==="SUB")return"sub";if(me.tagName==="SUP")return"super"}}]),ce}(ne.default);se.blotName="script",se.tagName=["SUB","SUP"],V.default=se},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=K(6),ee=te(J);function te(ie){return ie&&ie.__esModule?ie:{default:ie}}function ne(ie,se){if(!(ie instanceof se))throw new TypeError("Cannot call a class as a function")}function ae(ie,se){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:ie}function oe(ie,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);ie.prototype=Object.create(se&&se.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,se):ie.__proto__=se)}var re=function(ie){oe(se,ie);function se(){return ne(this,se),ae(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(ee.default);re.blotName="strike",re.tagName="S",V.default=re},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=K(6),ee=te(J);function te(ie){return ie&&ie.__esModule?ie:{default:ie}}function ne(ie,se){if(!(ie instanceof se))throw new TypeError("Cannot call a class as a function")}function ae(ie,se){if(!ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se&&(typeof se=="object"||typeof se=="function")?se:ie}function oe(ie,se){if(typeof se!="function"&&se!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof se);ie.prototype=Object.create(se&&se.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),se&&(Object.setPrototypeOf?Object.setPrototypeOf(ie,se):ie.__proto__=se)}var re=function(ie){oe(se,ie);function se(){return ne(this,se),ae(this,(se.__proto__||Object.getPrototypeOf(se)).apply(this,arguments))}return se}(ee.default);re.blotName="underline",re.tagName="U",V.default=re},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function le(me,fe){for(var he=0;he<fe.length;he++){var ue=fe[he];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(me,ue.key,ue)}}return function(me,fe,he){return fe&&le(me.prototype,fe),he&&le(me,he),me}}(),ee=function le(me,fe,he){me===null&&(me=Function.prototype);var ue=Object.getOwnPropertyDescriptor(me,fe);if(ue===void 0){var pe=Object.getPrototypeOf(me);return pe===null?void 0:le(pe,fe,he)}else{if("value"in ue)return ue.value;var ve=ue.get;return ve===void 0?void 0:ve.call(he)}},te=K(0),ne=oe(te),ae=K(27);function oe(le){return le&&le.__esModule?le:{default:le}}function re(le,me){if(!(le instanceof me))throw new TypeError("Cannot call a class as a function")}function ie(le,me){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:le}function se(le,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);le.prototype=Object.create(me&&me.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(le,me):le.__proto__=me)}var de=["alt","height","width"],ce=function(le){se(me,le);function me(){return re(this,me),ie(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}return J(me,[{key:"format",value:function(he,ue){de.indexOf(he)>-1?ue?this.domNode.setAttribute(he,ue):this.domNode.removeAttribute(he):ee(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"format",this).call(this,he,ue)}}],[{key:"create",value:function(he){var ue=ee(me.__proto__||Object.getPrototypeOf(me),"create",this).call(this,he);return typeof he=="string"&&ue.setAttribute("src",this.sanitize(he)),ue}},{key:"formats",value:function(he){return de.reduce(function(ue,pe){return he.hasAttribute(pe)&&(ue[pe]=he.getAttribute(pe)),ue},{})}},{key:"match",value:function(he){return/\.(jpe?g|gif|png)$/.test(he)||/^data:image\/.+;base64/.test(he)}},{key:"sanitize",value:function(he){return(0,ae.sanitize)(he,["http","https","data"])?he:"//:0"}},{key:"value",value:function(he){return he.getAttribute("src")}}]),me}(ne.default.Embed);ce.blotName="image",ce.tagName="IMG",V.default=ce},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0});var J=function(){function le(me,fe){for(var he=0;he<fe.length;he++){var ue=fe[he];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(me,ue.key,ue)}}return function(me,fe,he){return fe&&le(me.prototype,fe),he&&le(me,he),me}}(),ee=function le(me,fe,he){me===null&&(me=Function.prototype);var ue=Object.getOwnPropertyDescriptor(me,fe);if(ue===void 0){var pe=Object.getPrototypeOf(me);return pe===null?void 0:le(pe,fe,he)}else{if("value"in ue)return ue.value;var ve=ue.get;return ve===void 0?void 0:ve.call(he)}},te=K(4),ne=K(27),ae=oe(ne);function oe(le){return le&&le.__esModule?le:{default:le}}function re(le,me){if(!(le instanceof me))throw new TypeError("Cannot call a class as a function")}function ie(le,me){if(!le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me&&(typeof me=="object"||typeof me=="function")?me:le}function se(le,me){if(typeof me!="function"&&me!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof me);le.prototype=Object.create(me&&me.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),me&&(Object.setPrototypeOf?Object.setPrototypeOf(le,me):le.__proto__=me)}var de=["height","width"],ce=function(le){se(me,le);function me(){return re(this,me),ie(this,(me.__proto__||Object.getPrototypeOf(me)).apply(this,arguments))}return J(me,[{key:"format",value:function(he,ue){de.indexOf(he)>-1?ue?this.domNode.setAttribute(he,ue):this.domNode.removeAttribute(he):ee(me.prototype.__proto__||Object.getPrototypeOf(me.prototype),"format",this).call(this,he,ue)}}],[{key:"create",value:function(he){var ue=ee(me.__proto__||Object.getPrototypeOf(me),"create",this).call(this,he);return ue.setAttribute("frameborder","0"),ue.setAttribute("allowfullscreen",!0),ue.setAttribute("src",this.sanitize(he)),ue}},{key:"formats",value:function(he){return de.reduce(function(ue,pe){return he.hasAttribute(pe)&&(ue[pe]=he.getAttribute(pe)),ue},{})}},{key:"sanitize",value:function(he){return ae.default.sanitize(he)}},{key:"value",value:function(he){return he.getAttribute("src")}}]),me}(te.BlockEmbed);ce.blotName="video",ce.className="ql-video",ce.tagName="IFRAME",V.default=ce},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.default=V.FormulaBlot=void 0;var J=function(){function he(ue,pe){for(var ve=0;ve<pe.length;ve++){var ge=pe[ve];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(ue,ge.key,ge)}}return function(ue,pe,ve){return pe&&he(ue.prototype,pe),ve&&he(ue,ve),ue}}(),ee=function he(ue,pe,ve){ue===null&&(ue=Function.prototype);var ge=Object.getOwnPropertyDescriptor(ue,pe);if(ge===void 0){var _e=Object.getPrototypeOf(ue);return _e===null?void 0:he(_e,pe,ve)}else{if("value"in ge)return ge.value;var be=ge.get;return be===void 0?void 0:be.call(ve)}},te=K(35),ne=se(te),ae=K(5),oe=se(ae),re=K(9),ie=se(re);function se(he){return he&&he.__esModule?he:{default:he}}function de(he,ue){if(!(he instanceof ue))throw new TypeError("Cannot call a class as a function")}function ce(he,ue){if(!he)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue&&(typeof ue=="object"||typeof ue=="function")?ue:he}function le(he,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ue);he.prototype=Object.create(ue&&ue.prototype,{constructor:{value:he,enumerable:!1,writable:!0,configurable:!0}}),ue&&(Object.setPrototypeOf?Object.setPrototypeOf(he,ue):he.__proto__=ue)}var me=function(he){le(ue,he);function ue(){return de(this,ue),ce(this,(ue.__proto__||Object.getPrototypeOf(ue)).apply(this,arguments))}return J(ue,null,[{key:"create",value:function(ve){var ge=ee(ue.__proto__||Object.getPrototypeOf(ue),"create",this).call(this,ve);return typeof ve=="string"&&(window.katex.render(ve,ge,{throwOnError:!1,errorColor:"#f00"}),ge.setAttribute("data-value",ve)),ge}},{key:"value",value:function(ve){return ve.getAttribute("data-value")}}]),ue}(ne.default);me.blotName="formula",me.className="ql-formula",me.tagName="SPAN";var fe=function(he){le(ue,he),J(ue,null,[{key:"register",value:function(){oe.default.register(me,!0)}}]);function ue(){de(this,ue);var pe=ce(this,(ue.__proto__||Object.getPrototypeOf(ue)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return pe}return ue}(ie.default);V.FormulaBlot=me,V.default=fe},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.default=V.CodeToken=V.CodeBlock=void 0;var J=function(){function ve(ge,_e){for(var be=0;be<_e.length;be++){var ye=_e[be];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(ge,ye.key,ye)}}return function(ge,_e,be){return _e&&ve(ge.prototype,_e),be&&ve(ge,be),ge}}(),ee=function ve(ge,_e,be){ge===null&&(ge=Function.prototype);var ye=Object.getOwnPropertyDescriptor(ge,_e);if(ye===void 0){var Se=Object.getPrototypeOf(ge);return Se===null?void 0:ve(Se,_e,be)}else{if("value"in ye)return ye.value;var Re=ye.get;return Re===void 0?void 0:Re.call(be)}},te=K(0),ne=ce(te),ae=K(5),oe=ce(ae),re=K(9),ie=ce(re),se=K(13),de=ce(se);function ce(ve){return ve&&ve.__esModule?ve:{default:ve}}function le(ve,ge){if(!(ve instanceof ge))throw new TypeError("Cannot call a class as a function")}function me(ve,ge){if(!ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge&&(typeof ge=="object"||typeof ge=="function")?ge:ve}function fe(ve,ge){if(typeof ge!="function"&&ge!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ge);ve.prototype=Object.create(ge&&ge.prototype,{constructor:{value:ve,enumerable:!1,writable:!0,configurable:!0}}),ge&&(Object.setPrototypeOf?Object.setPrototypeOf(ve,ge):ve.__proto__=ge)}var he=function(ve){fe(ge,ve);function ge(){return le(this,ge),me(this,(ge.__proto__||Object.getPrototypeOf(ge)).apply(this,arguments))}return J(ge,[{key:"replaceWith",value:function(be){this.domNode.textContent=this.domNode.textContent,this.attach(),ee(ge.prototype.__proto__||Object.getPrototypeOf(ge.prototype),"replaceWith",this).call(this,be)}},{key:"highlight",value:function(be){var ye=this.domNode.textContent;this.cachedText!==ye&&((ye.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=be(ye),this.domNode.normalize(),this.attach()),this.cachedText=ye)}}]),ge}(de.default);he.className="ql-syntax";var ue=new ne.default.Attributor.Class("token","hljs",{scope:ne.default.Scope.INLINE}),pe=function(ve){fe(ge,ve),J(ge,null,[{key:"register",value:function(){oe.default.register(ue,!0),oe.default.register(he,!0)}}]);function ge(_e,be){le(this,ge);var ye=me(this,(ge.__proto__||Object.getPrototypeOf(ge)).call(this,_e,be));if(typeof ye.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var Se=null;return ye.quill.on(oe.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(Se),Se=setTimeout(function(){ye.highlight(),Se=null},ye.options.interval)}),ye.highlight(),ye}return J(ge,[{key:"highlight",value:function(){var be=this;if(!this.quill.selection.composing){this.quill.update(oe.default.sources.USER);var ye=this.quill.getSelection();this.quill.scroll.descendants(he).forEach(function(Se){Se.highlight(be.options.highlight)}),this.quill.update(oe.default.sources.SILENT),ye!=null&&this.quill.setSelection(ye,oe.default.sources.SILENT)}}}]),ge}(ie.default);pe.DEFAULTS={highlight:function(){return window.hljs==null?null:function(ve){var ge=window.hljs.highlightAuto(ve);return ge.value}}(),interval:1e3},V.CodeBlock=he,V.CodeToken=ue,V.default=pe},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(F,V){F.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(F,V){F.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(F,V){F.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(F,V){F.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(F,V){F.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(F,V,K){Object.defineProperty(V,"__esModule",{value:!0}),V.default=V.BubbleTooltip=void 0;var J=function ge(_e,be,ye){_e===null&&(_e=Function.prototype);var Se=Object.getOwnPropertyDescriptor(_e,be);if(Se===void 0){var Re=Object.getPrototypeOf(_e);return Re===null?void 0:ge(Re,be,ye)}else{if("value"in Se)return Se.value;var Ce=Se.get;return Ce===void 0?void 0:Ce.call(ye)}},ee=function(){function ge(_e,be){for(var ye=0;ye<be.length;ye++){var Se=be[ye];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(_e,Se.key,Se)}}return function(_e,be,ye){return be&&ge(_e.prototype,be),ye&&ge(_e,ye),_e}}(),te=K(3),ne=le(te),ae=K(8),oe=le(ae),re=K(43),ie=le(re),se=K(15),de=K(41),ce=le(de);function le(ge){return ge&&ge.__esModule?ge:{default:ge}}function me(ge,_e){if(!(ge instanceof _e))throw new TypeError("Cannot call a class as a function")}function fe(ge,_e){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e&&(typeof _e=="object"||typeof _e=="function")?_e:ge}function he(ge,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _e);ge.prototype=Object.create(_e&&_e.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),_e&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,_e):ge.__proto__=_e)}var ue=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],pe=function(ge){he(_e,ge);function _e(be,ye){me(this,_e),ye.modules.toolbar!=null&&ye.modules.toolbar.container==null&&(ye.modules.toolbar.container=ue);var Se=fe(this,(_e.__proto__||Object.getPrototypeOf(_e)).call(this,be,ye));return Se.quill.container.classList.add("ql-bubble"),Se}return ee(_e,[{key:"extendToolbar",value:function(ye){this.tooltip=new ve(this.quill,this.options.bounds),this.tooltip.root.appendChild(ye.container),this.buildButtons([].slice.call(ye.container.querySelectorAll("button")),ce.default),this.buildPickers([].slice.call(ye.container.querySelectorAll("select")),ce.default)}}]),_e}(ie.default);pe.DEFAULTS=(0,ne.default)(!0,{},ie.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_e){_e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var ve=function(ge){he(_e,ge);function _e(be,ye){me(this,_e);var Se=fe(this,(_e.__proto__||Object.getPrototypeOf(_e)).call(this,be,ye));return Se.quill.on(oe.default.events.EDITOR_CHANGE,function(Re,Ce,xe,Pe){if(Re===oe.default.events.SELECTION_CHANGE)if(Ce!=null&&Ce.length>0&&Pe===oe.default.sources.USER){Se.show(),Se.root.style.left="0px",Se.root.style.width="",Se.root.style.width=Se.root.offsetWidth+"px";var Ae=Se.quill.getLines(Ce.index,Ce.length);if(Ae.length===1)Se.position(Se.quill.getBounds(Ce));else{var Le=Ae[Ae.length-1],ke=Se.quill.getIndex(Le),Ne=Math.min(Le.length()-1,Ce.index+Ce.length-ke),Oe=Se.quill.getBounds(new se.Range(ke,Ne));Se.position(Oe)}}else document.activeElement!==Se.textbox&&Se.quill.hasFocus()&&Se.hide()}),Se}return ee(_e,[{key:"listen",value:function(){var ye=this;J(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){ye.root.classList.remove("ql-editing")}),this.quill.on(oe.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!ye.root.classList.contains("ql-hidden")){var Se=ye.quill.getSelection();Se!=null&&ye.position(ye.quill.getBounds(Se))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(ye){var Se=J(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"position",this).call(this,ye),Re=this.root.querySelector(".ql-tooltip-arrow");if(Re.style.marginLeft="",Se===0)return Se;Re.style.marginLeft=-1*Se-Re.offsetWidth/2+"px"}}]),_e}(re.BaseTooltip);ve.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),V.BubbleTooltip=ve,V.default=pe},function(F,V,K){F.exports=K(63)}]).default})}(quill$2)),quill$2.exports}var lib,hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib;hasRequiredLib=1;var C=lib&&lib.__extends||function(){var oe=function(re,ie){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,de){se.__proto__=de}||function(se,de){for(var ce in de)de.hasOwnProperty(ce)&&(se[ce]=de[ce])},oe(re,ie)};return function(re,ie){oe(re,ie);function se(){this.constructor=re}re.prototype=ie===null?Object.create(ie):(se.prototype=ie.prototype,new se)}}(),$=lib&&lib.__assign||function(){return $=Object.assign||function(oe){for(var re,ie=1,se=arguments.length;ie<se;ie++){re=arguments[ie];for(var de in re)Object.prototype.hasOwnProperty.call(re,de)&&(oe[de]=re[de])}return oe},$.apply(this,arguments)},F=lib&&lib.__spreadArrays||function(){for(var oe=0,re=0,ie=arguments.length;re<ie;re++)oe+=arguments[re].length;for(var se=Array(oe),de=0,re=0;re<ie;re++)for(var ce=arguments[re],le=0,me=ce.length;le<me;le++,de++)se[de]=ce[le];return se},V=lib&&lib.__importDefault||function(oe){return oe&&oe.__esModule?oe:{default:oe}},K=V(React),J=V(ReactDOM),ee=V(requireIsEqual()),te=V(requireQuill()),ne=function(oe){C(re,oe);function re(ie){var se=oe.call(this,ie)||this;se.dirtyProps=["modules","formats","bounds","theme","children"],se.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],se.state={generation:0},se.selection=null,se.onEditorChange=function(ce,le,me,fe){var he,ue,pe,ve;ce==="text-change"?(ue=(he=se).onEditorChangeText)===null||ue===void 0||ue.call(he,se.editor.root.innerHTML,le,fe,se.unprivilegedEditor):ce==="selection-change"&&((ve=(pe=se).onEditorChangeSelection)===null||ve===void 0||ve.call(pe,le,fe,se.unprivilegedEditor))};var de=se.isControlled()?ie.value:ie.defaultValue;return se.value=de!=null?de:"",se}return re.prototype.validateProps=function(ie){var se;if(K.default.Children.count(ie.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(K.default.Children.count(ie.children)){var de=K.default.Children.only(ie.children);if(((se=de)===null||se===void 0?void 0:se.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&ie.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},re.prototype.shouldComponentUpdate=function(ie,se){var de=this,ce;if(this.validateProps(ie),!this.editor||this.state.generation!==se.generation)return!0;if("value"in ie){var le=this.getEditorContents(),me=(ce=ie.value,ce!=null?ce:"");this.isEqualValue(me,le)||this.setEditorContents(this.editor,me)}return ie.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,ie.readOnly),F(this.cleanProps,this.dirtyProps).some(function(fe){return!ee.default(ie[fe],de.props[fe])})},re.prototype.shouldComponentRegenerate=function(ie){var se=this;return this.dirtyProps.some(function(de){return!ee.default(ie[de],se.props[de])})},re.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},re.prototype.componentWillUnmount=function(){this.destroyEditor()},re.prototype.componentDidUpdate=function(ie,se){var de=this;if(this.editor&&this.shouldComponentRegenerate(ie)){var ce=this.editor.getContents(),le=this.editor.getSelection();this.regenerationSnapshot={delta:ce,selection:le},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==se.generation){var me=this.regenerationSnapshot,ce=me.delta,fe=me.selection;delete this.regenerationSnapshot,this.instantiateEditor();var he=this.editor;he.setContents(ce),ae(function(){return de.setEditorSelection(he,fe)})}},re.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},re.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},re.prototype.isControlled=function(){return"value"in this.props},re.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},re.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},re.prototype.createEditor=function(ie,se){var de=new te.default(ie,se);return se.tabIndex!=null&&this.setEditorTabIndex(de,se.tabIndex),this.hookEditor(de),de},re.prototype.hookEditor=function(ie){this.unprivilegedEditor=this.makeUnprivilegedEditor(ie),ie.on("editor-change",this.onEditorChange)},re.prototype.unhookEditor=function(ie){ie.off("editor-change",this.onEditorChange)},re.prototype.getEditorContents=function(){return this.value},re.prototype.getEditorSelection=function(){return this.selection},re.prototype.isDelta=function(ie){return ie&&ie.ops},re.prototype.isEqualValue=function(ie,se){return this.isDelta(ie)&&this.isDelta(se)?ee.default(ie.ops,se.ops):ee.default(ie,se)},re.prototype.setEditorContents=function(ie,se){var de=this;this.value=se;var ce=this.getEditorSelection();typeof se=="string"?ie.setContents(ie.clipboard.convert(se)):ie.setContents(se),ae(function(){return de.setEditorSelection(ie,ce)})},re.prototype.setEditorSelection=function(ie,se){if(this.selection=se,se){var de=ie.getLength();se.index=Math.max(0,Math.min(se.index,de-1)),se.length=Math.max(0,Math.min(se.length,de-1-se.index)),ie.setSelection(se)}},re.prototype.setEditorTabIndex=function(ie,se){var de,ce;!((ce=(de=ie)===null||de===void 0?void 0:de.scroll)===null||ce===void 0)&&ce.domNode&&(ie.scroll.domNode.tabIndex=se)},re.prototype.setEditorReadOnly=function(ie,se){se?ie.disable():ie.enable()},re.prototype.makeUnprivilegedEditor=function(ie){var se=ie;return{getHTML:function(){return se.root.innerHTML},getLength:se.getLength.bind(se),getText:se.getText.bind(se),getContents:se.getContents.bind(se),getSelection:se.getSelection.bind(se),getBounds:se.getBounds.bind(se)}},re.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var ie=J.default.findDOMNode(this.editingArea);if(!ie)throw new Error("Cannot find element for editing area");if(ie.nodeType===3)throw new Error("Editing area cannot be a text node");return ie},re.prototype.renderEditingArea=function(){var ie=this,se=this.props,de=se.children,ce=se.preserveWhitespace,le=this.state.generation,me={key:le,ref:function(fe){ie.editingArea=fe}};return K.default.Children.count(de)?K.default.cloneElement(K.default.Children.only(de),me):ce?K.default.createElement("pre",$({},me)):K.default.createElement("div",$({},me))},re.prototype.render=function(){var ie;return K.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(ie=this.props.className,ie!=null?ie:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},re.prototype.onEditorChangeText=function(ie,se,de,ce){var le,me;if(this.editor){var fe=this.isDelta(this.value)?ce.getContents():ce.getHTML();fe!==this.getEditorContents()&&(this.lastDeltaChangeSet=se,this.value=fe,(me=(le=this.props).onChange)===null||me===void 0||me.call(le,ie,se,de,ce))}},re.prototype.onEditorChangeSelection=function(ie,se,de){var ce,le,me,fe,he,ue;if(this.editor){var pe=this.getEditorSelection(),ve=!pe&&ie,ge=pe&&!ie;ee.default(ie,pe)||(this.selection=ie,(le=(ce=this.props).onChangeSelection)===null||le===void 0||le.call(ce,ie,se,de),ve?(fe=(me=this.props).onFocus)===null||fe===void 0||fe.call(me,ie,se,de):ge&&((ue=(he=this.props).onBlur)===null||ue===void 0||ue.call(he,pe,se,de)))}},re.prototype.focus=function(){this.editor&&this.editor.focus()},re.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},re.displayName="React Quill",re.Quill=te.default,re.defaultProps={theme:"snow",modules:{},readOnly:!1},re}(K.default.Component);function ae(oe){Promise.resolve().then(oe)}return lib=ne,lib}var libExports=requireLib();const ReactQuill=getDefaultExportFromCjs(libExports),quill="_quill_1fivm_1",styles$8={quill},RichTextEditor=({form:C,fieldName:$,placeholder:F="Enter text...",onValuesChange:V})=>{const K={toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],["link"],["clean"]]},J=["header","bold","italic","underline","strike","list","bullet","link"];return React.createElement(ReactQuill,{theme:"snow",modules:K,formats:J,placeholder:F,className:styles$8.quill,value:C.getFieldValue($),onChange:ee=>{C.setFieldsValue({[$]:ee}),V&&V({[$]:ee},C.getFieldsValue())}})};RichTextEditor.propTypes={form:PropTypes.object.isRequired,fieldName:PropTypes.string.isRequired,placeholder:PropTypes.string,onValuesChange:PropTypes.func};const{Text:Text$5}=Typography,ProjectFormItem=({item:C,formId:$,required:F=!1})=>{var ae,oe;const V=reactRedux.useDispatch(),K=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.forms[$]),[J]=Form.useForm(),ee=(re,ie)=>{const de=((K==null?void 0:K.projectItems)||[]).map(ce=>ce.id===C.id?fr(lr({},ce),{formData:ie,completed:PROJECT_FORM_REQUIRED_FIELDS.every(le=>ie[le])}):ce);V(updateFormData({formId:$,data:{projectItems:de}}))},te=()=>{const ie=((K==null?void 0:K.projectItems)||[]).map(se=>se.id===C.id?fr(lr({},se),{expanded:!se.expanded}):se);V(updateFormData({formId:$,data:{projectItems:ie}}))},ne=()=>{const ie=((K==null?void 0:K.projectItems)||[]).filter(se=>se.id!==C.id);V(updateFormData({formId:$,data:{projectItems:ie}}))};return C.expanded?React.createElement(Card,{key:C.id},React.createElement(Flex,{gap:16,justify:"space-between"},React.createElement(Flex,{gap:4},React.createElement(Text$5,null,"Project ",C.id),((K==null?void 0:K.projectItems)||[]).length>1&&React.createElement(RefIcon$e,{onClick:ne})),React.createElement(RefIcon$r,{onClick:te})),React.createElement(Form,{form:J,layout:"vertical",initialValues:C.formData,onValuesChange:ee},React.createElement(Form.Item,{name:"title",label:"Project Name",rules:[{required:F}]},React.createElement(Input,{placeholder:"Enter Project Name"})),React.createElement(Form.Item,{name:"project_link",label:"Project Link",rules:[{required:F}]},React.createElement(Input,{placeholder:"Enter Project Link"})),React.createElement(Form.Item,{name:"description",label:"Key Points",rules:[{required:F}]},React.createElement(RichTextEditor,{form:J,fieldName:"description",placeholder:"Enter Key Points",onValuesChange:ee})),React.createElement(Flex,{gap:16},React.createElement(Button$1,{type:"primary",onClick:te},"Save"),React.createElement(Button$1,{type:"default",onClick:te},"Cancel")))):React.createElement(Card,{key:C.id},React.createElement(Flex,{justify:"space-between",align:"center"},React.createElement(Text$5,{strong:!0},(ae=C.formData)!=null&&ae.title?(oe=C.formData)==null?void 0:oe.title:"---"),React.createElement(RefIcon$y,{onClick:te})))},FORM_ID$3="projectForm",initialFormData$3={projectItems:[{id:1,completed:!1,expanded:!0,formData:{title:"",project_link:"",description:""}}]},ProjectForm=({onComplete:C,required:$=!1})=>{const F=reactRedux.useDispatch(),V=reactRedux.useSelector(re=>re.scalantResumeBuilder.resumeBuilder.resumeData),K=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.forms[FORM_ID$3]),J=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.initializedForms[FORM_ID$3]),[ee]=useUpdateResumeDetailsMutation(),te=React.useMemo(()=>V!=null&&V.projects?{projectItems:V.projects.map((re,ie)=>({id:ie,completed:!0,expanded:!1,formData:{title:re.title,project_link:re.project_link,description:re.description}}))}:initialFormData$3,[V==null?void 0:V.projects]);React.useEffect(()=>{J||F(initializeForm({formId:FORM_ID$3,initialData:te}))},[F,J,te]);const ne=()=>{const re=(K==null?void 0:K.projectItems)||[],ie=re.length+1;F(updateFormData({formId:FORM_ID$3,data:{projectItems:[...re.map(se=>fr(lr({},se),{expanded:!1})),{id:ie,completed:!1,expanded:!0,formData:{title:"",project_link:"",description:""}}]}}))},ae=re=>re.map(ie=>({id:ie.id,title:ie.formData.title,description:ie.formData.description,project_link:ie.formData.project_link,data_source:"careers_hub",workplace_type:null,workplace_id:null,user_id:V==null?void 0:V.user_id})),oe=()=>pr(null,null,function*(){var de;const re=(K==null?void 0:K.projectItems)||[];if(re.some(ce=>!ce.completed)){staticMethods.error("Please fill all project items before marking as complete");return}const se=ae(re);try{const ce={form_stage:"project_details_form",isPopulated:!0,projects:se,upgrade:!1};yield ee({resumeId:(de=V==null?void 0:V.resume_details)==null?void 0:de.id,payload:ce}).unwrap(),staticMethods.success("Projects updated successfully"),C==null||C()}catch(ce){staticMethods.error(`Failed to update projects: ${ce.message}`)}});return React.createElement(Flex,{vertical:!0,gap:16},React.createElement(Space,{direction:"vertical",style:{width:"100%"}},React.createElement(Flex,{vertical:!0,gap:16},((K==null?void 0:K.projectItems)||[]).map(re=>React.createElement(ProjectFormItem,{key:re.id,item:re,formId:FORM_ID$3,required:$}))),React.createElement(Button$1,{type:"dashed",block:!0,icon:React.createElement(RefIcon$s,null),onClick:ne},"Add Project"),React.createElement(Flex,{gap:16},React.createElement(Button$1,{type:"primary",block:!0,onClick:oe},"Save and Compile"),React.createElement(Button$1,{type:"default",onClick:oe,block:!0},"Save and Next"))))},midWidth="_midWidth_wiezh_1",fullWidth="_fullWidth_wiezh_5",styles$7={midWidth,fullWidth},{Text:Text$4}=Typography,EducationFormItem=({item:C,formId:$,required:F=!1})=>{var oe,re,ie,se;const V=reactRedux.useDispatch(),K=reactRedux.useSelector(de=>de.scalantResumeBuilder.formStore.forms[$]),[J]=Form.useForm(),ee=(de,ce)=>{const me=((K==null?void 0:K.educationItems)||[]).map(fe=>fe.id===C.id?fr(lr({},fe),{formData:ce,completed:EDUCATION_FORM_REQUIRED_FIELDS.every(he=>ce[he])}):fe);V(updateFormData({formId:$,data:{educationItems:me}}))},te=()=>{const ce=((K==null?void 0:K.educationItems)||[]).map(le=>le.id===C.id?fr(lr({},le),{expanded:!le.expanded}):le);V(updateFormData({formId:$,data:{educationItems:ce}}))},ne=()=>{const ce=((K==null?void 0:K.educationItems)||[]).filter(le=>le.id!==C.id);V(updateFormData({formId:$,data:{educationItems:ce}}))},ae=React.createElement(Form.Item,{name:"grade_type",noStyle:!0},React.createElement(Select,{options:[{label:"CGPA",value:"cgpa"},{label:"Percentage",value:"percentage"}]}));return C.expanded?React.createElement(Card,{key:C.id},React.createElement(Flex,{gap:16,justify:"space-between"},React.createElement(Flex,{gap:4},React.createElement(Text$4,{strong:!0},"Education ",C.id),((K==null?void 0:K.educationItems)||[]).length>1&&React.createElement(RefIcon$e,{onClick:ne})),React.createElement(RefIcon$r,{onClick:te})),React.createElement(Form,{form:J,layout:"vertical",onValuesChange:ee,initialValues:lr({grade_type:"cgpa"},C.formData)},React.createElement(Form.Item,{name:"university",label:"University Name",rules:[{required:F}]},React.createElement(Input,{placeholder:"Enter University Name"})),React.createElement(Flex,{gap:16},React.createElement(Form.Item,{name:"degree",label:"Degree Type",rules:[{required:F}],className:styles$7.midWidth},React.createElement(Select,{placeholder:"Select Degree Type",options:[{label:"BE/B.Tech/Bs",value:"bachelor"},{label:"ME/M.Tech",value:"master"},{label:"Dual Degree - BE + ME",value:"dual"},{label:"Ms",value:"ms"},{label:"MBA",value:"mba"},{label:"MCA/BCA",value:"mca_bca"},{label:"BE + MBA",value:"be_mba"},{label:"Other",value:"other"}]})),React.createElement(Form.Item,{name:"field",label:"Field of Study",className:styles$7.midWidth},React.createElement(Select,{placeholder:"Select Field of Study",options:[{label:"Computer Science",value:"computer-science"},{label:"Information Technology",value:"information-technology"},{label:"Mathematics and Computing",value:"mathematics-and-computing"},{label:"Electronics",value:"electronics"},{label:"Mechanical",value:"mechanical"},{label:"Civil",value:"civil"},{label:"MBA",value:"mba"},{label:"Electical",value:"electrical"},{label:"Other",value:"other"}]}))),React.createElement(Flex,{gap:16,className:styles$7.fullWidth},React.createElement(Form.Item,{name:"marks",label:"Marks (Final/Current)",rules:[{required:F}],className:styles$7.midWidth},React.createElement(TypedInputNumber,{placeholder:"Enter Marks",addonAfter:ae})),React.createElement(Form.Item,{name:"graduation_date",label:"Graduation (Actual/Expected)",rules:[{required:F}],className:styles$7.midWidth},React.createElement(DatePicker,{placeholder:"Select Graduation Date",format:"YYYY-MM-DD"}))),React.createElement(Form.Item,{name:"short_description",label:"Description"},React.createElement(RichTextEditor,{form:J,fieldName:"short_description",placeholder:"Enter Description",onValuesChange:ee})))):React.createElement(Card,{key:C.id},React.createElement(Flex,{justify:"space-between",align:"center"},React.createElement(Flex,{vertical:!0,gap:4},React.createElement(Text$4,{strong:!0},(oe=C.formData)!=null&&oe.university?(re=C.formData)==null?void 0:re.university:"---"),React.createElement(Text$4,null,(ie=C.formData)!=null&&ie.degree?`${C.formData.degree}, `:"---",React.createElement(Divider,{type:"vertical"}),(se=C.formData)!=null&&se.graduation_date?`${C.formData.graduation_date.format("YYYY")}`:"---")),React.createElement(RefIcon$y,{onClick:te})))},FORM_ID$2="educationForm",initialFormData$2={educationItems:[{id:1,completed:!1,expanded:!0,formData:{university:"",degree:"",field:"",marks:"",marks_type:"",graduation_date:"",short_description:""}}]},EducationForm=({onComplete:C,required:$=!1})=>{const F=reactRedux.useDispatch(),V=reactRedux.useSelector(re=>re.scalantResumeBuilder.resumeBuilder.resumeData),K=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.forms[FORM_ID$2]),J=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.initializedForms[FORM_ID$2]),[ee]=useUpdateResumeDetailsMutation(),te=React.useMemo(()=>V!=null&&V.education?{educationItems:V.education.map((re,ie)=>({id:ie,completed:!0,expanded:!1,formData:{university:re.university,degree:re.degree,field:re.field,marks:re.marks,marks_type:re.marks_type,graduation_date:re.graduation_date?dayjs(re.graduation_date):null,short_description:re.short_description}}))}:initialFormData$2,[V==null?void 0:V.education]);React.useEffect(()=>{J||F(initializeForm({formId:FORM_ID$2,initialData:te}))},[F,J,te]);const ne=()=>{const re=(K==null?void 0:K.educationItems)||[],ie=re.length+1;F(updateFormData({formId:FORM_ID$2,data:{educationItems:[...re,{id:ie,completed:!1,expanded:!0,formData:{university:"",degree:"",field:"",marks:"",marks_type:"",graduation_date:"",short_description:""}}]}}))},ae=re=>re.map(ie=>({id:ie.id,university:ie.formData.institute,degree:ie.formData.degree,field:ie.formData.branch,marks:ie.formData.grades,marks_type:ie.formData.gradeType,graduation_date:ie.formData.graduation_date,short_description:ie.formData.short_description,data_source:"careers_hub",university_city:null,math_score:null,math_score_type:null,show_marks_in_resume:!1,show_branch_in_resume:!1,user_id:V==null?void 0:V.user_id,creator:null,degree_free_text:null,field_free_text:null,projects:null,board:null,from:null,to:null,created_at:new Date().toISOString(),updated_at:new Date().toISOString()})),oe=()=>pr(null,null,function*(){var de;const re=(K==null?void 0:K.educationItems)||[];if(re.some(ce=>!ce.completed)){staticMethods.error("Please fill all education items before marking as complete");return}const se=ae(re);try{const ce={form_stage:"education_details_form",isPopulated:!0,educations:se};C==null||C(),yield ee({resumeId:(de=V==null?void 0:V.resume_details)==null?void 0:de.id,payload:ce}).unwrap(),staticMethods.success("Education details updated successfully")}catch(ce){staticMethods.error(`Failed to update education details: ${ce.message}`)}});return React.createElement(Flex,{vertical:!0,gap:16},React.createElement(Space,{direction:"vertical",style:{width:"100%"}},React.createElement(Flex,{vertical:!0,gap:16},((K==null?void 0:K.educationItems)||[]).map(re=>React.createElement(EducationFormItem,{key:re.id,item:re,formId:FORM_ID$2,required:$}))),React.createElement(Button$1,{type:"dashed",block:!0,icon:React.createElement(RefIcon$s,null),onClick:ne},((K==null?void 0:K.educationItems)||[]).length===1?"Add secondary education":"Add another education"),React.createElement(Flex,{gap:16},React.createElement(Button$1,{type:"primary",block:!0,onClick:oe},"Save and Compile"),React.createElement(Button$1,{type:"default",onClick:oe,block:!0},"Save and Next"))))},{Text:Text$3}=Typography,WorkExperienceFormItem=({item:C,formId:$,required:F=!1})=>{var ae,oe,re,ie,se,de,ce,le,me,fe;const V=reactRedux.useDispatch(),K=reactRedux.useSelector(he=>he.scalantResumeBuilder.formStore.forms[$]),[J]=Form.useForm(),ee=(he,ue)=>{const ve=((K==null?void 0:K.workExperienceItems)||[]).map(ge=>ge.id===C.id?fr(lr({},ge),{formData:ue,completed:WORK_EXPERIENCE_FORM_REQUIRED_FIELDS.every(_e=>ue[_e])}):ge);V(updateFormData({formId:$,data:{workExperienceItems:ve}}))},te=()=>{const ue=((K==null?void 0:K.workExperienceItems)||[]).map(pe=>pe.id===C.id?fr(lr({},pe),{expanded:!pe.expanded}):pe);V(updateFormData({formId:$,data:{workExperienceItems:ue}}))},ne=()=>{const ue=((K==null?void 0:K.workExperienceItems)||[]).filter(pe=>pe.id!==C.id);V(updateFormData({formId:$,data:{workExperienceItems:ue}}))};return C.expanded?React.createElement(Card,{key:C.id},React.createElement(Flex,{gap:16,justify:"space-between"},React.createElement(Flex,{gap:4},React.createElement(Text$3,null,"Work Experience ",C.id),((K==null?void 0:K.workExperienceItems)||[]).length>1&&React.createElement(RefIcon$e,{onClick:ne,style:{color:"red"}})),React.createElement(RefIcon$r,{onClick:te})),React.createElement(Form,{form:J,layout:"vertical",initialValues:C.formData,onValuesChange:ee},React.createElement(Form.Item,{name:"company",label:"Company",rules:[{required:F}]},React.createElement(Input,{placeholder:"Enter Company"})),React.createElement(Form.Item,{name:"position",label:"Position",rules:[{required:F}]},React.createElement(Input,{placeholder:"Enter Position"})),React.createElement(Form.Item,{name:"is_current",valuePropName:"checked"},React.createElement(Checkbox,null,"I am currently working here")),React.createElement(Flex,{gap:16},React.createElement(Form.Item,{name:"from",label:"Start Date",rules:[{required:F}]},React.createElement(DatePicker,{format:"YYYY-MM-DD"})),React.createElement(Form.Item,{name:"to",label:"End Date",rules:[{required:F&&!((me=C.formData)!=null&&me.is_current)}]},React.createElement(DatePicker,{format:"YYYY-MM-DD",disabled:(fe=C.formData)==null?void 0:fe.is_current}))),React.createElement(Form.Item,{name:"location",label:"Location"},React.createElement(Input,null)),React.createElement(Form.Item,{name:"short_description",label:"Key Points"},React.createElement(RichTextEditor,{form:J,fieldName:"short_description",placeholder:"Enter Key Points",onValuesChange:ee})))):React.createElement(Card,{key:C.id},React.createElement(Flex,{justify:"space-between",align:"center"},React.createElement(Flex,{vertical:!0,gap:4},React.createElement(Text$3,{strong:!0},(ae=C.formData)==null?void 0:ae.company),React.createElement(Text$3,null,(oe=C.formData)!=null&&oe.position?`${(re=C.formData)==null?void 0:re.position}, `:"---",React.createElement(Divider,{type:"vertical"}),(ie=C.formData)!=null&&ie.from?`${(se=C.formData)==null?void 0:se.from.format("YYYY")}`:"---","-",(de=C.formData)!=null&&de.to?`${(ce=C.formData)==null?void 0:ce.to.format("YYYY")}`:(le=C.formData)!=null&&le.is_current?"Present":"---")),React.createElement(RefIcon$y,{onClick:te})))},FORM_ID$1="workExperienceForm",initialFormData$1={workExperienceItems:[{id:1,completed:!1,expanded:!0,formData:{company:"",position:"",from:"",to:"",short_description:"",location:"",is_current:!1}}]},WorkExperienceForm=({onComplete:C,required:$=!1})=>{const F=reactRedux.useDispatch(),V=reactRedux.useSelector(re=>re.scalantResumeBuilder.resumeBuilder.resumeData),K=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.forms[FORM_ID$1]),J=reactRedux.useSelector(re=>re.scalantResumeBuilder.formStore.initializedForms[FORM_ID$1]),[ee]=useUpdateResumeDetailsMutation(),te=React.useMemo(()=>V!=null&&V.experience?{workExperienceItems:V.experience.map((re,ie)=>({id:ie,completed:!0,expanded:!1,formData:{company:re.company,position:re.position,from:re.from?dayjs(re.from):null,to:re.to?dayjs(re.to):null,location:re.location,short_description:re.short_description,is_current:re.is_current}}))}:initialFormData$1,[V==null?void 0:V.experience]);React.useEffect(()=>{J||F(initializeForm({formId:FORM_ID$1,initialData:te}))},[F,J,te]);const ne=()=>{const re=(K==null?void 0:K.workExperienceItems)||[],ie=re.length+1;F(updateFormData({formId:FORM_ID$1,data:{workExperienceItems:[...re.map(se=>fr(lr({},se),{expanded:!1})),{id:ie,completed:!1,expanded:!0,formData:{company:"",position:"",from:"",to:"",short_description:"",location:"",is_current:!1}}]}}))},ae=re=>re.map(ie=>({id:ie.id,user_id:V==null?void 0:V.user_id,company:ie.formData.company,position:ie.formData.position,from:ie.formData.from,to:ie.formData.to,short_description:ie.formData.short_description,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),is_current:ie.formData.is_current,creator:"candidate",experience_type:null,projects:null,location:ie.formData.location,freetext_position:null,base_ctc:0,variable_ctc:0,ctc_currency:0,team_size:null,data_source:"careers_hub",status:"active",show_user_work_experience_location:!1,industry:[]})),oe=()=>pr(null,null,function*(){var de;const re=(K==null?void 0:K.workExperienceItems)||[];if(re.some(ce=>!ce.completed)){staticMethods.error("Please fill all work experience items before marking as complete");return}const se=ae(re);try{const ce={form_stage:"work_experience_details_form",isPopulated:!0,upgrade:!1,previous_experiences:se};C==null||C(),yield ee({resumeId:(de=V==null?void 0:V.resume_details)==null?void 0:de.id,payload:ce}).unwrap(),staticMethods.success("Work experience details updated successfully")}catch(ce){staticMethods.error(`Failed to update work experience details: ${ce}`)}});return React.createElement(Flex,{vertical:!0,gap:16},React.createElement(Space,{direction:"vertical",style:{width:"100%"}},React.createElement(Flex,{vertical:!0,gap:16},((K==null?void 0:K.workExperienceItems)||[]).map(re=>React.createElement(WorkExperienceFormItem,{key:re.id,item:re,formId:FORM_ID$1,required:$}))),React.createElement(Button$1,{type:"dashed",block:!0,icon:React.createElement(RefIcon$s,null),onClick:ne},"Add another experience"),React.createElement(Flex,{gap:16},React.createElement(Button$1,{type:"primary",block:!0,onClick:oe},"Save and Compile"),React.createElement(Button$1,{type:"default",onClick:oe,block:!0},"Save and Next"))))},container$4="_container_10god_1",title$1="_title_10god_7",button="_button_10god_11",bold="_bold_10god_23",styles$6={container:container$4,title:title$1,button,bold},{Text:Text$2}=Typography,AiSuggestionBanner=()=>React.createElement(Flex,{justify:"space-between",align:"center",className:styles$6.container},React.createElement(Text$2,{className:styles$6.title},React.createElement("span",{className:styles$6.bold},"Let AI do the heavy lifting")," — easily turn your work into powerful resume points!"),React.createElement(Button$1,{className:styles$6.button},"Write with",React.createElement("span",{className:styles$6.bold},"AI"))),CustomFormItem=({item:C,formId:$})=>{const F=reactRedux.useDispatch(),V=reactRedux.useSelector(ee=>ee.scalantResumeBuilder.formStore.forms[$]),[K]=Form.useForm(),J=(ee,te)=>{const ne=(V==null?void 0:V.achievementsItems)||[C],ae=ne.findIndex(re=>re.id===C.id);let oe;ae===-1?oe=[...ne,fr(lr({},C),{formData:te,saved:!0})]:oe=ne.map(re=>re.id===C.id?fr(lr({},re),{formData:te,saved:!0}):re),F(updateFormData({formId:$,data:{achievementsItems:oe}}))};return React.createElement(Form,{key:C.id,form:K,layout:"vertical",onValuesChange:J,initialValues:C.formData},React.createElement(Form.Item,{name:"description",label:""},React.createElement(RichTextEditor,{form:K,fieldName:"description",placeholder:"Enter your achievements description",onValuesChange:J})))},FORM_ID="achievementsForm",initialFormData={achievementsItems:[{id:null,completed:!1,saved:!1,formData:{description:""}}]},CustomForm=({onComplete:C})=>{var ne;const $=reactRedux.useDispatch(),F=reactRedux.useSelector(ae=>ae.scalantResumeBuilder.resumeBuilder.resumeData),V=reactRedux.useSelector(ae=>ae.scalantResumeBuilder.formStore.forms[FORM_ID]),K=reactRedux.useSelector(ae=>ae.scalantResumeBuilder.formStore.initializedForms[FORM_ID]),[J]=useUpdateResumeDetailsMutation(),ee=React.useMemo(()=>F!=null&&F.achievements?{achievementsItems:F.achievements.map(ae=>({id:ae.id,completed:!0,saved:!0,formData:{description:ae.description}}))}:initialFormData,[F==null?void 0:F.achievements]);React.useEffect(()=>{K||$(initializeForm({formId:FORM_ID,initialData:ee}))},[$,K,ee]);const te=()=>pr(null,null,function*(){var ie;const ae=(V==null?void 0:V.achievementsItems)||[];if(ae.some(se=>!se.saved)){staticMethods.error("Please save all custom form items before marking as complete");return}console.log(ae);const re=ae.map(se=>({id:se.id,description:se.formData.description}));try{const se={form_stage:"achievement_details_form",isPopulated:!0,achievements:re};C==null||C(),yield J({resumeId:(ie=F==null?void 0:F.resume_details)==null?void 0:ie.id,payload:se}).unwrap(),staticMethods.success("Achievements updated successfully")}catch(se){staticMethods.error(`Failed to update achievements: ${se.message}`)}});return React.createElement(Flex,{vertical:!0,gap:16},React.createElement(Space,{direction:"vertical",style:{width:"100%"}},React.createElement(Flex,{vertical:!0,gap:16},((ne=V==null?void 0:V.achievementsItems)!=null&&ne.length?V.achievementsItems:[{id:null,completed:!1,saved:!1,formData:{description:""}}]).map(ae=>React.createElement(CustomFormItem,{key:ae.id,item:ae,formId:FORM_ID}))),React.createElement(Flex,{gap:16},React.createElement(Button$1,{type:"primary",block:!0,onClick:te},"Save and Compile"),React.createElement(Button$1,{type:"default",onClick:te,block:!0},"Save and Next"))),React.createElement(AiSuggestionBanner,null))},ALL_FORMS_KEYS={personal_details:"personalDetails",projects:"projects",experience:"experience",education:"education",skills:"skills",achievements:"achievements"},FORM_STEPS=[{key:"personalDetails",title:"Personal Info and Socials",subtitle:"Lets get to know you! Fill in your personal details",icon:RefIcon,component:PersonalInfoAndSocial},{key:"skills",title:"Skills and Toolset",subtitle:"Select from these industry-standard skills and tools",icon:RefIcon$1,component:SkillsAndToolkit},{key:"projects",title:"Projects",subtitle:"Add personal projects",icon:RefIcon$n,component:ProjectForm},{key:"education",title:"Education",subtitle:"Add academic background and certifications",icon:RefIcon$i,component:EducationForm},{key:"experience",title:"Work Experience",subtitle:"Add details about jobs and internships",icon:RefIcon$2,component:WorkExperienceForm},{key:"achievements",title:"Achievements",subtitle:"Add your achievements",icon:RefIcon$6,component:CustomForm}],STEP_ORDERS={ACADEMY_FRESHER:{order:["personalDetails","skills","projects","education","experience","achievements"],requiredForms:["personalDetails","skills","projects","education"]},ACADEMY_QA_AND_SALESFORCE:{order:["personalDetails","skills","projects","experience","education","achievements"],requiredForms:["personalDetails","skills","projects","experience","education"]},ACADEMY_EXCEPT_ENGINEERING:{order:["personalDetails","skills","experience","projects","education","achievements"],requiredForms:["personalDetails","skills","experience","education"]},ACADEMY_ENGINEERING:{order:["personalDetails","skills","experience","projects","education","achievements"],requiredForms:["personalDetails","skills","experience","education"]},DSML_FRESHER:{order:["personalDetails","skills","projects","experience","education","achievements"],requiredForms:["personalDetails","skills","projects","education"]},DSML_NON_DEV_IT_PROFESSIONAL:{order:["personalDetails","skills","projects","experience","education","achievements"],requiredForms:["personalDetails","skills","projects","experience","education"]},DSML_DEVELOPER:{order:["personalDetails","skills","projects","experience","education","achievements"],requiredForms:["personalDetails","skills","projects","experience","education"]}},getFormOrderDetails=(C,$)=>C==="academy"&&["Fresher","Non- Tech"].includes($)?STEP_ORDERS.ACADEMY_FRESHER:C==="academy"&&["Quality Assurance / SDE in Testing","Salesforce / Servicenow / RPA"].includes($)?STEP_ORDERS.ACADEMY_QA_AND_SALESFORCE:C==="academy"&&["Embedded Systems Engineer","Mobile Engineer","Frontend/Full-stack","Backend / Backend Heavy Full-stack","DevOps / Network Engineer","Data Engineer"].includes($)?STEP_ORDERS.ACADEMY_EXCEPT_ENGINEERING:C==="academy"&&$==="Engineering Leadership"?STEP_ORDERS.ACADEMY_ENGINEERING:C==="dsml"&&["Fresher","Non- Tech"].includes($)?STEP_ORDERS.DSML_FRESHER:C==="dsml"&&$==="Non-Developer & IT Professional"?STEP_ORDERS.DSML_NON_DEV_IT_PROFESSIONAL:C==="dsml"&&$==="Developer"?STEP_ORDERS.DSML_DEVELOPER:C==="dsml"&&["Data Analyst / Business Analyst","Data Scientist / Machine Learning Engineer"].includes($)?STEP_ORDERS.DSML_DATA_ANALYST_ML_ENGINEER:STEP_ORDERS.DSML_FRESHER,getRequiredFields=C=>{switch(C){case"personal_details":return PERSONAL_DETAILS_FORM_REQUIRED_FIELDS;case"projects":return PROJECT_FORM_REQUIRED_FIELDS;case"experience":return WORK_EXPERIENCE_FORM_REQUIRED_FIELDS;case"education":return EDUCATION_FORM_REQUIRED_FIELDS;default:return[]}},getAllIncompleteForms=C=>{const $=[];return Object.keys(ALL_FORMS_KEYS).forEach(F=>{const V=ALL_FORMS_KEYS[F],K=C[F];if(!K){$.push(V);return}const J=getRequiredFields(F);if(Array.isArray(K)){if(K.length===0){$.push(V);return}K.some(te=>J.some(ne=>{const ae=te[ne];return!Object.prototype.hasOwnProperty.call(te,ne)||ae===null||ae===void 0||ae===""||Array.isArray(ae)&&ae.length===0||typeof ae=="object"&&Object.keys(ae).length===0}))&&$.push(V)}else J.filter(te=>{const ne=K[te];return!Object.prototype.hasOwnProperty.call(K,te)||ne===null||ne===void 0||ne===""||Array.isArray(ne)&&ne.length===0||typeof ne=="object"&&Object.keys(ne).length===0}).length>0&&$.push(V)}),$},getFormSteps=(C,$,F,V)=>{if(!C)return[];const{currentJobRole:K}=C,J=getFormOrderDetails(V,K),ee=J.order,te=J.requiredForms;return ee.map(ae=>{const oe=FORM_STEPS.find(ie=>ie.key===ae);if(!oe)return null;let re=!1;return te.includes(ae)&&(re=!0),fr(lr({},oe),{status:$.includes(ae)?"incomplete":"complete",required:re,component:React.createElement(oe.component,{onComplete:F,required:re})})}).filter(Boolean)},initialState$1={currentIncompleteForm:"",nextIncompleteForm:"",allForms:STEPS_ORDER,incompleteForms:[]},resumeFormsSlice=toolkit.createSlice({name:"resumeForms",initialState:initialState$1,reducers:{setCurrentIncompleteForm:(C,$)=>{C.currentIncompleteForm=$.payload},setNextIncompleteForm:(C,$)=>{C.nextIncompleteForm=$.payload},setIncompleteForms:(C,$)=>{C.incompleteForms=$.payload}}}),{setCurrentIncompleteForm,setNextIncompleteForm,setIncompleteForms}=resumeFormsSlice.actions,resumeFormsReducer=resumeFormsSlice.reducer,avatar="_avatar_ger88_1",styles$5={avatar},{Title,Text:Text$1}=Typography,ResumeProfileCard=({resumePersonaData:C})=>{var te;const $=reactRedux.useDispatch(),F=reactRedux.useSelector(ne=>ne.scalantResumeBuilder.resumeBuilder.resumeData),V=(te=F==null?void 0:F.personal_details)==null?void 0:te.name,K=()=>{$(setCurrentStep(STEPS_ORDER.findIndex(ne=>ne.key===RESUME_BUILDER_STEPS.RESUME_BASIC_QUESTIONS.key)))};if(!C)return null;const{currentJobRole:J,totalWorkExperienceInTech:ee}=C;return React.createElement(Card,null,React.createElement(Flex,{justify:"space-between",align:"center"},React.createElement(Flex,{align:"center",gap:16},React.createElement(Avatar,{className:styles$5.avatar,size:"large",icon:React.createElement(RefIcon,null)}),React.createElement(Flex,{vertical:!0},React.createElement(Title,{level:5,style:{marginBottom:0}},V),React.createElement(Text$1,{type:"secondary"},J," |"," ",formatExperience(ee.yearsExperienceInTech,ee.monthsExperienceInTech)," ","of Work experience"))),React.createElement(Button$1,{onClick:K},"Edit Profile")))},ResumeTimeline=()=>{const C=reactRedux.useDispatch(),$=reactRedux.useSelector(ce=>ce.scalantResumeBuilder.resumeBuilder.program),[F,V]=React.useState(null),[K,J]=React.useState([]),ee=reactRedux.useSelector(ce=>ce.scalantResumeBuilder.resumeBuilder.resumeData),te=reactRedux.useSelector(ce=>ce.scalantResumeBuilder.resumeForms.incompleteForms),ne=reactRedux.useSelector(ce=>ce.scalantResumeBuilder.resumeForms.currentIncompleteForm),ae=React.useRef([]),[oe,re]=React.useState(!1),ie=reactRedux.useSelector(ce=>ce.scalantResumeBuilder.formStore.forms.basicQuestions);useBasicQuestionsForm(ee==null?void 0:ee.personal_details),React.useEffect(()=>{if(ee){J([]);const ce=getAllIncompleteForms(ee);reactRedux.batch(()=>{C(setIncompleteForms(ce)),ce.length>0?(C(setCurrentIncompleteForm(ce[0])),V(ce[0])):V(null)})}},[ee,C]),React.useEffect(()=>{re(!0)},[]),React.useEffect(()=>{oe&&F!==null&&ae.current[F]&&ae.current[F].scrollIntoView({behavior:"smooth",block:"start"})},[F,oe]);const se=ce=>{V(le=>le===ce?null:ce)},de=React.useCallback(()=>{let ce=[...te];if(F===ne&&(ce=ce.filter(le=>le!==ne),C(setIncompleteForms(ce))),ce.length>0){const le=ce[0];C(setCurrentIncompleteForm(le)),V(le)}else V(null)},[te,ne,C,F]);return React.useEffect(()=>{if(ie&&te.length>0){const ce=getFormSteps(ie,te,de,$);J(ce)}},[ie,te,de,$]),React.createElement("div",{className:styles$b.container},K&&K.length>0?React.createElement(Timeline,{mode:"left",items:[{dot:React.createElement(RefIcon$h,{className:styles$b.completeIcon}),children:React.createElement("div",null,React.createElement(ResumeProfileCard,{resumePersonaData:ie}))},...K.map(ce=>{let le;return ce.key===F?le=React.createElement(RefIcon$B,{className:styles$b.activeIcon}):ce.status==="complete"?le=React.createElement(RefIcon$h,{className:styles$b.completeIcon}):le=React.createElement(RefIcon$p,{className:styles$b.incompleteIcon}),{dot:le,children:React.createElement("div",{ref:me=>ae.current[ce.key]=me},React.createElement(ResumeStepCard,{key:ce.key,title:ce.title,subtitle:ce.subtitle,icon:ce.icon,status:ce.status,isActive:ce.key===F,expanded:ce.key===F,onClick:()=>se(ce.key),required:ce.required},ce.component))}})]}):React.createElement(Spin,null))},DEFAULT_FONT_SIZE="medium",FontSizeDropdown=({onFontSizeChange:C})=>{var ne;const $=reactRedux.useSelector(ae=>ae.scalantResumeBuilder.resumeBuilder.resumeData),F=(ne=$==null?void 0:$.resume_meta)==null?void 0:ne.font_size,[V,K]=React.useState(F||DEFAULT_FONT_SIZE),[J]=useUpdateResumePreferencesMutation(),ee=oe=>pr(null,[oe],function*({key:ae}){var re;K(ae),yield J({resume_id:(re=$==null?void 0:$.resume_details)==null?void 0:re.id,payload:{scaler_resume_template_font_choice:ae}}),C==null||C(ae)}),te=React.createElement(Menu,{onClick:ee,selectedKeys:[V]},React.createElement(Menu.Item,{key:"small"},"Small"),React.createElement(Menu.Item,{key:"medium"},"Medium"),React.createElement(Menu.Item,{key:"large"},"Large"));return React.createElement(Dropdown,{overlay:te,trigger:["click"]},React.createElement(FloatButton,{icon:React.createElement(RefIcon$7,null),tooltip:`Font Size: ${V.charAt(0).toUpperCase()+V.slice(1)}`}))},container$3="_container_tc6c5_1",floatButtonGroup="_floatButtonGroup_tc6c5_5",disabledButton="_disabledButton_tc6c5_10",dropdown="_dropdown_tc6c5_15",dropdownIcon="_dropdownIcon_tc6c5_22",styles$4={container:container$3,floatButtonGroup,disabledButton,dropdown,dropdownIcon},MAX_RESUMES=5,ResumeDropdown=({onAddResumeClick:C,onManageResumesClick:$,onResumeClick:F,selectedResumeId:V,resumeList:K})=>{var te;const J=K.length>=MAX_RESUMES,ee=[...K.map(ne=>({key:ne.id,label:ne.name,onClick:()=>F(ne.id)})),{type:"divider"},{key:"manage",label:"Manage Resumes",onClick:$},{key:"add",label:J?React.createElement(Tooltip,{title:"Maximum limit of 3 resumes reached"},React.createElement("span",null,"Add New Resume")):"Add New Resume",onClick:C,disabled:J}];return React.createElement(Dropdown,{menu:{items:ee,selectedKeys:[V==null?void 0:V.toString()]}},React.createElement("div",{className:styles$4.dropdown},(te=K.find(ne=>ne.id===V))==null?void 0:te.name,React.createElement(RefIcon$y,{className:styles$4.dropdownIcon})))};function commonjsRequire(C){throw new Error('Could not dynamically require "'+C+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf$1={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);var pdf=pdf$1.exports,hasRequiredPdf;function requirePdf(){return hasRequiredPdf||(hasRequiredPdf=1,function(module,exports){(function($,F){module.exports=F()})(pdf,function(){return(()=>{var __webpack_modules__=[,(C,$,F)=>{function V(ze){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?V=function(De){return typeof De}:V=function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},V(ze)}Object.defineProperty($,"__esModule",{value:!0}),$.StatTimer=$.RenderingCancelledException=$.PixelsPerInch=$.PageViewport=$.PDFDateString=$.LinkTarget=$.DOMStandardFontDataFactory=$.DOMSVGFactory=$.DOMCanvasFactory=$.DOMCMapReaderFactory=void 0,$.addLinkAttributes=Ne,$.deprecated=qe,$.getFilenameFromUrl=we,$.getPdfFilenameFromUrl=Te,$.getXfaPageViewport=He,$.isDataScheme=Oe,$.isPdfFile=Ee,$.isValidFetchUrl=je,$.loadScript=Me;var K=te(F(2)),J=F(4),ee=F(135);function te(ze){return ze&&ze.__esModule?ze:{default:ze}}function ne(ze,$e){var De=typeof Symbol!="undefined"&&ze[Symbol.iterator]||ze["@@iterator"];if(!De){if(Array.isArray(ze)||(De=ae(ze))||$e){De&&(ze=De);var Be=0,We=function(){};return{s:We,n:function(){return Be>=ze.length?{done:!0}:{done:!1,value:ze[Be++]}},e:function(et){throw et},f:We}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
468
468
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ge=!0,Xe=!1,Ye;return{s:function(){De=De.call(ze)},n:function(){var et=De.next();return Ge=et.done,et},e:function(et){Xe=!0,Ye=et},f:function(){try{!Ge&&De.return!=null&&De.return()}finally{if(Xe)throw Ye}}}}function ae(ze,$e){if(ze){if(typeof ze=="string")return oe(ze,$e);var De=Object.prototype.toString.call(ze).slice(8,-1);if(De==="Object"&&ze.constructor&&(De=ze.constructor.name),De==="Map"||De==="Set")return Array.from(ze);if(De==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(De))return oe(ze,$e)}}function oe(ze,$e){($e==null||$e>ze.length)&&($e=ze.length);for(var De=0,Be=new Array($e);De<$e;De++)Be[De]=ze[De];return Be}function re(ze,$e,De,Be,We,Ge,Xe){try{var Ye=ze[Ge](Xe),Je=Ye.value}catch(et){De(et);return}Ye.done?$e(Je):Promise.resolve(Je).then(Be,We)}function ie(ze){return function(){var $e=this,De=arguments;return new Promise(function(Be,We){var Ge=ze.apply($e,De);function Xe(Je){re(Ge,Be,We,Xe,Ye,"next",Je)}function Ye(Je){re(Ge,Be,We,Xe,Ye,"throw",Je)}Xe(void 0)})}}function se(ze,$e){if(!(ze instanceof $e))throw new TypeError("Cannot call a class as a function")}function de(ze,$e){for(var De=0;De<$e.length;De++){var Be=$e[De];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(ze,Be.key,Be)}}function ce(ze,$e,De){return $e&&de(ze.prototype,$e),De&&de(ze,De),ze}function le(ze,$e){if(typeof $e!="function"&&$e!==null)throw new TypeError("Super expression must either be null or a function");ze.prototype=Object.create($e&&$e.prototype,{constructor:{value:ze,writable:!0,configurable:!0}}),$e&&me(ze,$e)}function me(ze,$e){return me=Object.setPrototypeOf||function(Be,We){return Be.__proto__=We,Be},me(ze,$e)}function fe(ze){var $e=pe();return function(){var Be=ve(ze),We;if($e){var Ge=ve(this).constructor;We=Reflect.construct(Be,arguments,Ge)}else We=Be.apply(this,arguments);return he(this,We)}}function he(ze,$e){if($e&&(V($e)==="object"||typeof $e=="function"))return $e;if($e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ue(ze)}function ue(ze){if(ze===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ze}function pe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(ze){return!1}}function ve(ze){return ve=Object.setPrototypeOf?Object.getPrototypeOf:function(De){return De.__proto__||Object.getPrototypeOf(De)},ve(ze)}var ge="noopener noreferrer nofollow",_e="http://www.w3.org/2000/svg",be={CSS:96,PDF:72,get PDF_TO_CSS_UNITS(){return(0,J.shadow)(this,"PDF_TO_CSS_UNITS",this.CSS/this.PDF)}};$.PixelsPerInch=be;var ye=function(ze){le(De,ze);var $e=fe(De);function De(){var Be,We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ge=We.ownerDocument,Xe=Ge===void 0?globalThis.document:Ge;return se(this,De),Be=$e.call(this),Be._document=Xe,Be}return ce(De,[{key:"_createCanvas",value:function(We,Ge){var Xe=this._document.createElement("canvas");return Xe.width=We,Xe.height=Ge,Xe}}]),De}(ee.BaseCanvasFactory);$.DOMCanvasFactory=ye;function Se(ze){return Re.apply(this,arguments)}function Re(){return Re=ie(K.default.mark(function ze($e){var De,Be,We=arguments;return K.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(De=We.length>1&&We[1]!==void 0?We[1]:!1,!je($e,document.baseURI)){Xe.next=21;break}return Xe.next=4,fetch($e);case 4:if(Be=Xe.sent,Be.ok){Xe.next=7;break}throw new Error(Be.statusText);case 7:if(!De){Xe.next=15;break}return Xe.t1=Uint8Array,Xe.next=11,Be.arrayBuffer();case 11:Xe.t2=Xe.sent,Xe.t0=new Xe.t1(Xe.t2),Xe.next=20;break;case 15:return Xe.t3=J.stringToBytes,Xe.next=18,Be.text();case 18:Xe.t4=Xe.sent,Xe.t0=(0,Xe.t3)(Xe.t4);case 20:return Xe.abrupt("return",Xe.t0);case 21:return Xe.abrupt("return",new Promise(function(Ye,Je){var et=new XMLHttpRequest;et.open("GET",$e,!0),De&&(et.responseType="arraybuffer"),et.onreadystatechange=function(){if(et.readyState===XMLHttpRequest.DONE){if(et.status===200||et.status===0){var nt;if(De&&et.response?nt=new Uint8Array(et.response):!De&&et.responseText&&(nt=(0,J.stringToBytes)(et.responseText)),nt){Ye(nt);return}}Je(new Error(et.statusText))}},et.send(null)}));case 22:case"end":return Xe.stop()}},ze)})),Re.apply(this,arguments)}var Ce=function(ze){le(De,ze);var $e=fe(De);function De(){return se(this,De),$e.apply(this,arguments)}return ce(De,[{key:"_fetchData",value:function(We,Ge){return Se(We,this.isCompressed).then(function(Xe){return{cMapData:Xe,compressionType:Ge}})}}]),De}(ee.BaseCMapReaderFactory);$.DOMCMapReaderFactory=Ce;var xe=function(ze){le(De,ze);var $e=fe(De);function De(){return se(this,De),$e.apply(this,arguments)}return ce(De,[{key:"_fetchData",value:function(We){return Se(We,!0)}}]),De}(ee.BaseStandardFontDataFactory);$.DOMStandardFontDataFactory=xe;var Pe=function(ze){le(De,ze);var $e=fe(De);function De(){return se(this,De),$e.apply(this,arguments)}return ce(De,[{key:"_createSVG",value:function(We){return document.createElementNS(_e,We)}}]),De}(ee.BaseSVGFactory);$.DOMSVGFactory=Pe;var Ae=function(){function ze($e){var De=$e.viewBox,Be=$e.scale,We=$e.rotation,Ge=$e.offsetX,Xe=Ge===void 0?0:Ge,Ye=$e.offsetY,Je=Ye===void 0?0:Ye,et=$e.dontFlip,nt=et===void 0?!1:et;se(this,ze),this.viewBox=De,this.scale=Be,this.rotation=We,this.offsetX=Xe,this.offsetY=Je;var lt=(De[2]+De[0])/2,ut=(De[3]+De[1])/2,pt,ht,bt,xt;switch(We%=360,We<0&&(We+=360),We){case 180:pt=-1,ht=0,bt=0,xt=1;break;case 90:pt=0,ht=1,bt=1,xt=0;break;case 270:pt=0,ht=-1,bt=-1,xt=0;break;case 0:pt=1,ht=0,bt=0,xt=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}nt&&(bt=-bt,xt=-xt);var Ct,dt,ft,Ze;pt===0?(Ct=Math.abs(ut-De[1])*Be+Xe,dt=Math.abs(lt-De[0])*Be+Je,ft=Math.abs(De[3]-De[1])*Be,Ze=Math.abs(De[2]-De[0])*Be):(Ct=Math.abs(lt-De[0])*Be+Xe,dt=Math.abs(ut-De[1])*Be+Je,ft=Math.abs(De[2]-De[0])*Be,Ze=Math.abs(De[3]-De[1])*Be),this.transform=[pt*Be,ht*Be,bt*Be,xt*Be,Ct-pt*Be*lt-bt*Be*ut,dt-ht*Be*lt-xt*Be*ut],this.width=ft,this.height=Ze}return ce(ze,[{key:"clone",value:function(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Be=De.scale,We=Be===void 0?this.scale:Be,Ge=De.rotation,Xe=Ge===void 0?this.rotation:Ge,Ye=De.offsetX,Je=Ye===void 0?this.offsetX:Ye,et=De.offsetY,nt=et===void 0?this.offsetY:et,lt=De.dontFlip,ut=lt===void 0?!1:lt;return new ze({viewBox:this.viewBox.slice(),scale:We,rotation:Xe,offsetX:Je,offsetY:nt,dontFlip:ut})}},{key:"convertToViewportPoint",value:function(De,Be){return J.Util.applyTransform([De,Be],this.transform)}},{key:"convertToViewportRectangle",value:function(De){var Be=J.Util.applyTransform([De[0],De[1]],this.transform),We=J.Util.applyTransform([De[2],De[3]],this.transform);return[Be[0],Be[1],We[0],We[1]]}},{key:"convertToPdfPoint",value:function(De,Be){return J.Util.applyInverseTransform([De,Be],this.transform)}}]),ze}();$.PageViewport=Ae;var Le=function(ze){le(De,ze);var $e=fe(De);function De(Be,We){var Ge;return se(this,De),Ge=$e.call(this,Be,"RenderingCancelledException"),Ge.type=We,Ge}return De}(J.BaseException);$.RenderingCancelledException=Le;var ke={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};$.LinkTarget=ke;function Ne(ze){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=$e.url,Be=$e.target,We=$e.rel,Ge=$e.enabled,Xe=Ge===void 0?!0:Ge;(0,J.assert)(De&&typeof De=="string",'addLinkAttributes: A valid "url" parameter must provided.');var Ye=(0,J.removeNullCharacters)(De);Xe?ze.href=ze.title=Ye:(ze.href="",ze.title="Disabled: ".concat(Ye),ze.onclick=function(){return!1});var Je="";switch(Be){case ke.NONE:break;case ke.SELF:Je="_self";break;case ke.BLANK:Je="_blank";break;case ke.PARENT:Je="_parent";break;case ke.TOP:Je="_top";break}ze.target=Je,ze.rel=typeof We=="string"?We:ge}function Oe(ze){for(var $e=ze.length,De=0;De<$e&&ze[De].trim()==="";)De++;return ze.substring(De,De+5).toLowerCase()==="data:"}function Ee(ze){return typeof ze=="string"&&/\.pdf$/i.test(ze)}function we(ze){var $e=ze.indexOf("#"),De=ze.indexOf("?"),Be=Math.min($e>0?$e:ze.length,De>0?De:ze.length);return ze.substring(ze.lastIndexOf("/",Be)+1,Be)}function Te(ze){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof ze!="string")return $e;if(Oe(ze))return(0,J.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),$e;var De=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,Be=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,We=De.exec(ze),Ge=Be.exec(We[1])||Be.exec(We[2])||Be.exec(We[3]);if(Ge&&(Ge=Ge[0],Ge.includes("%")))try{Ge=Be.exec(decodeURIComponent(Ge))[0]}catch(Xe){}return Ge||$e}var Fe=function(){function ze(){se(this,ze),this.started=Object.create(null),this.times=[]}return ce(ze,[{key:"time",value:function(De){De in this.started&&(0,J.warn)("Timer is already running for ".concat(De)),this.started[De]=Date.now()}},{key:"timeEnd",value:function(De){De in this.started||(0,J.warn)("Timer has not been started for ".concat(De)),this.times.push({name:De,start:this.started[De],end:Date.now()}),delete this.started[De]}},{key:"toString",value:function(){var De=[],Be=0,We=ne(this.times),Ge;try{for(We.s();!(Ge=We.n()).done;){var Xe=Ge.value,Ye=Xe.name;Ye.length>Be&&(Be=Ye.length)}}catch(ut){We.e(ut)}finally{We.f()}var Je=ne(this.times),et;try{for(Je.s();!(et=Je.n()).done;){var nt=et.value,lt=nt.end-nt.start;De.push("".concat(nt.name.padEnd(Be)," ").concat(lt,`ms
|
|
469
469
|
`))}}catch(ut){Je.e(ut)}finally{Je.f()}return De.join("")}}]),ze}();$.StatTimer=Fe;function je(ze,$e){try{var De=$e?new URL(ze,$e):new URL(ze),Be=De.protocol;return Be==="http:"||Be==="https:"}catch(We){return!1}}function Me(ze){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return new Promise(function(De,Be){var We=document.createElement("script");We.src=ze,We.onload=function(Ge){$e&&We.remove(),De(Ge)},We.onerror=function(){Be(new Error("Cannot load script at: ".concat(We.src)))},(document.head||document.documentElement).appendChild(We)})}function qe(ze){console.log("Deprecated API usage: "+ze)}var Ue,Ke=function(){function ze(){se(this,ze)}return ce(ze,null,[{key:"toDateObject",value:function(De){if(!De||!(0,J.isString)(De))return null;Ue||(Ue=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var Be=Ue.exec(De);if(!Be)return null;var We=parseInt(Be[1],10),Ge=parseInt(Be[2],10);Ge=Ge>=1&&Ge<=12?Ge-1:0;var Xe=parseInt(Be[3],10);Xe=Xe>=1&&Xe<=31?Xe:1;var Ye=parseInt(Be[4],10);Ye=Ye>=0&&Ye<=23?Ye:0;var Je=parseInt(Be[5],10);Je=Je>=0&&Je<=59?Je:0;var et=parseInt(Be[6],10);et=et>=0&&et<=59?et:0;var nt=Be[7]||"Z",lt=parseInt(Be[8],10);lt=lt>=0&<<=23?lt:0;var ut=parseInt(Be[9],10)||0;return ut=ut>=0&&ut<=59?ut:0,nt==="-"?(Ye+=lt,Je+=ut):nt==="+"&&(Ye-=lt,Je-=ut),new Date(Date.UTC(We,Ge,Xe,Ye,Je,et))}}]),ze}();$.PDFDateString=Ke;function He(ze,$e){var De=$e.scale,Be=De===void 0?1:De,We=$e.rotation,Ge=We===void 0?0:We,Xe=ze.attributes.style,Ye=Xe.width,Je=Xe.height,et=[0,0,parseInt(Ye),parseInt(Je)];return new Ae({viewBox:et,scale:Be,rotation:Ge})}},(C,$,F)=>{C.exports=F(3)},(C,$,F)=>{C=F.nmd(C);function V(J){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?V=function(te){return typeof te}:V=function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},V(J)}var K=function(J){var ee=Object.prototype,te=ee.hasOwnProperty,ne,ae=typeof Symbol=="function"?Symbol:{},oe=ae.iterator||"@@iterator",re=ae.asyncIterator||"@@asyncIterator",ie=ae.toStringTag||"@@toStringTag";function se(Ee,we,Te){return Object.defineProperty(Ee,we,{value:Te,enumerable:!0,configurable:!0,writable:!0}),Ee[we]}try{se({},"")}catch(Ee){se=function(Te,Fe,je){return Te[Fe]=je}}function de(Ee,we,Te,Fe){var je=we&&we.prototype instanceof pe?we:pe,Me=Object.create(je.prototype),qe=new ke(Fe||[]);return Me._invoke=xe(Ee,Te,qe),Me}J.wrap=de;function ce(Ee,we,Te){try{return{type:"normal",arg:Ee.call(we,Te)}}catch(Fe){return{type:"throw",arg:Fe}}}var le="suspendedStart",me="suspendedYield",fe="executing",he="completed",ue={};function pe(){}function ve(){}function ge(){}var _e={};se(_e,oe,function(){return this});var be=Object.getPrototypeOf,ye=be&&be(be(Ne([])));ye&&ye!==ee&&te.call(ye,oe)&&(_e=ye);var Se=ge.prototype=pe.prototype=Object.create(_e);ve.prototype=ge,se(Se,"constructor",ge),se(ge,"constructor",ve),ve.displayName=se(ge,ie,"GeneratorFunction");function Re(Ee){["next","throw","return"].forEach(function(we){se(Ee,we,function(Te){return this._invoke(we,Te)})})}J.isGeneratorFunction=function(Ee){var we=typeof Ee=="function"&&Ee.constructor;return we?we===ve||(we.displayName||we.name)==="GeneratorFunction":!1},J.mark=function(Ee){return Object.setPrototypeOf?Object.setPrototypeOf(Ee,ge):(Ee.__proto__=ge,se(Ee,ie,"GeneratorFunction")),Ee.prototype=Object.create(Se),Ee},J.awrap=function(Ee){return{__await:Ee}};function Ce(Ee,we){function Te(Me,qe,Ue,Ke){var He=ce(Ee[Me],Ee,qe);if(He.type==="throw")Ke(He.arg);else{var ze=He.arg,$e=ze.value;return $e&&V($e)==="object"&&te.call($e,"__await")?we.resolve($e.__await).then(function(De){Te("next",De,Ue,Ke)},function(De){Te("throw",De,Ue,Ke)}):we.resolve($e).then(function(De){ze.value=De,Ue(ze)},function(De){return Te("throw",De,Ue,Ke)})}}var Fe;function je(Me,qe){function Ue(){return new we(function(Ke,He){Te(Me,qe,Ke,He)})}return Fe=Fe?Fe.then(Ue,Ue):Ue()}this._invoke=je}Re(Ce.prototype),se(Ce.prototype,re,function(){return this}),J.AsyncIterator=Ce,J.async=function(Ee,we,Te,Fe,je){je===void 0&&(je=Promise);var Me=new Ce(de(Ee,we,Te,Fe),je);return J.isGeneratorFunction(we)?Me:Me.next().then(function(qe){return qe.done?qe.value:Me.next()})};function xe(Ee,we,Te){var Fe=le;return function(Me,qe){if(Fe===fe)throw new Error("Generator is already running");if(Fe===he){if(Me==="throw")throw qe;return Oe()}for(Te.method=Me,Te.arg=qe;;){var Ue=Te.delegate;if(Ue){var Ke=Pe(Ue,Te);if(Ke){if(Ke===ue)continue;return Ke}}if(Te.method==="next")Te.sent=Te._sent=Te.arg;else if(Te.method==="throw"){if(Fe===le)throw Fe=he,Te.arg;Te.dispatchException(Te.arg)}else Te.method==="return"&&Te.abrupt("return",Te.arg);Fe=fe;var He=ce(Ee,we,Te);if(He.type==="normal"){if(Fe=Te.done?he:me,He.arg===ue)continue;return{value:He.arg,done:Te.done}}else He.type==="throw"&&(Fe=he,Te.method="throw",Te.arg=He.arg)}}}function Pe(Ee,we){var Te=Ee.iterator[we.method];if(Te===ne){if(we.delegate=null,we.method==="throw"){if(Ee.iterator.return&&(we.method="return",we.arg=ne,Pe(Ee,we),we.method==="throw"))return ue;we.method="throw",we.arg=new TypeError("The iterator does not provide a 'throw' method")}return ue}var Fe=ce(Te,Ee.iterator,we.arg);if(Fe.type==="throw")return we.method="throw",we.arg=Fe.arg,we.delegate=null,ue;var je=Fe.arg;if(!je)return we.method="throw",we.arg=new TypeError("iterator result is not an object"),we.delegate=null,ue;if(je.done)we[Ee.resultName]=je.value,we.next=Ee.nextLoc,we.method!=="return"&&(we.method="next",we.arg=ne);else return je;return we.delegate=null,ue}Re(Se),se(Se,ie,"Generator"),se(Se,oe,function(){return this}),se(Se,"toString",function(){return"[object Generator]"});function Ae(Ee){var we={tryLoc:Ee[0]};1 in Ee&&(we.catchLoc=Ee[1]),2 in Ee&&(we.finallyLoc=Ee[2],we.afterLoc=Ee[3]),this.tryEntries.push(we)}function Le(Ee){var we=Ee.completion||{};we.type="normal",delete we.arg,Ee.completion=we}function ke(Ee){this.tryEntries=[{tryLoc:"root"}],Ee.forEach(Ae,this),this.reset(!0)}J.keys=function(Ee){var we=[];for(var Te in Ee)we.push(Te);return we.reverse(),function Fe(){for(;we.length;){var je=we.pop();if(je in Ee)return Fe.value=je,Fe.done=!1,Fe}return Fe.done=!0,Fe}};function Ne(Ee){if(Ee){var we=Ee[oe];if(we)return we.call(Ee);if(typeof Ee.next=="function")return Ee;if(!isNaN(Ee.length)){var Te=-1,Fe=function je(){for(;++Te<Ee.length;)if(te.call(Ee,Te))return je.value=Ee[Te],je.done=!1,je;return je.value=ne,je.done=!0,je};return Fe.next=Fe}}return{next:Oe}}J.values=Ne;function Oe(){return{value:ne,done:!0}}return ke.prototype={constructor:ke,reset:function(we){if(this.prev=0,this.next=0,this.sent=this._sent=ne,this.done=!1,this.delegate=null,this.method="next",this.arg=ne,this.tryEntries.forEach(Le),!we)for(var Te in this)Te.charAt(0)==="t"&&te.call(this,Te)&&!isNaN(+Te.slice(1))&&(this[Te]=ne)},stop:function(){this.done=!0;var we=this.tryEntries[0],Te=we.completion;if(Te.type==="throw")throw Te.arg;return this.rval},dispatchException:function(we){if(this.done)throw we;var Te=this;function Fe(He,ze){return qe.type="throw",qe.arg=we,Te.next=He,ze&&(Te.method="next",Te.arg=ne),!!ze}for(var je=this.tryEntries.length-1;je>=0;--je){var Me=this.tryEntries[je],qe=Me.completion;if(Me.tryLoc==="root")return Fe("end");if(Me.tryLoc<=this.prev){var Ue=te.call(Me,"catchLoc"),Ke=te.call(Me,"finallyLoc");if(Ue&&Ke){if(this.prev<Me.catchLoc)return Fe(Me.catchLoc,!0);if(this.prev<Me.finallyLoc)return Fe(Me.finallyLoc)}else if(Ue){if(this.prev<Me.catchLoc)return Fe(Me.catchLoc,!0)}else if(Ke){if(this.prev<Me.finallyLoc)return Fe(Me.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(we,Te){for(var Fe=this.tryEntries.length-1;Fe>=0;--Fe){var je=this.tryEntries[Fe];if(je.tryLoc<=this.prev&&te.call(je,"finallyLoc")&&this.prev<je.finallyLoc){var Me=je;break}}Me&&(we==="break"||we==="continue")&&Me.tryLoc<=Te&&Te<=Me.finallyLoc&&(Me=null);var qe=Me?Me.completion:{};return qe.type=we,qe.arg=Te,Me?(this.method="next",this.next=Me.finallyLoc,ue):this.complete(qe)},complete:function(we,Te){if(we.type==="throw")throw we.arg;return we.type==="break"||we.type==="continue"?this.next=we.arg:we.type==="return"?(this.rval=this.arg=we.arg,this.method="return",this.next="end"):we.type==="normal"&&Te&&(this.next=Te),ue},finish:function(we){for(var Te=this.tryEntries.length-1;Te>=0;--Te){var Fe=this.tryEntries[Te];if(Fe.finallyLoc===we)return this.complete(Fe.completion,Fe.afterLoc),Le(Fe),ue}},catch:function(we){for(var Te=this.tryEntries.length-1;Te>=0;--Te){var Fe=this.tryEntries[Te];if(Fe.tryLoc===we){var je=Fe.completion;if(je.type==="throw"){var Me=je.arg;Le(Fe)}return Me}}throw new Error("illegal catch attempt")},delegateYield:function(we,Te,Fe){return this.delegate={iterator:Ne(we),resultName:Te,nextLoc:Fe},this.method==="next"&&(this.arg=ne),ue}},J}(V(C)==="object"?C.exports:{});try{regeneratorRuntime=K}catch(J){(typeof globalThis=="undefined"?"undefined":V(globalThis))==="object"?globalThis.regeneratorRuntime=K:Function("r","regeneratorRuntime = r")(K)}},(C,$,F)=>{Object.defineProperty($,"__esModule",{value:!0}),$.VerbosityLevel=$.Util=$.UnknownErrorException=$.UnexpectedResponseException=$.UNSUPPORTED_FEATURES=$.TextRenderingMode=$.StreamType=$.RenderingIntentFlag=$.PermissionFlag=$.PasswordResponses=$.PasswordException=$.PageActionEventType=$.OPS=$.MissingPDFException=$.IsLittleEndianCached=$.IsEvalSupportedCached=$.InvalidPDFException=$.ImageKind=$.IDENTITY_MATRIX=$.FormatError=$.FontType=$.FONT_IDENTITY_MATRIX=$.DocumentActionEventType=$.CMapCompressionType=$.BaseException=$.AnnotationType=$.AnnotationStateModelType=$.AnnotationReviewState=$.AnnotationReplyType=$.AnnotationMode=$.AnnotationMarkedState=$.AnnotationFlag=$.AnnotationFieldFlag=$.AnnotationBorderStyleType=$.AnnotationActionEventType=$.AbortException=void 0,$.arrayByteLength=ct,$.arraysToBytes=_t,$.assert=et,$.bytesToString=Qe,$.createObjectURL=On,$.createPromiseCapability=gn,$.createValidAbsoluteUrl=ut,$.escapeString=Wt,$.getModificationDate=Rn,$.getVerbosityLevel=Ge,$.info=Xe,$.isArrayBuffer=vn,$.isArrayEqual=Tn,$.isAscii=zt,$.isBool=Ut,$.isNum=Jt,$.isSameOrigin=nt,$.isString=xn,$.objectFromMap=Tt,$.objectSize=Mt,$.removeNullCharacters=ot,$.setVerbosityLevel=We,$.shadow=pt,$.string32=Ot,$.stringToBytes=st,$.stringToPDFString=Ht,$.stringToUTF16BEString=Bt,$.stringToUTF8String=Kt,$.unreachable=Je,$.utf8StringToString=qt,$.warn=Ye,F(5);function V(vt,$t){for(var mt=0;mt<$t.length;mt++){var St=$t[mt];St.enumerable=St.enumerable||!1,St.configurable=!0,"value"in St&&(St.writable=!0),Object.defineProperty(vt,St.key,St)}}function K(vt,$t,mt){return mt&&V(vt,mt),vt}function J(vt){return ne(vt)||te(vt)||de(vt)||ee()}function ee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
470
470
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(vt){if(typeof Symbol!="undefined"&&vt[Symbol.iterator]!=null||vt["@@iterator"]!=null)return Array.from(vt)}function ne(vt){if(Array.isArray(vt))return ce(vt)}function ae(vt,$t){return ie(vt)||re(vt,$t)||de(vt,$t)||oe()}function oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalant/resume-builder",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"build": "vite build",
|
|
26
26
|
"storybook": "start-storybook -p 6006"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "9e0fb3ed7f81f0321a8d5b512dd7ff17059e94c3"
|
|
29
29
|
}
|