1/******/ (function() { // webpackBootstrap 2/******/ var __webpack_modules__ = ({ 3
vendor: 206,076 bytes, lines 4-5002
4/***/ "./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js": 5/*!***************************************************************************!*\ 6 !*** ./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js ***! 7 \***************************************************************************/ 8/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 9 10"use strict"; 11__webpack_require__.r(__webpack_exports__); 12/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13/* harmony export */ "BASE_TRANSITION": function() { return /* binding */ BASE_TRANSITION; }, 14/* harmony export */ "CAMELIZE": function() { return /* binding */ CAMELIZE; }, 15/* harmony export */ "CAPITALIZE": function() { return /* binding */ CAPITALIZE; }, 16/* harmony export */ "CREATE_BLOCK": function() { return /* binding */ CREATE_BLOCK; }, 17/* harmony export */ "CREATE_COMMENT": function() { return /* binding */ CREATE_COMMENT; }, 18/* harmony export */ "CREATE_ELEMENT_BLOCK": function() { return /* binding */ CREATE_ELEMENT_BLOCK; }, 19/* harmony export */ "CREATE_ELEMENT_VNODE": function() { return /* binding */ CREATE_ELEMENT_VNODE; }, 20/* harmony export */ "CREATE_SLOTS": function() { return /* binding */ CREATE_SLOTS; }, 21/* harmony export */ "CREATE_STATIC": function() { return /* binding */ CREATE_STATIC; }, 22/* harmony export */ "CREATE_TEXT": function() { return /* binding */ CREATE_TEXT; }, 23/* harmony export */ "CREATE_VNODE": function() { return /* binding */ CREATE_VNODE; }, 24/* harmony export */ "FRAGMENT": function() { return /* binding */ FRAGMENT; }, 25/* harmony export */ "GUARD_REACTIVE_PROPS": function() { return /* binding */ GUARD_REACTIVE_PROPS; }, 26/* harmony export */ "IS_MEMO_SAME": function() { return /* binding */ IS_MEMO_SAME; }, 27/* harmony export */ "IS_REF": function() { return /* binding */ IS_REF; }, 28/* harmony export */ "KEEP_ALIVE": function() { return /* binding */ KEEP_ALIVE; }, 29/* harmony export */ "MERGE_PROPS": function() { return /* binding */ MERGE_PROPS; }, 30/* harmony export */ "NORMALIZE_CLASS": function() { return /* binding */ NORMALIZE_CLASS; }, 31/* harmony export */ "NORMALIZE_PROPS": function() { return /* binding */ NORMALIZE_PROPS; }, 32/* harmony export */ "NORMALIZE_STYLE": function() { return /* binding */ NORMALIZE_STYLE; }, 33/* harmony export */ "OPEN_BLOCK": function() { return /* binding */ OPEN_BLOCK; }, 34/* harmony export */ "POP_SCOPE_ID": function() { return /* binding */ POP_SCOPE_ID; }, 35/* harmony export */ "PUSH_SCOPE_ID": function() { return /* binding */ PUSH_SCOPE_ID; }, 36/* harmony export */ "RENDER_LIST": function() { return /* binding */ RENDER_LIST; }, 37/* harmony export */ "RENDER_SLOT": function() { return /* binding */ RENDER_SLOT; }, 38/* harmony export */ "RESOLVE_COMPONENT": function() { return /* binding */ RESOLVE_COMPONENT; }, 39/* harmony export */ "RESOLVE_DIRECTIVE": function() { return /* binding */ RESOLVE_DIRECTIVE; }, 40/* harmony export */ "RESOLVE_DYNAMIC_COMPONENT": function() { return /* binding */ RESOLVE_DYNAMIC_COMPONENT; }, 41/* harmony export */ "RESOLVE_FILTER": function() { return /* binding */ RESOLVE_FILTER; }, 42/* harmony export */ "SET_BLOCK_TRACKING": function() { return /* binding */ SET_BLOCK_TRACKING; }, 43/* harmony export */ "SUSPENSE": function() { return /* binding */ SUSPENSE; }, 44/* harmony export */ "TELEPORT": function() { return /* binding */ TELEPORT; }, 45/* harmony export */ "TO_DISPLAY_STRING": function() { return /* binding */ TO_DISPLAY_STRING; }, 46/* harmony export */ "TO_HANDLERS": function() { return /* binding */ TO_HANDLERS; }, 47/* harmony export */ "TO_HANDLER_KEY": function() { return /* binding */ TO_HANDLER_KEY; }, 48/* harmony export */ "UNREF": function() { return /* binding */ UNREF; }, 49/* harmony export */ "WITH_CTX": function() { return /* binding */ WITH_CTX; }, 50/* harmony export */ "WITH_DIRECTIVES": function() { return /* binding */ WITH_DIRECTIVES; }, 51/* harmony export */ "WITH_MEMO": function() { return /* binding */ WITH_MEMO; }, 52/* harmony export */ "advancePositionWithClone": function() { return /* binding */ advancePositionWithClone; }, 53/* harmony export */ "advancePositionWithMutation": function() { return /* binding */ advancePositionWithMutation; }, 54/* harmony export */ "assert": function() { return /* binding */ assert; }, 55/* harmony export */ "baseCompile": function() { return /* binding */ baseCompile; }, 56/* harmony export */ "baseParse": function() { return /* binding */ baseParse; }, 57/* harmony export */ "buildDirectiveArgs": function() { return /* binding */ buildDirectiveArgs; }, 58/* harmony export */ "buildProps": function() { return /* binding */ buildProps; }, 59/* harmony export */ "buildSlots": function() { return /* binding */ buildSlots; }, 60/* harmony export */ "checkCompatEnabled": function() { return /* binding */ checkCompatEnabled; }, 61/* harmony export */ "createArrayExpression": function() { return /* binding */ createArrayExpression; }, 62/* harmony export */ "createAssignmentExpression": function() { return /* binding */ createAssignmentExpression; }, 63/* harmony export */ "createBlockStatement": function() { return /* binding */ createBlockStatement; }, 64/* harmony export */ "createCacheExpression": function() { return /* binding */ createCacheExpression; }, 65/* harmony export */ "createCallExpression": function() { return /* binding */ createCallExpression; }, 66/* harmony export */ "createCompilerError": function() { return /* binding */ createCompilerError; }, 67/* harmony export */ "createCompoundExpression": function() { return /* binding */ createCompoundExpression; }, 68/* harmony export */ "createConditionalExpression": function() { return /* binding */ createConditionalExpression; }, 69/* harmony export */ "createForLoopParams": function() { return /* binding */ createForLoopParams; }, 70/* harmony export */ "createFunctionExpression": function() { return /* binding */ createFunctionExpression; }, 71/* harmony export */ "createIfStatement": function() { return /* binding */ createIfStatement; }, 72/* harmony export */ "createInterpolation": function() { return /* binding */ createInterpolation; }, 73/* harmony export */ "createObjectExpression": function() { return /* binding */ createObjectExpression; }, 74/* harmony export */ "createObjectProperty": function() { return /* binding */ createObjectProperty; }, 75/* harmony export */ "createReturnStatement": function() { return /* binding */ createReturnStatement; }, 76/* harmony export */ "createRoot": function() { return /* binding */ createRoot; }, 77/* harmony export */ "createSequenceExpression": function() { return /* binding */ createSequenceExpression; }, 78/* harmony export */ "createSimpleExpression": function() { return /* binding */ createSimpleExpression; }, 79/* harmony export */ "createStructuralDirectiveTransform": function() { return /* binding */ createStructuralDirectiveTransform; }, 80/* harmony export */ "createTemplateLiteral": function() { return /* binding */ createTemplateLiteral; }, 81/* harmony export */ "createTransformContext": function() { return /* binding */ createTransformContext; }, 82/* harmony export */ "createVNodeCall": function() { return /* binding */ createVNodeCall; }, 83/* harmony export */ "extractIdentifiers": function() { return /* binding */ extractIdentifiers; }, 84/* harmony export */ "findDir": function() { return /* binding */ findDir; }, 85/* harmony export */ "findProp": function() { return /* binding */ findProp; }, 86/* harmony export */ "generate": function() { return /* binding */ generate; }, 87/* harmony export */ "generateCodeFrame": function() { return /* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_0__.generateCodeFrame; }, 88/* harmony export */ "getBaseTransformPreset": function() { return /* binding */ getBaseTransformPreset; }, 89/* harmony export */ "getConstantType": function() { return /* binding */ getConstantType; }, 90/* harmony export */ "getInnerRange": function() { return /* binding */ getInnerRange; }, 91/* harmony export */ "getMemoedVNodeCall": function() { return /* binding */ getMemoedVNodeCall; }, 92/* harmony export */ "getVNodeBlockHelper": function() { return /* binding */ getVNodeBlockHelper; }, 93/* harmony export */ "getVNodeHelper": function() { return /* binding */ getVNodeHelper; }, 94/* harmony export */ "hasDynamicKeyVBind": function() { return /* binding */ hasDynamicKeyVBind; }, 95/* harmony export */ "hasScopeRef": function() { return /* binding */ hasScopeRef; }, 96/* harmony export */ "helperNameMap": function() { return /* binding */ helperNameMap; }, 97/* harmony export */ "injectProp": function() { return /* binding */ injectProp; }, 98/* harmony export */ "isBuiltInType": function() { return /* binding */ isBuiltInType; }, 99/* harmony export */ "isCoreComponent": function() { return /* binding */ isCoreComponent; }, 100/* harmony export */ "isFunctionType": function() { return /* binding */ isFunctionType; }, 101/* harmony export */ "isInDestructureAssignment": function() { return /* binding */ isInDestructureAssignment; }, 102/* harmony export */ "isMemberExpression": function() { return /* binding */ isMemberExpression; }, 103/* harmony export */ "isMemberExpressionBrowser": function() { return /* binding */ isMemberExpressionBrowser; }, 104/* harmony export */ "isMemberExpressionNode": function() { return /* binding */ isMemberExpressionNode; }, 105/* harmony export */ "isReferencedIdentifier": function() { return /* binding */ isReferencedIdentifier; }, 106/* harmony export */ "isSimpleIdentifier": function() { return /* binding */ isSimpleIdentifier; }, 107/* harmony export */ "isSlotOutlet": function() { return /* binding */ isSlotOutlet; }, 108/* harmony export */ "isStaticArgOf": function() { return /* binding */ isStaticArgOf; }, 109/* harmony export */ "isStaticExp": function() { return /* binding */ isStaticExp; }, 110/* harmony export */ "isStaticProperty": function() { return /* binding */ isStaticProperty; }, 111/* harmony export */ "isStaticPropertyKey": function() { return /* binding */ isStaticPropertyKey; }, 112/* harmony export */ "isTemplateNode": function() { return /* binding */ isTemplateNode; }, 113/* harmony export */ "isText": function() { return /* binding */ isText; }, 114/* harmony export */ "isVSlot": function() { return /* binding */ isVSlot; }, 115/* harmony export */ "locStub": function() { return /* binding */ locStub; }, 116/* harmony export */ "makeBlock": function() { return /* binding */ makeBlock; }, 117/* harmony export */ "noopDirectiveTransform": function() { return /* binding */ noopDirectiveTransform; }, 118/* harmony export */ "processExpression": function() { return /* binding */ processExpression; }, 119/* harmony export */ "processFor": function() { return /* binding */ processFor; }, 120/* harmony export */ "processIf": function() { return /* binding */ processIf; }, 121/* harmony export */ "processSlotOutlet": function() { return /* binding */ processSlotOutlet; }, 122/* harmony export */ "registerRuntimeHelpers": function() { return /* binding */ registerRuntimeHelpers; }, 123/* harmony export */ "resolveComponentType": function() { return /* binding */ resolveComponentType; }, 124/* harmony export */ "toValidAssetId": function() { return /* binding */ toValidAssetId; }, 125/* harmony export */ "trackSlotScopes": function() { return /* binding */ trackSlotScopes; }, 126/* harmony export */ "trackVForSlotScopes": function() { return /* binding */ trackVForSlotScopes; }, 127/* harmony export */ "transform": function() { return /* binding */ transform; }, 128/* harmony export */ "transformBind": function() { return /* binding */ transformBind; }, 129/* harmony export */ "transformElement": function() { return /* binding */ transformElement; }, 130/* harmony export */ "transformExpression": function() { return /* binding */ transformExpression; }, 131/* harmony export */ "transformModel": function() { return /* binding */ transformModel; }, 132/* harmony export */ "transformOn": function() { return /* binding */ transformOn; }, 133/* harmony export */ "traverseNode": function() { return /* binding */ traverseNode; }, 134/* harmony export */ "walkBlockDeclarations": function() { return /* binding */ walkBlockDeclarations; }, 135/* harmony export */ "walkFunctionParams": function() { return /* binding */ walkFunctionParams; }, 136/* harmony export */ "walkIdentifiers": function() { return /* binding */ walkIdentifiers; }, 137/* harmony export */ "warnDeprecation": function() { return /* binding */ warnDeprecation; } 138/* harmony export */ }); 139/* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js"); 140 141 142 143function defaultOnError(error) { 144 throw error; 145} 146function defaultOnWarn(msg) { 147 ( true) && console.warn(`[Vue warn] ${msg.message}`); 148} 149function createCompilerError(code, loc, messages, additionalMessage) { 150 const msg = true 151 ? (messages || errorMessages)[code] + (additionalMessage || ``) 152 : 0; 153 const error = new SyntaxError(String(msg)); 154 error.code = code; 155 error.loc = loc; 156 return error; 157} 158const errorMessages = { 159 // parse errors 160 [0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */]: 'Illegal comment.', 161 [1 /* CDATA_IN_HTML_CONTENT */]: 'CDATA section is allowed only in XML context.', 162 [2 /* DUPLICATE_ATTRIBUTE */]: 'Duplicate attribute.', 163 [3 /* END_TAG_WITH_ATTRIBUTES */]: 'End tag cannot have attributes.', 164 [4 /* END_TAG_WITH_TRAILING_SOLIDUS */]: "Illegal '/' in tags.", 165 [5 /* EOF_BEFORE_TAG_NAME */]: 'Unexpected EOF in tag.', 166 [6 /* EOF_IN_CDATA */]: 'Unexpected EOF in CDATA section.', 167 [7 /* EOF_IN_COMMENT */]: 'Unexpected EOF in comment.', 168 [8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */]: 'Unexpected EOF in script.', 169 [9 /* EOF_IN_TAG */]: 'Unexpected EOF in tag.', 170 [10 /* INCORRECTLY_CLOSED_COMMENT */]: 'Incorrectly closed comment.', 171 [11 /* INCORRECTLY_OPENED_COMMENT */]: 'Incorrectly opened comment.', 172 [12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */]: "Illegal tag name. Use '<' to print '<'.", 173 [13 /* MISSING_ATTRIBUTE_VALUE */]: 'Attribute value was expected.', 174 [14 /* MISSING_END_TAG_NAME */]: 'End tag name was expected.', 175 [15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */]: 'Whitespace was expected.', 176 [16 /* NESTED_COMMENT */]: "Unexpected '<!--' in comment.", 177 [17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */]: 'Attribute name cannot contain U+0022 ("), U+0027 (\'), and U+003C (<).', 178 [18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */]: 'Unquoted attribute value cannot contain U+0022 ("), U+0027 (\'), U+003C (<), U+003D (=), and U+0060 (`).', 179 [19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */]: "Attribute name cannot start with '='.", 180 [21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */]: "'<?' is allowed only in XML context.", 181 [20 /* UNEXPECTED_NULL_CHARACTER */]: `Unexpected null character.`, 182 [22 /* UNEXPECTED_SOLIDUS_IN_TAG */]: "Illegal '/' in tags.", 183 // Vue-specific parse errors 184 [23 /* X_INVALID_END_TAG */]: 'Invalid end tag.', 185 [24 /* X_MISSING_END_TAG */]: 'Element is missing end tag.', 186 [25 /* X_MISSING_INTERPOLATION_END */]: 'Interpolation end sign was not found.', 187 [27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */]: 'End bracket for dynamic directive argument was not found. ' + 188 'Note that dynamic directive argument cannot contain spaces.', 189 [26 /* X_MISSING_DIRECTIVE_NAME */]: 'Legal directive name was expected.', 190 // transform errors 191 [28 /* X_V_IF_NO_EXPRESSION */]: `v-if/v-else-if is missing expression.`, 192 [29 /* X_V_IF_SAME_KEY */]: `v-if/else branches must use unique keys.`, 193 [30 /* X_V_ELSE_NO_ADJACENT_IF */]: `v-else/v-else-if has no adjacent v-if or v-else-if.`, 194 [31 /* X_V_FOR_NO_EXPRESSION */]: `v-for is missing expression.`, 195 [32 /* X_V_FOR_MALFORMED_EXPRESSION */]: `v-for has invalid expression.`, 196 [33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */]: `<template v-for> key should be placed on the <template> tag.`, 197 [34 /* X_V_BIND_NO_EXPRESSION */]: `v-bind is missing expression.`, 198 [35 /* X_V_ON_NO_EXPRESSION */]: `v-on is missing expression.`, 199 [36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */]: `Unexpected custom directive on <slot> outlet.`, 200 [37 /* X_V_SLOT_MIXED_SLOT_USAGE */]: `Mixed v-slot usage on both the component and nested <template>.` + 201 `When there are multiple named slots, all slots should use <template> ` + 202 `syntax to avoid scope ambiguity.`, 203 [38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */]: `Duplicate slot names found. `, 204 [39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */]: `Extraneous children found when component already has explicitly named ` + 205 `default slot. These children will be ignored.`, 206 [40 /* X_V_SLOT_MISPLACED */]: `v-slot can only be used on components or <template> tags.`, 207 [41 /* X_V_MODEL_NO_EXPRESSION */]: `v-model is missing expression.`, 208 [42 /* X_V_MODEL_MALFORMED_EXPRESSION */]: `v-model value must be a valid JavaScript member expression.`, 209 [43 /* X_V_MODEL_ON_SCOPE_VARIABLE */]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`, 210 [44 /* X_INVALID_EXPRESSION */]: `Error parsing JavaScript expression: `, 211 [45 /* X_KEEP_ALIVE_INVALID_CHILDREN */]: `<KeepAlive> expects exactly one child component.`, 212 // generic errors 213 [46 /* X_PREFIX_ID_NOT_SUPPORTED */]: `"prefixIdentifiers" option is not supported in this build of compiler.`, 214 [47 /* X_MODULE_MODE_NOT_SUPPORTED */]: `ES module mode is not supported in this build of compiler.`, 215 [48 /* X_CACHE_HANDLER_NOT_SUPPORTED */]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`, 216 [49 /* X_SCOPE_ID_NOT_SUPPORTED */]: `"scopeId" option is only supported in module mode.`, 217 // just to fulfill types 218 [50 /* __EXTEND_POINT__ */]: `` 219}; 220 221const FRAGMENT = Symbol(( true) ? `Fragment` : 0); 222const TELEPORT = Symbol(( true) ? `Teleport` : 0); 223const SUSPENSE = Symbol(( true) ? `Suspense` : 0); 224const KEEP_ALIVE = Symbol(( true) ? `KeepAlive` : 0); 225const BASE_TRANSITION = Symbol(( true) ? `BaseTransition` : 0); 226const OPEN_BLOCK = Symbol(( true) ? `openBlock` : 0); 227const CREATE_BLOCK = Symbol(( true) ? `createBlock` : 0); 228const CREATE_ELEMENT_BLOCK = Symbol(( true) ? `createElementBlock` : 0); 229const CREATE_VNODE = Symbol(( true) ? `createVNode` : 0); 230const CREATE_ELEMENT_VNODE = Symbol(( true) ? `createElementVNode` : 0); 231const CREATE_COMMENT = Symbol(( true) ? `createCommentVNode` : 0); 232const CREATE_TEXT = Symbol(( true) ? `createTextVNode` : 0); 233const CREATE_STATIC = Symbol(( true) ? `createStaticVNode` : 0); 234const RESOLVE_COMPONENT = Symbol(( true) ? `resolveComponent` : 0); 235const RESOLVE_DYNAMIC_COMPONENT = Symbol(( true) ? `resolveDynamicComponent` : 0); 236const RESOLVE_DIRECTIVE = Symbol(( true) ? `resolveDirective` : 0); 237const RESOLVE_FILTER = Symbol(( true) ? `resolveFilter` : 0); 238const WITH_DIRECTIVES = Symbol(( true) ? `withDirectives` : 0); 239const RENDER_LIST = Symbol(( true) ? `renderList` : 0); 240const RENDER_SLOT = Symbol(( true) ? `renderSlot` : 0); 241const CREATE_SLOTS = Symbol(( true) ? `createSlots` : 0); 242const TO_DISPLAY_STRING = Symbol(( true) ? `toDisplayString` : 0); 243const MERGE_PROPS = Symbol(( true) ? `mergeProps` : 0); 244const NORMALIZE_CLASS = Symbol(( true) ? `normalizeClass` : 0); 245const NORMALIZE_STYLE = Symbol(( true) ? `normalizeStyle` : 0); 246const NORMALIZE_PROPS = Symbol(( true) ? `normalizeProps` : 0); 247const GUARD_REACTIVE_PROPS = Symbol(( true) ? `guardReactiveProps` : 0); 248const TO_HANDLERS = Symbol(( true) ? `toHandlers` : 0); 249const CAMELIZE = Symbol(( true) ? `camelize` : 0); 250const CAPITALIZE = Symbol(( true) ? `capitalize` : 0); 251const TO_HANDLER_KEY = Symbol(( true) ? `toHandlerKey` : 0); 252const SET_BLOCK_TRACKING = Symbol(( true) ? `setBlockTracking` : 0); 253const PUSH_SCOPE_ID = Symbol(( true) ? `pushScopeId` : 0); 254const POP_SCOPE_ID = Symbol(( true) ? `popScopeId` : 0); 255const WITH_CTX = Symbol(( true) ? `withCtx` : 0); 256const UNREF = Symbol(( true) ? `unref` : 0); 257const IS_REF = Symbol(( true) ? `isRef` : 0); 258const WITH_MEMO = Symbol(( true) ? `withMemo` : 0); 259const IS_MEMO_SAME = Symbol(( true) ? `isMemoSame` : 0); 260// Name mapping for runtime helpers that need to be imported from 'vue' in 261// generated code. Make sure these are correctly exported in the runtime! 262// Using `any` here because TS doesn't allow symbols as index type. 263const helperNameMap = { 264 [FRAGMENT]: `Fragment`, 265 [TELEPORT]: `Teleport`, 266 [SUSPENSE]: `Suspense`, 267 [KEEP_ALIVE]: `KeepAlive`, 268 [BASE_TRANSITION]: `BaseTransition`, 269 [OPEN_BLOCK]: `openBlock`, 270 [CREATE_BLOCK]: `createBlock`, 271 [CREATE_ELEMENT_BLOCK]: `createElementBlock`, 272 [CREATE_VNODE]: `createVNode`, 273 [CREATE_ELEMENT_VNODE]: `createElementVNode`, 274 [CREATE_COMMENT]: `createCommentVNode`, 275 [CREATE_TEXT]: `createTextVNode`, 276 [CREATE_STATIC]: `createStaticVNode`, 277 [RESOLVE_COMPONENT]: `resolveComponent`, 278 [RESOLVE_DYNAMIC_COMPONENT]: `resolveDynamicComponent`, 279 [RESOLVE_DIRECTIVE]: `resolveDirective`, 280 [RESOLVE_FILTER]: `resolveFilter`, 281 [WITH_DIRECTIVES]: `withDirectives`, 282 [RENDER_LIST]: `renderList`, 283 [RENDER_SLOT]: `renderSlot`, 284 [CREATE_SLOTS]: `createSlots`, 285 [TO_DISPLAY_STRING]: `toDisplayString`, 286 [MERGE_PROPS]: `mergeProps`, 287 [NORMALIZE_CLASS]: `normalizeClass`, 288 [NORMALIZE_STYLE]: `normalizeStyle`, 289 [NORMALIZE_PROPS]: `normalizeProps`, 290 [GUARD_REACTIVE_PROPS]: `guardReactiveProps`, 291 [TO_HANDLERS]: `toHandlers`, 292 [CAMELIZE]: `camelize`, 293 [CAPITALIZE]: `capitalize`, 294 [TO_HANDLER_KEY]: `toHandlerKey`, 295 [SET_BLOCK_TRACKING]: `setBlockTracking`, 296 [PUSH_SCOPE_ID]: `pushScopeId`, 297 [POP_SCOPE_ID]: `popScopeId`, 298 [WITH_CTX]: `withCtx`, 299 [UNREF]: `unref`, 300 [IS_REF]: `isRef`, 301 [WITH_MEMO]: `withMemo`, 302 [IS_MEMO_SAME]: `isMemoSame` 303}; 304function registerRuntimeHelpers(helpers) { 305 Object.getOwnPropertySymbols(helpers).forEach(s => { 306 helperNameMap[s] = helpers[s]; 307 }); 308} 309 310// AST Utilities --------------------------------------------------------------- 311// Some expressions, e.g. sequence and conditional expressions, are never 312// associated with template nodes, so their source locations are just a stub. 313// Container types like CompoundExpression also don't need a real location. 314const locStub = { 315 source: '', 316 start: { line: 1, column: 1, offset: 0 }, 317 end: { line: 1, column: 1, offset: 0 } 318}; 319function createRoot(children, loc = locStub) { 320 return { 321 type: 0 /* ROOT */, 322 children, 323 helpers: [], 324 components: [], 325 directives: [], 326 hoists: [], 327 imports: [], 328 cached: 0, 329 temps: 0, 330 codegenNode: undefined, 331 loc 332 }; 333} 334function createVNodeCall(context, tag, props, children, patchFlag, dynamicProps, directives, isBlock = false, disableTracking = false, isComponent = false, loc = locStub) { 335 if (context) { 336 if (isBlock) { 337 context.helper(OPEN_BLOCK); 338 context.helper(getVNodeBlockHelper(context.inSSR, isComponent)); 339 } 340 else { 341 context.helper(getVNodeHelper(context.inSSR, isComponent)); 342 } 343 if (directives) { 344 context.helper(WITH_DIRECTIVES); 345 } 346 } 347 return { 348 type: 13 /* VNODE_CALL */, 349 tag, 350 props, 351 children, 352 patchFlag, 353 dynamicProps, 354 directives, 355 isBlock, 356 disableTracking, 357 isComponent, 358 loc 359 }; 360} 361function createArrayExpression(elements, loc = locStub) { 362 return { 363 type: 17 /* JS_ARRAY_EXPRESSION */, 364 loc, 365 elements 366 }; 367} 368function createObjectExpression(properties, loc = locStub) { 369 return { 370 type: 15 /* JS_OBJECT_EXPRESSION */, 371 loc, 372 properties 373 }; 374} 375function createObjectProperty(key, value) { 376 return { 377 type: 16 /* JS_PROPERTY */, 378 loc: locStub, 379 key: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(key) ? createSimpleExpression(key, true) : key, 380 value 381 }; 382} 383function createSimpleExpression(content, isStatic = false, loc = locStub, constType = 0 /* NOT_CONSTANT */) { 384 return { 385 type: 4 /* SIMPLE_EXPRESSION */, 386 loc, 387 content, 388 isStatic, 389 constType: isStatic ? 3 /* CAN_STRINGIFY */ : constType 390 }; 391} 392function createInterpolation(content, loc) { 393 return { 394 type: 5 /* INTERPOLATION */, 395 loc, 396 content: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(content) 397 ? createSimpleExpression(content, false, loc) 398 : content 399 }; 400} 401function createCompoundExpression(children, loc = locStub) { 402 return { 403 type: 8 /* COMPOUND_EXPRESSION */, 404 loc, 405 children 406 }; 407} 408function createCallExpression(callee, args = [], loc = locStub) { 409 return { 410 type: 14 /* JS_CALL_EXPRESSION */, 411 loc, 412 callee, 413 arguments: args 414 }; 415} 416function createFunctionExpression(params, returns = undefined, newline = false, isSlot = false, loc = locStub) { 417 return { 418 type: 18 /* JS_FUNCTION_EXPRESSION */, 419 params, 420 returns, 421 newline, 422 isSlot, 423 loc 424 }; 425} 426function createConditionalExpression(test, consequent, alternate, newline = true) { 427 return { 428 type: 19 /* JS_CONDITIONAL_EXPRESSION */, 429 test, 430 consequent, 431 alternate, 432 newline, 433 loc: locStub 434 }; 435} 436function createCacheExpression(index, value, isVNode = false) { 437 return { 438 type: 20 /* JS_CACHE_EXPRESSION */, 439 index, 440 value, 441 isVNode, 442 loc: locStub 443 }; 444} 445function createBlockStatement(body) { 446 return { 447 type: 21 /* JS_BLOCK_STATEMENT */, 448 body, 449 loc: locStub 450 }; 451} 452function createTemplateLiteral(elements) { 453 return { 454 type: 22 /* JS_TEMPLATE_LITERAL */, 455 elements, 456 loc: locStub 457 }; 458} 459function createIfStatement(test, consequent, alternate) { 460 return { 461 type: 23 /* JS_IF_STATEMENT */, 462 test, 463 consequent, 464 alternate, 465 loc: locStub 466 }; 467} 468function createAssignmentExpression(left, right) { 469 return { 470 type: 24 /* JS_ASSIGNMENT_EXPRESSION */, 471 left, 472 right, 473 loc: locStub 474 }; 475} 476function createSequenceExpression(expressions) { 477 return { 478 type: 25 /* JS_SEQUENCE_EXPRESSION */, 479 expressions, 480 loc: locStub 481 }; 482} 483function createReturnStatement(returns) { 484 return { 485 type: 26 /* JS_RETURN_STATEMENT */, 486 returns, 487 loc: locStub 488 }; 489} 490 491const isStaticExp = (p) => p.type === 4 /* SIMPLE_EXPRESSION */ && p.isStatic; 492const isBuiltInType = (tag, expected) => tag === expected || tag === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hyphenate)(expected); 493function isCoreComponent(tag) { 494 if (isBuiltInType(tag, 'Teleport')) { 495 return TELEPORT; 496 } 497 else if (isBuiltInType(tag, 'Suspense')) { 498 return SUSPENSE; 499 } 500 else if (isBuiltInType(tag, 'KeepAlive')) { 501 return KEEP_ALIVE; 502 } 503 else if (isBuiltInType(tag, 'BaseTransition')) { 504 return BASE_TRANSITION; 505 } 506} 507const nonIdentifierRE = /^\d|[^\$\w]/; 508const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name); 509const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/; 510const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/; 511const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g; 512/** 513 * Simple lexer to check if an expression is a member expression. This is 514 * lax and only checks validity at the root level (i.e. does not validate exps 515 * inside square brackets), but it's ok since these are only used on template 516 * expressions and false positives are invalid expressions in the first place. 517 */ 518const isMemberExpressionBrowser = (path) => { 519 // remove whitespaces around . or [ first 520 path = path.trim().replace(whitespaceRE, s => s.trim()); 521 let state = 0 /* inMemberExp */; 522 let stateStack = []; 523 let currentOpenBracketCount = 0; 524 let currentOpenParensCount = 0; 525 let currentStringType = null; 526 for (let i = 0; i < path.length; i++) { 527 const char = path.charAt(i); 528 switch (state) { 529 case 0 /* inMemberExp */: 530 if (char === '[') { 531 stateStack.push(state); 532 state = 1 /* inBrackets */; 533 currentOpenBracketCount++; 534 } 535 else if (char === '(') { 536 stateStack.push(state); 537 state = 2 /* inParens */; 538 currentOpenParensCount++; 539 } 540 else if (!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)) { 541 return false; 542 } 543 break; 544 case 1 /* inBrackets */: 545 if (char === `'` || char === `"` || char === '`') { 546 stateStack.push(state); 547 state = 3 /* inString */; 548 currentStringType = char; 549 } 550 else if (char === `[`) { 551 currentOpenBracketCount++; 552 } 553 else if (char === `]`) { 554 if (!--currentOpenBracketCount) { 555 state = stateStack.pop(); 556 } 557 } 558 break; 559 case 2 /* inParens */: 560 if (char === `'` || char === `"` || char === '`') { 561 stateStack.push(state); 562 state = 3 /* inString */; 563 currentStringType = char; 564 } 565 else if (char === `(`) { 566 currentOpenParensCount++; 567 } 568 else if (char === `)`) { 569 // if the exp ends as a call then it should not be considered valid 570 if (i === path.length - 1) { 571 return false; 572 } 573 if (!--currentOpenParensCount) { 574 state = stateStack.pop(); 575 } 576 } 577 break; 578 case 3 /* inString */: 579 if (char === currentStringType) { 580 state = stateStack.pop(); 581 currentStringType = null; 582 } 583 break; 584 } 585 } 586 return !currentOpenBracketCount && !currentOpenParensCount; 587}; 588const isMemberExpressionNode = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP 589 ; 590const isMemberExpression = isMemberExpressionBrowser 591 ; 592function getInnerRange(loc, offset, length) { 593 const source = loc.source.slice(offset, offset + length); 594 const newLoc = { 595 source, 596 start: advancePositionWithClone(loc.start, loc.source, offset), 597 end: loc.end 598 }; 599 if (length != null) { 600 newLoc.end = advancePositionWithClone(loc.start, loc.source, offset + length); 601 } 602 return newLoc; 603} 604function advancePositionWithClone(pos, source, numberOfCharacters = source.length) { 605 return advancePositionWithMutation((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, pos), source, numberOfCharacters); 606} 607// advance by mutation without cloning (for performance reasons), since this 608// gets called a lot in the parser 609function advancePositionWithMutation(pos, source, numberOfCharacters = source.length) { 610 let linesCount = 0; 611 let lastNewLinePos = -1; 612 for (let i = 0; i < numberOfCharacters; i++) { 613 if (source.charCodeAt(i) === 10 /* newline char code */) { 614 linesCount++; 615 lastNewLinePos = i; 616 } 617 } 618 pos.offset += numberOfCharacters; 619 pos.line += linesCount; 620 pos.column = 621 lastNewLinePos === -1 622 ? pos.column + numberOfCharacters 623 : numberOfCharacters - lastNewLinePos; 624 return pos; 625} 626function assert(condition, msg) { 627 /* istanbul ignore if */ 628 if (!condition) { 629 throw new Error(msg || `unexpected compiler condition`); 630 } 631} 632function findDir(node, name, allowEmpty = false) { 633 for (let i = 0; i < node.props.length; i++) { 634 const p = node.props[i]; 635 if (p.type === 7 /* DIRECTIVE */ && 636 (allowEmpty || p.exp) && 637 ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(name) ? p.name === name : name.test(p.name))) { 638 return p; 639 } 640 } 641} 642function findProp(node, name, dynamicOnly = false, allowEmpty = false) { 643 for (let i = 0; i < node.props.length; i++) { 644 const p = node.props[i]; 645 if (p.type === 6 /* ATTRIBUTE */) { 646 if (dynamicOnly) 647 continue; 648 if (p.name === name && (p.value || allowEmpty)) { 649 return p; 650 } 651 } 652 else if (p.name === 'bind' && 653 (p.exp || allowEmpty) && 654 isStaticArgOf(p.arg, name)) { 655 return p; 656 } 657 } 658} 659function isStaticArgOf(arg, name) { 660 return !!(arg && isStaticExp(arg) && arg.content === name); 661} 662function hasDynamicKeyVBind(node) { 663 return node.props.some(p => p.type === 7 /* DIRECTIVE */ && 664 p.name === 'bind' && 665 (!p.arg || // v-bind="obj" 666 p.arg.type !== 4 /* SIMPLE_EXPRESSION */ || // v-bind:[_ctx.foo] 667 !p.arg.isStatic) // v-bind:[foo] 668 ); 669} 670function isText(node) { 671 return node.type === 5 /* INTERPOLATION */ || node.type === 2 /* TEXT */; 672} 673function isVSlot(p) { 674 return p.type === 7 /* DIRECTIVE */ && p.name === 'slot'; 675} 676function isTemplateNode(node) { 677 return (node.type === 1 /* ELEMENT */ && node.tagType === 3 /* TEMPLATE */); 678} 679function isSlotOutlet(node) { 680 return node.type === 1 /* ELEMENT */ && node.tagType === 2 /* SLOT */; 681} 682function getVNodeHelper(ssr, isComponent) { 683 return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE; 684} 685function getVNodeBlockHelper(ssr, isComponent) { 686 return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK; 687} 688const propsHelperSet = new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]); 689function getUnnormalizedProps(props, callPath = []) { 690 if (props && 691 !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props) && 692 props.type === 14 /* JS_CALL_EXPRESSION */) { 693 const callee = props.callee; 694 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(callee) && propsHelperSet.has(callee)) { 695 return getUnnormalizedProps(props.arguments[0], callPath.concat(props)); 696 } 697 } 698 return [props, callPath]; 699} 700function injectProp(node, prop, context) { 701 let propsWithInjection; 702 /** 703 * 1. mergeProps(...) 704 * 2. toHandlers(...) 705 * 3. normalizeProps(...) 706 * 4. normalizeProps(guardReactiveProps(...)) 707 * 708 * we need to get the real props before normalization 709 */ 710 let props = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2]; 711 let callPath = []; 712 let parentCall; 713 if (props && 714 !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props) && 715 props.type === 14 /* JS_CALL_EXPRESSION */) { 716 const ret = getUnnormalizedProps(props); 717 props = ret[0]; 718 callPath = ret[1]; 719 parentCall = callPath[callPath.length - 1]; 720 } 721 if (props == null || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props)) { 722 propsWithInjection = createObjectExpression([prop]); 723 } 724 else if (props.type === 14 /* JS_CALL_EXPRESSION */) { 725 // merged props... add ours 726 // only inject key to object literal if it's the first argument so that 727 // if doesn't override user provided keys 728 const first = props.arguments[0]; 729 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(first) && first.type === 15 /* JS_OBJECT_EXPRESSION */) { 730 first.properties.unshift(prop); 731 } 732 else { 733 if (props.callee === TO_HANDLERS) { 734 // #2366 735 propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [ 736 createObjectExpression([prop]), 737 props 738 ]); 739 } 740 else { 741 props.arguments.unshift(createObjectExpression([prop])); 742 } 743 } 744 !propsWithInjection && (propsWithInjection = props); 745 } 746 else if (props.type === 15 /* JS_OBJECT_EXPRESSION */) { 747 let alreadyExists = false; 748 // check existing key to avoid overriding user provided keys 749 if (prop.key.type === 4 /* SIMPLE_EXPRESSION */) { 750 const propKeyName = prop.key.content; 751 alreadyExists = props.properties.some(p => p.key.type === 4 /* SIMPLE_EXPRESSION */ && 752 p.key.content === propKeyName); 753 } 754 if (!alreadyExists) { 755 props.properties.unshift(prop); 756 } 757 propsWithInjection = props; 758 } 759 else { 760 // single v-bind with expression, return a merged replacement 761 propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [ 762 createObjectExpression([prop]), 763 props 764 ]); 765 // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(props))`, 766 // it will be rewritten as `normalizeProps(mergeProps({ key: 0 }, props))`, 767 // the `guardReactiveProps` will no longer be needed 768 if (parentCall && parentCall.callee === GUARD_REACTIVE_PROPS) { 769 parentCall = callPath[callPath.length - 2]; 770 } 771 } 772 if (node.type === 13 /* VNODE_CALL */) { 773 if (parentCall) { 774 parentCall.arguments[0] = propsWithInjection; 775 } 776 else { 777 node.props = propsWithInjection; 778 } 779 } 780 else { 781 if (parentCall) { 782 parentCall.arguments[0] = propsWithInjection; 783 } 784 else { 785 node.arguments[2] = propsWithInjection; 786 } 787 } 788} 789function toValidAssetId(name, type) { 790 // see issue#4422, we need adding identifier on validAssetId if variable `name` has specific character 791 return `_${type}_${name.replace(/[^\w]/g, (searchValue, replaceValue) => { 792 return searchValue === '-' ? '_' : name.charCodeAt(replaceValue).toString(); 793 })}`; 794} 795// Check if a node contains expressions that reference current context scope ids 796function hasScopeRef(node, ids) { 797 if (!node || Object.keys(ids).length === 0) { 798 return false; 799 } 800 switch (node.type) { 801 case 1 /* ELEMENT */: 802 for (let i = 0; i < node.props.length; i++) { 803 const p = node.props[i]; 804 if (p.type === 7 /* DIRECTIVE */ && 805 (hasScopeRef(p.arg, ids) || hasScopeRef(p.exp, ids))) { 806 return true; 807 } 808 } 809 return node.children.some(c => hasScopeRef(c, ids)); 810 case 11 /* FOR */: 811 if (hasScopeRef(node.source, ids)) { 812 return true; 813 } 814 return node.children.some(c => hasScopeRef(c, ids)); 815 case 9 /* IF */: 816 return node.branches.some(b => hasScopeRef(b, ids)); 817 case 10 /* IF_BRANCH */: 818 if (hasScopeRef(node.condition, ids)) { 819 return true; 820 } 821 return node.children.some(c => hasScopeRef(c, ids)); 822 case 4 /* SIMPLE_EXPRESSION */: 823 return (!node.isStatic && 824 isSimpleIdentifier(node.content) && 825 !!ids[node.content]); 826 case 8 /* COMPOUND_EXPRESSION */: 827 return node.children.some(c => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(c) && hasScopeRef(c, ids)); 828 case 5 /* INTERPOLATION */: 829 case 12 /* TEXT_CALL */: 830 return hasScopeRef(node.content, ids); 831 case 2 /* TEXT */: 832 case 3 /* COMMENT */: 833 return false; 834 default: 835 if ((true)) ; 836 return false; 837 } 838} 839function getMemoedVNodeCall(node) { 840 if (node.type === 14 /* JS_CALL_EXPRESSION */ && node.callee === WITH_MEMO) { 841 return node.arguments[1].returns; 842 } 843 else { 844 return node; 845 } 846} 847function makeBlock(node, { helper, removeHelper, inSSR }) { 848 if (!node.isBlock) { 849 node.isBlock = true; 850 removeHelper(getVNodeHelper(inSSR, node.isComponent)); 851 helper(OPEN_BLOCK); 852 helper(getVNodeBlockHelper(inSSR, node.isComponent)); 853 } 854} 855 856const deprecationData = { 857 ["COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */]: { 858 message: `Platform-native elements with "is" prop will no longer be ` + 859 `treated as components in Vue 3 unless the "is" value is explicitly ` + 860 `prefixed with "vue:".`, 861 link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html` 862 }, 863 ["COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */]: { 864 message: key => `.sync modifier for v-bind has been removed. Use v-model with ` + 865 `argument instead. \`v-bind:${key}.sync\` should be changed to ` + 866 `\`v-model:${key}\`.`, 867 link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html` 868 }, 869 ["COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */]: { 870 message: `.prop modifier for v-bind has been removed and no longer necessary. ` + 871 `Vue 3 will automatically set a binding as DOM property when appropriate.` 872 }, 873 ["COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */]: { 874 message: `v-bind="obj" usage is now order sensitive and behaves like JavaScript ` + 875 `object spread: it will now overwrite an existing non-mergeable attribute ` + 876 `that appears before v-bind in the case of conflict. ` + 877 `To retain 2.x behavior, move v-bind to make it the first attribute. ` + 878 `You can also suppress this warning if the usage is intended.`, 879 link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html` 880 }, 881 ["COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */]: { 882 message: `.native modifier for v-on has been removed as is no longer necessary.`, 883 link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html` 884 }, 885 ["COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */]: { 886 message: `v-if / v-for precedence when used on the same element has changed ` + 887 `in Vue 3: v-if now takes higher precedence and will no longer have ` + 888 `access to v-for scope variables. It is best to avoid the ambiguity ` + 889 `with <template> tags or use a computed property that filters v-for ` + 890 `data source.`, 891 link: `https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html` 892 }, 893 ["COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */]: { 894 message: `<template> with no special directives will render as a native template ` + 895 `element instead of its inner content in Vue 3.` 896 }, 897 ["COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */]: { 898 message: `"inline-template" has been removed in Vue 3.`, 899 link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html` 900 }, 901 ["COMPILER_FILTER" /* COMPILER_FILTERS */]: { 902 message: `filters have been removed in Vue 3. ` + 903 `The "|" symbol will be treated as native JavaScript bitwise OR operator. ` + 904 `Use method calls or computed properties instead.`, 905 link: `https://v3-migration.vuejs.org/breaking-changes/filters.html` 906 } 907}; 908function getCompatValue(key, context) { 909 const config = context.options 910 ? context.options.compatConfig 911 : context.compatConfig; 912 const value = config && config[key]; 913 if (key === 'MODE') { 914 return value || 3; // compiler defaults to v3 behavior 915 } 916 else { 917 return value; 918 } 919} 920function isCompatEnabled(key, context) { 921 const mode = getCompatValue('MODE', context); 922 const value = getCompatValue(key, context); 923 // in v3 mode, only enable if explicitly set to true 924 // otherwise enable for any non-false value 925 return mode === 3 ? value === true : value !== false; 926} 927function checkCompatEnabled(key, context, loc, ...args) { 928 const enabled = isCompatEnabled(key, context); 929 if (( true) && enabled) { 930 warnDeprecation(key, context, loc, ...args); 931 } 932 return enabled; 933} 934function warnDeprecation(key, context, loc, ...args) { 935 const val = getCompatValue(key, context); 936 if (val === 'suppress-warning') { 937 return; 938 } 939 const { message, link } = deprecationData[key]; 940 const msg = `(deprecation ${key}) ${typeof message === 'function' ? message(...args) : message}${link ? `\n Details: ${link}` : ``}`; 941 const err = new SyntaxError(msg); 942 err.code = key; 943 if (loc) 944 err.loc = loc; 945 context.onWarn(err); 946} 947 948// The default decoder only provides escapes for characters reserved as part of 949// the template syntax, and is only used if the custom renderer did not provide 950// a platform-specific decoder. 951const decodeRE = /&(gt|lt|amp|apos|quot);/g; 952const decodeMap = { 953 gt: '>', 954 lt: '<', 955 amp: '&', 956 apos: "'", 957 quot: '"' 958}; 959const defaultParserOptions = { 960 delimiters: [`{{`, `}}`], 961 getNamespace: () => 0 /* HTML */, 962 getTextMode: () => 0 /* DATA */, 963 isVoidTag: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO, 964 isPreTag: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO, 965 isCustomElement: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO, 966 decodeEntities: (rawText) => rawText.replace(decodeRE, (_, p1) => decodeMap[p1]), 967 onError: defaultOnError, 968 onWarn: defaultOnWarn, 969 comments: ("development" !== 'production') 970}; 971function baseParse(content, options = {}) { 972 const context = createParserContext(content, options); 973 const start = getCursor(context); 974 return createRoot(parseChildren(context, 0 /* DATA */, []), getSelection(context, start)); 975} 976function createParserContext(content, rawOptions) { 977 const options = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, defaultParserOptions); 978 let key; 979 for (key in rawOptions) { 980 // @ts-ignore 981 options[key] = 982 rawOptions[key] === undefined 983 ? defaultParserOptions[key] 984 : rawOptions[key]; 985 } 986 return { 987 options, 988 column: 1, 989 line: 1, 990 offset: 0, 991 originalSource: content, 992 source: content, 993 inPre: false, 994 inVPre: false, 995 onWarn: options.onWarn 996 }; 997} 998function parseChildren(context, mode, ancestors) { 999 const parent = last(ancestors); 1000 const ns = parent ? parent.ns : 0 /* HTML */; 1001 const nodes = []; 1002 while (!isEnd(context, mode, ancestors)) { 1003 const s = context.source; 1004 let node = undefined; 1005 if (mode === 0 /* DATA */ || mode === 1 /* RCDATA */) { 1006 if (!context.inVPre && startsWith(s, context.options.delimiters[0])) { 1007 // '{{' 1008 node = parseInterpolation(context, mode); 1009 } 1010 else if (mode === 0 /* DATA */ && s[0] === '<') { 1011 // https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state 1012 if (s.length === 1) { 1013 emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 1); 1014 } 1015 else if (s[1] === '!') { 1016 // https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state 1017 if (startsWith(s, '<!--')) { 1018 node = parseComment(context); 1019 } 1020 else if (startsWith(s, '<!DOCTYPE')) { 1021 // Ignore DOCTYPE by a limitation. 1022 node = parseBogusComment(context); 1023 } 1024 else if (startsWith(s, '<![CDATA[')) { 1025 if (ns !== 0 /* HTML */) { 1026 node = parseCDATA(context, ancestors); 1027 } 1028 else { 1029 emitError(context, 1 /* CDATA_IN_HTML_CONTENT */); 1030 node = parseBogusComment(context); 1031 } 1032 } 1033 else { 1034 emitError(context, 11 /* INCORRECTLY_OPENED_COMMENT */); 1035 node = parseBogusComment(context); 1036 } 1037 } 1038 else if (s[1] === '/') { 1039 // https://html.spec.whatwg.org/multipage/parsing.html#end-tag-open-state 1040 if (s.length === 2) { 1041 emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 2); 1042 } 1043 else if (s[2] === '>') { 1044 emitError(context, 14 /* MISSING_END_TAG_NAME */, 2); 1045 advanceBy(context, 3); 1046 continue; 1047 } 1048 else if (/[a-z]/i.test(s[2])) { 1049 emitError(context, 23 /* X_INVALID_END_TAG */); 1050 parseTag(context, 1 /* End */, parent); 1051 continue; 1052 } 1053 else { 1054 emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 2); 1055 node = parseBogusComment(context); 1056 } 1057 } 1058 else if (/[a-z]/i.test(s[1])) { 1059 node = parseElement(context, ancestors); 1060 // 2.x <template> with no directive compat 1061 if (isCompatEnabled("COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */, context) && 1062 node && 1063 node.tag === 'template' && 1064 !node.props.some(p => p.type === 7 /* DIRECTIVE */ && 1065 isSpecialTemplateDirective(p.name))) { 1066 ( true) && 1067 warnDeprecation("COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */, context, node.loc); 1068 node = node.children; 1069 } 1070 } 1071 else if (s[1] === '?') { 1072 emitError(context, 21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */, 1); 1073 node = parseBogusComment(context); 1074 } 1075 else { 1076 emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 1); 1077 } 1078 } 1079 } 1080 if (!node) { 1081 node = parseText(context, mode); 1082 } 1083 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node)) { 1084 for (let i = 0; i < node.length; i++) { 1085 pushNode(nodes, node[i]); 1086 } 1087 } 1088 else { 1089 pushNode(nodes, node); 1090 } 1091 } 1092 // Whitespace handling strategy like v2 1093 let removedWhitespace = false; 1094 if (mode !== 2 /* RAWTEXT */ && mode !== 1 /* RCDATA */) { 1095 const shouldCondense = context.options.whitespace !== 'preserve'; 1096 for (let i = 0; i < nodes.length; i++) { 1097 const node = nodes[i]; 1098 if (!context.inPre && node.type === 2 /* TEXT */) { 1099 if (!/[^\t\r\n\f ]/.test(node.content)) { 1100 const prev = nodes[i - 1]; 1101 const next = nodes[i + 1]; 1102 // Remove if: 1103 // - the whitespace is the first or last node, or: 1104 // - (condense mode) the whitespace is adjacent to a comment, or: 1105 // - (condense mode) the whitespace is between two elements AND contains newline 1106 if (!prev || 1107 !next || 1108 (shouldCondense && 1109 (prev.type === 3 /* COMMENT */ || 1110 next.type === 3 /* COMMENT */ || 1111 (prev.type === 1 /* ELEMENT */ && 1112 next.type === 1 /* ELEMENT */ && 1113 /[\r\n]/.test(node.content))))) { 1114 removedWhitespace = true; 1115 nodes[i] = null; 1116 } 1117 else { 1118 // Otherwise, the whitespace is condensed into a single space 1119 node.content = ' '; 1120 } 1121 } 1122 else if (shouldCondense) { 1123 // in condense mode, consecutive whitespaces in text are condensed 1124 // down to a single space. 1125 node.content = node.content.replace(/[\t\r\n\f ]+/g, ' '); 1126 } 1127 } 1128 // Remove comment nodes if desired by configuration. 1129 else if (node.type === 3 /* COMMENT */ && !context.options.comments) { 1130 removedWhitespace = true; 1131 nodes[i] = null; 1132 } 1133 } 1134 if (context.inPre && parent && context.options.isPreTag(parent.tag)) { 1135 // remove leading newline per html spec 1136 // https://html.spec.whatwg.org/multipage/grouping-content.html#the-pre-element 1137 const first = nodes[0]; 1138 if (first && first.type === 2 /* TEXT */) { 1139 first.content = first.content.replace(/^\r?\n/, ''); 1140 } 1141 } 1142 } 1143 return removedWhitespace ? nodes.filter(Boolean) : nodes; 1144} 1145function pushNode(nodes, node) { 1146 if (node.type === 2 /* TEXT */) { 1147 const prev = last(nodes); 1148 // Merge if both this and the previous node are text and those are 1149 // consecutive. This happens for cases like "a < b". 1150 if (prev && 1151 prev.type === 2 /* TEXT */ && 1152 prev.loc.end.offset === node.loc.start.offset) { 1153 prev.content += node.content; 1154 prev.loc.end = node.loc.end; 1155 prev.loc.source += node.loc.source; 1156 return; 1157 } 1158 } 1159 nodes.push(node); 1160} 1161function parseCDATA(context, ancestors) { 1162 advanceBy(context, 9); 1163 const nodes = parseChildren(context, 3 /* CDATA */, ancestors); 1164 if (context.source.length === 0) { 1165 emitError(context, 6 /* EOF_IN_CDATA */); 1166 } 1167 else { 1168 advanceBy(context, 3); 1169 } 1170 return nodes; 1171} 1172function parseComment(context) { 1173 const start = getCursor(context); 1174 let content; 1175 // Regular comment. 1176 const match = /--(\!)?>/.exec(context.source); 1177 if (!match) { 1178 content = context.source.slice(4); 1179 advanceBy(context, context.source.length); 1180 emitError(context, 7 /* EOF_IN_COMMENT */); 1181 } 1182 else { 1183 if (match.index <= 3) { 1184 emitError(context, 0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */); 1185 } 1186 if (match[1]) { 1187 emitError(context, 10 /* INCORRECTLY_CLOSED_COMMENT */); 1188 } 1189 content = context.source.slice(4, match.index); 1190 // Advancing with reporting nested comments. 1191 const s = context.source.slice(0, match.index); 1192 let prevIndex = 1, nestedIndex = 0; 1193 while ((nestedIndex = s.indexOf('<!--', prevIndex)) !== -1) { 1194 advanceBy(context, nestedIndex - prevIndex + 1); 1195 if (nestedIndex + 4 < s.length) { 1196 emitError(context, 16 /* NESTED_COMMENT */); 1197 } 1198 prevIndex = nestedIndex + 1; 1199 } 1200 advanceBy(context, match.index + match[0].length - prevIndex + 1); 1201 } 1202 return { 1203 type: 3 /* COMMENT */, 1204 content, 1205 loc: getSelection(context, start) 1206 }; 1207} 1208function parseBogusComment(context) { 1209 const start = getCursor(context); 1210 const contentStart = context.source[1] === '?' ? 1 : 2; 1211 let content; 1212 const closeIndex = context.source.indexOf('>'); 1213 if (closeIndex === -1) { 1214 content = context.source.slice(contentStart); 1215 advanceBy(context, context.source.length); 1216 } 1217 else { 1218 content = context.source.slice(contentStart, closeIndex); 1219 advanceBy(context, closeIndex + 1); 1220 } 1221 return { 1222 type: 3 /* COMMENT */, 1223 content, 1224 loc: getSelection(context, start) 1225 }; 1226} 1227function parseElement(context, ancestors) { 1228 // Start tag. 1229 const wasInPre = context.inPre; 1230 const wasInVPre = context.inVPre; 1231 const parent = last(ancestors); 1232 const element = parseTag(context, 0 /* Start */, parent); 1233 const isPreBoundary = context.inPre && !wasInPre; 1234 const isVPreBoundary = context.inVPre && !wasInVPre; 1235 if (element.isSelfClosing || context.options.isVoidTag(element.tag)) { 1236 // #4030 self-closing <pre> tag 1237 if (isPreBoundary) { 1238 context.inPre = false; 1239 } 1240 if (isVPreBoundary) { 1241 context.inVPre = false; 1242 } 1243 return element; 1244 } 1245 // Children. 1246 ancestors.push(element); 1247 const mode = context.options.getTextMode(element, parent); 1248 const children = parseChildren(context, mode, ancestors); 1249 ancestors.pop(); 1250 // 2.x inline-template compat 1251 { 1252 const inlineTemplateProp = element.props.find(p => p.type === 6 /* ATTRIBUTE */ && p.name === 'inline-template'); 1253 if (inlineTemplateProp && 1254 checkCompatEnabled("COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */, context, inlineTemplateProp.loc)) { 1255 const loc = getSelection(context, element.loc.end); 1256 inlineTemplateProp.value = { 1257 type: 2 /* TEXT */, 1258 content: loc.source, 1259 loc 1260 }; 1261 } 1262 } 1263 element.children = children; 1264 // End tag. 1265 if (startsWithEndTagOpen(context.source, element.tag)) { 1266 parseTag(context, 1 /* End */, parent); 1267 } 1268 else { 1269 emitError(context, 24 /* X_MISSING_END_TAG */, 0, element.loc.start); 1270 if (context.source.length === 0 && element.tag.toLowerCase() === 'script') { 1271 const first = children[0]; 1272 if (first && startsWith(first.loc.source, '<!--')) { 1273 emitError(context, 8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */); 1274 } 1275 } 1276 } 1277 element.loc = getSelection(context, element.loc.start); 1278 if (isPreBoundary) { 1279 context.inPre = false; 1280 } 1281 if (isVPreBoundary) { 1282 context.inVPre = false; 1283 } 1284 return element; 1285} 1286const isSpecialTemplateDirective = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.makeMap)(`if,else,else-if,for,slot`); 1287function parseTag(context, type, parent) { 1288 // Tag open. 1289 const start = getCursor(context); 1290 const match = /^<\/?([a-z][^\t\r\n\f />]*)/i.exec(context.source); 1291 const tag = match[1]; 1292 const ns = context.options.getNamespace(tag, parent); 1293 advanceBy(context, match[0].length); 1294 advanceSpaces(context); 1295 // save current state in case we need to re-parse attributes with v-pre 1296 const cursor = getCursor(context); 1297 const currentSource = context.source; 1298 // check <pre> tag 1299 if (context.options.isPreTag(tag)) { 1300 context.inPre = true; 1301 } 1302 // Attributes. 1303 let props = parseAttributes(context, type); 1304 // check v-pre 1305 if (type === 0 /* Start */ && 1306 !context.inVPre && 1307 props.some(p => p.type === 7 /* DIRECTIVE */ && p.name === 'pre')) { 1308 context.inVPre = true; 1309 // reset context 1310 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)(context, cursor); 1311 context.source = currentSource; 1312 // re-parse attrs and filter out v-pre itself 1313 props = parseAttributes(context, type).filter(p => p.name !== 'v-pre'); 1314 } 1315 // Tag close. 1316 let isSelfClosing = false; 1317 if (context.source.length === 0) { 1318 emitError(context, 9 /* EOF_IN_TAG */); 1319 } 1320 else { 1321 isSelfClosing = startsWith(context.source, '/>'); 1322 if (type === 1 /* End */ && isSelfClosing) { 1323 emitError(context, 4 /* END_TAG_WITH_TRAILING_SOLIDUS */); 1324 } 1325 advanceBy(context, isSelfClosing ? 2 : 1); 1326 } 1327 if (type === 1 /* End */) { 1328 return; 1329 } 1330 // 2.x deprecation checks 1331 if (( true) && 1332 isCompatEnabled("COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context)) { 1333 let hasIf = false; 1334 let hasFor = false; 1335 for (let i = 0; i < props.length; i++) { 1336 const p = props[i]; 1337 if (p.type === 7 /* DIRECTIVE */) { 1338 if (p.name === 'if') { 1339 hasIf = true; 1340 } 1341 else if (p.name === 'for') { 1342 hasFor = true; 1343 } 1344 } 1345 if (hasIf && hasFor) { 1346 warnDeprecation("COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context, getSelection(context, start)); 1347 break; 1348 } 1349 } 1350 } 1351 let tagType = 0 /* ELEMENT */; 1352 if (!context.inVPre) { 1353 if (tag === 'slot') { 1354 tagType = 2 /* SLOT */; 1355 } 1356 else if (tag === 'template') { 1357 if (props.some(p => p.type === 7 /* DIRECTIVE */ && isSpecialTemplateDirective(p.name))) { 1358 tagType = 3 /* TEMPLATE */; 1359 } 1360 } 1361 else if (isComponent(tag, props, context)) { 1362 tagType = 1 /* COMPONENT */; 1363 } 1364 } 1365 return { 1366 type: 1 /* ELEMENT */, 1367 ns, 1368 tag, 1369 tagType, 1370 props, 1371 isSelfClosing, 1372 children: [], 1373 loc: getSelection(context, start), 1374 codegenNode: undefined // to be created during transform phase 1375 }; 1376} 1377function isComponent(tag, props, context) { 1378 const options = context.options; 1379 if (options.isCustomElement(tag)) { 1380 return false; 1381 } 1382 if (tag === 'component' || 1383 /^[A-Z]/.test(tag) || 1384 isCoreComponent(tag) || 1385 (options.isBuiltInComponent && options.isBuiltInComponent(tag)) || 1386 (options.isNativeTag && !options.isNativeTag(tag))) { 1387 return true; 1388 } 1389 // at this point the tag should be a native tag, but check for potential "is" 1390 // casting 1391 for (let i = 0; i < props.length; i++) { 1392 const p = props[i]; 1393 if (p.type === 6 /* ATTRIBUTE */) { 1394 if (p.name === 'is' && p.value) { 1395 if (p.value.content.startsWith('vue:')) { 1396 return true; 1397 } 1398 else if (checkCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) { 1399 return true; 1400 } 1401 } 1402 } 1403 else { 1404 // directive 1405 // v-is (TODO Deprecate) 1406 if (p.name === 'is') { 1407 return true; 1408 } 1409 else if ( 1410 // :is on plain element - only treat as component in compat mode 1411 p.name === 'bind' && 1412 isStaticArgOf(p.arg, 'is') && 1413 true && 1414 checkCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) { 1415 return true; 1416 } 1417 } 1418 } 1419} 1420function parseAttributes(context, type) { 1421 const props = []; 1422 const attributeNames = new Set(); 1423 while (context.source.length > 0 && 1424 !startsWith(context.source, '>') && 1425 !startsWith(context.source, '/>')) { 1426 if (startsWith(context.source, '/')) { 1427 emitError(context, 22 /* UNEXPECTED_SOLIDUS_IN_TAG */); 1428 advanceBy(context, 1); 1429 advanceSpaces(context); 1430 continue; 1431 } 1432 if (type === 1 /* End */) { 1433 emitError(context, 3 /* END_TAG_WITH_ATTRIBUTES */); 1434 } 1435 const attr = parseAttribute(context, attributeNames); 1436 // Trim whitespace between class 1437 // https://github.com/vuejs/core/issues/4251 1438 if (attr.type === 6 /* ATTRIBUTE */ && 1439 attr.value && 1440 attr.name === 'class') { 1441 attr.value.content = attr.value.content.replace(/\s+/g, ' ').trim(); 1442 } 1443 if (type === 0 /* Start */) { 1444 props.push(attr); 1445 } 1446 if (/^[^\t\r\n\f />]/.test(context.source)) { 1447 emitError(context, 15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */); 1448 } 1449 advanceSpaces(context); 1450 } 1451 return props; 1452} 1453function parseAttribute(context, nameSet) { 1454 // Name. 1455 const start = getCursor(context); 1456 const match = /^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(context.source); 1457 const name = match[0]; 1458 if (nameSet.has(name)) { 1459 emitError(context, 2 /* DUPLICATE_ATTRIBUTE */); 1460 } 1461 nameSet.add(name); 1462 if (name[0] === '=') { 1463 emitError(context, 19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */); 1464 } 1465 { 1466 const pattern = /["'<]/g; 1467 let m; 1468 while ((m = pattern.exec(name))) { 1469 emitError(context, 17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */, m.index); 1470 } 1471 } 1472 advanceBy(context, name.length); 1473 // Value 1474 let value = undefined; 1475 if (/^[\t\r\n\f ]*=/.test(context.source)) { 1476 advanceSpaces(context); 1477 advanceBy(context, 1); 1478 advanceSpaces(context); 1479 value = parseAttributeValue(context); 1480 if (!value) { 1481 emitError(context, 13 /* MISSING_ATTRIBUTE_VALUE */); 1482 } 1483 } 1484 const loc = getSelection(context, start); 1485 if (!context.inVPre && /^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(name)) { 1486 const match = /(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(name); 1487 let isPropShorthand = startsWith(name, '.'); 1488 let dirName = match[1] || 1489 (isPropShorthand || startsWith(name, ':') 1490 ? 'bind' 1491 : startsWith(name, '@') 1492 ? 'on' 1493 : 'slot'); 1494 let arg; 1495 if (match[2]) { 1496 const isSlot = dirName === 'slot'; 1497 const startOffset = name.lastIndexOf(match[2]); 1498 const loc = getSelection(context, getNewPosition(context, start, startOffset), getNewPosition(context, start, startOffset + match[2].length + ((isSlot && match[3]) || '').length)); 1499 let content = match[2]; 1500 let isStatic = true; 1501 if (content.startsWith('[')) { 1502 isStatic = false; 1503 if (!content.endsWith(']')) { 1504 emitError(context, 27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */); 1505 content = content.slice(1); 1506 } 1507 else { 1508 content = content.slice(1, content.length - 1); 1509 } 1510 } 1511 else if (isSlot) { 1512 // #1241 special case for v-slot: vuetify relies extensively on slot 1513 // names containing dots. v-slot doesn't have any modifiers and Vue 2.x 1514 // supports such usage so we are keeping it consistent with 2.x. 1515 content += match[3] || ''; 1516 } 1517 arg = { 1518 type: 4 /* SIMPLE_EXPRESSION */, 1519 content, 1520 isStatic, 1521 constType: isStatic 1522 ? 3 /* CAN_STRINGIFY */ 1523 : 0 /* NOT_CONSTANT */, 1524 loc 1525 }; 1526 } 1527 if (value && value.isQuoted) { 1528 const valueLoc = value.loc; 1529 valueLoc.start.offset++; 1530 valueLoc.start.column++; 1531 valueLoc.end = advancePositionWithClone(valueLoc.start, value.content); 1532 valueLoc.source = valueLoc.source.slice(1, -1); 1533 } 1534 const modifiers = match[3] ? match[3].slice(1).split('.') : []; 1535 if (isPropShorthand) 1536 modifiers.push('prop'); 1537 // 2.x compat v-bind:foo.sync -> v-model:foo 1538 if (dirName === 'bind' && arg) { 1539 if (modifiers.includes('sync') && 1540 checkCompatEnabled("COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */, context, loc, arg.loc.source)) { 1541 dirName = 'model'; 1542 modifiers.splice(modifiers.indexOf('sync'), 1); 1543 } 1544 if (( true) && modifiers.includes('prop')) { 1545 checkCompatEnabled("COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */, context, loc); 1546 } 1547 } 1548 return { 1549 type: 7 /* DIRECTIVE */, 1550 name: dirName, 1551 exp: value && { 1552 type: 4 /* SIMPLE_EXPRESSION */, 1553 content: value.content, 1554 isStatic: false, 1555 // Treat as non-constant by default. This can be potentially set to 1556 // other values by `transformExpression` to make it eligible for hoisting. 1557 constType: 0 /* NOT_CONSTANT */, 1558 loc: value.loc 1559 }, 1560 arg, 1561 modifiers, 1562 loc 1563 }; 1564 } 1565 // missing directive name or illegal directive name 1566 if (!context.inVPre && startsWith(name, 'v-')) { 1567 emitError(context, 26 /* X_MISSING_DIRECTIVE_NAME */); 1568 } 1569 return { 1570 type: 6 /* ATTRIBUTE */, 1571 name, 1572 value: value && { 1573 type: 2 /* TEXT */, 1574 content: value.content, 1575 loc: value.loc 1576 }, 1577 loc 1578 }; 1579} 1580function parseAttributeValue(context) { 1581 const start = getCursor(context); 1582 let content; 1583 const quote = context.source[0]; 1584 const isQuoted = quote === `"` || quote === `'`; 1585 if (isQuoted) { 1586 // Quoted value. 1587 advanceBy(context, 1); 1588 const endIndex = context.source.indexOf(quote); 1589 if (endIndex === -1) { 1590 content = parseTextData(context, context.source.length, 4 /* ATTRIBUTE_VALUE */); 1591 } 1592 else { 1593 content = parseTextData(context, endIndex, 4 /* ATTRIBUTE_VALUE */); 1594 advanceBy(context, 1); 1595 } 1596 } 1597 else { 1598 // Unquoted 1599 const match = /^[^\t\r\n\f >]+/.exec(context.source); 1600 if (!match) { 1601 return undefined; 1602 } 1603 const unexpectedChars = /["'<=`]/g; 1604 let m; 1605 while ((m = unexpectedChars.exec(match[0]))) { 1606 emitError(context, 18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */, m.index); 1607 } 1608 content = parseTextData(context, match[0].length, 4 /* ATTRIBUTE_VALUE */); 1609 } 1610 return { content, isQuoted, loc: getSelection(context, start) }; 1611} 1612function parseInterpolation(context, mode) { 1613 const [open, close] = context.options.delimiters; 1614 const closeIndex = context.source.indexOf(close, open.length); 1615 if (closeIndex === -1) { 1616 emitError(context, 25 /* X_MISSING_INTERPOLATION_END */); 1617 return undefined; 1618 } 1619 const start = getCursor(context); 1620 advanceBy(context, open.length); 1621 const innerStart = getCursor(context); 1622 const innerEnd = getCursor(context); 1623 const rawContentLength = closeIndex - open.length; 1624 const rawContent = context.source.slice(0, rawContentLength); 1625 const preTrimContent = parseTextData(context, rawContentLength, mode); 1626 const content = preTrimContent.trim(); 1627 const startOffset = preTrimContent.indexOf(content); 1628 if (startOffset > 0) { 1629 advancePositionWithMutation(innerStart, rawContent, startOffset); 1630 } 1631 const endOffset = rawContentLength - (preTrimContent.length - content.length - startOffset); 1632 advancePositionWithMutation(innerEnd, rawContent, endOffset); 1633 advanceBy(context, close.length); 1634 return { 1635 type: 5 /* INTERPOLATION */, 1636 content: { 1637 type: 4 /* SIMPLE_EXPRESSION */, 1638 isStatic: false, 1639 // Set `isConstant` to false by default and will decide in transformExpression 1640 constType: 0 /* NOT_CONSTANT */, 1641 content, 1642 loc: getSelection(context, innerStart, innerEnd) 1643 }, 1644 loc: getSelection(context, start) 1645 }; 1646} 1647function parseText(context, mode) { 1648 const endTokens = mode === 3 /* CDATA */ ? [']]>'] : ['<', context.options.delimiters[0]]; 1649 let endIndex = context.source.length; 1650 for (let i = 0; i < endTokens.length; i++) { 1651 const index = context.source.indexOf(endTokens[i], 1); 1652 if (index !== -1 && endIndex > index) { 1653 endIndex = index; 1654 } 1655 } 1656 const start = getCursor(context); 1657 const content = parseTextData(context, endIndex, mode); 1658 return { 1659 type: 2 /* TEXT */, 1660 content, 1661 loc: getSelection(context, start) 1662 }; 1663} 1664/** 1665 * Get text data with a given length from the current location. 1666 * This translates HTML entities in the text data. 1667 */ 1668function parseTextData(context, length, mode) { 1669 const rawText = context.source.slice(0, length); 1670 advanceBy(context, length); 1671 if (mode === 2 /* RAWTEXT */ || 1672 mode === 3 /* CDATA */ || 1673 !rawText.includes('&')) { 1674 return rawText; 1675 } 1676 else { 1677 // DATA or RCDATA containing "&"". Entity decoding required. 1678 return context.options.decodeEntities(rawText, mode === 4 /* ATTRIBUTE_VALUE */); 1679 } 1680} 1681function getCursor(context) { 1682 const { column, line, offset } = context; 1683 return { column, line, offset }; 1684} 1685function getSelection(context, start, end) { 1686 end = end || getCursor(context); 1687 return { 1688 start, 1689 end, 1690 source: context.originalSource.slice(start.offset, end.offset) 1691 }; 1692} 1693function last(xs) { 1694 return xs[xs.length - 1]; 1695} 1696function startsWith(source, searchString) { 1697 return source.startsWith(searchString); 1698} 1699function advanceBy(context, numberOfCharacters) { 1700 const { source } = context; 1701 advancePositionWithMutation(context, source, numberOfCharacters); 1702 context.source = source.slice(numberOfCharacters); 1703} 1704function advanceSpaces(context) { 1705 const match = /^[\t\r\n\f ]+/.exec(context.source); 1706 if (match) { 1707 advanceBy(context, match[0].length); 1708 } 1709} 1710function getNewPosition(context, start, numberOfCharacters) { 1711 return advancePositionWithClone(start, context.originalSource.slice(start.offset, numberOfCharacters), numberOfCharacters); 1712} 1713function emitError(context, code, offset, loc = getCursor(context)) { 1714 if (offset) { 1715 loc.offset += offset; 1716 loc.column += offset; 1717 } 1718 context.options.onError(createCompilerError(code, { 1719 start: loc, 1720 end: loc, 1721 source: '' 1722 })); 1723} 1724function isEnd(context, mode, ancestors) { 1725 const s = context.source; 1726 switch (mode) { 1727 case 0 /* DATA */: 1728 if (startsWith(s, '</')) { 1729 // TODO: probably bad performance 1730 for (let i = ancestors.length - 1; i >= 0; --i) { 1731 if (startsWithEndTagOpen(s, ancestors[i].tag)) { 1732 return true; 1733 } 1734 } 1735 } 1736 break; 1737 case 1 /* RCDATA */: 1738 case 2 /* RAWTEXT */: { 1739 const parent = last(ancestors); 1740 if (parent && startsWithEndTagOpen(s, parent.tag)) { 1741 return true; 1742 } 1743 break; 1744 } 1745 case 3 /* CDATA */: 1746 if (startsWith(s, ']]>')) { 1747 return true; 1748 } 1749 break; 1750 } 1751 return !s; 1752} 1753function startsWithEndTagOpen(source, tag) { 1754 return (startsWith(source, '</') && 1755 source.slice(2, 2 + tag.length).toLowerCase() === tag.toLowerCase() && 1756 /[\t\r\n\f />]/.test(source[2 + tag.length] || '>')); 1757} 1758 1759function hoistStatic(root, context) { 1760 walk(root, context, 1761 // Root node is unfortunately non-hoistable due to potential parent 1762 // fallthrough attributes. 1763 isSingleElementRoot(root, root.children[0])); 1764} 1765function isSingleElementRoot(root, child) { 1766 const { children } = root; 1767 return (children.length === 1 && 1768 child.type === 1 /* ELEMENT */ && 1769 !isSlotOutlet(child)); 1770} 1771function walk(node, context, doNotHoistNode = false) { 1772 const { children } = node; 1773 const originalCount = children.length; 1774 let hoistedCount = 0; 1775 for (let i = 0; i < children.length; i++) { 1776 const child = children[i]; 1777 // only plain elements & text calls are eligible for hoisting. 1778 if (child.type === 1 /* ELEMENT */ && 1779 child.tagType === 0 /* ELEMENT */) { 1780 const constantType = doNotHoistNode 1781 ? 0 /* NOT_CONSTANT */ 1782 : getConstantType(child, context); 1783 if (constantType > 0 /* NOT_CONSTANT */) { 1784 if (constantType >= 2 /* CAN_HOIST */) { 1785 child.codegenNode.patchFlag = 1786 -1 /* HOISTED */ + (( true) ? ` /* HOISTED */` : 0); 1787 child.codegenNode = context.hoist(child.codegenNode); 1788 hoistedCount++; 1789 continue; 1790 } 1791 } 1792 else { 1793 // node may contain dynamic children, but its props may be eligible for 1794 // hoisting. 1795 const codegenNode = child.codegenNode; 1796 if (codegenNode.type === 13 /* VNODE_CALL */) { 1797 const flag = getPatchFlag(codegenNode); 1798 if ((!flag || 1799 flag === 512 /* NEED_PATCH */ || 1800 flag === 1 /* TEXT */) && 1801 getGeneratedPropsConstantType(child, context) >= 1802 2 /* CAN_HOIST */) { 1803 const props = getNodeProps(child); 1804 if (props) { 1805 codegenNode.props = context.hoist(props); 1806 } 1807 } 1808 if (codegenNode.dynamicProps) { 1809 codegenNode.dynamicProps = context.hoist(codegenNode.dynamicProps); 1810 } 1811 } 1812 } 1813 } 1814 else if (child.type === 12 /* TEXT_CALL */ && 1815 getConstantType(child.content, context) >= 2 /* CAN_HOIST */) { 1816 child.codegenNode = context.hoist(child.codegenNode); 1817 hoistedCount++; 1818 } 1819 // walk further 1820 if (child.type === 1 /* ELEMENT */) { 1821 const isComponent = child.tagType === 1 /* COMPONENT */; 1822 if (isComponent) { 1823 context.scopes.vSlot++; 1824 } 1825 walk(child, context); 1826 if (isComponent) { 1827 context.scopes.vSlot--; 1828 } 1829 } 1830 else if (child.type === 11 /* FOR */) { 1831 // Do not hoist v-for single child because it has to be a block 1832 walk(child, context, child.children.length === 1); 1833 } 1834 else if (child.type === 9 /* IF */) { 1835 for (let i = 0; i < child.branches.length; i++) { 1836 // Do not hoist v-if single child because it has to be a block 1837 walk(child.branches[i], context, child.branches[i].children.length === 1); 1838 } 1839 } 1840 } 1841 if (hoistedCount && context.transformHoist) { 1842 context.transformHoist(children, context, node); 1843 } 1844 // all children were hoisted - the entire children array is hoistable. 1845 if (hoistedCount && 1846 hoistedCount === originalCount && 1847 node.type === 1 /* ELEMENT */ && 1848 node.tagType === 0 /* ELEMENT */ && 1849 node.codegenNode && 1850 node.codegenNode.type === 13 /* VNODE_CALL */ && 1851 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node.codegenNode.children)) { 1852 node.codegenNode.children = context.hoist(createArrayExpression(node.codegenNode.children)); 1853 } 1854} 1855function getConstantType(node, context) { 1856 const { constantCache } = context; 1857 switch (node.type) { 1858 case 1 /* ELEMENT */: 1859 if (node.tagType !== 0 /* ELEMENT */) { 1860 return 0 /* NOT_CONSTANT */; 1861 } 1862 const cached = constantCache.get(node); 1863 if (cached !== undefined) { 1864 return cached; 1865 } 1866 const codegenNode = node.codegenNode; 1867 if (codegenNode.type !== 13 /* VNODE_CALL */) { 1868 return 0 /* NOT_CONSTANT */; 1869 } 1870 if (codegenNode.isBlock && 1871 node.tag !== 'svg' && 1872 node.tag !== 'foreignObject') { 1873 return 0 /* NOT_CONSTANT */; 1874 } 1875 const flag = getPatchFlag(codegenNode); 1876 if (!flag) { 1877 let returnType = 3 /* CAN_STRINGIFY */; 1878 // Element itself has no patch flag. However we still need to check: 1879 // 1. Even for a node with no patch flag, it is possible for it to contain 1880 // non-hoistable expressions that refers to scope variables, e.g. compiler 1881 // injected keys or cached event handlers. Therefore we need to always 1882 // check the codegenNode's props to be sure. 1883 const generatedPropsType = getGeneratedPropsConstantType(node, context); 1884 if (generatedPropsType === 0 /* NOT_CONSTANT */) { 1885 constantCache.set(node, 0 /* NOT_CONSTANT */); 1886 return 0 /* NOT_CONSTANT */; 1887 } 1888 if (generatedPropsType < returnType) { 1889 returnType = generatedPropsType; 1890 } 1891 // 2. its children. 1892 for (let i = 0; i < node.children.length; i++) { 1893 const childType = getConstantType(node.children[i], context); 1894 if (childType === 0 /* NOT_CONSTANT */) { 1895 constantCache.set(node, 0 /* NOT_CONSTANT */); 1896 return 0 /* NOT_CONSTANT */; 1897 } 1898 if (childType < returnType) { 1899 returnType = childType; 1900 } 1901 } 1902 // 3. if the type is not already CAN_SKIP_PATCH which is the lowest non-0 1903 // type, check if any of the props can cause the type to be lowered 1904 // we can skip can_patch because it's guaranteed by the absence of a 1905 // patchFlag. 1906 if (returnType > 1 /* CAN_SKIP_PATCH */) { 1907 for (let i = 0; i < node.props.length; i++) { 1908 const p = node.props[i]; 1909 if (p.type === 7 /* DIRECTIVE */ && p.name === 'bind' && p.exp) { 1910 const expType = getConstantType(p.exp, context); 1911 if (expType === 0 /* NOT_CONSTANT */) { 1912 constantCache.set(node, 0 /* NOT_CONSTANT */); 1913 return 0 /* NOT_CONSTANT */; 1914 } 1915 if (expType < returnType) { 1916 returnType = expType; 1917 } 1918 } 1919 } 1920 } 1921 // only svg/foreignObject could be block here, however if they are 1922 // static then they don't need to be blocks since there will be no 1923 // nested updates. 1924 if (codegenNode.isBlock) { 1925 // except set custom directives. 1926 for (let i = 0; i < node.props.length; i++) { 1927 const p = node.props[i]; 1928 if (p.type === 7 /* DIRECTIVE */) { 1929 constantCache.set(node, 0 /* NOT_CONSTANT */); 1930 return 0 /* NOT_CONSTANT */; 1931 } 1932 } 1933 context.removeHelper(OPEN_BLOCK); 1934 context.removeHelper(getVNodeBlockHelper(context.inSSR, codegenNode.isComponent)); 1935 codegenNode.isBlock = false; 1936 context.helper(getVNodeHelper(context.inSSR, codegenNode.isComponent)); 1937 } 1938 constantCache.set(node, returnType); 1939 return returnType; 1940 } 1941 else { 1942 constantCache.set(node, 0 /* NOT_CONSTANT */); 1943 return 0 /* NOT_CONSTANT */; 1944 } 1945 case 2 /* TEXT */: 1946 case 3 /* COMMENT */: 1947 return 3 /* CAN_STRINGIFY */; 1948 case 9 /* IF */: 1949 case 11 /* FOR */: 1950 case 10 /* IF_BRANCH */: 1951 return 0 /* NOT_CONSTANT */; 1952 case 5 /* INTERPOLATION */: 1953 case 12 /* TEXT_CALL */: 1954 return getConstantType(node.content, context); 1955 case 4 /* SIMPLE_EXPRESSION */: 1956 return node.constType; 1957 case 8 /* COMPOUND_EXPRESSION */: 1958 let returnType = 3 /* CAN_STRINGIFY */; 1959 for (let i = 0; i < node.children.length; i++) { 1960 const child = node.children[i]; 1961 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(child)) { 1962 continue; 1963 } 1964 const childType = getConstantType(child, context); 1965 if (childType === 0 /* NOT_CONSTANT */) { 1966 return 0 /* NOT_CONSTANT */; 1967 } 1968 else if (childType < returnType) { 1969 returnType = childType; 1970 } 1971 } 1972 return returnType; 1973 default: 1974 if ((true)) ; 1975 return 0 /* NOT_CONSTANT */; 1976 } 1977} 1978const allowHoistedHelperSet = new Set([ 1979 NORMALIZE_CLASS, 1980 NORMALIZE_STYLE, 1981 NORMALIZE_PROPS, 1982 GUARD_REACTIVE_PROPS 1983]); 1984function getConstantTypeOfHelperCall(value, context) { 1985 if (value.type === 14 /* JS_CALL_EXPRESSION */ && 1986 !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(value.callee) && 1987 allowHoistedHelperSet.has(value.callee)) { 1988 const arg = value.arguments[0]; 1989 if (arg.type === 4 /* SIMPLE_EXPRESSION */) { 1990 return getConstantType(arg, context); 1991 } 1992 else if (arg.type === 14 /* JS_CALL_EXPRESSION */) { 1993 // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(exp))` 1994 return getConstantTypeOfHelperCall(arg, context); 1995 } 1996 } 1997 return 0 /* NOT_CONSTANT */; 1998} 1999function getGeneratedPropsConstantType(node, context) { 2000 let returnType = 3 /* CAN_STRINGIFY */; 2001 const props = getNodeProps(node); 2002 if (props && props.type === 15 /* JS_OBJECT_EXPRESSION */) { 2003 const { properties } = props; 2004 for (let i = 0; i < properties.length; i++) { 2005 const { key, value } = properties[i]; 2006 const keyType = getConstantType(key, context); 2007 if (keyType === 0 /* NOT_CONSTANT */) { 2008 return keyType; 2009 } 2010 if (keyType < returnType) { 2011 returnType = keyType; 2012 } 2013 let valueType; 2014 if (value.type === 4 /* SIMPLE_EXPRESSION */) { 2015 valueType = getConstantType(value, context); 2016 } 2017 else if (value.type === 14 /* JS_CALL_EXPRESSION */) { 2018 // some helper calls can be hoisted, 2019 // such as the `normalizeProps` generated by the compiler for pre-normalize class, 2020 // in this case we need to respect the ConstantType of the helper's arguments 2021 valueType = getConstantTypeOfHelperCall(value, context); 2022 } 2023 else { 2024 valueType = 0 /* NOT_CONSTANT */; 2025 } 2026 if (valueType === 0 /* NOT_CONSTANT */) { 2027 return valueType; 2028 } 2029 if (valueType < returnType) { 2030 returnType = valueType; 2031 } 2032 } 2033 } 2034 return returnType; 2035} 2036function getNodeProps(node) { 2037 const codegenNode = node.codegenNode; 2038 if (codegenNode.type === 13 /* VNODE_CALL */) { 2039 return codegenNode.props; 2040 } 2041} 2042function getPatchFlag(node) { 2043 const flag = node.patchFlag; 2044 return flag ? parseInt(flag, 10) : undefined; 2045} 2046 2047function createTransformContext(root, { filename = '', prefixIdentifiers = false, hoistStatic = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP, isCustomElement = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) { 2048 const nameMatch = filename.replace(/\?.*$/, '').match(/([^/\\]+)\.\w+$/); 2049 const context = { 2050 // options 2051 selfName: nameMatch && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(nameMatch[1])), 2052 prefixIdentifiers, 2053 hoistStatic, 2054 cacheHandlers, 2055 nodeTransforms, 2056 directiveTransforms, 2057 transformHoist, 2058 isBuiltInComponent, 2059 isCustomElement, 2060 expressionPlugins, 2061 scopeId, 2062 slotted, 2063 ssr, 2064 inSSR, 2065 ssrCssVars, 2066 bindingMetadata, 2067 inline, 2068 isTS, 2069 onError, 2070 onWarn, 2071 compatConfig, 2072 // state 2073 root, 2074 helpers: new Map(), 2075 components: new Set(), 2076 directives: new Set(), 2077 hoists: [], 2078 imports: [], 2079 constantCache: new Map(), 2080 temps: 0, 2081 cached: 0, 2082 identifiers: Object.create(null), 2083 scopes: { 2084 vFor: 0, 2085 vSlot: 0, 2086 vPre: 0, 2087 vOnce: 0 2088 }, 2089 parent: null, 2090 currentNode: root, 2091 childIndex: 0, 2092 inVOnce: false, 2093 // methods 2094 helper(name) { 2095 const count = context.helpers.get(name) || 0; 2096 context.helpers.set(name, count + 1); 2097 return name; 2098 }, 2099 removeHelper(name) { 2100 const count = context.helpers.get(name); 2101 if (count) { 2102 const currentCount = count - 1; 2103 if (!currentCount) { 2104 context.helpers.delete(name); 2105 } 2106 else { 2107 context.helpers.set(name, currentCount); 2108 } 2109 } 2110 }, 2111 helperString(name) { 2112 return `_${helperNameMap[context.helper(name)]}`; 2113 }, 2114 replaceNode(node) { 2115 /* istanbul ignore if */ 2116 if ((true)) { 2117 if (!context.currentNode) { 2118 throw new Error(`Node being replaced is already removed.`); 2119 } 2120 if (!context.parent) { 2121 throw new Error(`Cannot replace root node.`); 2122 } 2123 } 2124 context.parent.children[context.childIndex] = context.currentNode = node; 2125 }, 2126 removeNode(node) { 2127 if (( true) && !context.parent) { 2128 throw new Error(`Cannot remove root node.`); 2129 } 2130 const list = context.parent.children; 2131 const removalIndex = node 2132 ? list.indexOf(node) 2133 : context.currentNode 2134 ? context.childIndex 2135 : -1; 2136 /* istanbul ignore if */ 2137 if (( true) && removalIndex < 0) { 2138 throw new Error(`node being removed is not a child of current parent`); 2139 } 2140 if (!node || node === context.currentNode) { 2141 // current node removed 2142 context.currentNode = null; 2143 context.onNodeRemoved(); 2144 } 2145 else { 2146 // sibling node removed 2147 if (context.childIndex > removalIndex) { 2148 context.childIndex--; 2149 context.onNodeRemoved(); 2150 } 2151 } 2152 context.parent.children.splice(removalIndex, 1); 2153 }, 2154 onNodeRemoved: () => { }, 2155 addIdentifiers(exp) { 2156 }, 2157 removeIdentifiers(exp) { 2158 }, 2159 hoist(exp) { 2160 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(exp)) 2161 exp = createSimpleExpression(exp); 2162 context.hoists.push(exp); 2163 const identifier = createSimpleExpression(`_hoisted_${context.hoists.length}`, false, exp.loc, 2 /* CAN_HOIST */); 2164 identifier.hoisted = exp; 2165 return identifier; 2166 }, 2167 cache(exp, isVNode = false) { 2168 return createCacheExpression(context.cached++, exp, isVNode); 2169 } 2170 }; 2171 { 2172 context.filters = new Set(); 2173 } 2174 return context; 2175} 2176function transform(root, options) { 2177 const context = createTransformContext(root, options); 2178 traverseNode(root, context); 2179 if (options.hoistStatic) { 2180 hoistStatic(root, context); 2181 } 2182 if (!options.ssr) { 2183 createRootCodegen(root, context); 2184 } 2185 // finalize meta information 2186 root.helpers = [...context.helpers.keys()]; 2187 root.components = [...context.components]; 2188 root.directives = [...context.directives]; 2189 root.imports = context.imports; 2190 root.hoists = context.hoists; 2191 root.temps = context.temps; 2192 root.cached = context.cached; 2193 { 2194 root.filters = [...context.filters]; 2195 } 2196} 2197function createRootCodegen(root, context) { 2198 const { helper } = context; 2199 const { children } = root; 2200 if (children.length === 1) { 2201 const child = children[0]; 2202 // if the single child is an element, turn it into a block. 2203 if (isSingleElementRoot(root, child) && child.codegenNode) { 2204 // single element root is never hoisted so codegenNode will never be 2205 // SimpleExpressionNode 2206 const codegenNode = child.codegenNode; 2207 if (codegenNode.type === 13 /* VNODE_CALL */) { 2208 makeBlock(codegenNode, context); 2209 } 2210 root.codegenNode = codegenNode; 2211 } 2212 else { 2213 // - single <slot/>, IfNode, ForNode: already blocks. 2214 // - single text node: always patched. 2215 // root codegen falls through via genNode() 2216 root.codegenNode = child; 2217 } 2218 } 2219 else if (children.length > 1) { 2220 // root has multiple nodes - return a fragment block. 2221 let patchFlag = 64 /* STABLE_FRAGMENT */; 2222 let patchFlagText = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64]; 2223 // check if the fragment actually contains a single valid child with 2224 // the rest being comments 2225 if (( true) && 2226 children.filter(c => c.type !== 3 /* COMMENT */).length === 1) { 2227 patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */; 2228 patchFlagText += `, ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[2048]}`; 2229 } 2230 root.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root.children, patchFlag + (( true) ? ` /* ${patchFlagText} */` : 0), undefined, undefined, true, undefined, false /* isComponent */); 2231 } 2232 else ; 2233} 2234function traverseChildren(parent, context) { 2235 let i = 0; 2236 const nodeRemoved = () => { 2237 i--; 2238 }; 2239 for (; i < parent.children.length; i++) { 2240 const child = parent.children[i]; 2241 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child)) 2242 continue; 2243 context.parent = parent; 2244 context.childIndex = i; 2245 context.onNodeRemoved = nodeRemoved; 2246 traverseNode(child, context); 2247 } 2248} 2249function traverseNode(node, context) { 2250 context.currentNode = node; 2251 // apply transform plugins 2252 const { nodeTransforms } = context; 2253 const exitFns = []; 2254 for (let i = 0; i < nodeTransforms.length; i++) { 2255 const onExit = nodeTransforms[i](node, context); 2256 if (onExit) { 2257 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(onExit)) { 2258 exitFns.push(...onExit); 2259 } 2260 else { 2261 exitFns.push(onExit); 2262 } 2263 } 2264 if (!context.currentNode) { 2265 // node was removed 2266 return; 2267 } 2268 else { 2269 // node may have been replaced 2270 node = context.currentNode; 2271 } 2272 } 2273 switch (node.type) { 2274 case 3 /* COMMENT */: 2275 if (!context.ssr) { 2276 // inject import for the Comment symbol, which is needed for creating 2277 // comment nodes with `createVNode` 2278 context.helper(CREATE_COMMENT); 2279 } 2280 break; 2281 case 5 /* INTERPOLATION */: 2282 // no need to traverse, but we need to inject toString helper 2283 if (!context.ssr) { 2284 context.helper(TO_DISPLAY_STRING); 2285 } 2286 break; 2287 // for container types, further traverse downwards 2288 case 9 /* IF */: 2289 for (let i = 0; i < node.branches.length; i++) { 2290 traverseNode(node.branches[i], context); 2291 } 2292 break; 2293 case 10 /* IF_BRANCH */: 2294 case 11 /* FOR */: 2295 case 1 /* ELEMENT */: 2296 case 0 /* ROOT */: 2297 traverseChildren(node, context); 2298 break; 2299 } 2300 // exit transforms 2301 context.currentNode = node; 2302 let i = exitFns.length; 2303 while (i--) { 2304 exitFns[i](); 2305 } 2306} 2307function createStructuralDirectiveTransform(name, fn) { 2308 const matches = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(name) 2309 ? (n) => n === name 2310 : (n) => name.test(n); 2311 return (node, context) => { 2312 if (node.type === 1 /* ELEMENT */) { 2313 const { props } = node; 2314 // structural directive transforms are not concerned with slots 2315 // as they are handled separately in vSlot.ts 2316 if (node.tagType === 3 /* TEMPLATE */ && props.some(isVSlot)) { 2317 return; 2318 } 2319 const exitFns = []; 2320 for (let i = 0; i < props.length; i++) { 2321 const prop = props[i]; 2322 if (prop.type === 7 /* DIRECTIVE */ && matches(prop.name)) { 2323 // structural directives are removed to avoid infinite recursion 2324 // also we remove them *before* applying so that it can further 2325 // traverse itself in case it moves the node around 2326 props.splice(i, 1); 2327 i--; 2328 const onExit = fn(node, prop, context); 2329 if (onExit) 2330 exitFns.push(onExit); 2331 } 2332 } 2333 return exitFns; 2334 } 2335 }; 2336} 2337 2338const PURE_ANNOTATION = `/*#__PURE__*/`; 2339const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`; 2340function createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode === 'module', sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssrRuntimeModuleName = 'vue/server-renderer', ssr = false, isTS = false, inSSR = false }) { 2341 const context = { 2342 mode, 2343 prefixIdentifiers, 2344 sourceMap, 2345 filename, 2346 scopeId, 2347 optimizeImports, 2348 runtimeGlobalName, 2349 runtimeModuleName, 2350 ssrRuntimeModuleName, 2351 ssr, 2352 isTS, 2353 inSSR, 2354 source: ast.loc.source, 2355 code: ``, 2356 column: 1, 2357 line: 1, 2358 offset: 0, 2359 indentLevel: 0, 2360 pure: false, 2361 map: undefined, 2362 helper(key) { 2363 return `_${helperNameMap[key]}`; 2364 }, 2365 push(code, node) { 2366 context.code += code; 2367 }, 2368 indent() { 2369 newline(++context.indentLevel); 2370 }, 2371 deindent(withoutNewLine = false) { 2372 if (withoutNewLine) { 2373 --context.indentLevel; 2374 } 2375 else { 2376 newline(--context.indentLevel); 2377 } 2378 }, 2379 newline() { 2380 newline(context.indentLevel); 2381 } 2382 }; 2383 function newline(n) { 2384 context.push('\n' + ` `.repeat(n)); 2385 } 2386 return context; 2387} 2388function generate(ast, options = {}) { 2389 const context = createCodegenContext(ast, options); 2390 if (options.onContextCreated) 2391 options.onContextCreated(context); 2392 const { mode, push, prefixIdentifiers, indent, deindent, newline, scopeId, ssr } = context; 2393 const hasHelpers = ast.helpers.length > 0; 2394 const useWithBlock = !prefixIdentifiers && mode !== 'module'; 2395 // preambles 2396 // in setup() inline mode, the preamble is generated in a sub context 2397 // and returned separately. 2398 const preambleContext = context; 2399 { 2400 genFunctionPreamble(ast, preambleContext); 2401 } 2402 // enter render function 2403 const functionName = ssr ? `ssrRender` : `render`; 2404 const args = ssr ? ['_ctx', '_push', '_parent', '_attrs'] : ['_ctx', '_cache']; 2405 const signature = args.join(', '); 2406 { 2407 push(`function ${functionName}(${signature}) {`); 2408 } 2409 indent(); 2410 if (useWithBlock) { 2411 push(`with (_ctx) {`); 2412 indent(); 2413 // function mode const declarations should be inside with block 2414 // also they should be renamed to avoid collision with user properties 2415 if (hasHelpers) { 2416 push(`const { ${ast.helpers.map(aliasHelper).join(', ')} } = _Vue`); 2417 push(`\n`); 2418 newline(); 2419 } 2420 } 2421 // generate asset resolution statements 2422 if (ast.components.length) { 2423 genAssets(ast.components, 'component', context); 2424 if (ast.directives.length || ast.temps > 0) { 2425 newline(); 2426 } 2427 } 2428 if (ast.directives.length) { 2429 genAssets(ast.directives, 'directive', context); 2430 if (ast.temps > 0) { 2431 newline(); 2432 } 2433 } 2434 if (ast.filters && ast.filters.length) { 2435 newline(); 2436 genAssets(ast.filters, 'filter', context); 2437 newline(); 2438 } 2439 if (ast.temps > 0) { 2440 push(`let `); 2441 for (let i = 0; i < ast.temps; i++) { 2442 push(`${i > 0 ? `, ` : ``}_temp${i}`); 2443 } 2444 } 2445 if (ast.components.length || ast.directives.length || ast.temps) { 2446 push(`\n`); 2447 newline(); 2448 } 2449 // generate the VNode tree expression 2450 if (!ssr) { 2451 push(`return `); 2452 } 2453 if (ast.codegenNode) { 2454 genNode(ast.codegenNode, context); 2455 } 2456 else { 2457 push(`null`); 2458 } 2459 if (useWithBlock) { 2460 deindent(); 2461 push(`}`); 2462 } 2463 deindent(); 2464 push(`}`); 2465 return { 2466 ast, 2467 code: context.code, 2468 preamble: ``, 2469 // SourceMapGenerator does have toJSON() method but it's not in the types 2470 map: context.map ? context.map.toJSON() : undefined 2471 }; 2472} 2473function genFunctionPreamble(ast, context) { 2474 const { ssr, prefixIdentifiers, push, newline, runtimeModuleName, runtimeGlobalName, ssrRuntimeModuleName } = context; 2475 const VueBinding = runtimeGlobalName; 2476 // Generate const declaration for helpers 2477 // In prefix mode, we place the const declaration at top so it's done 2478 // only once; But if we not prefixing, we place the declaration inside the 2479 // with block so it doesn't incur the `in` check cost for every helper access. 2480 if (ast.helpers.length > 0) { 2481 { 2482 // "with" mode. 2483 // save Vue in a separate variable to avoid collision 2484 push(`const _Vue = ${VueBinding}\n`); 2485 // in "with" mode, helpers are declared inside the with block to avoid 2486 // has check cost, but hoists are lifted out of the function - we need 2487 // to provide the helper here. 2488 if (ast.hoists.length) { 2489 const staticHelpers = [ 2490 CREATE_VNODE, 2491 CREATE_ELEMENT_VNODE, 2492 CREATE_COMMENT, 2493 CREATE_TEXT, 2494 CREATE_STATIC 2495 ] 2496 .filter(helper => ast.helpers.includes(helper)) 2497 .map(aliasHelper) 2498 .join(', '); 2499 push(`const { ${staticHelpers} } = _Vue\n`); 2500 } 2501 } 2502 } 2503 genHoists(ast.hoists, context); 2504 newline(); 2505 push(`return `); 2506} 2507function genAssets(assets, type, { helper, push, newline, isTS }) { 2508 const resolver = helper(type === 'filter' 2509 ? RESOLVE_FILTER 2510 : type === 'component' 2511 ? RESOLVE_COMPONENT 2512 : RESOLVE_DIRECTIVE); 2513 for (let i = 0; i < assets.length; i++) { 2514 let id = assets[i]; 2515 // potential component implicit self-reference inferred from SFC filename 2516 const maybeSelfReference = id.endsWith('__self'); 2517 if (maybeSelfReference) { 2518 id = id.slice(0, -6); 2519 } 2520 push(`const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})${isTS ? `!` : ``}`); 2521 if (i < assets.length - 1) { 2522 newline(); 2523 } 2524 } 2525} 2526function genHoists(hoists, context) { 2527 if (!hoists.length) { 2528 return; 2529 } 2530 context.pure = true; 2531 const { push, newline, helper, scopeId, mode } = context; 2532 newline(); 2533 for (let i = 0; i < hoists.length; i++) { 2534 const exp = hoists[i]; 2535 if (exp) { 2536 push(`const _hoisted_${i + 1} = ${``}`); 2537 genNode(exp, context); 2538 newline(); 2539 } 2540 } 2541 context.pure = false; 2542} 2543function isText$1(n) { 2544 return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(n) || 2545 n.type === 4 /* SIMPLE_EXPRESSION */ || 2546 n.type === 2 /* TEXT */ || 2547 n.type === 5 /* INTERPOLATION */ || 2548 n.type === 8 /* COMPOUND_EXPRESSION */); 2549} 2550function genNodeListAsArray(nodes, context) { 2551 const multilines = nodes.length > 3 || 2552 ((( true)) && nodes.some(n => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(n) || !isText$1(n))); 2553 context.push(`[`); 2554 multilines && context.indent(); 2555 genNodeList(nodes, context, multilines); 2556 multilines && context.deindent(); 2557 context.push(`]`); 2558} 2559function genNodeList(nodes, context, multilines = false, comma = true) { 2560 const { push, newline } = context; 2561 for (let i = 0; i < nodes.length; i++) { 2562 const node = nodes[i]; 2563 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node)) { 2564 push(node); 2565 } 2566 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node)) { 2567 genNodeListAsArray(node, context); 2568 } 2569 else { 2570 genNode(node, context); 2571 } 2572 if (i < nodes.length - 1) { 2573 if (multilines) { 2574 comma && push(','); 2575 newline(); 2576 } 2577 else { 2578 comma && push(', '); 2579 } 2580 } 2581 } 2582} 2583function genNode(node, context) { 2584 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node)) { 2585 context.push(node); 2586 return; 2587 } 2588 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(node)) { 2589 context.push(context.helper(node)); 2590 return; 2591 } 2592 switch (node.type) { 2593 case 1 /* ELEMENT */: 2594 case 9 /* IF */: 2595 case 11 /* FOR */: 2596 ( true) && 2597 assert(node.codegenNode != null, `Codegen node is missing for element/if/for node. ` + 2598 `Apply appropriate transforms first.`); 2599 genNode(node.codegenNode, context); 2600 break; 2601 case 2 /* TEXT */: 2602 genText(node, context); 2603 break; 2604 case 4 /* SIMPLE_EXPRESSION */: 2605 genExpression(node, context); 2606 break; 2607 case 5 /* INTERPOLATION */: 2608 genInterpolation(node, context); 2609 break; 2610 case 12 /* TEXT_CALL */: 2611 genNode(node.codegenNode, context); 2612 break; 2613 case 8 /* COMPOUND_EXPRESSION */: 2614 genCompoundExpression(node, context); 2615 break; 2616 case 3 /* COMMENT */: 2617 genComment(node, context); 2618 break; 2619 case 13 /* VNODE_CALL */: 2620 genVNodeCall(node, context); 2621 break; 2622 case 14 /* JS_CALL_EXPRESSION */: 2623 genCallExpression(node, context); 2624 break; 2625 case 15 /* JS_OBJECT_EXPRESSION */: 2626 genObjectExpression(node, context); 2627 break; 2628 case 17 /* JS_ARRAY_EXPRESSION */: 2629 genArrayExpression(node, context); 2630 break; 2631 case 18 /* JS_FUNCTION_EXPRESSION */: 2632 genFunctionExpression(node, context); 2633 break; 2634 case 19 /* JS_CONDITIONAL_EXPRESSION */: 2635 genConditionalExpression(node, context); 2636 break; 2637 case 20 /* JS_CACHE_EXPRESSION */: 2638 genCacheExpression(node, context); 2639 break; 2640 case 21 /* JS_BLOCK_STATEMENT */: 2641 genNodeList(node.body, context, true, false); 2642 break; 2643 // SSR only types 2644 case 22 /* JS_TEMPLATE_LITERAL */: 2645 break; 2646 case 23 /* JS_IF_STATEMENT */: 2647 break; 2648 case 24 /* JS_ASSIGNMENT_EXPRESSION */: 2649 break; 2650 case 25 /* JS_SEQUENCE_EXPRESSION */: 2651 break; 2652 case 26 /* JS_RETURN_STATEMENT */: 2653 break; 2654 /* istanbul ignore next */ 2655 case 10 /* IF_BRANCH */: 2656 // noop 2657 break; 2658 default: 2659 if ((true)) { 2660 assert(false, `unhandled codegen node type: ${node.type}`); 2661 // make sure we exhaust all possible types 2662 const exhaustiveCheck = node; 2663 return exhaustiveCheck; 2664 } 2665 } 2666} 2667function genText(node, context) { 2668 context.push(JSON.stringify(node.content), node); 2669} 2670function genExpression(node, context) { 2671 const { content, isStatic } = node; 2672 context.push(isStatic ? JSON.stringify(content) : content, node); 2673} 2674function genInterpolation(node, context) { 2675 const { push, helper, pure } = context; 2676 if (pure) 2677 push(PURE_ANNOTATION); 2678 push(`${helper(TO_DISPLAY_STRING)}(`); 2679 genNode(node.content, context); 2680 push(`)`); 2681} 2682function genCompoundExpression(node, context) { 2683 for (let i = 0; i < node.children.length; i++) { 2684 const child = node.children[i]; 2685 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child)) { 2686 context.push(child); 2687 } 2688 else { 2689 genNode(child, context); 2690 } 2691 } 2692} 2693function genExpressionAsPropertyKey(node, context) { 2694 const { push } = context; 2695 if (node.type === 8 /* COMPOUND_EXPRESSION */) { 2696 push(`[`); 2697 genCompoundExpression(node, context); 2698 push(`]`); 2699 } 2700 else if (node.isStatic) { 2701 // only quote keys if necessary 2702 const text = isSimpleIdentifier(node.content) 2703 ? node.content 2704 : JSON.stringify(node.content); 2705 push(text, node); 2706 } 2707 else { 2708 push(`[${node.content}]`, node); 2709 } 2710} 2711function genComment(node, context) { 2712 const { push, helper, pure } = context; 2713 if (pure) { 2714 push(PURE_ANNOTATION); 2715 } 2716 push(`${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`, node); 2717} 2718function genVNodeCall(node, context) { 2719 const { push, helper, pure } = context; 2720 const { tag, props, children, patchFlag, dynamicProps, directives, isBlock, disableTracking, isComponent } = node; 2721 if (directives) { 2722 push(helper(WITH_DIRECTIVES) + `(`); 2723 } 2724 if (isBlock) { 2725 push(`(${helper(OPEN_BLOCK)}(${disableTracking ? `true` : ``}), `); 2726 } 2727 if (pure) { 2728 push(PURE_ANNOTATION); 2729 } 2730 const callHelper = isBlock 2731 ? getVNodeBlockHelper(context.inSSR, isComponent) 2732 : getVNodeHelper(context.inSSR, isComponent); 2733 push(helper(callHelper) + `(`, node); 2734 genNodeList(genNullableArgs([tag, props, children, patchFlag, dynamicProps]), context); 2735 push(`)`); 2736 if (isBlock) { 2737 push(`)`); 2738 } 2739 if (directives) { 2740 push(`, `); 2741 genNode(directives, context); 2742 push(`)`); 2743 } 2744} 2745function genNullableArgs(args) { 2746 let i = args.length; 2747 while (i--) { 2748 if (args[i] != null) 2749 break; 2750 } 2751 return args.slice(0, i + 1).map(arg => arg || `null`); 2752} 2753// JavaScript 2754function genCallExpression(node, context) { 2755 const { push, helper, pure } = context; 2756 const callee = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node.callee) ? node.callee : helper(node.callee); 2757 if (pure) { 2758 push(PURE_ANNOTATION); 2759 } 2760 push(callee + `(`, node); 2761 genNodeList(node.arguments, context); 2762 push(`)`); 2763} 2764function genObjectExpression(node, context) { 2765 const { push, indent, deindent, newline } = context; 2766 const { properties } = node; 2767 if (!properties.length) { 2768 push(`{}`, node); 2769 return; 2770 } 2771 const multilines = properties.length > 1 || 2772 ((( true)) && 2773 properties.some(p => p.value.type !== 4 /* SIMPLE_EXPRESSION */)); 2774 push(multilines ? `{` : `{ `); 2775 multilines && indent(); 2776 for (let i = 0; i < properties.length; i++) { 2777 const { key, value } = properties[i]; 2778 // key 2779 genExpressionAsPropertyKey(key, context); 2780 push(`: `); 2781 // value 2782 genNode(value, context); 2783 if (i < properties.length - 1) { 2784 // will only reach this if it's multilines 2785 push(`,`); 2786 newline(); 2787 } 2788 } 2789 multilines && deindent(); 2790 push(multilines ? `}` : ` }`); 2791} 2792function genArrayExpression(node, context) { 2793 genNodeListAsArray(node.elements, context); 2794} 2795function genFunctionExpression(node, context) { 2796 const { push, indent, deindent } = context; 2797 const { params, returns, body, newline, isSlot } = node; 2798 if (isSlot) { 2799 // wrap slot functions with owner context 2800 push(`_${helperNameMap[WITH_CTX]}(`); 2801 } 2802 push(`(`, node); 2803 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(params)) { 2804 genNodeList(params, context); 2805 } 2806 else if (params) { 2807 genNode(params, context); 2808 } 2809 push(`) => `); 2810 if (newline || body) { 2811 push(`{`); 2812 indent(); 2813 } 2814 if (returns) { 2815 if (newline) { 2816 push(`return `); 2817 } 2818 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(returns)) { 2819 genNodeListAsArray(returns, context); 2820 } 2821 else { 2822 genNode(returns, context); 2823 } 2824 } 2825 else if (body) { 2826 genNode(body, context); 2827 } 2828 if (newline || body) { 2829 deindent(); 2830 push(`}`); 2831 } 2832 if (isSlot) { 2833 if (node.isNonScopedSlot) { 2834 push(`, undefined, true`); 2835 } 2836 push(`)`); 2837 } 2838} 2839function genConditionalExpression(node, context) { 2840 const { test, consequent, alternate, newline: needNewline } = node; 2841 const { push, indent, deindent, newline } = context; 2842 if (test.type === 4 /* SIMPLE_EXPRESSION */) { 2843 const needsParens = !isSimpleIdentifier(test.content); 2844 needsParens && push(`(`); 2845 genExpression(test, context); 2846 needsParens && push(`)`); 2847 } 2848 else { 2849 push(`(`); 2850 genNode(test, context); 2851 push(`)`); 2852 } 2853 needNewline && indent(); 2854 context.indentLevel++; 2855 needNewline || push(` `); 2856 push(`? `); 2857 genNode(consequent, context); 2858 context.indentLevel--; 2859 needNewline && newline(); 2860 needNewline || push(` `); 2861 push(`: `); 2862 const isNested = alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */; 2863 if (!isNested) { 2864 context.indentLevel++; 2865 } 2866 genNode(alternate, context); 2867 if (!isNested) { 2868 context.indentLevel--; 2869 } 2870 needNewline && deindent(true /* without newline */); 2871} 2872function genCacheExpression(node, context) { 2873 const { push, helper, indent, deindent, newline } = context; 2874 push(`_cache[${node.index}] || (`); 2875 if (node.isVNode) { 2876 indent(); 2877 push(`${helper(SET_BLOCK_TRACKING)}(-1),`); 2878 newline(); 2879 } 2880 push(`_cache[${node.index}] = `); 2881 genNode(node.value, context); 2882 if (node.isVNode) { 2883 push(`,`); 2884 newline(); 2885 push(`${helper(SET_BLOCK_TRACKING)}(1),`); 2886 newline(); 2887 push(`_cache[${node.index}]`); 2888 deindent(); 2889 } 2890 push(`)`); 2891} 2892 2893function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = Object.create(null)) { 2894 { 2895 return; 2896 } 2897} 2898function isReferencedIdentifier(id, parent, parentStack) { 2899 { 2900 return false; 2901 } 2902} 2903function isInDestructureAssignment(parent, parentStack) { 2904 if (parent && 2905 (parent.type === 'ObjectProperty' || parent.type === 'ArrayPattern')) { 2906 let i = parentStack.length; 2907 while (i--) { 2908 const p = parentStack[i]; 2909 if (p.type === 'AssignmentExpression') { 2910 return true; 2911 } 2912 else if (p.type !== 'ObjectProperty' && !p.type.endsWith('Pattern')) { 2913 break; 2914 } 2915 } 2916 } 2917 return false; 2918} 2919function walkFunctionParams(node, onIdent) { 2920 for (const p of node.params) { 2921 for (const id of extractIdentifiers(p)) { 2922 onIdent(id); 2923 } 2924 } 2925} 2926function walkBlockDeclarations(block, onIdent) { 2927 for (const stmt of block.body) { 2928 if (stmt.type === 'VariableDeclaration') { 2929 if (stmt.declare) 2930 continue; 2931 for (const decl of stmt.declarations) { 2932 for (const id of extractIdentifiers(decl.id)) { 2933 onIdent(id); 2934 } 2935 } 2936 } 2937 else if (stmt.type === 'FunctionDeclaration' || 2938 stmt.type === 'ClassDeclaration') { 2939 if (stmt.declare || !stmt.id) 2940 continue; 2941 onIdent(stmt.id); 2942 } 2943 } 2944} 2945function extractIdentifiers(param, nodes = []) { 2946 switch (param.type) { 2947 case 'Identifier': 2948 nodes.push(param); 2949 break; 2950 case 'MemberExpression': 2951 let object = param; 2952 while (object.type === 'MemberExpression') { 2953 object = object.object; 2954 } 2955 nodes.push(object); 2956 break; 2957 case 'ObjectPattern': 2958 for (const prop of param.properties) { 2959 if (prop.type === 'RestElement') { 2960 extractIdentifiers(prop.argument, nodes); 2961 } 2962 else { 2963 extractIdentifiers(prop.value, nodes); 2964 } 2965 } 2966 break; 2967 case 'ArrayPattern': 2968 param.elements.forEach(element => { 2969 if (element) 2970 extractIdentifiers(element, nodes); 2971 }); 2972 break; 2973 case 'RestElement': 2974 extractIdentifiers(param.argument, nodes); 2975 break; 2976 case 'AssignmentPattern': 2977 extractIdentifiers(param.left, nodes); 2978 break; 2979 } 2980 return nodes; 2981} 2982const isFunctionType = (node) => { 2983 return /Function(?:Expression|Declaration)$|Method$/.test(node.type); 2984}; 2985const isStaticProperty = (node) => node && 2986 (node.type === 'ObjectProperty' || node.type === 'ObjectMethod') && 2987 !node.computed; 2988const isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node; 2989 2990// these keywords should not appear inside expressions, but operators like 2991// typeof, instanceof and in are allowed 2992const prohibitedKeywordRE = new RegExp('\\b' + 2993 ('do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' + 2994 'super,throw,while,yield,delete,export,import,return,switch,default,' + 2995 'extends,finally,continue,debugger,function,arguments,typeof,void') 2996 .split(',') 2997 .join('\\b|\\b') + 2998 '\\b'); 2999// strip strings in expressions 3000const stripStringRE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g; 3001/** 3002 * Validate a non-prefixed expression. 3003 * This is only called when using the in-browser runtime compiler since it 3004 * doesn't prefix expressions. 3005 */ 3006function validateBrowserExpression(node, context, asParams = false, asRawStatements = false) { 3007 const exp = node.content; 3008 // empty expressions are validated per-directive since some directives 3009 // do allow empty expressions. 3010 if (!exp.trim()) { 3011 return; 3012 } 3013 try { 3014 new Function(asRawStatements 3015 ? ` ${exp} ` 3016 : `return ${asParams ? `(${exp}) => {}` : `(${exp})`}`); 3017 } 3018 catch (e) { 3019 let message = e.message; 3020 const keywordMatch = exp 3021 .replace(stripStringRE, '') 3022 .match(prohibitedKeywordRE); 3023 if (keywordMatch) { 3024 message = `avoid using JavaScript keyword as property name: "${keywordMatch[0]}"`; 3025 } 3026 context.onError(createCompilerError(44 /* X_INVALID_EXPRESSION */, node.loc, undefined, message)); 3027 } 3028} 3029 3030const transformExpression = (node, context) => { 3031 if (node.type === 5 /* INTERPOLATION */) { 3032 node.content = processExpression(node.content, context); 3033 } 3034 else if (node.type === 1 /* ELEMENT */) { 3035 // handle directives on element 3036 for (let i = 0; i < node.props.length; i++) { 3037 const dir = node.props[i]; 3038 // do not process for v-on & v-for since they are special handled 3039 if (dir.type === 7 /* DIRECTIVE */ && dir.name !== 'for') { 3040 const exp = dir.exp; 3041 const arg = dir.arg; 3042 // do not process exp if this is v-on:arg - we need special handling 3043 // for wrapping inline statements. 3044 if (exp && 3045 exp.type === 4 /* SIMPLE_EXPRESSION */ && 3046 !(dir.name === 'on' && arg)) { 3047 dir.exp = processExpression(exp, context, 3048 // slot args must be processed as function params 3049 dir.name === 'slot'); 3050 } 3051 if (arg && arg.type === 4 /* SIMPLE_EXPRESSION */ && !arg.isStatic) { 3052 dir.arg = processExpression(arg, context); 3053 } 3054 } 3055 } 3056 } 3057}; 3058// Important: since this function uses Node.js only dependencies, it should 3059// always be used with a leading !true check so that it can be 3060// tree-shaken from the browser build. 3061function processExpression(node, context, 3062// some expressions like v-slot props & v-for aliases should be parsed as 3063// function params 3064asParams = false, 3065// v-on handler values may contain multiple statements 3066asRawStatements = false, localVars = Object.create(context.identifiers)) { 3067 { 3068 if ((true)) { 3069 // simple in-browser validation (same logic in 2.x) 3070 validateBrowserExpression(node, context, asParams, asRawStatements); 3071 } 3072 return node; 3073 } 3074} 3075 3076const transformIf = createStructuralDirectiveTransform(/^(if|else|else-if)$/, (node, dir, context) => { 3077 return processIf(node, dir, context, (ifNode, branch, isRoot) => { 3078 // #1587: We need to dynamically increment the key based on the current 3079 // node's sibling nodes, since chained v-if/else branches are 3080 // rendered at the same depth 3081 const siblings = context.parent.children; 3082 let i = siblings.indexOf(ifNode); 3083 let key = 0; 3084 while (i-- >= 0) { 3085 const sibling = siblings[i]; 3086 if (sibling && sibling.type === 9 /* IF */) { 3087 key += sibling.branches.length; 3088 } 3089 } 3090 // Exit callback. Complete the codegenNode when all children have been 3091 // transformed. 3092 return () => { 3093 if (isRoot) { 3094 ifNode.codegenNode = createCodegenNodeForBranch(branch, key, context); 3095 } 3096 else { 3097 // attach this branch's codegen node to the v-if root. 3098 const parentCondition = getParentCondition(ifNode.codegenNode); 3099 parentCondition.alternate = createCodegenNodeForBranch(branch, key + ifNode.branches.length - 1, context); 3100 } 3101 }; 3102 }); 3103}); 3104// target-agnostic transform used for both Client and SSR 3105function processIf(node, dir, context, processCodegen) { 3106 if (dir.name !== 'else' && 3107 (!dir.exp || !dir.exp.content.trim())) { 3108 const loc = dir.exp ? dir.exp.loc : node.loc; 3109 context.onError(createCompilerError(28 /* X_V_IF_NO_EXPRESSION */, dir.loc)); 3110 dir.exp = createSimpleExpression(`true`, false, loc); 3111 } 3112 if ( true && dir.exp) { 3113 validateBrowserExpression(dir.exp, context); 3114 } 3115 if (dir.name === 'if') { 3116 const branch = createIfBranch(node, dir); 3117 const ifNode = { 3118 type: 9 /* IF */, 3119 loc: node.loc, 3120 branches: [branch] 3121 }; 3122 context.replaceNode(ifNode); 3123 if (processCodegen) { 3124 return processCodegen(ifNode, branch, true); 3125 } 3126 } 3127 else { 3128 // locate the adjacent v-if 3129 const siblings = context.parent.children; 3130 const comments = []; 3131 let i = siblings.indexOf(node); 3132 while (i-- >= -1) { 3133 const sibling = siblings[i]; 3134 if (( true) && sibling && sibling.type === 3 /* COMMENT */) { 3135 context.removeNode(sibling); 3136 comments.unshift(sibling); 3137 continue; 3138 } 3139 if (sibling && 3140 sibling.type === 2 /* TEXT */ && 3141 !sibling.content.trim().length) { 3142 context.removeNode(sibling); 3143 continue; 3144 } 3145 if (sibling && sibling.type === 9 /* IF */) { 3146 // Check if v-else was followed by v-else-if 3147 if (dir.name === 'else-if' && 3148 sibling.branches[sibling.branches.length - 1].condition === undefined) { 3149 context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc)); 3150 } 3151 // move the node to the if node's branches 3152 context.removeNode(); 3153 const branch = createIfBranch(node, dir); 3154 if (( true) && 3155 comments.length && 3156 // #3619 ignore comments if the v-if is direct child of <transition> 3157 !(context.parent && 3158 context.parent.type === 1 /* ELEMENT */ && 3159 isBuiltInType(context.parent.tag, 'transition'))) { 3160 branch.children = [...comments, ...branch.children]; 3161 } 3162 // check if user is forcing same key on different branches 3163 if (true) { 3164 const key = branch.userKey; 3165 if (key) { 3166 sibling.branches.forEach(({ userKey }) => { 3167 if (isSameKey(userKey, key)) { 3168 context.onError(createCompilerError(29 /* X_V_IF_SAME_KEY */, branch.userKey.loc)); 3169 } 3170 }); 3171 } 3172 } 3173 sibling.branches.push(branch); 3174 const onExit = processCodegen && processCodegen(sibling, branch, false); 3175 // since the branch was removed, it will not be traversed. 3176 // make sure to traverse here. 3177 traverseNode(branch, context); 3178 // call on exit 3179 if (onExit) 3180 onExit(); 3181 // make sure to reset currentNode after traversal to indicate this 3182 // node has been removed. 3183 context.currentNode = null; 3184 } 3185 else { 3186 context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc)); 3187 } 3188 break; 3189 } 3190 } 3191} 3192function createIfBranch(node, dir) { 3193 const isTemplateIf = node.tagType === 3 /* TEMPLATE */; 3194 return { 3195 type: 10 /* IF_BRANCH */, 3196 loc: node.loc, 3197 condition: dir.name === 'else' ? undefined : dir.exp, 3198 children: isTemplateIf && !findDir(node, 'for') ? node.children : [node], 3199 userKey: findProp(node, `key`), 3200 isTemplateIf 3201 }; 3202} 3203function createCodegenNodeForBranch(branch, keyIndex, context) { 3204 if (branch.condition) { 3205 return createConditionalExpression(branch.condition, createChildrenCodegenNode(branch, keyIndex, context), 3206 // make sure to pass in asBlock: true so that the comment node call 3207 // closes the current block. 3208 createCallExpression(context.helper(CREATE_COMMENT), [ 3209 ( true) ? '"v-if"' : 0, 3210 'true' 3211 ])); 3212 } 3213 else { 3214 return createChildrenCodegenNode(branch, keyIndex, context); 3215 } 3216} 3217function createChildrenCodegenNode(branch, keyIndex, context) { 3218 const { helper } = context; 3219 const keyProperty = createObjectProperty(`key`, createSimpleExpression(`${keyIndex}`, false, locStub, 2 /* CAN_HOIST */)); 3220 const { children } = branch; 3221 const firstChild = children[0]; 3222 const needFragmentWrapper = children.length !== 1 || firstChild.type !== 1 /* ELEMENT */; 3223 if (needFragmentWrapper) { 3224 if (children.length === 1 && firstChild.type === 11 /* FOR */) { 3225 // optimize away nested fragments when child is a ForNode 3226 const vnodeCall = firstChild.codegenNode; 3227 injectProp(vnodeCall, keyProperty, context); 3228 return vnodeCall; 3229 } 3230 else { 3231 let patchFlag = 64 /* STABLE_FRAGMENT */; 3232 let patchFlagText = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64]; 3233 // check if the fragment actually contains a single valid child with 3234 // the rest being comments 3235 if (( true) && 3236 !branch.isTemplateIf && 3237 children.filter(c => c.type !== 3 /* COMMENT */).length === 1) { 3238 patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */; 3239 patchFlagText += `, ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[2048]}`; 3240 } 3241 return createVNodeCall(context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag + (( true) ? ` /* ${patchFlagText} */` : 0), undefined, undefined, true, false, false /* isComponent */, branch.loc); 3242 } 3243 } 3244 else { 3245 const ret = firstChild.codegenNode; 3246 const vnodeCall = getMemoedVNodeCall(ret); 3247 // Change createVNode to createBlock. 3248 if (vnodeCall.type === 13 /* VNODE_CALL */) { 3249 makeBlock(vnodeCall, context); 3250 } 3251 // inject branch key 3252 injectProp(vnodeCall, keyProperty, context); 3253 return ret; 3254 } 3255} 3256function isSameKey(a, b) { 3257 if (!a || a.type !== b.type) { 3258 return false; 3259 } 3260 if (a.type === 6 /* ATTRIBUTE */) { 3261 if (a.value.content !== b.value.content) { 3262 return false; 3263 } 3264 } 3265 else { 3266 // directive 3267 const exp = a.exp; 3268 const branchExp = b.exp; 3269 if (exp.type !== branchExp.type) { 3270 return false; 3271 } 3272 if (exp.type !== 4 /* SIMPLE_EXPRESSION */ || 3273 exp.isStatic !== branchExp.isStatic || 3274 exp.content !== branchExp.content) { 3275 return false; 3276 } 3277 } 3278 return true; 3279} 3280function getParentCondition(node) { 3281 while (true) { 3282 if (node.type === 19 /* JS_CONDITIONAL_EXPRESSION */) { 3283 if (node.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) { 3284 node = node.alternate; 3285 } 3286 else { 3287 return node; 3288 } 3289 } 3290 else if (node.type === 20 /* JS_CACHE_EXPRESSION */) { 3291 node = node.value; 3292 } 3293 } 3294} 3295 3296const transformFor = createStructuralDirectiveTransform('for', (node, dir, context) => { 3297 const { helper, removeHelper } = context; 3298 return processFor(node, dir, context, forNode => { 3299 // create the loop render function expression now, and add the 3300 // iterator on exit after all children have been traversed 3301 const renderExp = createCallExpression(helper(RENDER_LIST), [ 3302 forNode.source 3303 ]); 3304 const isTemplate = isTemplateNode(node); 3305 const memo = findDir(node, 'memo'); 3306 const keyProp = findProp(node, `key`); 3307 const keyExp = keyProp && 3308 (keyProp.type === 6 /* ATTRIBUTE */ 3309 ? createSimpleExpression(keyProp.value.content, true) 3310 : keyProp.exp); 3311 const keyProperty = keyProp ? createObjectProperty(`key`, keyExp) : null; 3312 const isStableFragment = forNode.source.type === 4 /* SIMPLE_EXPRESSION */ && 3313 forNode.source.constType > 0 /* NOT_CONSTANT */; 3314 const fragmentFlag = isStableFragment 3315 ? 64 /* STABLE_FRAGMENT */ 3316 : keyProp 3317 ? 128 /* KEYED_FRAGMENT */ 3318 : 256 /* UNKEYED_FRAGMENT */; 3319 forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, renderExp, fragmentFlag + 3320 (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[fragmentFlag]} */` : 0), undefined, undefined, true /* isBlock */, !isStableFragment /* disableTracking */, false /* isComponent */, node.loc); 3321 return () => { 3322 // finish the codegen now that all children have been traversed 3323 let childBlock; 3324 const { children } = forNode; 3325 // check <template v-for> key placement 3326 if (( true) && isTemplate) { 3327 node.children.some(c => { 3328 if (c.type === 1 /* ELEMENT */) { 3329 const key = findProp(c, 'key'); 3330 if (key) { 3331 context.onError(createCompilerError(33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */, key.loc)); 3332 return true; 3333 } 3334 } 3335 }); 3336 } 3337 const needFragmentWrapper = children.length !== 1 || children[0].type !== 1 /* ELEMENT */; 3338 const slotOutlet = isSlotOutlet(node) 3339 ? node 3340 : isTemplate && 3341 node.children.length === 1 && 3342 isSlotOutlet(node.children[0]) 3343 ? node.children[0] // api-extractor somehow fails to infer this 3344 : null; 3345 if (slotOutlet) { 3346 // <slot v-for="..."> or <template v-for="..."><slot/></template> 3347 childBlock = slotOutlet.codegenNode; 3348 if (isTemplate && keyProperty) { 3349 // <template v-for="..." :key="..."><slot/></template> 3350 // we need to inject the key to the renderSlot() call. 3351 // the props for renderSlot is passed as the 3rd argument. 3352 injectProp(childBlock, keyProperty, context); 3353 } 3354 } 3355 else if (needFragmentWrapper) { 3356 // <template v-for="..."> with text or multi-elements 3357 // should generate a fragment block for each loop 3358 childBlock = createVNodeCall(context, helper(FRAGMENT), keyProperty ? createObjectExpression([keyProperty]) : undefined, node.children, 64 /* STABLE_FRAGMENT */ + 3359 (( true) 3360 ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64]} */` 3361 : 0), undefined, undefined, true, undefined, false /* isComponent */); 3362 } 3363 else { 3364 // Normal element v-for. Directly use the child's codegenNode 3365 // but mark it as a block. 3366 childBlock = children[0] 3367 .codegenNode; 3368 if (isTemplate && keyProperty) { 3369 injectProp(childBlock, keyProperty, context); 3370 } 3371 if (childBlock.isBlock !== !isStableFragment) { 3372 if (childBlock.isBlock) { 3373 // switch from block to vnode 3374 removeHelper(OPEN_BLOCK); 3375 removeHelper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent)); 3376 } 3377 else { 3378 // switch from vnode to block 3379 removeHelper(getVNodeHelper(context.inSSR, childBlock.isComponent)); 3380 } 3381 } 3382 childBlock.isBlock = !isStableFragment; 3383 if (childBlock.isBlock) { 3384 helper(OPEN_BLOCK); 3385 helper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent)); 3386 } 3387 else { 3388 helper(getVNodeHelper(context.inSSR, childBlock.isComponent)); 3389 } 3390 } 3391 if (memo) { 3392 const loop = createFunctionExpression(createForLoopParams(forNode.parseResult, [ 3393 createSimpleExpression(`_cached`) 3394 ])); 3395 loop.body = createBlockStatement([ 3396 createCompoundExpression([`const _memo = (`, memo.exp, `)`]), 3397 createCompoundExpression([ 3398 `if (_cached`, 3399 ...(keyExp ? [` && _cached.key === `, keyExp] : []), 3400 ` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached` 3401 ]), 3402 createCompoundExpression([`const _item = `, childBlock]), 3403 createSimpleExpression(`_item.memo = _memo`), 3404 createSimpleExpression(`return _item`) 3405 ]); 3406 renderExp.arguments.push(loop, createSimpleExpression(`_cache`), createSimpleExpression(String(context.cached++))); 3407 } 3408 else { 3409 renderExp.arguments.push(createFunctionExpression(createForLoopParams(forNode.parseResult), childBlock, true /* force newline */)); 3410 } 3411 }; 3412 }); 3413}); 3414// target-agnostic transform used for both Client and SSR 3415function processFor(node, dir, context, processCodegen) { 3416 if (!dir.exp) { 3417 context.onError(createCompilerError(31 /* X_V_FOR_NO_EXPRESSION */, dir.loc)); 3418 return; 3419 } 3420 const parseResult = parseForExpression( 3421 // can only be simple expression because vFor transform is applied 3422 // before expression transform. 3423 dir.exp, context); 3424 if (!parseResult) { 3425 context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, dir.loc)); 3426 return; 3427 } 3428 const { addIdentifiers, removeIdentifiers, scopes } = context; 3429 const { source, value, key, index } = parseResult; 3430 const forNode = { 3431 type: 11 /* FOR */, 3432 loc: dir.loc, 3433 source, 3434 valueAlias: value, 3435 keyAlias: key, 3436 objectIndexAlias: index, 3437 parseResult, 3438 children: isTemplateNode(node) ? node.children : [node] 3439 }; 3440 context.replaceNode(forNode); 3441 // bookkeeping 3442 scopes.vFor++; 3443 const onExit = processCodegen && processCodegen(forNode); 3444 return () => { 3445 scopes.vFor--; 3446 if (onExit) 3447 onExit(); 3448 }; 3449} 3450const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/; 3451// This regex doesn't cover the case if key or index aliases have destructuring, 3452// but those do not make sense in the first place, so this works in practice. 3453const forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/; 3454const stripParensRE = /^\(|\)$/g; 3455function parseForExpression(input, context) { 3456 const loc = input.loc; 3457 const exp = input.content; 3458 const inMatch = exp.match(forAliasRE); 3459 if (!inMatch) 3460 return; 3461 const [, LHS, RHS] = inMatch; 3462 const result = { 3463 source: createAliasExpression(loc, RHS.trim(), exp.indexOf(RHS, LHS.length)), 3464 value: undefined, 3465 key: undefined, 3466 index: undefined 3467 }; 3468 if (true) { 3469 validateBrowserExpression(result.source, context); 3470 } 3471 let valueContent = LHS.trim().replace(stripParensRE, '').trim(); 3472 const trimmedOffset = LHS.indexOf(valueContent); 3473 const iteratorMatch = valueContent.match(forIteratorRE); 3474 if (iteratorMatch) { 3475 valueContent = valueContent.replace(forIteratorRE, '').trim(); 3476 const keyContent = iteratorMatch[1].trim(); 3477 let keyOffset; 3478 if (keyContent) { 3479 keyOffset = exp.indexOf(keyContent, trimmedOffset + valueContent.length); 3480 result.key = createAliasExpression(loc, keyContent, keyOffset); 3481 if (true) { 3482 validateBrowserExpression(result.key, context, true); 3483 } 3484 } 3485 if (iteratorMatch[2]) { 3486 const indexContent = iteratorMatch[2].trim(); 3487 if (indexContent) { 3488 result.index = createAliasExpression(loc, indexContent, exp.indexOf(indexContent, result.key 3489 ? keyOffset + keyContent.length 3490 : trimmedOffset + valueContent.length)); 3491 if (true) { 3492 validateBrowserExpression(result.index, context, true); 3493 } 3494 } 3495 } 3496 } 3497 if (valueContent) { 3498 result.value = createAliasExpression(loc, valueContent, trimmedOffset); 3499 if (true) { 3500 validateBrowserExpression(result.value, context, true); 3501 } 3502 } 3503 return result; 3504} 3505function createAliasExpression(range, content, offset) { 3506 return createSimpleExpression(content, false, getInnerRange(range, offset, content.length)); 3507} 3508function createForLoopParams({ value, key, index }, memoArgs = []) { 3509 return createParamsList([value, key, index, ...memoArgs]); 3510} 3511function createParamsList(args) { 3512 let i = args.length; 3513 while (i--) { 3514 if (args[i]) 3515 break; 3516 } 3517 return args 3518 .slice(0, i + 1) 3519 .map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false)); 3520} 3521 3522const defaultFallback = createSimpleExpression(`undefined`, false); 3523// A NodeTransform that: 3524// 1. Tracks scope identifiers for scoped slots so that they don't get prefixed 3525// by transformExpression. This is only applied in non-browser builds with 3526// { prefixIdentifiers: true }. 3527// 2. Track v-slot depths so that we know a slot is inside another slot. 3528// Note the exit callback is executed before buildSlots() on the same node, 3529// so only nested slots see positive numbers. 3530const trackSlotScopes = (node, context) => { 3531 if (node.type === 1 /* ELEMENT */ && 3532 (node.tagType === 1 /* COMPONENT */ || 3533 node.tagType === 3 /* TEMPLATE */)) { 3534 // We are only checking non-empty v-slot here 3535 // since we only care about slots that introduce scope variables. 3536 const vSlot = findDir(node, 'slot'); 3537 if (vSlot) { 3538 vSlot.exp; 3539 context.scopes.vSlot++; 3540 return () => { 3541 context.scopes.vSlot--; 3542 }; 3543 } 3544 } 3545}; 3546// A NodeTransform that tracks scope identifiers for scoped slots with v-for. 3547// This transform is only applied in non-browser builds with { prefixIdentifiers: true } 3548const trackVForSlotScopes = (node, context) => { 3549 let vFor; 3550 if (isTemplateNode(node) && 3551 node.props.some(isVSlot) && 3552 (vFor = findDir(node, 'for'))) { 3553 const result = (vFor.parseResult = parseForExpression(vFor.exp, context)); 3554 if (result) { 3555 const { value, key, index } = result; 3556 const { addIdentifiers, removeIdentifiers } = context; 3557 value && addIdentifiers(value); 3558 key && addIdentifiers(key); 3559 index && addIdentifiers(index); 3560 return () => { 3561 value && removeIdentifiers(value); 3562 key && removeIdentifiers(key); 3563 index && removeIdentifiers(index); 3564 }; 3565 } 3566 } 3567}; 3568const buildClientSlotFn = (props, children, loc) => createFunctionExpression(props, children, false /* newline */, true /* isSlot */, children.length ? children[0].loc : loc); 3569// Instead of being a DirectiveTransform, v-slot processing is called during 3570// transformElement to build the slots object for a component. 3571function buildSlots(node, context, buildSlotFn = buildClientSlotFn) { 3572 context.helper(WITH_CTX); 3573 const { children, loc } = node; 3574 const slotsProperties = []; 3575 const dynamicSlots = []; 3576 // If the slot is inside a v-for or another v-slot, force it to be dynamic 3577 // since it likely uses a scope variable. 3578 let hasDynamicSlots = context.scopes.vSlot > 0 || context.scopes.vFor > 0; 3579 // 1. Check for slot with slotProps on component itself. 3580 // <Comp v-slot="{ prop }"/> 3581 const onComponentSlot = findDir(node, 'slot', true); 3582 if (onComponentSlot) { 3583 const { arg, exp } = onComponentSlot; 3584 if (arg && !isStaticExp(arg)) { 3585 hasDynamicSlots = true; 3586 } 3587 slotsProperties.push(createObjectProperty(arg || createSimpleExpression('default', true), buildSlotFn(exp, children, loc))); 3588 } 3589 // 2. Iterate through children and check for template slots 3590 // <template v-slot:foo="{ prop }"> 3591 let hasTemplateSlots = false; 3592 let hasNamedDefaultSlot = false; 3593 const implicitDefaultChildren = []; 3594 const seenSlotNames = new Set(); 3595 for (let i = 0; i < children.length; i++) { 3596 const slotElement = children[i]; 3597 let slotDir; 3598 if (!isTemplateNode(slotElement) || 3599 !(slotDir = findDir(slotElement, 'slot', true))) { 3600 // not a <template v-slot>, skip. 3601 if (slotElement.type !== 3 /* COMMENT */) { 3602 implicitDefaultChildren.push(slotElement); 3603 } 3604 continue; 3605 } 3606 if (onComponentSlot) { 3607 // already has on-component slot - this is incorrect usage. 3608 context.onError(createCompilerError(37 /* X_V_SLOT_MIXED_SLOT_USAGE */, slotDir.loc)); 3609 break; 3610 } 3611 hasTemplateSlots = true; 3612 const { children: slotChildren, loc: slotLoc } = slotElement; 3613 const { arg: slotName = createSimpleExpression(`default`, true), exp: slotProps, loc: dirLoc } = slotDir; 3614 // check if name is dynamic. 3615 let staticSlotName; 3616 if (isStaticExp(slotName)) { 3617 staticSlotName = slotName ? slotName.content : `default`; 3618 } 3619 else { 3620 hasDynamicSlots = true; 3621 } 3622 const slotFunction = buildSlotFn(slotProps, slotChildren, slotLoc); 3623 // check if this slot is conditional (v-if/v-for) 3624 let vIf; 3625 let vElse; 3626 let vFor; 3627 if ((vIf = findDir(slotElement, 'if'))) { 3628 hasDynamicSlots = true; 3629 dynamicSlots.push(createConditionalExpression(vIf.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback)); 3630 } 3631 else if ((vElse = findDir(slotElement, /^else(-if)?$/, true /* allowEmpty */))) { 3632 // find adjacent v-if 3633 let j = i; 3634 let prev; 3635 while (j--) { 3636 prev = children[j]; 3637 if (prev.type !== 3 /* COMMENT */) { 3638 break; 3639 } 3640 } 3641 if (prev && isTemplateNode(prev) && findDir(prev, 'if')) { 3642 // remove node 3643 children.splice(i, 1); 3644 i--; 3645 // attach this slot to previous conditional 3646 let conditional = dynamicSlots[dynamicSlots.length - 1]; 3647 while (conditional.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) { 3648 conditional = conditional.alternate; 3649 } 3650 conditional.alternate = vElse.exp 3651 ? createConditionalExpression(vElse.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback) 3652 : buildDynamicSlot(slotName, slotFunction); 3653 } 3654 else { 3655 context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, vElse.loc)); 3656 } 3657 } 3658 else if ((vFor = findDir(slotElement, 'for'))) { 3659 hasDynamicSlots = true; 3660 const parseResult = vFor.parseResult || 3661 parseForExpression(vFor.exp, context); 3662 if (parseResult) { 3663 // Render the dynamic slots as an array and add it to the createSlot() 3664 // args. The runtime knows how to handle it appropriately. 3665 dynamicSlots.push(createCallExpression(context.helper(RENDER_LIST), [ 3666 parseResult.source, 3667 createFunctionExpression(createForLoopParams(parseResult), buildDynamicSlot(slotName, slotFunction), true /* force newline */) 3668 ])); 3669 } 3670 else { 3671 context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, vFor.loc)); 3672 } 3673 } 3674 else { 3675 // check duplicate static names 3676 if (staticSlotName) { 3677 if (seenSlotNames.has(staticSlotName)) { 3678 context.onError(createCompilerError(38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */, dirLoc)); 3679 continue; 3680 } 3681 seenSlotNames.add(staticSlotName); 3682 if (staticSlotName === 'default') { 3683 hasNamedDefaultSlot = true; 3684 } 3685 } 3686 slotsProperties.push(createObjectProperty(slotName, slotFunction)); 3687 } 3688 } 3689 if (!onComponentSlot) { 3690 const buildDefaultSlotProperty = (props, children) => { 3691 const fn = buildSlotFn(props, children, loc); 3692 if (context.compatConfig) { 3693 fn.isNonScopedSlot = true; 3694 } 3695 return createObjectProperty(`default`, fn); 3696 }; 3697 if (!hasTemplateSlots) { 3698 // implicit default slot (on component) 3699 slotsProperties.push(buildDefaultSlotProperty(undefined, children)); 3700 } 3701 else if (implicitDefaultChildren.length && 3702 // #3766 3703 // with whitespace: 'preserve', whitespaces between slots will end up in 3704 // implicitDefaultChildren. Ignore if all implicit children are whitespaces. 3705 implicitDefaultChildren.some(node => isNonWhitespaceContent(node))) { 3706 // implicit default slot (mixed with named slots) 3707 if (hasNamedDefaultSlot) { 3708 context.onError(createCompilerError(39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */, implicitDefaultChildren[0].loc)); 3709 } 3710 else { 3711 slotsProperties.push(buildDefaultSlotProperty(undefined, implicitDefaultChildren)); 3712 } 3713 } 3714 } 3715 const slotFlag = hasDynamicSlots 3716 ? 2 /* DYNAMIC */ 3717 : hasForwardedSlots(node.children) 3718 ? 3 /* FORWARDED */ 3719 : 1 /* STABLE */; 3720 let slots = createObjectExpression(slotsProperties.concat(createObjectProperty(`_`, 3721 // 2 = compiled but dynamic = can skip normalization, but must run diff 3722 // 1 = compiled and static = can skip normalization AND diff as optimized 3723 createSimpleExpression(slotFlag + (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.slotFlagsText[slotFlag]} */` : 0), false))), loc); 3724 if (dynamicSlots.length) { 3725 slots = createCallExpression(context.helper(CREATE_SLOTS), [ 3726 slots, 3727 createArrayExpression(dynamicSlots) 3728 ]); 3729 } 3730 return { 3731 slots, 3732 hasDynamicSlots 3733 }; 3734} 3735function buildDynamicSlot(name, fn) { 3736 return createObjectExpression([ 3737 createObjectProperty(`name`, name), 3738 createObjectProperty(`fn`, fn) 3739 ]); 3740} 3741function hasForwardedSlots(children) { 3742 for (let i = 0; i < children.length; i++) { 3743 const child = children[i]; 3744 switch (child.type) { 3745 case 1 /* ELEMENT */: 3746 if (child.tagType === 2 /* SLOT */ || 3747 hasForwardedSlots(child.children)) { 3748 return true; 3749 } 3750 break; 3751 case 9 /* IF */: 3752 if (hasForwardedSlots(child.branches)) 3753 return true; 3754 break; 3755 case 10 /* IF_BRANCH */: 3756 case 11 /* FOR */: 3757 if (hasForwardedSlots(child.children)) 3758 return true; 3759 break; 3760 } 3761 } 3762 return false; 3763} 3764function isNonWhitespaceContent(node) { 3765 if (node.type !== 2 /* TEXT */ && node.type !== 12 /* TEXT_CALL */) 3766 return true; 3767 return node.type === 2 /* TEXT */ 3768 ? !!node.content.trim() 3769 : isNonWhitespaceContent(node.content); 3770} 3771 3772// some directive transforms (e.g. v-model) may return a symbol for runtime 3773// import, which should be used instead of a resolveDirective call. 3774const directiveImportMap = new WeakMap(); 3775// generate a JavaScript AST for this element's codegen 3776const transformElement = (node, context) => { 3777 // perform the work on exit, after all child expressions have been 3778 // processed and merged. 3779 return function postTransformElement() { 3780 node = context.currentNode; 3781 if (!(node.type === 1 /* ELEMENT */ && 3782 (node.tagType === 0 /* ELEMENT */ || 3783 node.tagType === 1 /* COMPONENT */))) { 3784 return; 3785 } 3786 const { tag, props } = node; 3787 const isComponent = node.tagType === 1 /* COMPONENT */; 3788 // The goal of the transform is to create a codegenNode implementing the 3789 // VNodeCall interface. 3790 let vnodeTag = isComponent 3791 ? resolveComponentType(node, context) 3792 : `"${tag}"`; 3793 const isDynamicComponent = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(vnodeTag) && vnodeTag.callee === RESOLVE_DYNAMIC_COMPONENT; 3794 let vnodeProps; 3795 let vnodeChildren; 3796 let vnodePatchFlag; 3797 let patchFlag = 0; 3798 let vnodeDynamicProps; 3799 let dynamicPropNames; 3800 let vnodeDirectives; 3801 let shouldUseBlock = 3802 // dynamic component may resolve to plain elements 3803 isDynamicComponent || 3804 vnodeTag === TELEPORT || 3805 vnodeTag === SUSPENSE || 3806 (!isComponent && 3807 // <svg> and <foreignObject> must be forced into blocks so that block 3808 // updates inside get proper isSVG flag at runtime. (#639, #643) 3809 // This is technically web-specific, but splitting the logic out of core 3810 // leads to too much unnecessary complexity. 3811 (tag === 'svg' || tag === 'foreignObject')); 3812 // props 3813 if (props.length > 0) { 3814 const propsBuildResult = buildProps(node, context, undefined, isComponent, isDynamicComponent); 3815 vnodeProps = propsBuildResult.props; 3816 patchFlag = propsBuildResult.patchFlag; 3817 dynamicPropNames = propsBuildResult.dynamicPropNames; 3818 const directives = propsBuildResult.directives; 3819 vnodeDirectives = 3820 directives && directives.length 3821 ? createArrayExpression(directives.map(dir => buildDirectiveArgs(dir, context))) 3822 : undefined; 3823 if (propsBuildResult.shouldUseBlock) { 3824 shouldUseBlock = true; 3825 } 3826 } 3827 // children 3828 if (node.children.length > 0) { 3829 if (vnodeTag === KEEP_ALIVE) { 3830 // Although a built-in component, we compile KeepAlive with raw children 3831 // instead of slot functions so that it can be used inside Transition 3832 // or other Transition-wrapping HOCs. 3833 // To ensure correct updates with block optimizations, we need to: 3834 // 1. Force keep-alive into a block. This avoids its children being 3835 // collected by a parent block. 3836 shouldUseBlock = true; 3837 // 2. Force keep-alive to always be updated, since it uses raw children. 3838 patchFlag |= 1024 /* DYNAMIC_SLOTS */; 3839 if (( true) && node.children.length > 1) { 3840 context.onError(createCompilerError(45 /* X_KEEP_ALIVE_INVALID_CHILDREN */, { 3841 start: node.children[0].loc.start, 3842 end: node.children[node.children.length - 1].loc.end, 3843 source: '' 3844 })); 3845 } 3846 } 3847 const shouldBuildAsSlots = isComponent && 3848 // Teleport is not a real component and has dedicated runtime handling 3849 vnodeTag !== TELEPORT && 3850 // explained above. 3851 vnodeTag !== KEEP_ALIVE; 3852 if (shouldBuildAsSlots) { 3853 const { slots, hasDynamicSlots } = buildSlots(node, context); 3854 vnodeChildren = slots; 3855 if (hasDynamicSlots) { 3856 patchFlag |= 1024 /* DYNAMIC_SLOTS */; 3857 } 3858 } 3859 else if (node.children.length === 1 && vnodeTag !== TELEPORT) { 3860 const child = node.children[0]; 3861 const type = child.type; 3862 // check for dynamic text children 3863 const hasDynamicTextChild = type === 5 /* INTERPOLATION */ || 3864 type === 8 /* COMPOUND_EXPRESSION */; 3865 if (hasDynamicTextChild && 3866 getConstantType(child, context) === 0 /* NOT_CONSTANT */) { 3867 patchFlag |= 1 /* TEXT */; 3868 } 3869 // pass directly if the only child is a text node 3870 // (plain / interpolation / expression) 3871 if (hasDynamicTextChild || type === 2 /* TEXT */) { 3872 vnodeChildren = child; 3873 } 3874 else { 3875 vnodeChildren = node.children; 3876 } 3877 } 3878 else { 3879 vnodeChildren = node.children; 3880 } 3881 } 3882 // patchFlag & dynamicPropNames 3883 if (patchFlag !== 0) { 3884 if ((true)) { 3885 if (patchFlag < 0) { 3886 // special flags (negative and mutually exclusive) 3887 vnodePatchFlag = patchFlag + ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[patchFlag]} */`; 3888 } 3889 else { 3890 // bitwise flags 3891 const flagNames = Object.keys(_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames) 3892 .map(Number) 3893 .filter(n => n > 0 && patchFlag & n) 3894 .map(n => _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[n]) 3895 .join(`, `); 3896 vnodePatchFlag = patchFlag + ` /* ${flagNames} */`; 3897 } 3898 } 3899 else {} 3900 if (dynamicPropNames && dynamicPropNames.length) { 3901 vnodeDynamicProps = stringifyDynamicPropNames(dynamicPropNames); 3902 } 3903 } 3904 node.codegenNode = createVNodeCall(context, vnodeTag, vnodeProps, vnodeChildren, vnodePatchFlag, vnodeDynamicProps, vnodeDirectives, !!shouldUseBlock, false /* disableTracking */, isComponent, node.loc); 3905 }; 3906}; 3907function resolveComponentType(node, context, ssr = false) { 3908 let { tag } = node; 3909 // 1. dynamic component 3910 const isExplicitDynamic = isComponentTag(tag); 3911 const isProp = findProp(node, 'is'); 3912 if (isProp) { 3913 if (isExplicitDynamic || 3914 (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context))) { 3915 const exp = isProp.type === 6 /* ATTRIBUTE */ 3916 ? isProp.value && createSimpleExpression(isProp.value.content, true) 3917 : isProp.exp; 3918 if (exp) { 3919 return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [ 3920 exp 3921 ]); 3922 } 3923 } 3924 else if (isProp.type === 6 /* ATTRIBUTE */ && 3925 isProp.value.content.startsWith('vue:')) { 3926 // <button is="vue:xxx"> 3927 // if not <component>, only is value that starts with "vue:" will be 3928 // treated as component by the parse phase and reach here, unless it's 3929 // compat mode where all is values are considered components 3930 tag = isProp.value.content.slice(4); 3931 } 3932 } 3933 // 1.5 v-is (TODO: Deprecate) 3934 const isDir = !isExplicitDynamic && findDir(node, 'is'); 3935 if (isDir && isDir.exp) { 3936 return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [ 3937 isDir.exp 3938 ]); 3939 } 3940 // 2. built-in components (Teleport, Transition, KeepAlive, Suspense...) 3941 const builtIn = isCoreComponent(tag) || context.isBuiltInComponent(tag); 3942 if (builtIn) { 3943 // built-ins are simply fallthroughs / have special handling during ssr 3944 // so we don't need to import their runtime equivalents 3945 if (!ssr) 3946 context.helper(builtIn); 3947 return builtIn; 3948 } 3949 // 5. user component (resolve) 3950 context.helper(RESOLVE_COMPONENT); 3951 context.components.add(tag); 3952 return toValidAssetId(tag, `component`); 3953} 3954function buildProps(node, context, props = node.props, isComponent, isDynamicComponent, ssr = false) { 3955 const { tag, loc: elementLoc, children } = node; 3956 let properties = []; 3957 const mergeArgs = []; 3958 const runtimeDirectives = []; 3959 const hasChildren = children.length > 0; 3960 let shouldUseBlock = false; 3961 // patchFlag analysis 3962 let patchFlag = 0; 3963 let hasRef = false; 3964 let hasClassBinding = false; 3965 let hasStyleBinding = false; 3966 let hasHydrationEventBinding = false; 3967 let hasDynamicKeys = false; 3968 let hasVnodeHook = false; 3969 const dynamicPropNames = []; 3970 const analyzePatchFlag = ({ key, value }) => { 3971 if (isStaticExp(key)) { 3972 const name = key.content; 3973 const isEventHandler = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(name); 3974 if (isEventHandler && 3975 (!isComponent || isDynamicComponent) && 3976 // omit the flag for click handlers because hydration gives click 3977 // dedicated fast path. 3978 name.toLowerCase() !== 'onclick' && 3979 // omit v-model handlers 3980 name !== 'onUpdate:modelValue' && 3981 // omit onVnodeXXX hooks 3982 !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isReservedProp)(name)) { 3983 hasHydrationEventBinding = true; 3984 } 3985 if (isEventHandler && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isReservedProp)(name)) { 3986 hasVnodeHook = true; 3987 } 3988 if (value.type === 20 /* JS_CACHE_EXPRESSION */ || 3989 ((value.type === 4 /* SIMPLE_EXPRESSION */ || 3990 value.type === 8 /* COMPOUND_EXPRESSION */) && 3991 getConstantType(value, context) > 0)) { 3992 // skip if the prop is a cached handler or has constant value 3993 return; 3994 } 3995 if (name === 'ref') { 3996 hasRef = true; 3997 } 3998 else if (name === 'class') { 3999 hasClassBinding = true; 4000 } 4001 else if (name === 'style') { 4002 hasStyleBinding = true; 4003 } 4004 else if (name !== 'key' && !dynamicPropNames.includes(name)) { 4005 dynamicPropNames.push(name); 4006 } 4007 // treat the dynamic class and style binding of the component as dynamic props 4008 if (isComponent && 4009 (name === 'class' || name === 'style') && 4010 !dynamicPropNames.includes(name)) { 4011 dynamicPropNames.push(name); 4012 } 4013 } 4014 else { 4015 hasDynamicKeys = true; 4016 } 4017 }; 4018 for (let i = 0; i < props.length; i++) { 4019 // static attribute 4020 const prop = props[i]; 4021 if (prop.type === 6 /* ATTRIBUTE */) { 4022 const { loc, name, value } = prop; 4023 let isStatic = true; 4024 if (name === 'ref') { 4025 hasRef = true; 4026 if (context.scopes.vFor > 0) { 4027 properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true'))); 4028 } 4029 } 4030 // skip is on <component>, or is="vue:xxx" 4031 if (name === 'is' && 4032 (isComponentTag(tag) || 4033 (value && value.content.startsWith('vue:')) || 4034 (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context)))) { 4035 continue; 4036 } 4037 properties.push(createObjectProperty(createSimpleExpression(name, true, getInnerRange(loc, 0, name.length)), createSimpleExpression(value ? value.content : '', isStatic, value ? value.loc : loc))); 4038 } 4039 else { 4040 // directives 4041 const { name, arg, exp, loc } = prop; 4042 const isVBind = name === 'bind'; 4043 const isVOn = name === 'on'; 4044 // skip v-slot - it is handled by its dedicated transform. 4045 if (name === 'slot') { 4046 if (!isComponent) { 4047 context.onError(createCompilerError(40 /* X_V_SLOT_MISPLACED */, loc)); 4048 } 4049 continue; 4050 } 4051 // skip v-once/v-memo - they are handled by dedicated transforms. 4052 if (name === 'once' || name === 'memo') { 4053 continue; 4054 } 4055 // skip v-is and :is on <component> 4056 if (name === 'is' || 4057 (isVBind && 4058 isStaticArgOf(arg, 'is') && 4059 (isComponentTag(tag) || 4060 (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context))))) { 4061 continue; 4062 } 4063 // skip v-on in SSR compilation 4064 if (isVOn && ssr) { 4065 continue; 4066 } 4067 if ( 4068 // #938: elements with dynamic keys should be forced into blocks 4069 (isVBind && isStaticArgOf(arg, 'key')) || 4070 // inline before-update hooks need to force block so that it is invoked 4071 // before children 4072 (isVOn && hasChildren && isStaticArgOf(arg, 'vue:before-update'))) { 4073 shouldUseBlock = true; 4074 } 4075 if (isVBind && isStaticArgOf(arg, 'ref') && context.scopes.vFor > 0) { 4076 properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true'))); 4077 } 4078 // special case for v-bind and v-on with no argument 4079 if (!arg && (isVBind || isVOn)) { 4080 hasDynamicKeys = true; 4081 if (exp) { 4082 if (properties.length) { 4083 mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc)); 4084 properties = []; 4085 } 4086 if (isVBind) { 4087 { 4088 // 2.x v-bind object order compat 4089 if ((true)) { 4090 const hasOverridableKeys = mergeArgs.some(arg => { 4091 if (arg.type === 15 /* JS_OBJECT_EXPRESSION */) { 4092 return arg.properties.some(({ key }) => { 4093 if (key.type !== 4 /* SIMPLE_EXPRESSION */ || 4094 !key.isStatic) { 4095 return true; 4096 } 4097 return (key.content !== 'class' && 4098 key.content !== 'style' && 4099 !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(key.content)); 4100 }); 4101 } 4102 else { 4103 // dynamic expression 4104 return true; 4105 } 4106 }); 4107 if (hasOverridableKeys) { 4108 checkCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */, context, loc); 4109 } 4110 } 4111 if (isCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */, context)) { 4112 mergeArgs.unshift(exp); 4113 continue; 4114 } 4115 } 4116 mergeArgs.push(exp); 4117 } 4118 else { 4119 // v-on="obj" -> toHandlers(obj) 4120 mergeArgs.push({ 4121 type: 14 /* JS_CALL_EXPRESSION */, 4122 loc, 4123 callee: context.helper(TO_HANDLERS), 4124 arguments: [exp] 4125 }); 4126 } 4127 } 4128 else { 4129 context.onError(createCompilerError(isVBind 4130 ? 34 /* X_V_BIND_NO_EXPRESSION */ 4131 : 35 /* X_V_ON_NO_EXPRESSION */, loc)); 4132 } 4133 continue; 4134 } 4135 const directiveTransform = context.directiveTransforms[name]; 4136 if (directiveTransform) { 4137 // has built-in directive transform. 4138 const { props, needRuntime } = directiveTransform(prop, node, context); 4139 !ssr && props.forEach(analyzePatchFlag); 4140 properties.push(...props); 4141 if (needRuntime) { 4142 runtimeDirectives.push(prop); 4143 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(needRuntime)) { 4144 directiveImportMap.set(prop, needRuntime); 4145 } 4146 } 4147 } 4148 else if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isBuiltInDirective)(name)) { 4149 // no built-in transform, this is a user custom directive. 4150 runtimeDirectives.push(prop); 4151 // custom dirs may use beforeUpdate so they need to force blocks 4152 // to ensure before-update gets called before children update 4153 if (hasChildren) { 4154 shouldUseBlock = true; 4155 } 4156 } 4157 } 4158 } 4159 let propsExpression = undefined; 4160 // has v-bind="object" or v-on="object", wrap with mergeProps 4161 if (mergeArgs.length) { 4162 if (properties.length) { 4163 mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc)); 4164 } 4165 if (mergeArgs.length > 1) { 4166 propsExpression = createCallExpression(context.helper(MERGE_PROPS), mergeArgs, elementLoc); 4167 } 4168 else { 4169 // single v-bind with nothing else - no need for a mergeProps call 4170 propsExpression = mergeArgs[0]; 4171 } 4172 } 4173 else if (properties.length) { 4174 propsExpression = createObjectExpression(dedupeProperties(properties), elementLoc); 4175 } 4176 // patchFlag analysis 4177 if (hasDynamicKeys) { 4178 patchFlag |= 16 /* FULL_PROPS */; 4179 } 4180 else { 4181 if (hasClassBinding && !isComponent) { 4182 patchFlag |= 2 /* CLASS */; 4183 } 4184 if (hasStyleBinding && !isComponent) { 4185 patchFlag |= 4 /* STYLE */; 4186 } 4187 if (dynamicPropNames.length) { 4188 patchFlag |= 8 /* PROPS */; 4189 } 4190 if (hasHydrationEventBinding) { 4191 patchFlag |= 32 /* HYDRATE_EVENTS */; 4192 } 4193 } 4194 if (!shouldUseBlock && 4195 (patchFlag === 0 || patchFlag === 32 /* HYDRATE_EVENTS */) && 4196 (hasRef || hasVnodeHook || runtimeDirectives.length > 0)) { 4197 patchFlag |= 512 /* NEED_PATCH */; 4198 } 4199 // pre-normalize props, SSR is skipped for now 4200 if (!context.inSSR && propsExpression) { 4201 switch (propsExpression.type) { 4202 case 15 /* JS_OBJECT_EXPRESSION */: 4203 // means that there is no v-bind, 4204 // but still need to deal with dynamic key binding 4205 let classKeyIndex = -1; 4206 let styleKeyIndex = -1; 4207 let hasDynamicKey = false; 4208 for (let i = 0; i < propsExpression.properties.length; i++) { 4209 const key = propsExpression.properties[i].key; 4210 if (isStaticExp(key)) { 4211 if (key.content === 'class') { 4212 classKeyIndex = i; 4213 } 4214 else if (key.content === 'style') { 4215 styleKeyIndex = i; 4216 } 4217 } 4218 else if (!key.isHandlerKey) { 4219 hasDynamicKey = true; 4220 } 4221 } 4222 const classProp = propsExpression.properties[classKeyIndex]; 4223 const styleProp = propsExpression.properties[styleKeyIndex]; 4224 // no dynamic key 4225 if (!hasDynamicKey) { 4226 if (classProp && !isStaticExp(classProp.value)) { 4227 classProp.value = createCallExpression(context.helper(NORMALIZE_CLASS), [classProp.value]); 4228 } 4229 if (styleProp && 4230 // the static style is compiled into an object, 4231 // so use `hasStyleBinding` to ensure that it is a dynamic style binding 4232 (hasStyleBinding || 4233 (styleProp.value.type === 4 /* SIMPLE_EXPRESSION */ && 4234 styleProp.value.content.trim()[0] === `[`) || 4235 // v-bind:style and style both exist, 4236 // v-bind:style with static literal object 4237 styleProp.value.type === 17 /* JS_ARRAY_EXPRESSION */)) { 4238 styleProp.value = createCallExpression(context.helper(NORMALIZE_STYLE), [styleProp.value]); 4239 } 4240 } 4241 else { 4242 // dynamic key binding, wrap with `normalizeProps` 4243 propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [propsExpression]); 4244 } 4245 break; 4246 case 14 /* JS_CALL_EXPRESSION */: 4247 // mergeProps call, do nothing 4248 break; 4249 default: 4250 // single v-bind 4251 propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [ 4252 createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [ 4253 propsExpression 4254 ]) 4255 ]); 4256 break; 4257 } 4258 } 4259 return { 4260 props: propsExpression, 4261 directives: runtimeDirectives, 4262 patchFlag, 4263 dynamicPropNames, 4264 shouldUseBlock 4265 }; 4266} 4267// Dedupe props in an object literal. 4268// Literal duplicated attributes would have been warned during the parse phase, 4269// however, it's possible to encounter duplicated `onXXX` handlers with different 4270// modifiers. We also need to merge static and dynamic class / style attributes. 4271// - onXXX handlers / style: merge into array 4272// - class: merge into single expression with concatenation 4273function dedupeProperties(properties) { 4274 const knownProps = new Map(); 4275 const deduped = []; 4276 for (let i = 0; i < properties.length; i++) { 4277 const prop = properties[i]; 4278 // dynamic keys are always allowed 4279 if (prop.key.type === 8 /* COMPOUND_EXPRESSION */ || !prop.key.isStatic) { 4280 deduped.push(prop); 4281 continue; 4282 } 4283 const name = prop.key.content; 4284 const existing = knownProps.get(name); 4285 if (existing) { 4286 if (name === 'style' || name === 'class' || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(name)) { 4287 mergeAsArray(existing, prop); 4288 } 4289 // unexpected duplicate, should have emitted error during parse 4290 } 4291 else { 4292 knownProps.set(name, prop); 4293 deduped.push(prop); 4294 } 4295 } 4296 return deduped; 4297} 4298function mergeAsArray(existing, incoming) { 4299 if (existing.value.type === 17 /* JS_ARRAY_EXPRESSION */) { 4300 existing.value.elements.push(incoming.value); 4301 } 4302 else { 4303 existing.value = createArrayExpression([existing.value, incoming.value], existing.loc); 4304 } 4305} 4306function buildDirectiveArgs(dir, context) { 4307 const dirArgs = []; 4308 const runtime = directiveImportMap.get(dir); 4309 if (runtime) { 4310 // built-in directive with runtime 4311 dirArgs.push(context.helperString(runtime)); 4312 } 4313 else { 4314 { 4315 // inject statement for resolving directive 4316 context.helper(RESOLVE_DIRECTIVE); 4317 context.directives.add(dir.name); 4318 dirArgs.push(toValidAssetId(dir.name, `directive`)); 4319 } 4320 } 4321 const { loc } = dir; 4322 if (dir.exp) 4323 dirArgs.push(dir.exp); 4324 if (dir.arg) { 4325 if (!dir.exp) { 4326 dirArgs.push(`void 0`); 4327 } 4328 dirArgs.push(dir.arg); 4329 } 4330 if (Object.keys(dir.modifiers).length) { 4331 if (!dir.arg) { 4332 if (!dir.exp) { 4333 dirArgs.push(`void 0`); 4334 } 4335 dirArgs.push(`void 0`); 4336 } 4337 const trueExpression = createSimpleExpression(`true`, false, loc); 4338 dirArgs.push(createObjectExpression(dir.modifiers.map(modifier => createObjectProperty(modifier, trueExpression)), loc)); 4339 } 4340 return createArrayExpression(dirArgs, dir.loc); 4341} 4342function stringifyDynamicPropNames(props) { 4343 let propsNamesString = `[`; 4344 for (let i = 0, l = props.length; i < l; i++) { 4345 propsNamesString += JSON.stringify(props[i]); 4346 if (i < l - 1) 4347 propsNamesString += ', '; 4348 } 4349 return propsNamesString + `]`; 4350} 4351function isComponentTag(tag) { 4352 return tag === 'component' || tag === 'Component'; 4353} 4354 4355( true) 4356 ? Object.freeze({}) 4357 : 0; 4358( true) ? Object.freeze([]) : 0; 4359const cacheStringFunction = (fn) => { 4360 const cache = Object.create(null); 4361 return ((str) => { 4362 const hit = cache[str]; 4363 return hit || (cache[str] = fn(str)); 4364 }); 4365}; 4366const camelizeRE = /-(\w)/g; 4367/** 4368 * @private 4369 */ 4370const camelize = cacheStringFunction((str) => { 4371 return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : '')); 4372}); 4373 4374const transformSlotOutlet = (node, context) => { 4375 if (isSlotOutlet(node)) { 4376 const { children, loc } = node; 4377 const { slotName, slotProps } = processSlotOutlet(node, context); 4378 const slotArgs = [ 4379 context.prefixIdentifiers ? `_ctx.$slots` : `$slots`, 4380 slotName, 4381 '{}', 4382 'undefined', 4383 'true' 4384 ]; 4385 let expectedLen = 2; 4386 if (slotProps) { 4387 slotArgs[2] = slotProps; 4388 expectedLen = 3; 4389 } 4390 if (children.length) { 4391 slotArgs[3] = createFunctionExpression([], children, false, false, loc); 4392 expectedLen = 4; 4393 } 4394 if (context.scopeId && !context.slotted) { 4395 expectedLen = 5; 4396 } 4397 slotArgs.splice(expectedLen); // remove unused arguments 4398 node.codegenNode = createCallExpression(context.helper(RENDER_SLOT), slotArgs, loc); 4399 } 4400}; 4401function processSlotOutlet(node, context) { 4402 let slotName = `"default"`; 4403 let slotProps = undefined; 4404 const nonNameProps = []; 4405 for (let i = 0; i < node.props.length; i++) { 4406 const p = node.props[i]; 4407 if (p.type === 6 /* ATTRIBUTE */) { 4408 if (p.value) { 4409 if (p.name === 'name') { 4410 slotName = JSON.stringify(p.value.content); 4411 } 4412 else { 4413 p.name = camelize(p.name); 4414 nonNameProps.push(p); 4415 } 4416 } 4417 } 4418 else { 4419 if (p.name === 'bind' && isStaticArgOf(p.arg, 'name')) { 4420 if (p.exp) 4421 slotName = p.exp; 4422 } 4423 else { 4424 if (p.name === 'bind' && p.arg && isStaticExp(p.arg)) { 4425 p.arg.content = camelize(p.arg.content); 4426 } 4427 nonNameProps.push(p); 4428 } 4429 } 4430 } 4431 if (nonNameProps.length > 0) { 4432 const { props, directives } = buildProps(node, context, nonNameProps, false, false); 4433 slotProps = props; 4434 if (directives.length) { 4435 context.onError(createCompilerError(36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */, directives[0].loc)); 4436 } 4437 } 4438 return { 4439 slotName, 4440 slotProps 4441 }; 4442} 4443 4444const fnExpRE = /^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/; 4445const transformOn = (dir, node, context, augmentor) => { 4446 const { loc, modifiers, arg } = dir; 4447 if (!dir.exp && !modifiers.length) { 4448 context.onError(createCompilerError(35 /* X_V_ON_NO_EXPRESSION */, loc)); 4449 } 4450 let eventName; 4451 if (arg.type === 4 /* SIMPLE_EXPRESSION */) { 4452 if (arg.isStatic) { 4453 let rawName = arg.content; 4454 // TODO deprecate @vnodeXXX usage 4455 if (rawName.startsWith('vue:')) { 4456 rawName = `vnode-${rawName.slice(4)}`; 4457 } 4458 // for all event listeners, auto convert it to camelCase. See issue #2249 4459 eventName = createSimpleExpression((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(rawName)), true, arg.loc); 4460 } 4461 else { 4462 // #2388 4463 eventName = createCompoundExpression([ 4464 `${context.helperString(TO_HANDLER_KEY)}(`, 4465 arg, 4466 `)` 4467 ]); 4468 } 4469 } 4470 else { 4471 // already a compound expression. 4472 eventName = arg; 4473 eventName.children.unshift(`${context.helperString(TO_HANDLER_KEY)}(`); 4474 eventName.children.push(`)`); 4475 } 4476 // handler processing 4477 let exp = dir.exp; 4478 if (exp && !exp.content.trim()) { 4479 exp = undefined; 4480 } 4481 let shouldCache = context.cacheHandlers && !exp && !context.inVOnce; 4482 if (exp) { 4483 const isMemberExp = isMemberExpression(exp.content); 4484 const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content)); 4485 const hasMultipleStatements = exp.content.includes(`;`); 4486 if (true) { 4487 validateBrowserExpression(exp, context, false, hasMultipleStatements); 4488 } 4489 if (isInlineStatement || (shouldCache && isMemberExp)) { 4490 // wrap inline statement in a function expression 4491 exp = createCompoundExpression([ 4492 `${isInlineStatement 4493 ? `$event` 4494 : `${``}(...args)`} => ${hasMultipleStatements ? `{` : `(`}`, 4495 exp, 4496 hasMultipleStatements ? `}` : `)` 4497 ]); 4498 } 4499 } 4500 let ret = { 4501 props: [ 4502 createObjectProperty(eventName, exp || createSimpleExpression(`() => {}`, false, loc)) 4503 ] 4504 }; 4505 // apply extended compiler augmentor 4506 if (augmentor) { 4507 ret = augmentor(ret); 4508 } 4509 if (shouldCache) { 4510 // cache handlers so that it's always the same handler being passed down. 4511 // this avoids unnecessary re-renders when users use inline handlers on 4512 // components. 4513 ret.props[0].value = context.cache(ret.props[0].value); 4514 } 4515 // mark the key as handler for props normalization check 4516 ret.props.forEach(p => (p.key.isHandlerKey = true)); 4517 return ret; 4518}; 4519 4520// v-bind without arg is handled directly in ./transformElements.ts due to it affecting 4521// codegen for the entire props object. This transform here is only for v-bind 4522// *with* args. 4523const transformBind = (dir, _node, context) => { 4524 const { exp, modifiers, loc } = dir; 4525 const arg = dir.arg; 4526 if (arg.type !== 4 /* SIMPLE_EXPRESSION */) { 4527 arg.children.unshift(`(`); 4528 arg.children.push(`) || ""`); 4529 } 4530 else if (!arg.isStatic) { 4531 arg.content = `${arg.content} || ""`; 4532 } 4533 // .sync is replaced by v-model:arg 4534 if (modifiers.includes('camel')) { 4535 if (arg.type === 4 /* SIMPLE_EXPRESSION */) { 4536 if (arg.isStatic) { 4537 arg.content = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(arg.content); 4538 } 4539 else { 4540 arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`; 4541 } 4542 } 4543 else { 4544 arg.children.unshift(`${context.helperString(CAMELIZE)}(`); 4545 arg.children.push(`)`); 4546 } 4547 } 4548 if (!context.inSSR) { 4549 if (modifiers.includes('prop')) { 4550 injectPrefix(arg, '.'); 4551 } 4552 if (modifiers.includes('attr')) { 4553 injectPrefix(arg, '^'); 4554 } 4555 } 4556 if (!exp || 4557 (exp.type === 4 /* SIMPLE_EXPRESSION */ && !exp.content.trim())) { 4558 context.onError(createCompilerError(34 /* X_V_BIND_NO_EXPRESSION */, loc)); 4559 return { 4560 props: [createObjectProperty(arg, createSimpleExpression('', true, loc))] 4561 }; 4562 } 4563 return { 4564 props: [createObjectProperty(arg, exp)] 4565 }; 4566}; 4567const injectPrefix = (arg, prefix) => { 4568 if (arg.type === 4 /* SIMPLE_EXPRESSION */) { 4569 if (arg.isStatic) { 4570 arg.content = prefix + arg.content; 4571 } 4572 else { 4573 arg.content = `\`${prefix}\${${arg.content}}\``; 4574 } 4575 } 4576 else { 4577 arg.children.unshift(`'${prefix}' + (`); 4578 arg.children.push(`)`); 4579 } 4580}; 4581 4582// Merge adjacent text nodes and expressions into a single expression 4583// e.g. <div>abc {{ d }} {{ e }}</div> should have a single expression node as child. 4584const transformText = (node, context) => { 4585 if (node.type === 0 /* ROOT */ || 4586 node.type === 1 /* ELEMENT */ || 4587 node.type === 11 /* FOR */ || 4588 node.type === 10 /* IF_BRANCH */) { 4589 // perform the transform on node exit so that all expressions have already 4590 // been processed. 4591 return () => { 4592 const children = node.children; 4593 let currentContainer = undefined; 4594 let hasText = false; 4595 for (let i = 0; i < children.length; i++) { 4596 const child = children[i]; 4597 if (isText(child)) { 4598 hasText = true; 4599 for (let j = i + 1; j < children.length; j++) { 4600 const next = children[j]; 4601 if (isText(next)) { 4602 if (!currentContainer) { 4603 currentContainer = children[i] = createCompoundExpression([child], child.loc); 4604 } 4605 // merge adjacent text node into current 4606 currentContainer.children.push(` + `, next); 4607 children.splice(j, 1); 4608 j--; 4609 } 4610 else { 4611 currentContainer = undefined; 4612 break; 4613 } 4614 } 4615 } 4616 } 4617 if (!hasText || 4618 // if this is a plain element with a single text child, leave it 4619 // as-is since the runtime has dedicated fast path for this by directly 4620 // setting textContent of the element. 4621 // for component root it's always normalized anyway. 4622 (children.length === 1 && 4623 (node.type === 0 /* ROOT */ || 4624 (node.type === 1 /* ELEMENT */ && 4625 node.tagType === 0 /* ELEMENT */ && 4626 // #3756 4627 // custom directives can potentially add DOM elements arbitrarily, 4628 // we need to avoid setting textContent of the element at runtime 4629 // to avoid accidentally overwriting the DOM elements added 4630 // by the user through custom directives. 4631 !node.props.find(p => p.type === 7 /* DIRECTIVE */ && 4632 !context.directiveTransforms[p.name]) && 4633 // in compat mode, <template> tags with no special directives 4634 // will be rendered as a fragment so its children must be 4635 // converted into vnodes. 4636 !(node.tag === 'template'))))) { 4637 return; 4638 } 4639 // pre-convert text nodes into createTextVNode(text) calls to avoid 4640 // runtime normalization. 4641 for (let i = 0; i < children.length; i++) { 4642 const child = children[i]; 4643 if (isText(child) || child.type === 8 /* COMPOUND_EXPRESSION */) { 4644 const callArgs = []; 4645 // createTextVNode defaults to single whitespace, so if it is a 4646 // single space the code could be an empty call to save bytes. 4647 if (child.type !== 2 /* TEXT */ || child.content !== ' ') { 4648 callArgs.push(child); 4649 } 4650 // mark dynamic text with flag so it gets patched inside a block 4651 if (!context.ssr && 4652 getConstantType(child, context) === 0 /* NOT_CONSTANT */) { 4653 callArgs.push(1 /* TEXT */ + 4654 (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[1]} */` : 0)); 4655 } 4656 children[i] = { 4657 type: 12 /* TEXT_CALL */, 4658 content: child, 4659 loc: child.loc, 4660 codegenNode: createCallExpression(context.helper(CREATE_TEXT), callArgs) 4661 }; 4662 } 4663 } 4664 }; 4665 } 4666}; 4667 4668const seen = new WeakSet(); 4669const transformOnce = (node, context) => { 4670 if (node.type === 1 /* ELEMENT */ && findDir(node, 'once', true)) { 4671 if (seen.has(node) || context.inVOnce) { 4672 return; 4673 } 4674 seen.add(node); 4675 context.inVOnce = true; 4676 context.helper(SET_BLOCK_TRACKING); 4677 return () => { 4678 context.inVOnce = false; 4679 const cur = context.currentNode; 4680 if (cur.codegenNode) { 4681 cur.codegenNode = context.cache(cur.codegenNode, true /* isVNode */); 4682 } 4683 }; 4684 } 4685}; 4686 4687const transformModel = (dir, node, context) => { 4688 const { exp, arg } = dir; 4689 if (!exp) { 4690 context.onError(createCompilerError(41 /* X_V_MODEL_NO_EXPRESSION */, dir.loc)); 4691 return createTransformProps(); 4692 } 4693 const rawExp = exp.loc.source; 4694 const expString = exp.type === 4 /* SIMPLE_EXPRESSION */ ? exp.content : rawExp; 4695 // im SFC <script setup> inline mode, the exp may have been transformed into 4696 // _unref(exp) 4697 context.bindingMetadata[rawExp]; 4698 const maybeRef = !true /* SETUP_CONST */; 4699 if (!expString.trim() || 4700 (!isMemberExpression(expString) && !maybeRef)) { 4701 context.onError(createCompilerError(42 /* X_V_MODEL_MALFORMED_EXPRESSION */, exp.loc)); 4702 return createTransformProps(); 4703 } 4704 const propName = arg ? arg : createSimpleExpression('modelValue', true); 4705 const eventName = arg 4706 ? isStaticExp(arg) 4707 ? `onUpdate:${arg.content}` 4708 : createCompoundExpression(['"onUpdate:" + ', arg]) 4709 : `onUpdate:modelValue`; 4710 let assignmentExp; 4711 const eventArg = context.isTS ? `($event: any)` : `$event`; 4712 { 4713 assignmentExp = createCompoundExpression([ 4714 `${eventArg} => ((`, 4715 exp, 4716 `) = $event)` 4717 ]); 4718 } 4719 const props = [ 4720 // modelValue: foo 4721 createObjectProperty(propName, dir.exp), 4722 // "onUpdate:modelValue": $event => (foo = $event) 4723 createObjectProperty(eventName, assignmentExp) 4724 ]; 4725 // modelModifiers: { foo: true, "bar-baz": true } 4726 if (dir.modifiers.length && node.tagType === 1 /* COMPONENT */) { 4727 const modifiers = dir.modifiers 4728 .map(m => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`) 4729 .join(`, `); 4730 const modifiersKey = arg 4731 ? isStaticExp(arg) 4732 ? `${arg.content}Modifiers` 4733 : createCompoundExpression([arg, ' + "Modifiers"']) 4734 : `modelModifiers`; 4735 props.push(createObjectProperty(modifiersKey, createSimpleExpression(`{ ${modifiers} }`, false, dir.loc, 2 /* CAN_HOIST */))); 4736 } 4737 return createTransformProps(props); 4738}; 4739function createTransformProps(props = []) { 4740 return { props }; 4741} 4742 4743const validDivisionCharRE = /[\w).+\-_$\]]/; 4744const transformFilter = (node, context) => { 4745 if (!isCompatEnabled("COMPILER_FILTER" /* COMPILER_FILTERS */, context)) { 4746 return; 4747 } 4748 if (node.type === 5 /* INTERPOLATION */) { 4749 // filter rewrite is applied before expression transform so only 4750 // simple expressions are possible at this stage 4751 rewriteFilter(node.content, context); 4752 } 4753 if (node.type === 1 /* ELEMENT */) { 4754 node.props.forEach((prop) => { 4755 if (prop.type === 7 /* DIRECTIVE */ && 4756 prop.name !== 'for' && 4757 prop.exp) { 4758 rewriteFilter(prop.exp, context); 4759 } 4760 }); 4761 } 4762}; 4763function rewriteFilter(node, context) { 4764 if (node.type === 4 /* SIMPLE_EXPRESSION */) { 4765 parseFilter(node, context); 4766 } 4767 else { 4768 for (let i = 0; i < node.children.length; i++) { 4769 const child = node.children[i]; 4770 if (typeof child !== 'object') 4771 continue; 4772 if (child.type === 4 /* SIMPLE_EXPRESSION */) { 4773 parseFilter(child, context); 4774 } 4775 else if (child.type === 8 /* COMPOUND_EXPRESSION */) { 4776 rewriteFilter(node, context); 4777 } 4778 else if (child.type === 5 /* INTERPOLATION */) { 4779 rewriteFilter(child.content, context); 4780 } 4781 } 4782 } 4783} 4784function parseFilter(node, context) { 4785 const exp = node.content; 4786 let inSingle = false; 4787 let inDouble = false; 4788 let inTemplateString = false; 4789 let inRegex = false; 4790 let curly = 0; 4791 let square = 0; 4792 let paren = 0; 4793 let lastFilterIndex = 0; 4794 let c, prev, i, expression, filters = []; 4795 for (i = 0; i < exp.length; i++) { 4796 prev = c; 4797 c = exp.charCodeAt(i); 4798 if (inSingle) { 4799 if (c === 0x27 && prev !== 0x5c) 4800 inSingle = false; 4801 } 4802 else if (inDouble) { 4803 if (c === 0x22 && prev !== 0x5c) 4804 inDouble = false; 4805 } 4806 else if (inTemplateString) { 4807 if (c === 0x60 && prev !== 0x5c) 4808 inTemplateString = false; 4809 } 4810 else if (inRegex) { 4811 if (c === 0x2f && prev !== 0x5c) 4812 inRegex = false; 4813 } 4814 else if (c === 0x7c && // pipe 4815 exp.charCodeAt(i + 1) !== 0x7c && 4816 exp.charCodeAt(i - 1) !== 0x7c && 4817 !curly && 4818 !square && 4819 !paren) { 4820 if (expression === undefined) { 4821 // first filter, end of expression 4822 lastFilterIndex = i + 1; 4823 expression = exp.slice(0, i).trim(); 4824 } 4825 else { 4826 pushFilter(); 4827 } 4828 } 4829 else { 4830 switch (c) { 4831 case 0x22: 4832 inDouble = true; 4833 break; // " 4834 case 0x27: 4835 inSingle = true; 4836 break; // ' 4837 case 0x60: 4838 inTemplateString = true; 4839 break; // ` 4840 case 0x28: 4841 paren++; 4842 break; // ( 4843 case 0x29: 4844 paren--; 4845 break; // ) 4846 case 0x5b: 4847 square++; 4848 break; // [ 4849 case 0x5d: 4850 square--; 4851 break; // ] 4852 case 0x7b: 4853 curly++; 4854 break; // { 4855 case 0x7d: 4856 curly--; 4857 break; // } 4858 } 4859 if (c === 0x2f) { 4860 // / 4861 let j = i - 1; 4862 let p; 4863 // find first non-whitespace prev char 4864 for (; j >= 0; j--) { 4865 p = exp.charAt(j); 4866 if (p !== ' ') 4867 break; 4868 } 4869 if (!p || !validDivisionCharRE.test(p)) { 4870 inRegex = true; 4871 } 4872 } 4873 } 4874 } 4875 if (expression === undefined) { 4876 expression = exp.slice(0, i).trim(); 4877 } 4878 else if (lastFilterIndex !== 0) { 4879 pushFilter(); 4880 } 4881 function pushFilter() { 4882 filters.push(exp.slice(lastFilterIndex, i).trim()); 4883 lastFilterIndex = i + 1; 4884 } 4885 if (filters.length) { 4886 ( true) && 4887 warnDeprecation("COMPILER_FILTER" /* COMPILER_FILTERS */, context, node.loc); 4888 for (i = 0; i < filters.length; i++) { 4889 expression = wrapFilter(expression, filters[i], context); 4890 } 4891 node.content = expression; 4892 } 4893} 4894function wrapFilter(exp, filter, context) { 4895 context.helper(RESOLVE_FILTER); 4896 const i = filter.indexOf('('); 4897 if (i < 0) { 4898 context.filters.add(filter); 4899 return `${toValidAssetId(filter, 'filter')}(${exp})`; 4900 } 4901 else { 4902 const name = filter.slice(0, i); 4903 const args = filter.slice(i + 1); 4904 context.filters.add(name); 4905 return `${toValidAssetId(name, 'filter')}(${exp}${args !== ')' ? ',' + args : args}`; 4906 } 4907} 4908 4909const seen$1 = new WeakSet(); 4910const transformMemo = (node, context) => { 4911 if (node.type === 1 /* ELEMENT */) { 4912 const dir = findDir(node, 'memo'); 4913 if (!dir || seen$1.has(node)) { 4914 return; 4915 } 4916 seen$1.add(node); 4917 return () => { 4918 const codegenNode = node.codegenNode || 4919 context.currentNode.codegenNode; 4920 if (codegenNode && codegenNode.type === 13 /* VNODE_CALL */) { 4921 // non-component sub tree should be turned into a block 4922 if (node.tagType !== 1 /* COMPONENT */) { 4923 makeBlock(codegenNode, context); 4924 } 4925 node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [ 4926 dir.exp, 4927 createFunctionExpression(undefined, codegenNode), 4928 `_cache`, 4929 String(context.cached++) 4930 ]); 4931 } 4932 }; 4933 } 4934}; 4935 4936function getBaseTransformPreset(prefixIdentifiers) { 4937 return [ 4938 [ 4939 transformOnce, 4940 transformIf, 4941 transformMemo, 4942 transformFor, 4943 ...([transformFilter] ), 4944 ...(( true) 4945 ? [transformExpression] 4946 : 0), 4947 transformSlotOutlet, 4948 transformElement, 4949 trackSlotScopes, 4950 transformText 4951 ], 4952 { 4953 on: transformOn, 4954 bind: transformBind, 4955 model: transformModel 4956 } 4957 ]; 4958} 4959// we name it `baseCompile` so that higher order compilers like 4960// @vue/compiler-dom can export `compile` while re-exporting everything else. 4961function baseCompile(template, options = {}) { 4962 const onError = options.onError || defaultOnError; 4963 const isModuleMode = options.mode === 'module'; 4964 /* istanbul ignore if */ 4965 { 4966 if (options.prefixIdentifiers === true) { 4967 onError(createCompilerError(46 /* X_PREFIX_ID_NOT_SUPPORTED */)); 4968 } 4969 else if (isModuleMode) { 4970 onError(createCompilerError(47 /* X_MODULE_MODE_NOT_SUPPORTED */)); 4971 } 4972 } 4973 const prefixIdentifiers = !true ; 4974 if (options.cacheHandlers) { 4975 onError(createCompilerError(48 /* X_CACHE_HANDLER_NOT_SUPPORTED */)); 4976 } 4977 if (options.scopeId && !isModuleMode) { 4978 onError(createCompilerError(49 /* X_SCOPE_ID_NOT_SUPPORTED */)); 4979 } 4980 const ast = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(template) ? baseParse(template, options) : template; 4981 const [nodeTransforms, directiveTransforms] = getBaseTransformPreset(); 4982 transform(ast, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, options, { 4983 prefixIdentifiers, 4984 nodeTransforms: [ 4985 ...nodeTransforms, 4986 ...(options.nodeTransforms || []) // user transforms 4987 ], 4988 directiveTransforms: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, directiveTransforms, options.directiveTransforms || {} // user transforms 4989 ) 4990 })); 4991 return generate(ast, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, options, { 4992 prefixIdentifiers 4993 })); 4994} 4995 4996const noopDirectiveTransform = () => ({ props: [] }); 4997 4998 4999 5000 5001/***/ }), 5002
vendor: 42,688 bytes, lines 5003-5643
5003/***/ "./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js": 5004/*!*************************************************************************!*\ 5005 !*** ./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js ***! 5006 \*************************************************************************/ 5007/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 5008 5009"use strict"; 5010__webpack_require__.r(__webpack_exports__); 5011/* harmony export */ __webpack_require__.d(__webpack_exports__, { 5012/* harmony export */ "BASE_TRANSITION": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.BASE_TRANSITION; }, 5013/* harmony export */ "CAMELIZE": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CAMELIZE; }, 5014/* harmony export */ "CAPITALIZE": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CAPITALIZE; }, 5015/* harmony export */ "CREATE_BLOCK": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_BLOCK; }, 5016/* harmony export */ "CREATE_COMMENT": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_COMMENT; }, 5017/* harmony export */ "CREATE_ELEMENT_BLOCK": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_ELEMENT_BLOCK; }, 5018/* harmony export */ "CREATE_ELEMENT_VNODE": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_ELEMENT_VNODE; }, 5019/* harmony export */ "CREATE_SLOTS": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_SLOTS; }, 5020/* harmony export */ "CREATE_STATIC": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_STATIC; }, 5021/* harmony export */ "CREATE_TEXT": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_TEXT; }, 5022/* harmony export */ "CREATE_VNODE": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_VNODE; }, 5023/* harmony export */ "DOMDirectiveTransforms": function() { return /* binding */ DOMDirectiveTransforms; }, 5024/* harmony export */ "DOMNodeTransforms": function() { return /* binding */ DOMNodeTransforms; }, 5025/* harmony export */ "FRAGMENT": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.FRAGMENT; }, 5026/* harmony export */ "GUARD_REACTIVE_PROPS": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.GUARD_REACTIVE_PROPS; }, 5027/* harmony export */ "IS_MEMO_SAME": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.IS_MEMO_SAME; }, 5028/* harmony export */ "IS_REF": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.IS_REF; }, 5029/* harmony export */ "KEEP_ALIVE": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.KEEP_ALIVE; }, 5030/* harmony export */ "MERGE_PROPS": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.MERGE_PROPS; }, 5031/* harmony export */ "NORMALIZE_CLASS": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_CLASS; }, 5032/* harmony export */ "NORMALIZE_PROPS": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_PROPS; }, 5033/* harmony export */ "NORMALIZE_STYLE": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_STYLE; }, 5034/* harmony export */ "OPEN_BLOCK": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.OPEN_BLOCK; }, 5035/* harmony export */ "POP_SCOPE_ID": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.POP_SCOPE_ID; }, 5036/* harmony export */ "PUSH_SCOPE_ID": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.PUSH_SCOPE_ID; }, 5037/* harmony export */ "RENDER_LIST": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RENDER_LIST; }, 5038/* harmony export */ "RENDER_SLOT": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RENDER_SLOT; }, 5039/* harmony export */ "RESOLVE_COMPONENT": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_COMPONENT; }, 5040/* harmony export */ "RESOLVE_DIRECTIVE": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_DIRECTIVE; }, 5041/* harmony export */ "RESOLVE_DYNAMIC_COMPONENT": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_DYNAMIC_COMPONENT; }, 5042/* harmony export */ "RESOLVE_FILTER": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_FILTER; }, 5043/* harmony export */ "SET_BLOCK_TRACKING": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.SET_BLOCK_TRACKING; }, 5044/* harmony export */ "SUSPENSE": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.SUSPENSE; }, 5045/* harmony export */ "TELEPORT": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TELEPORT; }, 5046/* harmony export */ "TO_DISPLAY_STRING": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_DISPLAY_STRING; }, 5047/* harmony export */ "TO_HANDLERS": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_HANDLERS; }, 5048/* harmony export */ "TO_HANDLER_KEY": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_HANDLER_KEY; }, 5049/* harmony export */ "TRANSITION": function() { return /* binding */ TRANSITION; }, 5050/* harmony export */ "TRANSITION_GROUP": function() { return /* binding */ TRANSITION_GROUP; }, 5051/* harmony export */ "UNREF": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.UNREF; }, 5052/* harmony export */ "V_MODEL_CHECKBOX": function() { return /* binding */ V_MODEL_CHECKBOX; }, 5053/* harmony export */ "V_MODEL_DYNAMIC": function() { return /* binding */ V_MODEL_DYNAMIC; }, 5054/* harmony export */ "V_MODEL_RADIO": function() { return /* binding */ V_MODEL_RADIO; }, 5055/* harmony export */ "V_MODEL_SELECT": function() { return /* binding */ V_MODEL_SELECT; }, 5056/* harmony export */ "V_MODEL_TEXT": function() { return /* binding */ V_MODEL_TEXT; }, 5057/* harmony export */ "V_ON_WITH_KEYS": function() { return /* binding */ V_ON_WITH_KEYS; }, 5058/* harmony export */ "V_ON_WITH_MODIFIERS": function() { return /* binding */ V_ON_WITH_MODIFIERS; }, 5059/* harmony export */ "V_SHOW": function() { return /* binding */ V_SHOW; }, 5060/* harmony export */ "WITH_CTX": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_CTX; }, 5061/* harmony export */ "WITH_DIRECTIVES": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_DIRECTIVES; }, 5062/* harmony export */ "WITH_MEMO": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_MEMO; }, 5063/* harmony export */ "advancePositionWithClone": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.advancePositionWithClone; }, 5064/* harmony export */ "advancePositionWithMutation": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.advancePositionWithMutation; }, 5065/* harmony export */ "assert": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.assert; }, 5066/* harmony export */ "baseCompile": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseCompile; }, 5067/* harmony export */ "baseParse": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseParse; }, 5068/* harmony export */ "buildDirectiveArgs": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildDirectiveArgs; }, 5069/* harmony export */ "buildProps": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildProps; }, 5070/* harmony export */ "buildSlots": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildSlots; }, 5071/* harmony export */ "checkCompatEnabled": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.checkCompatEnabled; }, 5072/* harmony export */ "compile": function() { return /* binding */ compile; }, 5073/* harmony export */ "createArrayExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createArrayExpression; }, 5074/* harmony export */ "createAssignmentExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createAssignmentExpression; }, 5075/* harmony export */ "createBlockStatement": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createBlockStatement; }, 5076/* harmony export */ "createCacheExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCacheExpression; }, 5077/* harmony export */ "createCallExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression; }, 5078/* harmony export */ "createCompilerError": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompilerError; }, 5079/* harmony export */ "createCompoundExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression; }, 5080/* harmony export */ "createConditionalExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createConditionalExpression; }, 5081/* harmony export */ "createDOMCompilerError": function() { return /* binding */ createDOMCompilerError; }, 5082/* harmony export */ "createForLoopParams": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createForLoopParams; }, 5083/* harmony export */ "createFunctionExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createFunctionExpression; }, 5084/* harmony export */ "createIfStatement": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createIfStatement; }, 5085/* harmony export */ "createInterpolation": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createInterpolation; }, 5086/* harmony export */ "createObjectExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectExpression; }, 5087/* harmony export */ "createObjectProperty": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty; }, 5088/* harmony export */ "createReturnStatement": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createReturnStatement; }, 5089/* harmony export */ "createRoot": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createRoot; }, 5090/* harmony export */ "createSequenceExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSequenceExpression; }, 5091/* harmony export */ "createSimpleExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression; }, 5092/* harmony export */ "createStructuralDirectiveTransform": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createStructuralDirectiveTransform; }, 5093/* harmony export */ "createTemplateLiteral": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createTemplateLiteral; }, 5094/* harmony export */ "createTransformContext": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createTransformContext; }, 5095/* harmony export */ "createVNodeCall": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createVNodeCall; }, 5096/* harmony export */ "extractIdentifiers": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.extractIdentifiers; }, 5097/* harmony export */ "findDir": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findDir; }, 5098/* harmony export */ "findProp": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp; }, 5099/* harmony export */ "generate": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.generate; }, 5100/* harmony export */ "generateCodeFrame": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.generateCodeFrame; }, 5101/* harmony export */ "getBaseTransformPreset": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getBaseTransformPreset; }, 5102/* harmony export */ "getConstantType": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getConstantType; }, 5103/* harmony export */ "getInnerRange": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getInnerRange; }, 5104/* harmony export */ "getMemoedVNodeCall": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getMemoedVNodeCall; }, 5105/* harmony export */ "getVNodeBlockHelper": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getVNodeBlockHelper; }, 5106/* harmony export */ "getVNodeHelper": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getVNodeHelper; }, 5107/* harmony export */ "hasDynamicKeyVBind": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasDynamicKeyVBind; }, 5108/* harmony export */ "hasScopeRef": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasScopeRef; }, 5109/* harmony export */ "helperNameMap": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.helperNameMap; }, 5110/* harmony export */ "injectProp": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.injectProp; }, 5111/* harmony export */ "isBuiltInType": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType; }, 5112/* harmony export */ "isCoreComponent": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isCoreComponent; }, 5113/* harmony export */ "isFunctionType": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isFunctionType; }, 5114/* harmony export */ "isInDestructureAssignment": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isInDestructureAssignment; }, 5115/* harmony export */ "isMemberExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpression; }, 5116/* harmony export */ "isMemberExpressionBrowser": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpressionBrowser; }, 5117/* harmony export */ "isMemberExpressionNode": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpressionNode; }, 5118/* harmony export */ "isReferencedIdentifier": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isReferencedIdentifier; }, 5119/* harmony export */ "isSimpleIdentifier": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isSimpleIdentifier; }, 5120/* harmony export */ "isSlotOutlet": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isSlotOutlet; }, 5121/* harmony export */ "isStaticArgOf": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticArgOf; }, 5122/* harmony export */ "isStaticExp": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp; }, 5123/* harmony export */ "isStaticProperty": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticProperty; }, 5124/* harmony export */ "isStaticPropertyKey": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticPropertyKey; }, 5125/* harmony export */ "isTemplateNode": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isTemplateNode; }, 5126/* harmony export */ "isText": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isText; }, 5127/* harmony export */ "isVSlot": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isVSlot; }, 5128/* harmony export */ "locStub": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.locStub; }, 5129/* harmony export */ "makeBlock": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.makeBlock; }, 5130/* harmony export */ "noopDirectiveTransform": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.noopDirectiveTransform; }, 5131/* harmony export */ "parse": function() { return /* binding */ parse; }, 5132/* harmony export */ "parserOptions": function() { return /* binding */ parserOptions; }, 5133/* harmony export */ "processExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processExpression; }, 5134/* harmony export */ "processFor": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processFor; }, 5135/* harmony export */ "processIf": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processIf; }, 5136/* harmony export */ "processSlotOutlet": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processSlotOutlet; }, 5137/* harmony export */ "registerRuntimeHelpers": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeHelpers; }, 5138/* harmony export */ "resolveComponentType": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.resolveComponentType; }, 5139/* harmony export */ "toValidAssetId": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.toValidAssetId; }, 5140/* harmony export */ "trackSlotScopes": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.trackSlotScopes; }, 5141/* harmony export */ "trackVForSlotScopes": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.trackVForSlotScopes; }, 5142/* harmony export */ "transform": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transform; }, 5143/* harmony export */ "transformBind": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformBind; }, 5144/* harmony export */ "transformElement": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformElement; }, 5145/* harmony export */ "transformExpression": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformExpression; }, 5146/* harmony export */ "transformModel": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformModel; }, 5147/* harmony export */ "transformOn": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformOn; }, 5148/* harmony export */ "transformStyle": function() { return /* binding */ transformStyle; }, 5149/* harmony export */ "traverseNode": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.traverseNode; }, 5150/* harmony export */ "walkBlockDeclarations": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkBlockDeclarations; }, 5151/* harmony export */ "walkFunctionParams": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkFunctionParams; }, 5152/* harmony export */ "walkIdentifiers": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkIdentifiers; }, 5153/* harmony export */ "warnDeprecation": function() { return /* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.warnDeprecation; } 5154/* harmony export */ }); 5155/* harmony import */ var _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/compiler-core */ "./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js"); 5156/* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js"); 5157 5158 5159 5160 5161const V_MODEL_RADIO = Symbol(( true) ? `vModelRadio` : 0); 5162const V_MODEL_CHECKBOX = Symbol(( true) ? `vModelCheckbox` : 0); 5163const V_MODEL_TEXT = Symbol(( true) ? `vModelText` : 0); 5164const V_MODEL_SELECT = Symbol(( true) ? `vModelSelect` : 0); 5165const V_MODEL_DYNAMIC = Symbol(( true) ? `vModelDynamic` : 0); 5166const V_ON_WITH_MODIFIERS = Symbol(( true) ? `vOnModifiersGuard` : 0); 5167const V_ON_WITH_KEYS = Symbol(( true) ? `vOnKeysGuard` : 0); 5168const V_SHOW = Symbol(( true) ? `vShow` : 0); 5169const TRANSITION = Symbol(( true) ? `Transition` : 0); 5170const TRANSITION_GROUP = Symbol(( true) ? `TransitionGroup` : 0); 5171(0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeHelpers)({ 5172 [V_MODEL_RADIO]: `vModelRadio`, 5173 [V_MODEL_CHECKBOX]: `vModelCheckbox`, 5174 [V_MODEL_TEXT]: `vModelText`, 5175 [V_MODEL_SELECT]: `vModelSelect`, 5176 [V_MODEL_DYNAMIC]: `vModelDynamic`, 5177 [V_ON_WITH_MODIFIERS]: `withModifiers`, 5178 [V_ON_WITH_KEYS]: `withKeys`, 5179 [V_SHOW]: `vShow`, 5180 [TRANSITION]: `Transition`, 5181 [TRANSITION_GROUP]: `TransitionGroup` 5182}); 5183 5184/* eslint-disable no-restricted-globals */ 5185let decoder; 5186function decodeHtmlBrowser(raw, asAttr = false) { 5187 if (!decoder) { 5188 decoder = document.createElement('div'); 5189 } 5190 if (asAttr) { 5191 decoder.innerHTML = `<div foo="${raw.replace(/"/g, '"')}">`; 5192 return decoder.children[0].getAttribute('foo'); 5193 } 5194 else { 5195 decoder.innerHTML = raw; 5196 return decoder.textContent; 5197 } 5198} 5199 5200const isRawTextContainer = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('style,iframe,script,noscript', true); 5201const parserOptions = { 5202 isVoidTag: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isVoidTag, 5203 isNativeTag: tag => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isHTMLTag)(tag) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSVGTag)(tag), 5204 isPreTag: tag => tag === 'pre', 5205 decodeEntities: decodeHtmlBrowser , 5206 isBuiltInComponent: (tag) => { 5207 if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType)(tag, `Transition`)) { 5208 return TRANSITION; 5209 } 5210 else if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType)(tag, `TransitionGroup`)) { 5211 return TRANSITION_GROUP; 5212 } 5213 }, 5214 // https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher 5215 getNamespace(tag, parent) { 5216 let ns = parent ? parent.ns : 0 /* HTML */; 5217 if (parent && ns === 2 /* MATH_ML */) { 5218 if (parent.tag === 'annotation-xml') { 5219 if (tag === 'svg') { 5220 return 1 /* SVG */; 5221 } 5222 if (parent.props.some(a => a.type === 6 /* ATTRIBUTE */ && 5223 a.name === 'encoding' && 5224 a.value != null && 5225 (a.value.content === 'text/html' || 5226 a.value.content === 'application/xhtml+xml'))) { 5227 ns = 0 /* HTML */; 5228 } 5229 } 5230 else if (/^m(?:[ions]|text)$/.test(parent.tag) && 5231 tag !== 'mglyph' && 5232 tag !== 'malignmark') { 5233 ns = 0 /* HTML */; 5234 } 5235 } 5236 else if (parent && ns === 1 /* SVG */) { 5237 if (parent.tag === 'foreignObject' || 5238 parent.tag === 'desc' || 5239 parent.tag === 'title') { 5240 ns = 0 /* HTML */; 5241 } 5242 } 5243 if (ns === 0 /* HTML */) { 5244 if (tag === 'svg') { 5245 return 1 /* SVG */; 5246 } 5247 if (tag === 'math') { 5248 return 2 /* MATH_ML */; 5249 } 5250 } 5251 return ns; 5252 }, 5253 // https://html.spec.whatwg.org/multipage/parsing.html#parsing-html-fragments 5254 getTextMode({ tag, ns }) { 5255 if (ns === 0 /* HTML */) { 5256 if (tag === 'textarea' || tag === 'title') { 5257 return 1 /* RCDATA */; 5258 } 5259 if (isRawTextContainer(tag)) { 5260 return 2 /* RAWTEXT */; 5261 } 5262 } 5263 return 0 /* DATA */; 5264 } 5265}; 5266 5267// Parse inline CSS strings for static style attributes into an object. 5268// This is a NodeTransform since it works on the static `style` attribute and 5269// converts it into a dynamic equivalent: 5270// style="color: red" -> :style='{ "color": "red" }' 5271// It is then processed by `transformElement` and included in the generated 5272// props. 5273const transformStyle = node => { 5274 if (node.type === 1 /* ELEMENT */) { 5275 node.props.forEach((p, i) => { 5276 if (p.type === 6 /* ATTRIBUTE */ && p.name === 'style' && p.value) { 5277 // replace p with an expression node 5278 node.props[i] = { 5279 type: 7 /* DIRECTIVE */, 5280 name: `bind`, 5281 arg: (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`style`, true, p.loc), 5282 exp: parseInlineCSS(p.value.content, p.loc), 5283 modifiers: [], 5284 loc: p.loc 5285 }; 5286 } 5287 }); 5288 } 5289}; 5290const parseInlineCSS = (cssText, loc) => { 5291 const normalized = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.parseStringStyle)(cssText); 5292 return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(JSON.stringify(normalized), false, loc, 3 /* CAN_STRINGIFY */); 5293}; 5294 5295function createDOMCompilerError(code, loc) { 5296 return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompilerError)(code, loc, true ? DOMErrorMessages : 0); 5297} 5298const DOMErrorMessages = { 5299 [50 /* X_V_HTML_NO_EXPRESSION */]: `v-html is missing expression.`, 5300 [51 /* X_V_HTML_WITH_CHILDREN */]: `v-html will override element children.`, 5301 [52 /* X_V_TEXT_NO_EXPRESSION */]: `v-text is missing expression.`, 5302 [53 /* X_V_TEXT_WITH_CHILDREN */]: `v-text will override element children.`, 5303 [54 /* X_V_MODEL_ON_INVALID_ELEMENT */]: `v-model can only be used on <input>, <textarea> and <select> elements.`, 5304 [55 /* X_V_MODEL_ARG_ON_ELEMENT */]: `v-model argument is not supported on plain elements.`, 5305 [56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`, 5306 [57 /* X_V_MODEL_UNNECESSARY_VALUE */]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`, 5307 [58 /* X_V_SHOW_NO_EXPRESSION */]: `v-show is missing expression.`, 5308 [59 /* X_TRANSITION_INVALID_CHILDREN */]: `<Transition> expects exactly one child element or component.`, 5309 [60 /* X_IGNORED_SIDE_EFFECT_TAG */]: `Tags with side effect (<script> and <style>) are ignored in client component templates.` 5310}; 5311 5312const transformVHtml = (dir, node, context) => { 5313 const { exp, loc } = dir; 5314 if (!exp) { 5315 context.onError(createDOMCompilerError(50 /* X_V_HTML_NO_EXPRESSION */, loc)); 5316 } 5317 if (node.children.length) { 5318 context.onError(createDOMCompilerError(51 /* X_V_HTML_WITH_CHILDREN */, loc)); 5319 node.children.length = 0; 5320 } 5321 return { 5322 props: [ 5323 (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`innerHTML`, true, loc), exp || (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)('', true)) 5324 ] 5325 }; 5326}; 5327 5328const transformVText = (dir, node, context) => { 5329 const { exp, loc } = dir; 5330 if (!exp) { 5331 context.onError(createDOMCompilerError(52 /* X_V_TEXT_NO_EXPRESSION */, loc)); 5332 } 5333 if (node.children.length) { 5334 context.onError(createDOMCompilerError(53 /* X_V_TEXT_WITH_CHILDREN */, loc)); 5335 node.children.length = 0; 5336 } 5337 return { 5338 props: [ 5339 (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`textContent`, true), exp 5340 ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getConstantType)(exp, context) > 0 5341 ? exp 5342 : (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helperString(_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_DISPLAY_STRING), [exp], loc) 5343 : (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)('', true)) 5344 ] 5345 }; 5346}; 5347 5348const transformModel = (dir, node, context) => { 5349 const baseResult = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformModel)(dir, node, context); 5350 // base transform has errors OR component v-model (only need props) 5351 if (!baseResult.props.length || node.tagType === 1 /* COMPONENT */) { 5352 return baseResult; 5353 } 5354 if (dir.arg) { 5355 context.onError(createDOMCompilerError(55 /* X_V_MODEL_ARG_ON_ELEMENT */, dir.arg.loc)); 5356 } 5357 function checkDuplicatedValue() { 5358 const value = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp)(node, 'value'); 5359 if (value) { 5360 context.onError(createDOMCompilerError(57 /* X_V_MODEL_UNNECESSARY_VALUE */, value.loc)); 5361 } 5362 } 5363 const { tag } = node; 5364 const isCustomElement = context.isCustomElement(tag); 5365 if (tag === 'input' || 5366 tag === 'textarea' || 5367 tag === 'select' || 5368 isCustomElement) { 5369 let directiveToUse = V_MODEL_TEXT; 5370 let isInvalidType = false; 5371 if (tag === 'input' || isCustomElement) { 5372 const type = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp)(node, `type`); 5373 if (type) { 5374 if (type.type === 7 /* DIRECTIVE */) { 5375 // :type="foo" 5376 directiveToUse = V_MODEL_DYNAMIC; 5377 } 5378 else if (type.value) { 5379 switch (type.value.content) { 5380 case 'radio': 5381 directiveToUse = V_MODEL_RADIO; 5382 break; 5383 case 'checkbox': 5384 directiveToUse = V_MODEL_CHECKBOX; 5385 break; 5386 case 'file': 5387 isInvalidType = true; 5388 context.onError(createDOMCompilerError(56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */, dir.loc)); 5389 break; 5390 default: 5391 // text type 5392 ( true) && checkDuplicatedValue(); 5393 break; 5394 } 5395 } 5396 } 5397 else if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasDynamicKeyVBind)(node)) { 5398 // element has bindings with dynamic keys, which can possibly contain 5399 // "type". 5400 directiveToUse = V_MODEL_DYNAMIC; 5401 } 5402 else { 5403 // text type 5404 ( true) && checkDuplicatedValue(); 5405 } 5406 } 5407 else if (tag === 'select') { 5408 directiveToUse = V_MODEL_SELECT; 5409 } 5410 else { 5411 // textarea 5412 ( true) && checkDuplicatedValue(); 5413 } 5414 // inject runtime directive 5415 // by returning the helper symbol via needRuntime 5416 // the import will replaced a resolveDirective call. 5417 if (!isInvalidType) { 5418 baseResult.needRuntime = context.helper(directiveToUse); 5419 } 5420 } 5421 else { 5422 context.onError(createDOMCompilerError(54 /* X_V_MODEL_ON_INVALID_ELEMENT */, dir.loc)); 5423 } 5424 // native vmodel doesn't need the `modelValue` props since they are also 5425 // passed to the runtime as `binding.value`. removing it reduces code size. 5426 baseResult.props = baseResult.props.filter(p => !(p.key.type === 4 /* SIMPLE_EXPRESSION */ && 5427 p.key.content === 'modelValue')); 5428 return baseResult; 5429}; 5430 5431const isEventOptionModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(`passive,once,capture`); 5432const isNonKeyModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)( 5433// event propagation management 5434`stop,prevent,self,` + 5435 // system modifiers + exact 5436 `ctrl,shift,alt,meta,exact,` + 5437 // mouse 5438 `middle`); 5439// left & right could be mouse or key modifiers based on event type 5440const maybeKeyModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('left,right'); 5441const isKeyboardEvent = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(`onkeyup,onkeydown,onkeypress`, true); 5442const resolveModifiers = (key, modifiers, context, loc) => { 5443 const keyModifiers = []; 5444 const nonKeyModifiers = []; 5445 const eventOptionModifiers = []; 5446 for (let i = 0; i < modifiers.length; i++) { 5447 const modifier = modifiers[i]; 5448 if (modifier === 'native' && 5449 (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.checkCompatEnabled)("COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */, context, loc)) { 5450 eventOptionModifiers.push(modifier); 5451 } 5452 else if (isEventOptionModifier(modifier)) { 5453 // eventOptionModifiers: modifiers for addEventListener() options, 5454 // e.g. .passive & .capture 5455 eventOptionModifiers.push(modifier); 5456 } 5457 else { 5458 // runtimeModifiers: modifiers that needs runtime guards 5459 if (maybeKeyModifier(modifier)) { 5460 if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key)) { 5461 if (isKeyboardEvent(key.content)) { 5462 keyModifiers.push(modifier); 5463 } 5464 else { 5465 nonKeyModifiers.push(modifier); 5466 } 5467 } 5468 else { 5469 keyModifiers.push(modifier); 5470 nonKeyModifiers.push(modifier); 5471 } 5472 } 5473 else { 5474 if (isNonKeyModifier(modifier)) { 5475 nonKeyModifiers.push(modifier); 5476 } 5477 else { 5478 keyModifiers.push(modifier); 5479 } 5480 } 5481 } 5482 } 5483 return { 5484 keyModifiers, 5485 nonKeyModifiers, 5486 eventOptionModifiers 5487 }; 5488}; 5489const transformClick = (key, event) => { 5490 const isStaticClick = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key) && key.content.toLowerCase() === 'onclick'; 5491 return isStaticClick 5492 ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(event, true) 5493 : key.type !== 4 /* SIMPLE_EXPRESSION */ 5494 ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression)([ 5495 `(`, 5496 key, 5497 `) === "onClick" ? "${event}" : (`, 5498 key, 5499 `)` 5500 ]) 5501 : key; 5502}; 5503const transformOn = (dir, node, context) => { 5504 return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformOn)(dir, node, context, baseResult => { 5505 const { modifiers } = dir; 5506 if (!modifiers.length) 5507 return baseResult; 5508 let { key, value: handlerExp } = baseResult.props[0]; 5509 const { keyModifiers, nonKeyModifiers, eventOptionModifiers } = resolveModifiers(key, modifiers, context, dir.loc); 5510 // normalize click.right and click.middle since they don't actually fire 5511 if (nonKeyModifiers.includes('right')) { 5512 key = transformClick(key, `onContextmenu`); 5513 } 5514 if (nonKeyModifiers.includes('middle')) { 5515 key = transformClick(key, `onMouseup`); 5516 } 5517 if (nonKeyModifiers.length) { 5518 handlerExp = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helper(V_ON_WITH_MODIFIERS), [ 5519 handlerExp, 5520 JSON.stringify(nonKeyModifiers) 5521 ]); 5522 } 5523 if (keyModifiers.length && 5524 // if event name is dynamic, always wrap with keys guard 5525 (!(0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key) || isKeyboardEvent(key.content))) { 5526 handlerExp = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helper(V_ON_WITH_KEYS), [ 5527 handlerExp, 5528 JSON.stringify(keyModifiers) 5529 ]); 5530 } 5531 if (eventOptionModifiers.length) { 5532 const modifierPostfix = eventOptionModifiers.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize).join(''); 5533 key = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key) 5534 ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`${key.content}${modifierPostfix}`, true) 5535 : (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression)([`(`, key, `) + "${modifierPostfix}"`]); 5536 } 5537 return { 5538 props: [(0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)(key, handlerExp)] 5539 }; 5540 }); 5541}; 5542 5543const transformShow = (dir, node, context) => { 5544 const { exp, loc } = dir; 5545 if (!exp) { 5546 context.onError(createDOMCompilerError(58 /* X_V_SHOW_NO_EXPRESSION */, loc)); 5547 } 5548 return { 5549 props: [], 5550 needRuntime: context.helper(V_SHOW) 5551 }; 5552}; 5553 5554const transformTransition = (node, context) => { 5555 if (node.type === 1 /* ELEMENT */ && 5556 node.tagType === 1 /* COMPONENT */) { 5557 const component = context.isBuiltInComponent(node.tag); 5558 if (component === TRANSITION) { 5559 return () => { 5560 if (!node.children.length) { 5561 return; 5562 } 5563 // warn multiple transition children 5564 if (hasMultipleChildren(node)) { 5565 context.onError(createDOMCompilerError(59 /* X_TRANSITION_INVALID_CHILDREN */, { 5566 start: node.children[0].loc.start, 5567 end: node.children[node.children.length - 1].loc.end, 5568 source: '' 5569 })); 5570 } 5571 // check if it's s single child w/ v-show 5572 // if yes, inject "persisted: true" to the transition props 5573 const child = node.children[0]; 5574 if (child.type === 1 /* ELEMENT */) { 5575 for (const p of child.props) { 5576 if (p.type === 7 /* DIRECTIVE */ && p.name === 'show') { 5577 node.props.push({ 5578 type: 6 /* ATTRIBUTE */, 5579 name: 'persisted', 5580 value: undefined, 5581 loc: node.loc 5582 }); 5583 } 5584 } 5585 } 5586 }; 5587 } 5588 } 5589}; 5590function hasMultipleChildren(node) { 5591 // #1352 filter out potential comment nodes. 5592 const children = (node.children = node.children.filter(c => c.type !== 3 /* COMMENT */ && 5593 !(c.type === 2 /* TEXT */ && !c.content.trim()))); 5594 const child = children[0]; 5595 return (children.length !== 1 || 5596 child.type === 11 /* FOR */ || 5597 (child.type === 9 /* IF */ && child.branches.some(hasMultipleChildren))); 5598} 5599 5600const ignoreSideEffectTags = (node, context) => { 5601 if (node.type === 1 /* ELEMENT */ && 5602 node.tagType === 0 /* ELEMENT */ && 5603 (node.tag === 'script' || node.tag === 'style')) { 5604 context.onError(createDOMCompilerError(60 /* X_IGNORED_SIDE_EFFECT_TAG */, node.loc)); 5605 context.removeNode(); 5606 } 5607}; 5608 5609const DOMNodeTransforms = [ 5610 transformStyle, 5611 ...(( true) ? [transformTransition] : 0) 5612]; 5613const DOMDirectiveTransforms = { 5614 cloak: _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.noopDirectiveTransform, 5615 html: transformVHtml, 5616 text: transformVText, 5617 model: transformModel, 5618 on: transformOn, 5619 show: transformShow 5620}; 5621function compile(template, options = {}) { 5622 return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseCompile)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, parserOptions, options, { 5623 nodeTransforms: [ 5624 // ignore <script> and <tag> 5625 // this is not put inside DOMNodeTransforms because that list is used 5626 // by compiler-ssr to generate vnode fallback branches 5627 ignoreSideEffectTags, 5628 ...DOMNodeTransforms, 5629 ...(options.nodeTransforms || []) 5630 ], 5631 directiveTransforms: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, DOMDirectiveTransforms, options.directiveTransforms || {}), 5632 transformHoist: null 5633 })); 5634} 5635function parse(template, options = {}) { 5636 return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseParse)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, parserOptions, options)); 5637} 5638 5639 5640 5641 5642/***/ }), 5643
vendor: 46,276 bytes, lines 5644-6935
5644/***/ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js": 5645/*!*********************************************************************!*\ 5646 !*** ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js ***! 5647 \*********************************************************************/ 5648/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 5649 5650"use strict"; 5651__webpack_require__.r(__webpack_exports__); 5652/* harmony export */ __webpack_require__.d(__webpack_exports__, { 5653/* harmony export */ "EffectScope": function() { return /* binding */ EffectScope; }, 5654/* harmony export */ "ITERATE_KEY": function() { return /* binding */ ITERATE_KEY; }, 5655/* harmony export */ "ReactiveEffect": function() { return /* binding */ ReactiveEffect; }, 5656/* harmony export */ "computed": function() { return /* binding */ computed; }, 5657/* harmony export */ "customRef": function() { return /* binding */ customRef; }, 5658/* harmony export */ "deferredComputed": function() { return /* binding */ deferredComputed; }, 5659/* harmony export */ "effect": function() { return /* binding */ effect; }, 5660/* harmony export */ "effectScope": function() { return /* binding */ effectScope; }, 5661/* harmony export */ "enableTracking": function() { return /* binding */ enableTracking; }, 5662/* harmony export */ "getCurrentScope": function() { return /* binding */ getCurrentScope; }, 5663/* harmony export */ "isProxy": function() { return /* binding */ isProxy; }, 5664/* harmony export */ "isReactive": function() { return /* binding */ isReactive; }, 5665/* harmony export */ "isReadonly": function() { return /* binding */ isReadonly; }, 5666/* harmony export */ "isRef": function() { return /* binding */ isRef; }, 5667/* harmony export */ "isShallow": function() { return /* binding */ isShallow; }, 5668/* harmony export */ "markRaw": function() { return /* binding */ markRaw; }, 5669/* harmony export */ "onScopeDispose": function() { return /* binding */ onScopeDispose; }, 5670/* harmony export */ "pauseTracking": function() { return /* binding */ pauseTracking; }, 5671/* harmony export */ "proxyRefs": function() { return /* binding */ proxyRefs; }, 5672/* harmony export */ "reactive": function() { return /* binding */ reactive; }, 5673/* harmony export */ "readonly": function() { return /* binding */ readonly; }, 5674/* harmony export */ "ref": function() { return /* binding */ ref; }, 5675/* harmony export */ "resetTracking": function() { return /* binding */ resetTracking; }, 5676/* harmony export */ "shallowReactive": function() { return /* binding */ shallowReactive; }, 5677/* harmony export */ "shallowReadonly": function() { return /* binding */ shallowReadonly; }, 5678/* harmony export */ "shallowRef": function() { return /* binding */ shallowRef; }, 5679/* harmony export */ "stop": function() { return /* binding */ stop; }, 5680/* harmony export */ "toRaw": function() { return /* binding */ toRaw; }, 5681/* harmony export */ "toRef": function() { return /* binding */ toRef; }, 5682/* harmony export */ "toRefs": function() { return /* binding */ toRefs; }, 5683/* harmony export */ "track": function() { return /* binding */ track; }, 5684/* harmony export */ "trigger": function() { return /* binding */ trigger; }, 5685/* harmony export */ "triggerRef": function() { return /* binding */ triggerRef; }, 5686/* harmony export */ "unref": function() { return /* binding */ unref; } 5687/* harmony export */ }); 5688/* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js"); 5689 5690 5691function warn(msg, ...args) { 5692 console.warn(`[Vue warn] ${msg}`, ...args); 5693} 5694 5695let activeEffectScope; 5696class EffectScope { 5697 constructor(detached = false) { 5698 /** 5699 * @internal 5700 */ 5701 this.active = true; 5702 /** 5703 * @internal 5704 */ 5705 this.effects = []; 5706 /** 5707 * @internal 5708 */ 5709 this.cleanups = []; 5710 if (!detached && activeEffectScope) { 5711 this.parent = activeEffectScope; 5712 this.index = 5713 (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1; 5714 } 5715 } 5716 run(fn) { 5717 if (this.active) { 5718 const currentEffectScope = activeEffectScope; 5719 try { 5720 activeEffectScope = this; 5721 return fn(); 5722 } 5723 finally { 5724 activeEffectScope = currentEffectScope; 5725 } 5726 } 5727 else if ((true)) { 5728 warn(`cannot run an inactive effect scope.`); 5729 } 5730 } 5731 /** 5732 * This should only be called on non-detached scopes 5733 * @internal 5734 */ 5735 on() { 5736 activeEffectScope = this; 5737 } 5738 /** 5739 * This should only be called on non-detached scopes 5740 * @internal 5741 */ 5742 off() { 5743 activeEffectScope = this.parent; 5744 } 5745 stop(fromParent) { 5746 if (this.active) { 5747 let i, l; 5748 for (i = 0, l = this.effects.length; i < l; i++) { 5749 this.effects[i].stop(); 5750 } 5751 for (i = 0, l = this.cleanups.length; i < l; i++) { 5752 this.cleanups[i](); 5753 } 5754 if (this.scopes) { 5755 for (i = 0, l = this.scopes.length; i < l; i++) { 5756 this.scopes[i].stop(true); 5757 } 5758 } 5759 // nested scope, dereference from parent to avoid memory leaks 5760 if (this.parent && !fromParent) { 5761 // optimized O(1) removal 5762 const last = this.parent.scopes.pop(); 5763 if (last && last !== this) { 5764 this.parent.scopes[this.index] = last; 5765 last.index = this.index; 5766 } 5767 } 5768 this.active = false; 5769 } 5770 } 5771} 5772function effectScope(detached) { 5773 return new EffectScope(detached); 5774} 5775function recordEffectScope(effect, scope = activeEffectScope) { 5776 if (scope && scope.active) { 5777 scope.effects.push(effect); 5778 } 5779} 5780function getCurrentScope() { 5781 return activeEffectScope; 5782} 5783function onScopeDispose(fn) { 5784 if (activeEffectScope) { 5785 activeEffectScope.cleanups.push(fn); 5786 } 5787 else if ((true)) { 5788 warn(`onScopeDispose() is called when there is no active effect scope` + 5789 ` to be associated with.`); 5790 } 5791} 5792 5793const createDep = (effects) => { 5794 const dep = new Set(effects); 5795 dep.w = 0; 5796 dep.n = 0; 5797 return dep; 5798}; 5799const wasTracked = (dep) => (dep.w & trackOpBit) > 0; 5800const newTracked = (dep) => (dep.n & trackOpBit) > 0; 5801const initDepMarkers = ({ deps }) => { 5802 if (deps.length) { 5803 for (let i = 0; i < deps.length; i++) { 5804 deps[i].w |= trackOpBit; // set was tracked 5805 } 5806 } 5807}; 5808const finalizeDepMarkers = (effect) => { 5809 const { deps } = effect; 5810 if (deps.length) { 5811 let ptr = 0; 5812 for (let i = 0; i < deps.length; i++) { 5813 const dep = deps[i]; 5814 if (wasTracked(dep) && !newTracked(dep)) { 5815 dep.delete(effect); 5816 } 5817 else { 5818 deps[ptr++] = dep; 5819 } 5820 // clear bits 5821 dep.w &= ~trackOpBit; 5822 dep.n &= ~trackOpBit; 5823 } 5824 deps.length = ptr; 5825 } 5826}; 5827 5828const targetMap = new WeakMap(); 5829// The number of effects currently being tracked recursively. 5830let effectTrackDepth = 0; 5831let trackOpBit = 1; 5832/** 5833 * The bitwise track markers support at most 30 levels of recursion. 5834 * This value is chosen to enable modern JS engines to use a SMI on all platforms. 5835 * When recursion depth is greater, fall back to using a full cleanup. 5836 */ 5837const maxMarkerBits = 30; 5838let activeEffect; 5839const ITERATE_KEY = Symbol(( true) ? 'iterate' : 0); 5840const MAP_KEY_ITERATE_KEY = Symbol(( true) ? 'Map key iterate' : 0); 5841class ReactiveEffect { 5842 constructor(fn, scheduler = null, scope) { 5843 this.fn = fn; 5844 this.scheduler = scheduler; 5845 this.active = true; 5846 this.deps = []; 5847 this.parent = undefined; 5848 recordEffectScope(this, scope); 5849 } 5850 run() { 5851 if (!this.active) { 5852 return this.fn(); 5853 } 5854 let parent = activeEffect; 5855 let lastShouldTrack = shouldTrack; 5856 while (parent) { 5857 if (parent === this) { 5858 return; 5859 } 5860 parent = parent.parent; 5861 } 5862 try { 5863 this.parent = activeEffect; 5864 activeEffect = this; 5865 shouldTrack = true; 5866 trackOpBit = 1 << ++effectTrackDepth; 5867 if (effectTrackDepth <= maxMarkerBits) { 5868 initDepMarkers(this); 5869 } 5870 else { 5871 cleanupEffect(this); 5872 } 5873 return this.fn(); 5874 } 5875 finally { 5876 if (effectTrackDepth <= maxMarkerBits) { 5877 finalizeDepMarkers(this); 5878 } 5879 trackOpBit = 1 << --effectTrackDepth; 5880 activeEffect = this.parent; 5881 shouldTrack = lastShouldTrack; 5882 this.parent = undefined; 5883 if (this.deferStop) { 5884 this.stop(); 5885 } 5886 } 5887 } 5888 stop() { 5889 // stopped while running itself - defer the cleanup 5890 if (activeEffect === this) { 5891 this.deferStop = true; 5892 } 5893 else if (this.active) { 5894 cleanupEffect(this); 5895 if (this.onStop) { 5896 this.onStop(); 5897 } 5898 this.active = false; 5899 } 5900 } 5901} 5902function cleanupEffect(effect) { 5903 const { deps } = effect; 5904 if (deps.length) { 5905 for (let i = 0; i < deps.length; i++) { 5906 deps[i].delete(effect); 5907 } 5908 deps.length = 0; 5909 } 5910} 5911function effect(fn, options) { 5912 if (fn.effect) { 5913 fn = fn.effect.fn; 5914 } 5915 const _effect = new ReactiveEffect(fn); 5916 if (options) { 5917 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)(_effect, options); 5918 if (options.scope) 5919 recordEffectScope(_effect, options.scope); 5920 } 5921 if (!options || !options.lazy) { 5922 _effect.run(); 5923 } 5924 const runner = _effect.run.bind(_effect); 5925 runner.effect = _effect; 5926 return runner; 5927} 5928function stop(runner) { 5929 runner.effect.stop(); 5930} 5931let shouldTrack = true; 5932const trackStack = []; 5933function pauseTracking() { 5934 trackStack.push(shouldTrack); 5935 shouldTrack = false; 5936} 5937function enableTracking() { 5938 trackStack.push(shouldTrack); 5939 shouldTrack = true; 5940} 5941function resetTracking() { 5942 const last = trackStack.pop(); 5943 shouldTrack = last === undefined ? true : last; 5944} 5945function track(target, type, key) { 5946 if (shouldTrack && activeEffect) { 5947 let depsMap = targetMap.get(target); 5948 if (!depsMap) { 5949 targetMap.set(target, (depsMap = new Map())); 5950 } 5951 let dep = depsMap.get(key); 5952 if (!dep) { 5953 depsMap.set(key, (dep = createDep())); 5954 } 5955 const eventInfo = ( true) 5956 ? { effect: activeEffect, target, type, key } 5957 : 0; 5958 trackEffects(dep, eventInfo); 5959 } 5960} 5961function trackEffects(dep, debuggerEventExtraInfo) { 5962 let shouldTrack = false; 5963 if (effectTrackDepth <= maxMarkerBits) { 5964 if (!newTracked(dep)) { 5965 dep.n |= trackOpBit; // set newly tracked 5966 shouldTrack = !wasTracked(dep); 5967 } 5968 } 5969 else { 5970 // Full cleanup mode. 5971 shouldTrack = !dep.has(activeEffect); 5972 } 5973 if (shouldTrack) { 5974 dep.add(activeEffect); 5975 activeEffect.deps.push(dep); 5976 if (( true) && activeEffect.onTrack) { 5977 activeEffect.onTrack(Object.assign({ effect: activeEffect }, debuggerEventExtraInfo)); 5978 } 5979 } 5980} 5981function trigger(target, type, key, newValue, oldValue, oldTarget) { 5982 const depsMap = targetMap.get(target); 5983 if (!depsMap) { 5984 // never been tracked 5985 return; 5986 } 5987 let deps = []; 5988 if (type === "clear" /* CLEAR */) { 5989 // collection being cleared 5990 // trigger all effects for target 5991 deps = [...depsMap.values()]; 5992 } 5993 else if (key === 'length' && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) { 5994 depsMap.forEach((dep, key) => { 5995 if (key === 'length' || key >= newValue) { 5996 deps.push(dep); 5997 } 5998 }); 5999 } 6000 else { 6001 // schedule runs for SET | ADD | DELETE 6002 if (key !== void 0) { 6003 deps.push(depsMap.get(key)); 6004 } 6005 // also run for iteration key on ADD | DELETE | Map.SET 6006 switch (type) { 6007 case "add" /* ADD */: 6008 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) { 6009 deps.push(depsMap.get(ITERATE_KEY)); 6010 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) { 6011 deps.push(depsMap.get(MAP_KEY_ITERATE_KEY)); 6012 } 6013 } 6014 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key)) { 6015 // new index added to array -> length changes 6016 deps.push(depsMap.get('length')); 6017 } 6018 break; 6019 case "delete" /* DELETE */: 6020 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) { 6021 deps.push(depsMap.get(ITERATE_KEY)); 6022 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) { 6023 deps.push(depsMap.get(MAP_KEY_ITERATE_KEY)); 6024 } 6025 } 6026 break; 6027 case "set" /* SET */: 6028 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) { 6029 deps.push(depsMap.get(ITERATE_KEY)); 6030 } 6031 break; 6032 } 6033 } 6034 const eventInfo = ( true) 6035 ? { target, type, key, newValue, oldValue, oldTarget } 6036 : 0; 6037 if (deps.length === 1) { 6038 if (deps[0]) { 6039 if ((true)) { 6040 triggerEffects(deps[0], eventInfo); 6041 } 6042 else {} 6043 } 6044 } 6045 else { 6046 const effects = []; 6047 for (const dep of deps) { 6048 if (dep) { 6049 effects.push(...dep); 6050 } 6051 } 6052 if ((true)) { 6053 triggerEffects(createDep(effects), eventInfo); 6054 } 6055 else {} 6056 } 6057} 6058function triggerEffects(dep, debuggerEventExtraInfo) { 6059 // spread into array for stabilization 6060 const effects = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(dep) ? dep : [...dep]; 6061 for (const effect of effects) { 6062 if (effect.computed) { 6063 triggerEffect(effect, debuggerEventExtraInfo); 6064 } 6065 } 6066 for (const effect of effects) { 6067 if (!effect.computed) { 6068 triggerEffect(effect, debuggerEventExtraInfo); 6069 } 6070 } 6071} 6072function triggerEffect(effect, debuggerEventExtraInfo) { 6073 if (effect !== activeEffect || effect.allowRecurse) { 6074 if (( true) && effect.onTrigger) { 6075 effect.onTrigger((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({ effect }, debuggerEventExtraInfo)); 6076 } 6077 if (effect.scheduler) { 6078 effect.scheduler(); 6079 } 6080 else { 6081 effect.run(); 6082 } 6083 } 6084} 6085 6086const isNonTrackableKeys = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.makeMap)(`__proto__,__v_isRef,__isVue`); 6087const builtInSymbols = new Set( 6088/*#__PURE__*/ 6089Object.getOwnPropertyNames(Symbol) 6090 // ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller' 6091 // but accessing them on Symbol leads to TypeError because Symbol is a strict mode 6092 // function 6093 .filter(key => key !== 'arguments' && key !== 'caller') 6094 .map(key => Symbol[key]) 6095 .filter(_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)); 6096const get = /*#__PURE__*/ createGetter(); 6097const shallowGet = /*#__PURE__*/ createGetter(false, true); 6098const readonlyGet = /*#__PURE__*/ createGetter(true); 6099const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true); 6100const arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations(); 6101function createArrayInstrumentations() { 6102 const instrumentations = {}; 6103 ['includes', 'indexOf', 'lastIndexOf'].forEach(key => { 6104 instrumentations[key] = function (...args) { 6105 const arr = toRaw(this); 6106 for (let i = 0, l = this.length; i < l; i++) { 6107 track(arr, "get" /* GET */, i + ''); 6108 } 6109 // we run the method using the original args first (which may be reactive) 6110 const res = arr[key](...args); 6111 if (res === -1 || res === false) { 6112 // if that didn't work, run it again using raw values. 6113 return arr[key](...args.map(toRaw)); 6114 } 6115 else { 6116 return res; 6117 } 6118 }; 6119 }); 6120 ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => { 6121 instrumentations[key] = function (...args) { 6122 pauseTracking(); 6123 const res = toRaw(this)[key].apply(this, args); 6124 resetTracking(); 6125 return res; 6126 }; 6127 }); 6128 return instrumentations; 6129} 6130function createGetter(isReadonly = false, shallow = false) { 6131 return function get(target, key, receiver) { 6132 if (key === "__v_isReactive" /* IS_REACTIVE */) { 6133 return !isReadonly; 6134 } 6135 else if (key === "__v_isReadonly" /* IS_READONLY */) { 6136 return isReadonly; 6137 } 6138 else if (key === "__v_isShallow" /* IS_SHALLOW */) { 6139 return shallow; 6140 } 6141 else if (key === "__v_raw" /* RAW */ && 6142 receiver === 6143 (isReadonly 6144 ? shallow 6145 ? shallowReadonlyMap 6146 : readonlyMap 6147 : shallow 6148 ? shallowReactiveMap 6149 : reactiveMap).get(target)) { 6150 return target; 6151 } 6152 const targetIsArray = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target); 6153 if (!isReadonly && targetIsArray && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(arrayInstrumentations, key)) { 6154 return Reflect.get(arrayInstrumentations, key, receiver); 6155 } 6156 const res = Reflect.get(target, key, receiver); 6157 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) { 6158 return res; 6159 } 6160 if (!isReadonly) { 6161 track(target, "get" /* GET */, key); 6162 } 6163 if (shallow) { 6164 return res; 6165 } 6166 if (isRef(res)) { 6167 // ref unwrapping - skip unwrap for Array + integer key. 6168 return targetIsArray && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key) ? res : res.value; 6169 } 6170 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(res)) { 6171 // Convert returned value into a proxy as well. we do the isObject check 6172 // here to avoid invalid value warning. Also need to lazy access readonly 6173 // and reactive here to avoid circular dependency. 6174 return isReadonly ? readonly(res) : reactive(res); 6175 } 6176 return res; 6177 }; 6178} 6179const set = /*#__PURE__*/ createSetter(); 6180const shallowSet = /*#__PURE__*/ createSetter(true); 6181function createSetter(shallow = false) { 6182 return function set(target, key, value, receiver) { 6183 let oldValue = target[key]; 6184 if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) { 6185 return false; 6186 } 6187 if (!shallow && !isReadonly(value)) { 6188 if (!isShallow(value)) { 6189 value = toRaw(value); 6190 oldValue = toRaw(oldValue); 6191 } 6192 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) && isRef(oldValue) && !isRef(value)) { 6193 oldValue.value = value; 6194 return true; 6195 } 6196 } 6197 const hadKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key) 6198 ? Number(key) < target.length 6199 : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(target, key); 6200 const result = Reflect.set(target, key, value, receiver); 6201 // don't trigger if target is something up in the prototype chain of original 6202 if (target === toRaw(receiver)) { 6203 if (!hadKey) { 6204 trigger(target, "add" /* ADD */, key, value); 6205 } 6206 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(value, oldValue)) { 6207 trigger(target, "set" /* SET */, key, value, oldValue); 6208 } 6209 } 6210 return result; 6211 }; 6212} 6213function deleteProperty(target, key) { 6214 const hadKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(target, key); 6215 const oldValue = target[key]; 6216 const result = Reflect.deleteProperty(target, key); 6217 if (result && hadKey) { 6218 trigger(target, "delete" /* DELETE */, key, undefined, oldValue); 6219 } 6220 return result; 6221} 6222function has(target, key) { 6223 const result = Reflect.has(target, key); 6224 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(key) || !builtInSymbols.has(key)) { 6225 track(target, "has" /* HAS */, key); 6226 } 6227 return result; 6228} 6229function ownKeys(target) { 6230 track(target, "iterate" /* ITERATE */, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) ? 'length' : ITERATE_KEY); 6231 return Reflect.ownKeys(target); 6232} 6233const mutableHandlers = { 6234 get, 6235 set, 6236 deleteProperty, 6237 has, 6238 ownKeys 6239}; 6240const readonlyHandlers = { 6241 get: readonlyGet, 6242 set(target, key) { 6243 if ((true)) { 6244 warn(`Set operation on key "${String(key)}" failed: target is readonly.`, target); 6245 } 6246 return true; 6247 }, 6248 deleteProperty(target, key) { 6249 if ((true)) { 6250 warn(`Delete operation on key "${String(key)}" failed: target is readonly.`, target); 6251 } 6252 return true; 6253 } 6254}; 6255const shallowReactiveHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, mutableHandlers, { 6256 get: shallowGet, 6257 set: shallowSet 6258}); 6259// Props handlers are special in the sense that it should not unwrap top-level 6260// refs (in order to allow refs to be explicitly passed down), but should 6261// retain the reactivity of the normal readonly object. 6262const shallowReadonlyHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, readonlyHandlers, { 6263 get: shallowReadonlyGet 6264}); 6265 6266const toShallow = (value) => value; 6267const getProto = (v) => Reflect.getPrototypeOf(v); 6268function get$1(target, key, isReadonly = false, isShallow = false) { 6269 // #1772: readonly(reactive(Map)) should return readonly + reactive version 6270 // of the value 6271 target = target["__v_raw" /* RAW */]; 6272 const rawTarget = toRaw(target); 6273 const rawKey = toRaw(key); 6274 if (!isReadonly) { 6275 if (key !== rawKey) { 6276 track(rawTarget, "get" /* GET */, key); 6277 } 6278 track(rawTarget, "get" /* GET */, rawKey); 6279 } 6280 const { has } = getProto(rawTarget); 6281 const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive; 6282 if (has.call(rawTarget, key)) { 6283 return wrap(target.get(key)); 6284 } 6285 else if (has.call(rawTarget, rawKey)) { 6286 return wrap(target.get(rawKey)); 6287 } 6288 else if (target !== rawTarget) { 6289 // #3602 readonly(reactive(Map)) 6290 // ensure that the nested reactive `Map` can do tracking for itself 6291 target.get(key); 6292 } 6293} 6294function has$1(key, isReadonly = false) { 6295 const target = this["__v_raw" /* RAW */]; 6296 const rawTarget = toRaw(target); 6297 const rawKey = toRaw(key); 6298 if (!isReadonly) { 6299 if (key !== rawKey) { 6300 track(rawTarget, "has" /* HAS */, key); 6301 } 6302 track(rawTarget, "has" /* HAS */, rawKey); 6303 } 6304 return key === rawKey 6305 ? target.has(key) 6306 : target.has(key) || target.has(rawKey); 6307} 6308function size(target, isReadonly = false) { 6309 target = target["__v_raw" /* RAW */]; 6310 !isReadonly && track(toRaw(target), "iterate" /* ITERATE */, ITERATE_KEY); 6311 return Reflect.get(target, 'size', target); 6312} 6313function add(value) { 6314 value = toRaw(value); 6315 const target = toRaw(this); 6316 const proto = getProto(target); 6317 const hadKey = proto.has.call(target, value); 6318 if (!hadKey) { 6319 target.add(value); 6320 trigger(target, "add" /* ADD */, value, value); 6321 } 6322 return this; 6323} 6324function set$1(key, value) { 6325 value = toRaw(value); 6326 const target = toRaw(this); 6327 const { has, get } = getProto(target); 6328 let hadKey = has.call(target, key); 6329 if (!hadKey) { 6330 key = toRaw(key); 6331 hadKey = has.call(target, key); 6332 } 6333 else if ((true)) { 6334 checkIdentityKeys(target, has, key); 6335 } 6336 const oldValue = get.call(target, key); 6337 target.set(key, value); 6338 if (!hadKey) { 6339 trigger(target, "add" /* ADD */, key, value); 6340 } 6341 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(value, oldValue)) { 6342 trigger(target, "set" /* SET */, key, value, oldValue); 6343 } 6344 return this; 6345} 6346function deleteEntry(key) { 6347 const target = toRaw(this); 6348 const { has, get } = getProto(target); 6349 let hadKey = has.call(target, key); 6350 if (!hadKey) { 6351 key = toRaw(key); 6352 hadKey = has.call(target, key); 6353 } 6354 else if ((true)) { 6355 checkIdentityKeys(target, has, key); 6356 } 6357 const oldValue = get ? get.call(target, key) : undefined; 6358 // forward the operation before queueing reactions 6359 const result = target.delete(key); 6360 if (hadKey) { 6361 trigger(target, "delete" /* DELETE */, key, undefined, oldValue); 6362 } 6363 return result; 6364} 6365function clear() { 6366 const target = toRaw(this); 6367 const hadItems = target.size !== 0; 6368 const oldTarget = ( true) 6369 ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target) 6370 ? new Map(target) 6371 : new Set(target) 6372 : 0; 6373 // forward the operation before queueing reactions 6374 const result = target.clear(); 6375 if (hadItems) { 6376 trigger(target, "clear" /* CLEAR */, undefined, undefined, oldTarget); 6377 } 6378 return result; 6379} 6380function createForEach(isReadonly, isShallow) { 6381 return function forEach(callback, thisArg) { 6382 const observed = this; 6383 const target = observed["__v_raw" /* RAW */]; 6384 const rawTarget = toRaw(target); 6385 const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive; 6386 !isReadonly && track(rawTarget, "iterate" /* ITERATE */, ITERATE_KEY); 6387 return target.forEach((value, key) => { 6388 // important: make sure the callback is 6389 // 1. invoked with the reactive map as `this` and 3rd arg 6390 // 2. the value received should be a corresponding reactive/readonly. 6391 return callback.call(thisArg, wrap(value), wrap(key), observed); 6392 }); 6393 }; 6394} 6395function createIterableMethod(method, isReadonly, isShallow) { 6396 return function (...args) { 6397 const target = this["__v_raw" /* RAW */]; 6398 const rawTarget = toRaw(target); 6399 const targetIsMap = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(rawTarget); 6400 const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap); 6401 const isKeyOnly = method === 'keys' && targetIsMap; 6402 const innerIterator = target[method](...args); 6403 const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive; 6404 !isReadonly && 6405 track(rawTarget, "iterate" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY); 6406 // return a wrapped iterator which returns observed versions of the 6407 // values emitted from the real iterator 6408 return { 6409 // iterator protocol 6410 next() { 6411 const { value, done } = innerIterator.next(); 6412 return done 6413 ? { value, done } 6414 : { 6415 value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value), 6416 done 6417 }; 6418 }, 6419 // iterable protocol 6420 [Symbol.iterator]() { 6421 return this; 6422 } 6423 }; 6424 }; 6425} 6426function createReadonlyMethod(type) { 6427 return function (...args) { 6428 if ((true)) { 6429 const key = args[0] ? `on key "${args[0]}" ` : ``; 6430 console.warn(`${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.capitalize)(type)} operation ${key}failed: target is readonly.`, toRaw(this)); 6431 } 6432 return type === "delete" /* DELETE */ ? false : this; 6433 }; 6434} 6435function createInstrumentations() { 6436 const mutableInstrumentations = { 6437 get(key) { 6438 return get$1(this, key); 6439 }, 6440 get size() { 6441 return size(this); 6442 }, 6443 has: has$1, 6444 add, 6445 set: set$1, 6446 delete: deleteEntry, 6447 clear, 6448 forEach: createForEach(false, false) 6449 }; 6450 const shallowInstrumentations = { 6451 get(key) { 6452 return get$1(this, key, false, true); 6453 }, 6454 get size() { 6455 return size(this); 6456 }, 6457 has: has$1, 6458 add, 6459 set: set$1, 6460 delete: deleteEntry, 6461 clear, 6462 forEach: createForEach(false, true) 6463 }; 6464 const readonlyInstrumentations = { 6465 get(key) { 6466 return get$1(this, key, true); 6467 }, 6468 get size() { 6469 return size(this, true); 6470 }, 6471 has(key) { 6472 return has$1.call(this, key, true); 6473 }, 6474 add: createReadonlyMethod("add" /* ADD */), 6475 set: createReadonlyMethod("set" /* SET */), 6476 delete: createReadonlyMethod("delete" /* DELETE */), 6477 clear: createReadonlyMethod("clear" /* CLEAR */), 6478 forEach: createForEach(true, false) 6479 }; 6480 const shallowReadonlyInstrumentations = { 6481 get(key) { 6482 return get$1(this, key, true, true); 6483 }, 6484 get size() { 6485 return size(this, true); 6486 }, 6487 has(key) { 6488 return has$1.call(this, key, true); 6489 }, 6490 add: createReadonlyMethod("add" /* ADD */), 6491 set: createReadonlyMethod("set" /* SET */), 6492 delete: createReadonlyMethod("delete" /* DELETE */), 6493 clear: createReadonlyMethod("clear" /* CLEAR */), 6494 forEach: createForEach(true, true) 6495 }; 6496 const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator]; 6497 iteratorMethods.forEach(method => { 6498 mutableInstrumentations[method] = createIterableMethod(method, false, false); 6499 readonlyInstrumentations[method] = createIterableMethod(method, true, false); 6500 shallowInstrumentations[method] = createIterableMethod(method, false, true); 6501 shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true); 6502 }); 6503 return [ 6504 mutableInstrumentations, 6505 readonlyInstrumentations, 6506 shallowInstrumentations, 6507 shallowReadonlyInstrumentations 6508 ]; 6509} 6510const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations(); 6511function createInstrumentationGetter(isReadonly, shallow) { 6512 const instrumentations = shallow 6513 ? isReadonly 6514 ? shallowReadonlyInstrumentations 6515 : shallowInstrumentations 6516 : isReadonly 6517 ? readonlyInstrumentations 6518 : mutableInstrumentations; 6519 return (target, key, receiver) => { 6520 if (key === "__v_isReactive" /* IS_REACTIVE */) { 6521 return !isReadonly; 6522 } 6523 else if (key === "__v_isReadonly" /* IS_READONLY */) { 6524 return isReadonly; 6525 } 6526 else if (key === "__v_raw" /* RAW */) { 6527 return target; 6528 } 6529 return Reflect.get((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(instrumentations, key) && key in target 6530 ? instrumentations 6531 : target, key, receiver); 6532 }; 6533} 6534const mutableCollectionHandlers = { 6535 get: /*#__PURE__*/ createInstrumentationGetter(false, false) 6536}; 6537const shallowCollectionHandlers = { 6538 get: /*#__PURE__*/ createInstrumentationGetter(false, true) 6539}; 6540const readonlyCollectionHandlers = { 6541 get: /*#__PURE__*/ createInstrumentationGetter(true, false) 6542}; 6543const shallowReadonlyCollectionHandlers = { 6544 get: /*#__PURE__*/ createInstrumentationGetter(true, true) 6545}; 6546function checkIdentityKeys(target, has, key) { 6547 const rawKey = toRaw(key); 6548 if (rawKey !== key && has.call(target, rawKey)) { 6549 const type = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toRawType)(target); 6550 console.warn(`Reactive ${type} contains both the raw and reactive ` + 6551 `versions of the same object${type === `Map` ? ` as keys` : ``}, ` + 6552 `which can lead to inconsistencies. ` + 6553 `Avoid differentiating between the raw and reactive versions ` + 6554 `of an object and only use the reactive version if possible.`); 6555 } 6556} 6557 6558const reactiveMap = new WeakMap(); 6559const shallowReactiveMap = new WeakMap(); 6560const readonlyMap = new WeakMap(); 6561const shallowReadonlyMap = new WeakMap(); 6562function targetTypeMap(rawType) { 6563 switch (rawType) { 6564 case 'Object': 6565 case 'Array': 6566 return 1 /* COMMON */; 6567 case 'Map': 6568 case 'Set': 6569 case 'WeakMap': 6570 case 'WeakSet': 6571 return 2 /* COLLECTION */; 6572 default: 6573 return 0 /* INVALID */; 6574 } 6575} 6576function getTargetType(value) { 6577 return value["__v_skip" /* SKIP */] || !Object.isExtensible(value) 6578 ? 0 /* INVALID */ 6579 : targetTypeMap((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toRawType)(value)); 6580} 6581function reactive(target) { 6582 // if trying to observe a readonly proxy, return the readonly version. 6583 if (isReadonly(target)) { 6584 return target; 6585 } 6586 return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap); 6587} 6588/** 6589 * Return a shallowly-reactive copy of the original object, where only the root 6590 * level properties are reactive. It also does not auto-unwrap refs (even at the 6591 * root level). 6592 */ 6593function shallowReactive(target) { 6594 return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap); 6595} 6596/** 6597 * Creates a readonly copy of the original object. Note the returned copy is not 6598 * made reactive, but `readonly` can be called on an already reactive object. 6599 */ 6600function readonly(target) { 6601 return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap); 6602} 6603/** 6604 * Returns a reactive-copy of the original object, where only the root level 6605 * properties are readonly, and does NOT unwrap refs nor recursively convert 6606 * returned properties. 6607 * This is used for creating the props proxy object for stateful components. 6608 */ 6609function shallowReadonly(target) { 6610 return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap); 6611} 6612function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) { 6613 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(target)) { 6614 if ((true)) { 6615 console.warn(`value cannot be made reactive: ${String(target)}`); 6616 } 6617 return target; 6618 } 6619 // target is already a Proxy, return it. 6620 // exception: calling readonly() on a reactive object 6621 if (target["__v_raw" /* RAW */] && 6622 !(isReadonly && target["__v_isReactive" /* IS_REACTIVE */])) { 6623 return target; 6624 } 6625 // target already has corresponding Proxy 6626 const existingProxy = proxyMap.get(target); 6627 if (existingProxy) { 6628 return existingProxy; 6629 } 6630 // only specific value types can be observed. 6631 const targetType = getTargetType(target); 6632 if (targetType === 0 /* INVALID */) { 6633 return target; 6634 } 6635 const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers); 6636 proxyMap.set(target, proxy); 6637 return proxy; 6638} 6639function isReactive(value) { 6640 if (isReadonly(value)) { 6641 return isReactive(value["__v_raw" /* RAW */]); 6642 } 6643 return !!(value && value["__v_isReactive" /* IS_REACTIVE */]); 6644} 6645function isReadonly(value) { 6646 return !!(value && value["__v_isReadonly" /* IS_READONLY */]); 6647} 6648function isShallow(value) { 6649 return !!(value && value["__v_isShallow" /* IS_SHALLOW */]); 6650} 6651function isProxy(value) { 6652 return isReactive(value) || isReadonly(value); 6653} 6654function toRaw(observed) { 6655 const raw = observed && observed["__v_raw" /* RAW */]; 6656 return raw ? toRaw(raw) : observed; 6657} 6658function markRaw(value) { 6659 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.def)(value, "__v_skip" /* SKIP */, true); 6660 return value; 6661} 6662const toReactive = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(value) ? reactive(value) : value; 6663const toReadonly = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(value) ? readonly(value) : value; 6664 6665function trackRefValue(ref) { 6666 if (shouldTrack && activeEffect) { 6667 ref = toRaw(ref); 6668 if ((true)) { 6669 trackEffects(ref.dep || (ref.dep = createDep()), { 6670 target: ref, 6671 type: "get" /* GET */, 6672 key: 'value' 6673 }); 6674 } 6675 else {} 6676 } 6677} 6678function triggerRefValue(ref, newVal) { 6679 ref = toRaw(ref); 6680 if (ref.dep) { 6681 if ((true)) { 6682 triggerEffects(ref.dep, { 6683 target: ref, 6684 type: "set" /* SET */, 6685 key: 'value', 6686 newValue: newVal 6687 }); 6688 } 6689 else {} 6690 } 6691} 6692function isRef(r) { 6693 return !!(r && r.__v_isRef === true); 6694} 6695function ref(value) { 6696 return createRef(value, false); 6697} 6698function shallowRef(value) { 6699 return createRef(value, true); 6700} 6701function createRef(rawValue, shallow) { 6702 if (isRef(rawValue)) { 6703 return rawValue; 6704 } 6705 return new RefImpl(rawValue, shallow); 6706} 6707class RefImpl { 6708 constructor(value, __v_isShallow) { 6709 this.__v_isShallow = __v_isShallow; 6710 this.dep = undefined; 6711 this.__v_isRef = true; 6712 this._rawValue = __v_isShallow ? value : toRaw(value); 6713 this._value = __v_isShallow ? value : toReactive(value); 6714 } 6715 get value() { 6716 trackRefValue(this); 6717 return this._value; 6718 } 6719 set value(newVal) { 6720 newVal = this.__v_isShallow ? newVal : toRaw(newVal); 6721 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(newVal, this._rawValue)) { 6722 this._rawValue = newVal; 6723 this._value = this.__v_isShallow ? newVal : toReactive(newVal); 6724 triggerRefValue(this, newVal); 6725 } 6726 } 6727} 6728function triggerRef(ref) { 6729 triggerRefValue(ref, ( true) ? ref.value : 0); 6730} 6731function unref(ref) { 6732 return isRef(ref) ? ref.value : ref; 6733} 6734const shallowUnwrapHandlers = { 6735 get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)), 6736 set: (target, key, value, receiver) => { 6737 const oldValue = target[key]; 6738 if (isRef(oldValue) && !isRef(value)) { 6739 oldValue.value = value; 6740 return true; 6741 } 6742 else { 6743 return Reflect.set(target, key, value, receiver); 6744 } 6745 } 6746}; 6747function proxyRefs(objectWithRefs) { 6748 return isReactive(objectWithRefs) 6749 ? objectWithRefs 6750 : new Proxy(objectWithRefs, shallowUnwrapHandlers); 6751} 6752class CustomRefImpl { 6753 constructor(factory) { 6754 this.dep = undefined; 6755 this.__v_isRef = true; 6756 const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this)); 6757 this._get = get; 6758 this._set = set; 6759 } 6760 get value() { 6761 return this._get(); 6762 } 6763 set value(newVal) { 6764 this._set(newVal); 6765 } 6766} 6767function customRef(factory) { 6768 return new CustomRefImpl(factory); 6769} 6770function toRefs(object) { 6771 if (( true) && !isProxy(object)) { 6772 console.warn(`toRefs() expects a reactive object but received a plain one.`); 6773 } 6774 const ret = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(object) ? new Array(object.length) : {}; 6775 for (const key in object) { 6776 ret[key] = toRef(object, key); 6777 } 6778 return ret; 6779} 6780class ObjectRefImpl { 6781 constructor(_object, _key, _defaultValue) { 6782 this._object = _object; 6783 this._key = _key; 6784 this._defaultValue = _defaultValue; 6785 this.__v_isRef = true; 6786 } 6787 get value() { 6788 const val = this._object[this._key]; 6789 return val === undefined ? this._defaultValue : val; 6790 } 6791 set value(newVal) { 6792 this._object[this._key] = newVal; 6793 } 6794} 6795function toRef(object, key, defaultValue) { 6796 const val = object[key]; 6797 return isRef(val) 6798 ? val 6799 : new ObjectRefImpl(object, key, defaultValue); 6800} 6801 6802class ComputedRefImpl { 6803 constructor(getter, _setter, isReadonly, isSSR) { 6804 this._setter = _setter; 6805 this.dep = undefined; 6806 this.__v_isRef = true; 6807 this._dirty = true; 6808 this.effect = new ReactiveEffect(getter, () => { 6809 if (!this._dirty) { 6810 this._dirty = true; 6811 triggerRefValue(this); 6812 } 6813 }); 6814 this.effect.computed = this; 6815 this.effect.active = this._cacheable = !isSSR; 6816 this["__v_isReadonly" /* IS_READONLY */] = isReadonly; 6817 } 6818 get value() { 6819 // the computed ref may get wrapped by other proxies e.g. readonly() #3376 6820 const self = toRaw(this); 6821 trackRefValue(self); 6822 if (self._dirty || !self._cacheable) { 6823 self._dirty = false; 6824 self._value = self.effect.run(); 6825 } 6826 return self._value; 6827 } 6828 set value(newValue) { 6829 this._setter(newValue); 6830 } 6831} 6832function computed(getterOrOptions, debugOptions, isSSR = false) { 6833 let getter; 6834 let setter; 6835 const onlyGetter = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isFunction)(getterOrOptions); 6836 if (onlyGetter) { 6837 getter = getterOrOptions; 6838 setter = ( true) 6839 ? () => { 6840 console.warn('Write operation failed: computed value is readonly'); 6841 } 6842 : 0; 6843 } 6844 else { 6845 getter = getterOrOptions.get; 6846 setter = getterOrOptions.set; 6847 } 6848 const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR); 6849 if (( true) && debugOptions && !isSSR) { 6850 cRef.effect.onTrack = debugOptions.onTrack; 6851 cRef.effect.onTrigger = debugOptions.onTrigger; 6852 } 6853 return cRef; 6854} 6855 6856var _a; 6857const tick = /*#__PURE__*/ Promise.resolve(); 6858const queue = []; 6859let queued = false; 6860const scheduler = (fn) => { 6861 queue.push(fn); 6862 if (!queued) { 6863 queued = true; 6864 tick.then(flush); 6865 } 6866}; 6867const flush = () => { 6868 for (let i = 0; i < queue.length; i++) { 6869 queue[i](); 6870 } 6871 queue.length = 0; 6872 queued = false; 6873}; 6874class DeferredComputedRefImpl { 6875 constructor(getter) { 6876 this.dep = undefined; 6877 this._dirty = true; 6878 this.__v_isRef = true; 6879 this[_a] = true; 6880 let compareTarget; 6881 let hasCompareTarget = false; 6882 let scheduled = false; 6883 this.effect = new ReactiveEffect(getter, (computedTrigger) => { 6884 if (this.dep) { 6885 if (computedTrigger) { 6886 compareTarget = this._value; 6887 hasCompareTarget = true; 6888 } 6889 else if (!scheduled) { 6890 const valueToCompare = hasCompareTarget ? compareTarget : this._value; 6891 scheduled = true; 6892 hasCompareTarget = false; 6893 scheduler(() => { 6894 if (this.effect.active && this._get() !== valueToCompare) { 6895 triggerRefValue(this); 6896 } 6897 scheduled = false; 6898 }); 6899 } 6900 // chained upstream computeds are notified synchronously to ensure 6901 // value invalidation in case of sync access; normal effects are 6902 // deferred to be triggered in scheduler. 6903 for (const e of this.dep) { 6904 if (e.computed instanceof DeferredComputedRefImpl) { 6905 e.scheduler(true /* computedTrigger */); 6906 } 6907 } 6908 } 6909 this._dirty = true; 6910 }); 6911 this.effect.computed = this; 6912 } 6913 _get() { 6914 if (this._dirty) { 6915 this._dirty = false; 6916 return (this._value = this.effect.run()); 6917 } 6918 return this._value; 6919 } 6920 get value() { 6921 trackRefValue(this); 6922 // the computed ref may get wrapped by other proxies e.g. readonly() #3376 6923 return toRaw(this)._get(); 6924 } 6925} 6926_a = "__v_isReadonly" /* IS_READONLY */; 6927function deferredComputed(getter) { 6928 return new DeferredComputedRefImpl(getter); 6929} 6930 6931 6932 6933 6934/***/ }), 6935
vendor: 336,073 bytes, lines 6936-14891
6936/***/ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js": 6937/*!*************************************************************************!*\ 6938 !*** ./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js ***! 6939 \*************************************************************************/ 6940/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 6941 6942"use strict"; 6943__webpack_require__.r(__webpack_exports__); 6944/* harmony export */ __webpack_require__.d(__webpack_exports__, { 6945/* harmony export */ "BaseTransition": function() { return /* binding */ BaseTransition; }, 6946/* harmony export */ "Comment": function() { return /* binding */ Comment; }, 6947/* harmony export */ "EffectScope": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.EffectScope; }, 6948/* harmony export */ "Fragment": function() { return /* binding */ Fragment; }, 6949/* harmony export */ "KeepAlive": function() { return /* binding */ KeepAlive; }, 6950/* harmony export */ "ReactiveEffect": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect; }, 6951/* harmony export */ "Static": function() { return /* binding */ Static; }, 6952/* harmony export */ "Suspense": function() { return /* binding */ Suspense; }, 6953/* harmony export */ "Teleport": function() { return /* binding */ Teleport; }, 6954/* harmony export */ "Text": function() { return /* binding */ Text; }, 6955/* harmony export */ "callWithAsyncErrorHandling": function() { return /* binding */ callWithAsyncErrorHandling; }, 6956/* harmony export */ "callWithErrorHandling": function() { return /* binding */ callWithErrorHandling; }, 6957/* harmony export */ "camelize": function() { return /* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize; }, 6958/* harmony export */ "capitalize": function() { return /* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize; }, 6959/* harmony export */ "cloneVNode": function() { return /* binding */ cloneVNode; }, 6960/* harmony export */ "compatUtils": function() { return /* binding */ compatUtils; }, 6961/* harmony export */ "computed": function() { return /* binding */ computed; }, 6962/* harmony export */ "createBlock": function() { return /* binding */ createBlock; }, 6963/* harmony export */ "createCommentVNode": function() { return /* binding */ createCommentVNode; }, 6964/* harmony export */ "createElementBlock": function() { return /* binding */ createElementBlock; }, 6965/* harmony export */ "createElementVNode": function() { return /* binding */ createBaseVNode; }, 6966/* harmony export */ "createHydrationRenderer": function() { return /* binding */ createHydrationRenderer; }, 6967/* harmony export */ "createPropsRestProxy": function() { return /* binding */ createPropsRestProxy; }, 6968/* harmony export */ "createRenderer": function() { return /* binding */ createRenderer; }, 6969/* harmony export */ "createSlots": function() { return /* binding */ createSlots; }, 6970/* harmony export */ "createStaticVNode": function() { return /* binding */ createStaticVNode; }, 6971/* harmony export */ "createTextVNode": function() { return /* binding */ createTextVNode; }, 6972/* harmony export */ "createVNode": function() { return /* binding */ createVNode; }, 6973/* harmony export */ "customRef": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.customRef; }, 6974/* harmony export */ "defineAsyncComponent": function() { return /* binding */ defineAsyncComponent; }, 6975/* harmony export */ "defineComponent": function() { return /* binding */ defineComponent; }, 6976/* harmony export */ "defineEmits": function() { return /* binding */ defineEmits; }, 6977/* harmony export */ "defineExpose": function() { return /* binding */ defineExpose; }, 6978/* harmony export */ "defineProps": function() { return /* binding */ defineProps; }, 6979/* harmony export */ "devtools": function() { return /* binding */ devtools; }, 6980/* harmony export */ "effect": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.effect; }, 6981/* harmony export */ "effectScope": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.effectScope; }, 6982/* harmony export */ "getCurrentInstance": function() { return /* binding */ getCurrentInstance; }, 6983/* harmony export */ "getCurrentScope": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope; }, 6984/* harmony export */ "getTransitionRawChildren": function() { return /* binding */ getTransitionRawChildren; }, 6985/* harmony export */ "guardReactiveProps": function() { return /* binding */ guardReactiveProps; }, 6986/* harmony export */ "h": function() { return /* binding */ h; }, 6987/* harmony export */ "handleError": function() { return /* binding */ handleError; }, 6988/* harmony export */ "initCustomFormatter": function() { return /* binding */ initCustomFormatter; }, 6989/* harmony export */ "inject": function() { return /* binding */ inject; }, 6990/* harmony export */ "isMemoSame": function() { return /* binding */ isMemoSame; }, 6991/* harmony export */ "isProxy": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy; }, 6992/* harmony export */ "isReactive": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive; }, 6993/* harmony export */ "isReadonly": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly; }, 6994/* harmony export */ "isRef": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef; }, 6995/* harmony export */ "isRuntimeOnly": function() { return /* binding */ isRuntimeOnly; }, 6996/* harmony export */ "isShallow": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isShallow; }, 6997/* harmony export */ "isVNode": function() { return /* binding */ isVNode; }, 6998/* harmony export */ "markRaw": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw; }, 6999/* harmony export */ "mergeDefaults": function() { return /* binding */ mergeDefaults; }, 7000/* harmony export */ "mergeProps": function() { return /* binding */ mergeProps; }, 7001/* harmony export */ "nextTick": function() { return /* binding */ nextTick; }, 7002/* harmony export */ "normalizeClass": function() { return /* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass; }, 7003/* harmony export */ "normalizeProps": function() { return /* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeProps; }, 7004/* harmony export */ "normalizeStyle": function() { return /* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle; }, 7005/* harmony export */ "onActivated": function() { return /* binding */ onActivated; }, 7006/* harmony export */ "onBeforeMount": function() { return /* binding */ onBeforeMount; }, 7007/* harmony export */ "onBeforeUnmount": function() { return /* binding */ onBeforeUnmount; }, 7008/* harmony export */ "onBeforeUpdate": function() { return /* binding */ onBeforeUpdate; }, 7009/* harmony export */ "onDeactivated": function() { return /* binding */ onDeactivated; }, 7010/* harmony export */ "onErrorCaptured": function() { return /* binding */ onErrorCaptured; }, 7011/* harmony export */ "onMounted": function() { return /* binding */ onMounted; }, 7012/* harmony export */ "onRenderTracked": function() { return /* binding */ onRenderTracked; }, 7013/* harmony export */ "onRenderTriggered": function() { return /* binding */ onRenderTriggered; }, 7014/* harmony export */ "onScopeDispose": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose; }, 7015/* harmony export */ "onServerPrefetch": function() { return /* binding */ onServerPrefetch; }, 7016/* harmony export */ "onUnmounted": function() { return /* binding */ onUnmounted; }, 7017/* harmony export */ "onUpdated": function() { return /* binding */ onUpdated; }, 7018/* harmony export */ "openBlock": function() { return /* binding */ openBlock; }, 7019/* harmony export */ "popScopeId": function() { return /* binding */ popScopeId; }, 7020/* harmony export */ "provide": function() { return /* binding */ provide; }, 7021/* harmony export */ "proxyRefs": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs; }, 7022/* harmony export */ "pushScopeId": function() { return /* binding */ pushScopeId; }, 7023/* harmony export */ "queuePostFlushCb": function() { return /* binding */ queuePostFlushCb; }, 7024/* harmony export */ "reactive": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.reactive; }, 7025/* harmony export */ "readonly": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.readonly; }, 7026/* harmony export */ "ref": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref; }, 7027/* harmony export */ "registerRuntimeCompiler": function() { return /* binding */ registerRuntimeCompiler; }, 7028/* harmony export */ "renderList": function() { return /* binding */ renderList; }, 7029/* harmony export */ "renderSlot": function() { return /* binding */ renderSlot; }, 7030/* harmony export */ "resolveComponent": function() { return /* binding */ resolveComponent; }, 7031/* harmony export */ "resolveDirective": function() { return /* binding */ resolveDirective; }, 7032/* harmony export */ "resolveDynamicComponent": function() { return /* binding */ resolveDynamicComponent; }, 7033/* harmony export */ "resolveFilter": function() { return /* binding */ resolveFilter; }, 7034/* harmony export */ "resolveTransitionHooks": function() { return /* binding */ resolveTransitionHooks; }, 7035/* harmony export */ "setBlockTracking": function() { return /* binding */ setBlockTracking; }, 7036/* harmony export */ "setDevtoolsHook": function() { return /* binding */ setDevtoolsHook; }, 7037/* harmony export */ "setTransitionHooks": function() { return /* binding */ setTransitionHooks; }, 7038/* harmony export */ "shallowReactive": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReactive; }, 7039/* harmony export */ "shallowReadonly": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly; }, 7040/* harmony export */ "shallowRef": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowRef; }, 7041/* harmony export */ "ssrContextKey": function() { return /* binding */ ssrContextKey; }, 7042/* harmony export */ "ssrUtils": function() { return /* binding */ ssrUtils; }, 7043/* harmony export */ "stop": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.stop; }, 7044/* harmony export */ "toDisplayString": function() { return /* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.toDisplayString; }, 7045/* harmony export */ "toHandlerKey": function() { return /* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey; }, 7046/* harmony export */ "toHandlers": function() { return /* binding */ toHandlers; }, 7047/* harmony export */ "toRaw": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw; }, 7048/* harmony export */ "toRef": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRef; }, 7049/* harmony export */ "toRefs": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRefs; }, 7050/* harmony export */ "transformVNodeArgs": function() { return /* binding */ transformVNodeArgs; }, 7051/* harmony export */ "triggerRef": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.triggerRef; }, 7052/* harmony export */ "unref": function() { return /* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.unref; }, 7053/* harmony export */ "useAttrs": function() { return /* binding */ useAttrs; }, 7054/* harmony export */ "useSSRContext": function() { return /* binding */ useSSRContext; }, 7055/* harmony export */ "useSlots": function() { return /* binding */ useSlots; }, 7056/* harmony export */ "useTransitionState": function() { return /* binding */ useTransitionState; }, 7057/* harmony export */ "version": function() { return /* binding */ version; }, 7058/* harmony export */ "warn": function() { return /* binding */ warn; }, 7059/* harmony export */ "watch": function() { return /* binding */ watch; }, 7060/* harmony export */ "watchEffect": function() { return /* binding */ watchEffect; }, 7061/* harmony export */ "watchPostEffect": function() { return /* binding */ watchPostEffect; }, 7062/* harmony export */ "watchSyncEffect": function() { return /* binding */ watchSyncEffect; }, 7063/* harmony export */ "withAsyncContext": function() { return /* binding */ withAsyncContext; }, 7064/* harmony export */ "withCtx": function() { return /* binding */ withCtx; }, 7065/* harmony export */ "withDefaults": function() { return /* binding */ withDefaults; }, 7066/* harmony export */ "withDirectives": function() { return /* binding */ withDirectives; }, 7067/* harmony export */ "withMemo": function() { return /* binding */ withMemo; }, 7068/* harmony export */ "withScopeId": function() { return /* binding */ withScopeId; } 7069/* harmony export */ }); 7070/* harmony import */ var _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/reactivity */ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js"); 7071/* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js"); 7072 7073 7074 7075 7076 7077const stack = []; 7078function pushWarningContext(vnode) { 7079 stack.push(vnode); 7080} 7081function popWarningContext() { 7082 stack.pop(); 7083} 7084function warn(msg, ...args) { 7085 // avoid props formatting or warn handler tracking deps that might be mutated 7086 // during patch, leading to infinite recursion. 7087 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)(); 7088 const instance = stack.length ? stack[stack.length - 1].component : null; 7089 const appWarnHandler = instance && instance.appContext.config.warnHandler; 7090 const trace = getComponentTrace(); 7091 if (appWarnHandler) { 7092 callWithErrorHandling(appWarnHandler, instance, 11 /* APP_WARN_HANDLER */, [ 7093 msg + args.join(''), 7094 instance && instance.proxy, 7095 trace 7096 .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`) 7097 .join('\n'), 7098 trace 7099 ]); 7100 } 7101 else { 7102 const warnArgs = [`[Vue warn]: ${msg}`, ...args]; 7103 /* istanbul ignore if */ 7104 if (trace.length && 7105 // avoid spamming console during tests 7106 !false) { 7107 warnArgs.push(`\n`, ...formatTrace(trace)); 7108 } 7109 console.warn(...warnArgs); 7110 } 7111 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)(); 7112} 7113function getComponentTrace() { 7114 let currentVNode = stack[stack.length - 1]; 7115 if (!currentVNode) { 7116 return []; 7117 } 7118 // we can't just use the stack because it will be incomplete during updates 7119 // that did not start from the root. Re-construct the parent chain using 7120 // instance parent pointers. 7121 const normalizedStack = []; 7122 while (currentVNode) { 7123 const last = normalizedStack[0]; 7124 if (last && last.vnode === currentVNode) { 7125 last.recurseCount++; 7126 } 7127 else { 7128 normalizedStack.push({ 7129 vnode: currentVNode, 7130 recurseCount: 0 7131 }); 7132 } 7133 const parentInstance = currentVNode.component && currentVNode.component.parent; 7134 currentVNode = parentInstance && parentInstance.vnode; 7135 } 7136 return normalizedStack; 7137} 7138/* istanbul ignore next */ 7139function formatTrace(trace) { 7140 const logs = []; 7141 trace.forEach((entry, i) => { 7142 logs.push(...(i === 0 ? [] : [`\n`]), ...formatTraceEntry(entry)); 7143 }); 7144 return logs; 7145} 7146function formatTraceEntry({ vnode, recurseCount }) { 7147 const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``; 7148 const isRoot = vnode.component ? vnode.component.parent == null : false; 7149 const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`; 7150 const close = `>` + postfix; 7151 return vnode.props 7152 ? [open, ...formatProps(vnode.props), close] 7153 : [open + close]; 7154} 7155/* istanbul ignore next */ 7156function formatProps(props) { 7157 const res = []; 7158 const keys = Object.keys(props); 7159 keys.slice(0, 3).forEach(key => { 7160 res.push(...formatProp(key, props[key])); 7161 }); 7162 if (keys.length > 3) { 7163 res.push(` ...`); 7164 } 7165 return res; 7166} 7167/* istanbul ignore next */ 7168function formatProp(key, value, raw) { 7169 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(value)) { 7170 value = JSON.stringify(value); 7171 return raw ? value : [`${key}=${value}`]; 7172 } 7173 else if (typeof value === 'number' || 7174 typeof value === 'boolean' || 7175 value == null) { 7176 return raw ? value : [`${key}=${value}`]; 7177 } 7178 else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(value)) { 7179 value = formatProp(key, (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(value.value), true); 7180 return raw ? value : [`${key}=Ref<`, value, `>`]; 7181 } 7182 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) { 7183 return [`${key}=fn${value.name ? `<${value.name}>` : ``}`]; 7184 } 7185 else { 7186 value = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(value); 7187 return raw ? value : [`${key}=`, value]; 7188 } 7189} 7190 7191const ErrorTypeStrings = { 7192 ["sp" /* SERVER_PREFETCH */]: 'serverPrefetch hook', 7193 ["bc" /* BEFORE_CREATE */]: 'beforeCreate hook', 7194 ["c" /* CREATED */]: 'created hook', 7195 ["bm" /* BEFORE_MOUNT */]: 'beforeMount hook', 7196 ["m" /* MOUNTED */]: 'mounted hook', 7197 ["bu" /* BEFORE_UPDATE */]: 'beforeUpdate hook', 7198 ["u" /* UPDATED */]: 'updated', 7199 ["bum" /* BEFORE_UNMOUNT */]: 'beforeUnmount hook', 7200 ["um" /* UNMOUNTED */]: 'unmounted hook', 7201 ["a" /* ACTIVATED */]: 'activated hook', 7202 ["da" /* DEACTIVATED */]: 'deactivated hook', 7203 ["ec" /* ERROR_CAPTURED */]: 'errorCaptured hook', 7204 ["rtc" /* RENDER_TRACKED */]: 'renderTracked hook', 7205 ["rtg" /* RENDER_TRIGGERED */]: 'renderTriggered hook', 7206 [0 /* SETUP_FUNCTION */]: 'setup function', 7207 [1 /* RENDER_FUNCTION */]: 'render function', 7208 [2 /* WATCH_GETTER */]: 'watcher getter', 7209 [3 /* WATCH_CALLBACK */]: 'watcher callback', 7210 [4 /* WATCH_CLEANUP */]: 'watcher cleanup function', 7211 [5 /* NATIVE_EVENT_HANDLER */]: 'native event handler', 7212 [6 /* COMPONENT_EVENT_HANDLER */]: 'component event handler', 7213 [7 /* VNODE_HOOK */]: 'vnode hook', 7214 [8 /* DIRECTIVE_HOOK */]: 'directive hook', 7215 [9 /* TRANSITION_HOOK */]: 'transition hook', 7216 [10 /* APP_ERROR_HANDLER */]: 'app errorHandler', 7217 [11 /* APP_WARN_HANDLER */]: 'app warnHandler', 7218 [12 /* FUNCTION_REF */]: 'ref function', 7219 [13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader', 7220 [14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' + 7221 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core' 7222}; 7223function callWithErrorHandling(fn, instance, type, args) { 7224 let res; 7225 try { 7226 res = args ? fn(...args) : fn(); 7227 } 7228 catch (err) { 7229 handleError(err, instance, type); 7230 } 7231 return res; 7232} 7233function callWithAsyncErrorHandling(fn, instance, type, args) { 7234 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(fn)) { 7235 const res = callWithErrorHandling(fn, instance, type, args); 7236 if (res && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(res)) { 7237 res.catch(err => { 7238 handleError(err, instance, type); 7239 }); 7240 } 7241 return res; 7242 } 7243 const values = []; 7244 for (let i = 0; i < fn.length; i++) { 7245 values.push(callWithAsyncErrorHandling(fn[i], instance, type, args)); 7246 } 7247 return values; 7248} 7249function handleError(err, instance, type, throwInDev = true) { 7250 const contextVNode = instance ? instance.vnode : null; 7251 if (instance) { 7252 let cur = instance.parent; 7253 // the exposed instance is the render proxy to keep it consistent with 2.x 7254 const exposedInstance = instance.proxy; 7255 // in production the hook receives only the error code 7256 const errorInfo = ( true) ? ErrorTypeStrings[type] : 0; 7257 while (cur) { 7258 const errorCapturedHooks = cur.ec; 7259 if (errorCapturedHooks) { 7260 for (let i = 0; i < errorCapturedHooks.length; i++) { 7261 if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) { 7262 return; 7263 } 7264 } 7265 } 7266 cur = cur.parent; 7267 } 7268 // app-level handling 7269 const appErrorHandler = instance.appContext.config.errorHandler; 7270 if (appErrorHandler) { 7271 callWithErrorHandling(appErrorHandler, null, 10 /* APP_ERROR_HANDLER */, [err, exposedInstance, errorInfo]); 7272 return; 7273 } 7274 } 7275 logError(err, type, contextVNode, throwInDev); 7276} 7277function logError(err, type, contextVNode, throwInDev = true) { 7278 if ((true)) { 7279 const info = ErrorTypeStrings[type]; 7280 if (contextVNode) { 7281 pushWarningContext(contextVNode); 7282 } 7283 warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`); 7284 if (contextVNode) { 7285 popWarningContext(); 7286 } 7287 // crash in dev by default so it's more noticeable 7288 if (throwInDev) { 7289 throw err; 7290 } 7291 else { 7292 console.error(err); 7293 } 7294 } 7295 else {} 7296} 7297 7298let isFlushing = false; 7299let isFlushPending = false; 7300const queue = []; 7301let flushIndex = 0; 7302const pendingPreFlushCbs = []; 7303let activePreFlushCbs = null; 7304let preFlushIndex = 0; 7305const pendingPostFlushCbs = []; 7306let activePostFlushCbs = null; 7307let postFlushIndex = 0; 7308const resolvedPromise = /*#__PURE__*/ Promise.resolve(); 7309let currentFlushPromise = null; 7310let currentPreFlushParentJob = null; 7311const RECURSION_LIMIT = 100; 7312function nextTick(fn) { 7313 const p = currentFlushPromise || resolvedPromise; 7314 return fn ? p.then(this ? fn.bind(this) : fn) : p; 7315} 7316// #2768 7317// Use binary-search to find a suitable position in the queue, 7318// so that the queue maintains the increasing order of job's id, 7319// which can prevent the job from being skipped and also can avoid repeated patching. 7320function findInsertionIndex(id) { 7321 // the start index should be `flushIndex + 1` 7322 let start = flushIndex + 1; 7323 let end = queue.length; 7324 while (start < end) { 7325 const middle = (start + end) >>> 1; 7326 const middleJobId = getId(queue[middle]); 7327 middleJobId < id ? (start = middle + 1) : (end = middle); 7328 } 7329 return start; 7330} 7331function queueJob(job) { 7332 // the dedupe search uses the startIndex argument of Array.includes() 7333 // by default the search index includes the current job that is being run 7334 // so it cannot recursively trigger itself again. 7335 // if the job is a watch() callback, the search will start with a +1 index to 7336 // allow it recursively trigger itself - it is the user's responsibility to 7337 // ensure it doesn't end up in an infinite loop. 7338 if ((!queue.length || 7339 !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) && 7340 job !== currentPreFlushParentJob) { 7341 if (job.id == null) { 7342 queue.push(job); 7343 } 7344 else { 7345 queue.splice(findInsertionIndex(job.id), 0, job); 7346 } 7347 queueFlush(); 7348 } 7349} 7350function queueFlush() { 7351 if (!isFlushing && !isFlushPending) { 7352 isFlushPending = true; 7353 currentFlushPromise = resolvedPromise.then(flushJobs); 7354 } 7355} 7356function invalidateJob(job) { 7357 const i = queue.indexOf(job); 7358 if (i > flushIndex) { 7359 queue.splice(i, 1); 7360 } 7361} 7362function queueCb(cb, activeQueue, pendingQueue, index) { 7363 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(cb)) { 7364 if (!activeQueue || 7365 !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index)) { 7366 pendingQueue.push(cb); 7367 } 7368 } 7369 else { 7370 // if cb is an array, it is a component lifecycle hook which can only be 7371 // triggered by a job, which is already deduped in the main queue, so 7372 // we can skip duplicate check here to improve perf 7373 pendingQueue.push(...cb); 7374 } 7375 queueFlush(); 7376} 7377function queuePreFlushCb(cb) { 7378 queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex); 7379} 7380function queuePostFlushCb(cb) { 7381 queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex); 7382} 7383function flushPreFlushCbs(seen, parentJob = null) { 7384 if (pendingPreFlushCbs.length) { 7385 currentPreFlushParentJob = parentJob; 7386 activePreFlushCbs = [...new Set(pendingPreFlushCbs)]; 7387 pendingPreFlushCbs.length = 0; 7388 if ((true)) { 7389 seen = seen || new Map(); 7390 } 7391 for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) { 7392 if (( true) && 7393 checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) { 7394 continue; 7395 } 7396 activePreFlushCbs[preFlushIndex](); 7397 } 7398 activePreFlushCbs = null; 7399 preFlushIndex = 0; 7400 currentPreFlushParentJob = null; 7401 // recursively flush until it drains 7402 flushPreFlushCbs(seen, parentJob); 7403 } 7404} 7405function flushPostFlushCbs(seen) { 7406 // flush any pre cbs queued during the flush (e.g. pre watchers) 7407 flushPreFlushCbs(); 7408 if (pendingPostFlushCbs.length) { 7409 const deduped = [...new Set(pendingPostFlushCbs)]; 7410 pendingPostFlushCbs.length = 0; 7411 // #1947 already has active queue, nested flushPostFlushCbs call 7412 if (activePostFlushCbs) { 7413 activePostFlushCbs.push(...deduped); 7414 return; 7415 } 7416 activePostFlushCbs = deduped; 7417 if ((true)) { 7418 seen = seen || new Map(); 7419 } 7420 activePostFlushCbs.sort((a, b) => getId(a) - getId(b)); 7421 for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { 7422 if (( true) && 7423 checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) { 7424 continue; 7425 } 7426 activePostFlushCbs[postFlushIndex](); 7427 } 7428 activePostFlushCbs = null; 7429 postFlushIndex = 0; 7430 } 7431} 7432const getId = (job) => job.id == null ? Infinity : job.id; 7433function flushJobs(seen) { 7434 isFlushPending = false; 7435 isFlushing = true; 7436 if ((true)) { 7437 seen = seen || new Map(); 7438 } 7439 flushPreFlushCbs(seen); 7440 // Sort queue before flush. 7441 // This ensures that: 7442 // 1. Components are updated from parent to child. (because parent is always 7443 // created before the child so its render effect will have smaller 7444 // priority number) 7445 // 2. If a component is unmounted during a parent component's update, 7446 // its update can be skipped. 7447 queue.sort((a, b) => getId(a) - getId(b)); 7448 // conditional usage of checkRecursiveUpdate must be determined out of 7449 // try ... catch block since Rollup by default de-optimizes treeshaking 7450 // inside try-catch. This can leave all warning code unshaked. Although 7451 // they would get eventually shaken by a minifier like terser, some minifiers 7452 // would fail to do that (e.g. https://github.com/evanw/esbuild/issues/1610) 7453 const check = ( true) 7454 ? (job) => checkRecursiveUpdates(seen, job) 7455 : 0; 7456 try { 7457 for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { 7458 const job = queue[flushIndex]; 7459 if (job && job.active !== false) { 7460 if (( true) && check(job)) { 7461 continue; 7462 } 7463 // console.log(`running:`, job.id) 7464 callWithErrorHandling(job, null, 14 /* SCHEDULER */); 7465 } 7466 } 7467 } 7468 finally { 7469 flushIndex = 0; 7470 queue.length = 0; 7471 flushPostFlushCbs(seen); 7472 isFlushing = false; 7473 currentFlushPromise = null; 7474 // some postFlushCb queued jobs! 7475 // keep flushing until it drains. 7476 if (queue.length || 7477 pendingPreFlushCbs.length || 7478 pendingPostFlushCbs.length) { 7479 flushJobs(seen); 7480 } 7481 } 7482} 7483function checkRecursiveUpdates(seen, fn) { 7484 if (!seen.has(fn)) { 7485 seen.set(fn, 1); 7486 } 7487 else { 7488 const count = seen.get(fn); 7489 if (count > RECURSION_LIMIT) { 7490 const instance = fn.ownerInstance; 7491 const componentName = instance && getComponentName(instance.type); 7492 warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` + 7493 `This means you have a reactive effect that is mutating its own ` + 7494 `dependencies and thus recursively triggering itself. Possible sources ` + 7495 `include component template, render function, updated hook or ` + 7496 `watcher source function.`); 7497 return true; 7498 } 7499 else { 7500 seen.set(fn, count + 1); 7501 } 7502 } 7503} 7504 7505/* eslint-disable no-restricted-globals */ 7506let isHmrUpdating = false; 7507const hmrDirtyComponents = new Set(); 7508// Expose the HMR runtime on the global object 7509// This makes it entirely tree-shakable without polluting the exports and makes 7510// it easier to be used in toolings like vue-loader 7511// Note: for a component to be eligible for HMR it also needs the __hmrId option 7512// to be set so that its instances can be registered / removed. 7513if ((true)) { 7514 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.getGlobalThis)().__VUE_HMR_RUNTIME__ = { 7515 createRecord: tryWrap(createRecord), 7516 rerender: tryWrap(rerender), 7517 reload: tryWrap(reload) 7518 }; 7519} 7520const map = new Map(); 7521function registerHMR(instance) { 7522 const id = instance.type.__hmrId; 7523 let record = map.get(id); 7524 if (!record) { 7525 createRecord(id, instance.type); 7526 record = map.get(id); 7527 } 7528 record.instances.add(instance); 7529} 7530function unregisterHMR(instance) { 7531 map.get(instance.type.__hmrId).instances.delete(instance); 7532} 7533function createRecord(id, initialDef) { 7534 if (map.has(id)) { 7535 return false; 7536 } 7537 map.set(id, { 7538 initialDef: normalizeClassComponent(initialDef), 7539 instances: new Set() 7540 }); 7541 return true; 7542} 7543function normalizeClassComponent(component) { 7544 return isClassComponent(component) ? component.__vccOpts : component; 7545} 7546function rerender(id, newRender) { 7547 const record = map.get(id); 7548 if (!record) { 7549 return; 7550 } 7551 // update initial record (for not-yet-rendered component) 7552 record.initialDef.render = newRender; 7553 [...record.instances].forEach(instance => { 7554 if (newRender) { 7555 instance.render = newRender; 7556 normalizeClassComponent(instance.type).render = newRender; 7557 } 7558 instance.renderCache = []; 7559 // this flag forces child components with slot content to update 7560 isHmrUpdating = true; 7561 instance.update(); 7562 isHmrUpdating = false; 7563 }); 7564} 7565function reload(id, newComp) { 7566 const record = map.get(id); 7567 if (!record) 7568 return; 7569 newComp = normalizeClassComponent(newComp); 7570 // update initial def (for not-yet-rendered components) 7571 updateComponentDef(record.initialDef, newComp); 7572 // create a snapshot which avoids the set being mutated during updates 7573 const instances = [...record.instances]; 7574 for (const instance of instances) { 7575 const oldComp = normalizeClassComponent(instance.type); 7576 if (!hmrDirtyComponents.has(oldComp)) { 7577 // 1. Update existing comp definition to match new one 7578 if (oldComp !== record.initialDef) { 7579 updateComponentDef(oldComp, newComp); 7580 } 7581 // 2. mark definition dirty. This forces the renderer to replace the 7582 // component on patch. 7583 hmrDirtyComponents.add(oldComp); 7584 } 7585 // 3. invalidate options resolution cache 7586 instance.appContext.optionsCache.delete(instance.type); 7587 // 4. actually update 7588 if (instance.ceReload) { 7589 // custom element 7590 hmrDirtyComponents.add(oldComp); 7591 instance.ceReload(newComp.styles); 7592 hmrDirtyComponents.delete(oldComp); 7593 } 7594 else if (instance.parent) { 7595 // 4. Force the parent instance to re-render. This will cause all updated 7596 // components to be unmounted and re-mounted. Queue the update so that we 7597 // don't end up forcing the same parent to re-render multiple times. 7598 queueJob(instance.parent.update); 7599 // instance is the inner component of an async custom element 7600 // invoke to reset styles 7601 if (instance.parent.type.__asyncLoader && 7602 instance.parent.ceReload) { 7603 instance.parent.ceReload(newComp.styles); 7604 } 7605 } 7606 else if (instance.appContext.reload) { 7607 // root instance mounted via createApp() has a reload method 7608 instance.appContext.reload(); 7609 } 7610 else if (typeof window !== 'undefined') { 7611 // root instance inside tree created via raw render(). Force reload. 7612 window.location.reload(); 7613 } 7614 else { 7615 console.warn('[HMR] Root or manually mounted instance modified. Full reload required.'); 7616 } 7617 } 7618 // 5. make sure to cleanup dirty hmr components after update 7619 queuePostFlushCb(() => { 7620 for (const instance of instances) { 7621 hmrDirtyComponents.delete(normalizeClassComponent(instance.type)); 7622 } 7623 }); 7624} 7625function updateComponentDef(oldComp, newComp) { 7626 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(oldComp, newComp); 7627 for (const key in oldComp) { 7628 if (key !== '__file' && !(key in newComp)) { 7629 delete oldComp[key]; 7630 } 7631 } 7632} 7633function tryWrap(fn) { 7634 return (id, arg) => { 7635 try { 7636 return fn(id, arg); 7637 } 7638 catch (e) { 7639 console.error(e); 7640 console.warn(`[HMR] Something went wrong during Vue component hot-reload. ` + 7641 `Full reload required.`); 7642 } 7643 }; 7644} 7645 7646let devtools; 7647let buffer = []; 7648let devtoolsNotInstalled = false; 7649function emit(event, ...args) { 7650 if (devtools) { 7651 devtools.emit(event, ...args); 7652 } 7653 else if (!devtoolsNotInstalled) { 7654 buffer.push({ event, args }); 7655 } 7656} 7657function setDevtoolsHook(hook, target) { 7658 var _a, _b; 7659 devtools = hook; 7660 if (devtools) { 7661 devtools.enabled = true; 7662 buffer.forEach(({ event, args }) => devtools.emit(event, ...args)); 7663 buffer = []; 7664 } 7665 else if ( 7666 // handle late devtools injection - only do this if we are in an actual 7667 // browser environment to avoid the timer handle stalling test runner exit 7668 // (#4815) 7669 typeof window !== 'undefined' && 7670 // some envs mock window but not fully 7671 window.HTMLElement && 7672 // also exclude jsdom 7673 !((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) { 7674 const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ = 7675 target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []); 7676 replay.push((newHook) => { 7677 setDevtoolsHook(newHook, target); 7678 }); 7679 // clear buffer after 3s - the user probably doesn't have devtools installed 7680 // at all, and keeping the buffer will cause memory leaks (#4738) 7681 setTimeout(() => { 7682 if (!devtools) { 7683 target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null; 7684 devtoolsNotInstalled = true; 7685 buffer = []; 7686 } 7687 }, 3000); 7688 } 7689 else { 7690 // non-browser env, assume not installed 7691 devtoolsNotInstalled = true; 7692 buffer = []; 7693 } 7694} 7695function devtoolsInitApp(app, version) { 7696 emit("app:init" /* APP_INIT */, app, version, { 7697 Fragment, 7698 Text, 7699 Comment, 7700 Static 7701 }); 7702} 7703function devtoolsUnmountApp(app) { 7704 emit("app:unmount" /* APP_UNMOUNT */, app); 7705} 7706const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook("component:added" /* COMPONENT_ADDED */); 7707const devtoolsComponentUpdated = 7708/*#__PURE__*/ createDevtoolsComponentHook("component:updated" /* COMPONENT_UPDATED */); 7709const devtoolsComponentRemoved = 7710/*#__PURE__*/ createDevtoolsComponentHook("component:removed" /* COMPONENT_REMOVED */); 7711function createDevtoolsComponentHook(hook) { 7712 return (component) => { 7713 emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component); 7714 }; 7715} 7716const devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:start" /* PERFORMANCE_START */); 7717const devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:end" /* PERFORMANCE_END */); 7718function createDevtoolsPerformanceHook(hook) { 7719 return (component, type, time) => { 7720 emit(hook, component.appContext.app, component.uid, component, type, time); 7721 }; 7722} 7723function devtoolsComponentEmit(component, event, params) { 7724 emit("component:emit" /* COMPONENT_EMIT */, component.appContext.app, component, event, params); 7725} 7726 7727function emit$1(instance, event, ...rawArgs) { 7728 if (instance.isUnmounted) 7729 return; 7730 const props = instance.vnode.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ; 7731 if ((true)) { 7732 const { emitsOptions, propsOptions: [propsOptions] } = instance; 7733 if (emitsOptions) { 7734 if (!(event in emitsOptions) && 7735 !(false )) { 7736 if (!propsOptions || !((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event) in propsOptions)) { 7737 warn(`Component emitted event "${event}" but it is neither declared in ` + 7738 `the emits option nor as an "${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event)}" prop.`); 7739 } 7740 } 7741 else { 7742 const validator = emitsOptions[event]; 7743 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(validator)) { 7744 const isValid = validator(...rawArgs); 7745 if (!isValid) { 7746 warn(`Invalid event arguments: event validation failed for event "${event}".`); 7747 } 7748 } 7749 } 7750 } 7751 } 7752 let args = rawArgs; 7753 const isModelListener = event.startsWith('update:'); 7754 // for v-model update:xxx events, apply modifiers on args 7755 const modelArg = isModelListener && event.slice(7); 7756 if (modelArg && modelArg in props) { 7757 const modifiersKey = `${modelArg === 'modelValue' ? 'model' : modelArg}Modifiers`; 7758 const { number, trim } = props[modifiersKey] || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ; 7759 if (trim) { 7760 args = rawArgs.map(a => a.trim()); 7761 } 7762 if (number) { 7763 args = rawArgs.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber); 7764 } 7765 } 7766 if (true) { 7767 devtoolsComponentEmit(instance, event, args); 7768 } 7769 if ((true)) { 7770 const lowerCaseEvent = event.toLowerCase(); 7771 if (lowerCaseEvent !== event && props[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(lowerCaseEvent)]) { 7772 warn(`Event "${lowerCaseEvent}" is emitted in component ` + 7773 `${formatComponentName(instance, instance.type)} but the handler is registered for "${event}". ` + 7774 `Note that HTML attributes are case-insensitive and you cannot use ` + 7775 `v-on to listen to camelCase events when using in-DOM templates. ` + 7776 `You should probably use "${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event)}" instead of "${event}".`); 7777 } 7778 } 7779 let handlerName; 7780 let handler = props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event))] || 7781 // also try camelCase event handler (#2249) 7782 props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(event)))]; 7783 // for v-model update:xxx events, also trigger kebab-case equivalent 7784 // for props passed via kebab-case 7785 if (!handler && isModelListener) { 7786 handler = props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event)))]; 7787 } 7788 if (handler) { 7789 callWithAsyncErrorHandling(handler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args); 7790 } 7791 const onceHandler = props[handlerName + `Once`]; 7792 if (onceHandler) { 7793 if (!instance.emitted) { 7794 instance.emitted = {}; 7795 } 7796 else if (instance.emitted[handlerName]) { 7797 return; 7798 } 7799 instance.emitted[handlerName] = true; 7800 callWithAsyncErrorHandling(onceHandler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args); 7801 } 7802} 7803function normalizeEmitsOptions(comp, appContext, asMixin = false) { 7804 const cache = appContext.emitsCache; 7805 const cached = cache.get(comp); 7806 if (cached !== undefined) { 7807 return cached; 7808 } 7809 const raw = comp.emits; 7810 let normalized = {}; 7811 // apply mixin/extends props 7812 let hasExtends = false; 7813 if ( true && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) { 7814 const extendEmits = (raw) => { 7815 const normalizedFromExtend = normalizeEmitsOptions(raw, appContext, true); 7816 if (normalizedFromExtend) { 7817 hasExtends = true; 7818 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, normalizedFromExtend); 7819 } 7820 }; 7821 if (!asMixin && appContext.mixins.length) { 7822 appContext.mixins.forEach(extendEmits); 7823 } 7824 if (comp.extends) { 7825 extendEmits(comp.extends); 7826 } 7827 if (comp.mixins) { 7828 comp.mixins.forEach(extendEmits); 7829 } 7830 } 7831 if (!raw && !hasExtends) { 7832 cache.set(comp, null); 7833 return null; 7834 } 7835 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) { 7836 raw.forEach(key => (normalized[key] = null)); 7837 } 7838 else { 7839 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, raw); 7840 } 7841 cache.set(comp, normalized); 7842 return normalized; 7843} 7844// Check if an incoming prop key is a declared emit event listener. 7845// e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are 7846// both considered matched listeners. 7847function isEmitListener(options, key) { 7848 if (!options || !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) { 7849 return false; 7850 } 7851 key = key.slice(2).replace(/Once$/, ''); 7852 return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, key[0].toLowerCase() + key.slice(1)) || 7853 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)) || 7854 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, key)); 7855} 7856 7857/** 7858 * mark the current rendering instance for asset resolution (e.g. 7859 * resolveComponent, resolveDirective) during render 7860 */ 7861let currentRenderingInstance = null; 7862let currentScopeId = null; 7863/** 7864 * Note: rendering calls maybe nested. The function returns the parent rendering 7865 * instance if present, which should be restored after the render is done: 7866 * 7867 * ```js 7868 * const prev = setCurrentRenderingInstance(i) 7869 * // ...render 7870 * setCurrentRenderingInstance(prev) 7871 * ``` 7872 */ 7873function setCurrentRenderingInstance(instance) { 7874 const prev = currentRenderingInstance; 7875 currentRenderingInstance = instance; 7876 currentScopeId = (instance && instance.type.__scopeId) || null; 7877 return prev; 7878} 7879/** 7880 * Set scope id when creating hoisted vnodes. 7881 * @private compiler helper 7882 */ 7883function pushScopeId(id) { 7884 currentScopeId = id; 7885} 7886/** 7887 * Technically we no longer need this after 3.0.8 but we need to keep the same 7888 * API for backwards compat w/ code generated by compilers. 7889 * @private 7890 */ 7891function popScopeId() { 7892 currentScopeId = null; 7893} 7894/** 7895 * Only for backwards compat 7896 * @private 7897 */ 7898const withScopeId = (_id) => withCtx; 7899/** 7900 * Wrap a slot function to memoize current rendering instance 7901 * @private compiler helper 7902 */ 7903function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot // false only 7904) { 7905 if (!ctx) 7906 return fn; 7907 // already normalized 7908 if (fn._n) { 7909 return fn; 7910 } 7911 const renderFnWithContext = (...args) => { 7912 // If a user calls a compiled slot inside a template expression (#1745), it 7913 // can mess up block tracking, so by default we disable block tracking and 7914 // force bail out when invoking a compiled slot (indicated by the ._d flag). 7915 // This isn't necessary if rendering a compiled `<slot>`, so we flip the 7916 // ._d flag off when invoking the wrapped fn inside `renderSlot`. 7917 if (renderFnWithContext._d) { 7918 setBlockTracking(-1); 7919 } 7920 const prevInstance = setCurrentRenderingInstance(ctx); 7921 const res = fn(...args); 7922 setCurrentRenderingInstance(prevInstance); 7923 if (renderFnWithContext._d) { 7924 setBlockTracking(1); 7925 } 7926 if (true) { 7927 devtoolsComponentUpdated(ctx); 7928 } 7929 return res; 7930 }; 7931 // mark normalized to avoid duplicated wrapping 7932 renderFnWithContext._n = true; 7933 // mark this as compiled by default 7934 // this is used in vnode.ts -> normalizeChildren() to set the slot 7935 // rendering flag. 7936 renderFnWithContext._c = true; 7937 // disable block tracking by default 7938 renderFnWithContext._d = true; 7939 return renderFnWithContext; 7940} 7941 7942/** 7943 * dev only flag to track whether $attrs was used during render. 7944 * If $attrs was used during render then the warning for failed attrs 7945 * fallthrough can be suppressed. 7946 */ 7947let accessedAttrs = false; 7948function markAttrsAccessed() { 7949 accessedAttrs = true; 7950} 7951function renderComponentRoot(instance) { 7952 const { type: Component, vnode, proxy, withProxy, props, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, data, setupState, ctx, inheritAttrs } = instance; 7953 let result; 7954 let fallthroughAttrs; 7955 const prev = setCurrentRenderingInstance(instance); 7956 if ((true)) { 7957 accessedAttrs = false; 7958 } 7959 try { 7960 if (vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */) { 7961 // withProxy is a proxy with a different `has` trap only for 7962 // runtime-compiled render functions using `with` block. 7963 const proxyToUse = withProxy || proxy; 7964 result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx)); 7965 fallthroughAttrs = attrs; 7966 } 7967 else { 7968 // functional 7969 const render = Component; 7970 // in dev, mark attrs accessed if optional props (attrs === props) 7971 if (( true) && attrs === props) { 7972 markAttrsAccessed(); 7973 } 7974 result = normalizeVNode(render.length > 1 7975 ? render(props, ( true) 7976 ? { 7977 get attrs() { 7978 markAttrsAccessed(); 7979 return attrs; 7980 }, 7981 slots, 7982 emit 7983 } 7984 : 0) 7985 : render(props, null /* we know it doesn't need it */)); 7986 fallthroughAttrs = Component.props 7987 ? attrs 7988 : getFunctionalFallthrough(attrs); 7989 } 7990 } 7991 catch (err) { 7992 blockStack.length = 0; 7993 handleError(err, instance, 1 /* RENDER_FUNCTION */); 7994 result = createVNode(Comment); 7995 } 7996 // attr merging 7997 // in dev mode, comments are preserved, and it's possible for a template 7998 // to have comments along side the root element which makes it a fragment 7999 let root = result; 8000 let setRoot = undefined; 8001 if (( true) && 8002 result.patchFlag > 0 && 8003 result.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) { 8004 [root, setRoot] = getChildRoot(result); 8005 } 8006 if (fallthroughAttrs && inheritAttrs !== false) { 8007 const keys = Object.keys(fallthroughAttrs); 8008 const { shapeFlag } = root; 8009 if (keys.length) { 8010 if (shapeFlag & (1 /* ELEMENT */ | 6 /* COMPONENT */)) { 8011 if (propsOptions && keys.some(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)) { 8012 // If a v-model listener (onUpdate:xxx) has a corresponding declared 8013 // prop, it indicates this component expects to handle v-model and 8014 // it should not fallthrough. 8015 // related: #1543, #1643, #1989 8016 fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions); 8017 } 8018 root = cloneVNode(root, fallthroughAttrs); 8019 } 8020 else if (( true) && !accessedAttrs && root.type !== Comment) { 8021 const allAttrs = Object.keys(attrs); 8022 const eventAttrs = []; 8023 const extraAttrs = []; 8024 for (let i = 0, l = allAttrs.length; i < l; i++) { 8025 const key = allAttrs[i]; 8026 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) { 8027 // ignore v-model handlers when they fail to fallthrough 8028 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key)) { 8029 // remove `on`, lowercase first letter to reflect event casing 8030 // accurately 8031 eventAttrs.push(key[2].toLowerCase() + key.slice(3)); 8032 } 8033 } 8034 else { 8035 extraAttrs.push(key); 8036 } 8037 } 8038 if (extraAttrs.length) { 8039 warn(`Extraneous non-props attributes (` + 8040 `${extraAttrs.join(', ')}) ` + 8041 `were passed to component but could not be automatically inherited ` + 8042 `because component renders fragment or text root nodes.`); 8043 } 8044 if (eventAttrs.length) { 8045 warn(`Extraneous non-emits event listeners (` + 8046 `${eventAttrs.join(', ')}) ` + 8047 `were passed to component but could not be automatically inherited ` + 8048 `because component renders fragment or text root nodes. ` + 8049 `If the listener is intended to be a component custom event listener only, ` + 8050 `declare it using the "emits" option.`); 8051 } 8052 } 8053 } 8054 } 8055 // inherit directives 8056 if (vnode.dirs) { 8057 if (( true) && !isElementRoot(root)) { 8058 warn(`Runtime directive used on component with non-element root node. ` + 8059 `The directives will not function as intended.`); 8060 } 8061 // clone before mutating since the root may be a hoisted vnode 8062 root = cloneVNode(root); 8063 root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs; 8064 } 8065 // inherit transition data 8066 if (vnode.transition) { 8067 if (( true) && !isElementRoot(root)) { 8068 warn(`Component inside <Transition> renders non-element root node ` + 8069 `that cannot be animated.`); 8070 } 8071 root.transition = vnode.transition; 8072 } 8073 if (( true) && setRoot) { 8074 setRoot(root); 8075 } 8076 else { 8077 result = root; 8078 } 8079 setCurrentRenderingInstance(prev); 8080 return result; 8081} 8082/** 8083 * dev only 8084 * In dev mode, template root level comments are rendered, which turns the 8085 * template into a fragment root, but we need to locate the single element 8086 * root for attrs and scope id processing. 8087 */ 8088const getChildRoot = (vnode) => { 8089 const rawChildren = vnode.children; 8090 const dynamicChildren = vnode.dynamicChildren; 8091 const childRoot = filterSingleRoot(rawChildren); 8092 if (!childRoot) { 8093 return [vnode, undefined]; 8094 } 8095 const index = rawChildren.indexOf(childRoot); 8096 const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1; 8097 const setRoot = (updatedRoot) => { 8098 rawChildren[index] = updatedRoot; 8099 if (dynamicChildren) { 8100 if (dynamicIndex > -1) { 8101 dynamicChildren[dynamicIndex] = updatedRoot; 8102 } 8103 else if (updatedRoot.patchFlag > 0) { 8104 vnode.dynamicChildren = [...dynamicChildren, updatedRoot]; 8105 } 8106 } 8107 }; 8108 return [normalizeVNode(childRoot), setRoot]; 8109}; 8110function filterSingleRoot(children) { 8111 let singleRoot; 8112 for (let i = 0; i < children.length; i++) { 8113 const child = children[i]; 8114 if (isVNode(child)) { 8115 // ignore user comment 8116 if (child.type !== Comment || child.children === 'v-if') { 8117 if (singleRoot) { 8118 // has more than 1 non-comment child, return now 8119 return; 8120 } 8121 else { 8122 singleRoot = child; 8123 } 8124 } 8125 } 8126 else { 8127 return; 8128 } 8129 } 8130 return singleRoot; 8131} 8132const getFunctionalFallthrough = (attrs) => { 8133 let res; 8134 for (const key in attrs) { 8135 if (key === 'class' || key === 'style' || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) { 8136 (res || (res = {}))[key] = attrs[key]; 8137 } 8138 } 8139 return res; 8140}; 8141const filterModelListeners = (attrs, props) => { 8142 const res = {}; 8143 for (const key in attrs) { 8144 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key) || !(key.slice(9) in props)) { 8145 res[key] = attrs[key]; 8146 } 8147 } 8148 return res; 8149}; 8150const isElementRoot = (vnode) => { 8151 return (vnode.shapeFlag & (6 /* COMPONENT */ | 1 /* ELEMENT */) || 8152 vnode.type === Comment // potential v-if branch switch 8153 ); 8154}; 8155function shouldUpdateComponent(prevVNode, nextVNode, optimized) { 8156 const { props: prevProps, children: prevChildren, component } = prevVNode; 8157 const { props: nextProps, children: nextChildren, patchFlag } = nextVNode; 8158 const emits = component.emitsOptions; 8159 // Parent component's render function was hot-updated. Since this may have 8160 // caused the child component's slots content to have changed, we need to 8161 // force the child to update as well. 8162 if (( true) && (prevChildren || nextChildren) && isHmrUpdating) { 8163 return true; 8164 } 8165 // force child update for runtime directive or transition on component vnode. 8166 if (nextVNode.dirs || nextVNode.transition) { 8167 return true; 8168 } 8169 if (optimized && patchFlag >= 0) { 8170 if (patchFlag & 1024 /* DYNAMIC_SLOTS */) { 8171 // slot content that references values that might have changed, 8172 // e.g. in a v-for 8173 return true; 8174 } 8175 if (patchFlag & 16 /* FULL_PROPS */) { 8176 if (!prevProps) { 8177 return !!nextProps; 8178 } 8179 // presence of this flag indicates props are always non-null 8180 return hasPropsChanged(prevProps, nextProps, emits); 8181 } 8182 else if (patchFlag & 8 /* PROPS */) { 8183 const dynamicProps = nextVNode.dynamicProps; 8184 for (let i = 0; i < dynamicProps.length; i++) { 8185 const key = dynamicProps[i]; 8186 if (nextProps[key] !== prevProps[key] && 8187 !isEmitListener(emits, key)) { 8188 return true; 8189 } 8190 } 8191 } 8192 } 8193 else { 8194 // this path is only taken by manually written render functions 8195 // so presence of any children leads to a forced update 8196 if (prevChildren || nextChildren) { 8197 if (!nextChildren || !nextChildren.$stable) { 8198 return true; 8199 } 8200 } 8201 if (prevProps === nextProps) { 8202 return false; 8203 } 8204 if (!prevProps) { 8205 return !!nextProps; 8206 } 8207 if (!nextProps) { 8208 return true; 8209 } 8210 return hasPropsChanged(prevProps, nextProps, emits); 8211 } 8212 return false; 8213} 8214function hasPropsChanged(prevProps, nextProps, emitsOptions) { 8215 const nextKeys = Object.keys(nextProps); 8216 if (nextKeys.length !== Object.keys(prevProps).length) { 8217 return true; 8218 } 8219 for (let i = 0; i < nextKeys.length; i++) { 8220 const key = nextKeys[i]; 8221 if (nextProps[key] !== prevProps[key] && 8222 !isEmitListener(emitsOptions, key)) { 8223 return true; 8224 } 8225 } 8226 return false; 8227} 8228function updateHOCHostEl({ vnode, parent }, el // HostNode 8229) { 8230 while (parent && parent.subTree === vnode) { 8231 (vnode = parent.vnode).el = el; 8232 parent = parent.parent; 8233 } 8234} 8235 8236const isSuspense = (type) => type.__isSuspense; 8237// Suspense exposes a component-like API, and is treated like a component 8238// in the compiler, but internally it's a special built-in type that hooks 8239// directly into the renderer. 8240const SuspenseImpl = { 8241 name: 'Suspense', 8242 // In order to make Suspense tree-shakable, we need to avoid importing it 8243 // directly in the renderer. The renderer checks for the __isSuspense flag 8244 // on a vnode's type and calls the `process` method, passing in renderer 8245 // internals. 8246 __isSuspense: true, 8247 process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, 8248 // platform-specific impl passed from renderer 8249 rendererInternals) { 8250 if (n1 == null) { 8251 mountSuspense(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals); 8252 } 8253 else { 8254 patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, rendererInternals); 8255 } 8256 }, 8257 hydrate: hydrateSuspense, 8258 create: createSuspenseBoundary, 8259 normalize: normalizeSuspenseChildren 8260}; 8261// Force-casted public typing for h and TSX props inference 8262const Suspense = (SuspenseImpl ); 8263function triggerEvent(vnode, name) { 8264 const eventListener = vnode.props && vnode.props[name]; 8265 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(eventListener)) { 8266 eventListener(); 8267 } 8268} 8269function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals) { 8270 const { p: patch, o: { createElement } } = rendererInternals; 8271 const hiddenContainer = createElement('div'); 8272 const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals)); 8273 // start mounting the content subtree in an off-dom container 8274 patch(null, (suspense.pendingBranch = vnode.ssContent), hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds); 8275 // now check if we have encountered any async deps 8276 if (suspense.deps > 0) { 8277 // has async 8278 // invoke @fallback event 8279 triggerEvent(vnode, 'onPending'); 8280 triggerEvent(vnode, 'onFallback'); 8281 // mount the fallback tree 8282 patch(null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context 8283 isSVG, slotScopeIds); 8284 setActiveBranch(suspense, vnode.ssFallback); 8285 } 8286 else { 8287 // Suspense has no async deps. Just resolve. 8288 suspense.resolve(); 8289 } 8290} 8291function patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) { 8292 const suspense = (n2.suspense = n1.suspense); 8293 suspense.vnode = n2; 8294 n2.el = n1.el; 8295 const newBranch = n2.ssContent; 8296 const newFallback = n2.ssFallback; 8297 const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense; 8298 if (pendingBranch) { 8299 suspense.pendingBranch = newBranch; 8300 if (isSameVNodeType(newBranch, pendingBranch)) { 8301 // same root type but content may have changed. 8302 patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized); 8303 if (suspense.deps <= 0) { 8304 suspense.resolve(); 8305 } 8306 else if (isInFallback) { 8307 patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context 8308 isSVG, slotScopeIds, optimized); 8309 setActiveBranch(suspense, newFallback); 8310 } 8311 } 8312 else { 8313 // toggled before pending tree is resolved 8314 suspense.pendingId++; 8315 if (isHydrating) { 8316 // if toggled before hydration is finished, the current DOM tree is 8317 // no longer valid. set it as the active branch so it will be unmounted 8318 // when resolved 8319 suspense.isHydrating = false; 8320 suspense.activeBranch = pendingBranch; 8321 } 8322 else { 8323 unmount(pendingBranch, parentComponent, suspense); 8324 } 8325 // increment pending ID. this is used to invalidate async callbacks 8326 // reset suspense state 8327 suspense.deps = 0; 8328 // discard effects from pending branch 8329 suspense.effects.length = 0; 8330 // discard previous container 8331 suspense.hiddenContainer = createElement('div'); 8332 if (isInFallback) { 8333 // already in fallback state 8334 patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized); 8335 if (suspense.deps <= 0) { 8336 suspense.resolve(); 8337 } 8338 else { 8339 patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context 8340 isSVG, slotScopeIds, optimized); 8341 setActiveBranch(suspense, newFallback); 8342 } 8343 } 8344 else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { 8345 // toggled "back" to current active branch 8346 patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized); 8347 // force resolve 8348 suspense.resolve(true); 8349 } 8350 else { 8351 // switched to a 3rd branch 8352 patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized); 8353 if (suspense.deps <= 0) { 8354 suspense.resolve(); 8355 } 8356 } 8357 } 8358 } 8359 else { 8360 if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { 8361 // root did not change, just normal patch 8362 patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized); 8363 setActiveBranch(suspense, newBranch); 8364 } 8365 else { 8366 // root node toggled 8367 // invoke @pending event 8368 triggerEvent(n2, 'onPending'); 8369 // mount pending branch in off-dom container 8370 suspense.pendingBranch = newBranch; 8371 suspense.pendingId++; 8372 patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized); 8373 if (suspense.deps <= 0) { 8374 // incoming branch has no async deps, resolve now. 8375 suspense.resolve(); 8376 } 8377 else { 8378 const { timeout, pendingId } = suspense; 8379 if (timeout > 0) { 8380 setTimeout(() => { 8381 if (suspense.pendingId === pendingId) { 8382 suspense.fallback(newFallback); 8383 } 8384 }, timeout); 8385 } 8386 else if (timeout === 0) { 8387 suspense.fallback(newFallback); 8388 } 8389 } 8390 } 8391 } 8392} 8393let hasWarned = false; 8394function createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) { 8395 /* istanbul ignore if */ 8396 if ( true && !hasWarned) { 8397 hasWarned = true; 8398 // @ts-ignore `console.info` cannot be null error 8399 console[console.info ? 'info' : 'log'](`<Suspense> is an experimental feature and its API will likely change.`); 8400 } 8401 const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals; 8402 const timeout = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(vnode.props && vnode.props.timeout); 8403 const suspense = { 8404 vnode, 8405 parent, 8406 parentComponent, 8407 isSVG, 8408 container, 8409 hiddenContainer, 8410 anchor, 8411 deps: 0, 8412 pendingId: 0, 8413 timeout: typeof timeout === 'number' ? timeout : -1, 8414 activeBranch: null, 8415 pendingBranch: null, 8416 isInFallback: true, 8417 isHydrating, 8418 isUnmounted: false, 8419 effects: [], 8420 resolve(resume = false) { 8421 if ((true)) { 8422 if (!resume && !suspense.pendingBranch) { 8423 throw new Error(`suspense.resolve() is called without a pending branch.`); 8424 } 8425 if (suspense.isUnmounted) { 8426 throw new Error(`suspense.resolve() is called on an already unmounted suspense boundary.`); 8427 } 8428 } 8429 const { vnode, activeBranch, pendingBranch, pendingId, effects, parentComponent, container } = suspense; 8430 if (suspense.isHydrating) { 8431 suspense.isHydrating = false; 8432 } 8433 else if (!resume) { 8434 const delayEnter = activeBranch && 8435 pendingBranch.transition && 8436 pendingBranch.transition.mode === 'out-in'; 8437 if (delayEnter) { 8438 activeBranch.transition.afterLeave = () => { 8439 if (pendingId === suspense.pendingId) { 8440 move(pendingBranch, container, anchor, 0 /* ENTER */); 8441 } 8442 }; 8443 } 8444 // this is initial anchor on mount 8445 let { anchor } = suspense; 8446 // unmount current active tree 8447 if (activeBranch) { 8448 // if the fallback tree was mounted, it may have been moved 8449 // as part of a parent suspense. get the latest anchor for insertion 8450 anchor = next(activeBranch); 8451 unmount(activeBranch, parentComponent, suspense, true); 8452 } 8453 if (!delayEnter) { 8454 // move content from off-dom container to actual container 8455 move(pendingBranch, container, anchor, 0 /* ENTER */); 8456 } 8457 } 8458 setActiveBranch(suspense, pendingBranch); 8459 suspense.pendingBranch = null; 8460 suspense.isInFallback = false; 8461 // flush buffered effects 8462 // check if there is a pending parent suspense 8463 let parent = suspense.parent; 8464 let hasUnresolvedAncestor = false; 8465 while (parent) { 8466 if (parent.pendingBranch) { 8467 // found a pending parent suspense, merge buffered post jobs 8468 // into that parent 8469 parent.effects.push(...effects); 8470 hasUnresolvedAncestor = true; 8471 break; 8472 } 8473 parent = parent.parent; 8474 } 8475 // no pending parent suspense, flush all jobs 8476 if (!hasUnresolvedAncestor) { 8477 queuePostFlushCb(effects); 8478 } 8479 suspense.effects = []; 8480 // invoke @resolve event 8481 triggerEvent(vnode, 'onResolve'); 8482 }, 8483 fallback(fallbackVNode) { 8484 if (!suspense.pendingBranch) { 8485 return; 8486 } 8487 const { vnode, activeBranch, parentComponent, container, isSVG } = suspense; 8488 // invoke @fallback event 8489 triggerEvent(vnode, 'onFallback'); 8490 const anchor = next(activeBranch); 8491 const mountFallback = () => { 8492 if (!suspense.isInFallback) { 8493 return; 8494 } 8495 // mount the fallback tree 8496 patch(null, fallbackVNode, container, anchor, parentComponent, null, // fallback tree will not have suspense context 8497 isSVG, slotScopeIds, optimized); 8498 setActiveBranch(suspense, fallbackVNode); 8499 }; 8500 const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === 'out-in'; 8501 if (delayEnter) { 8502 activeBranch.transition.afterLeave = mountFallback; 8503 } 8504 suspense.isInFallback = true; 8505 // unmount current active branch 8506 unmount(activeBranch, parentComponent, null, // no suspense so unmount hooks fire now 8507 true // shouldRemove 8508 ); 8509 if (!delayEnter) { 8510 mountFallback(); 8511 } 8512 }, 8513 move(container, anchor, type) { 8514 suspense.activeBranch && 8515 move(suspense.activeBranch, container, anchor, type); 8516 suspense.container = container; 8517 }, 8518 next() { 8519 return suspense.activeBranch && next(suspense.activeBranch); 8520 }, 8521 registerDep(instance, setupRenderEffect) { 8522 const isInPendingSuspense = !!suspense.pendingBranch; 8523 if (isInPendingSuspense) { 8524 suspense.deps++; 8525 } 8526 const hydratedEl = instance.vnode.el; 8527 instance 8528 .asyncDep.catch(err => { 8529 handleError(err, instance, 0 /* SETUP_FUNCTION */); 8530 }) 8531 .then(asyncSetupResult => { 8532 // retry when the setup() promise resolves. 8533 // component may have been unmounted before resolve. 8534 if (instance.isUnmounted || 8535 suspense.isUnmounted || 8536 suspense.pendingId !== instance.suspenseId) { 8537 return; 8538 } 8539 // retry from this component 8540 instance.asyncResolved = true; 8541 const { vnode } = instance; 8542 if ((true)) { 8543 pushWarningContext(vnode); 8544 } 8545 handleSetupResult(instance, asyncSetupResult, false); 8546 if (hydratedEl) { 8547 // vnode may have been replaced if an update happened before the 8548 // async dep is resolved. 8549 vnode.el = hydratedEl; 8550 } 8551 const placeholder = !hydratedEl && instance.subTree.el; 8552 setupRenderEffect(instance, vnode, 8553 // component may have been moved before resolve. 8554 // if this is not a hydration, instance.subTree will be the comment 8555 // placeholder. 8556 parentNode(hydratedEl || instance.subTree.el), 8557 // anchor will not be used if this is hydration, so only need to 8558 // consider the comment placeholder case. 8559 hydratedEl ? null : next(instance.subTree), suspense, isSVG, optimized); 8560 if (placeholder) { 8561 remove(placeholder); 8562 } 8563 updateHOCHostEl(instance, vnode.el); 8564 if ((true)) { 8565 popWarningContext(); 8566 } 8567 // only decrease deps count if suspense is not already resolved 8568 if (isInPendingSuspense && --suspense.deps === 0) { 8569 suspense.resolve(); 8570 } 8571 }); 8572 }, 8573 unmount(parentSuspense, doRemove) { 8574 suspense.isUnmounted = true; 8575 if (suspense.activeBranch) { 8576 unmount(suspense.activeBranch, parentComponent, parentSuspense, doRemove); 8577 } 8578 if (suspense.pendingBranch) { 8579 unmount(suspense.pendingBranch, parentComponent, parentSuspense, doRemove); 8580 } 8581 } 8582 }; 8583 return suspense; 8584} 8585function hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals, hydrateNode) { 8586 /* eslint-disable no-restricted-globals */ 8587 const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, node.parentNode, document.createElement('div'), null, isSVG, slotScopeIds, optimized, rendererInternals, true /* hydrating */)); 8588 // there are two possible scenarios for server-rendered suspense: 8589 // - success: ssr content should be fully resolved 8590 // - failure: ssr content should be the fallback branch. 8591 // however, on the client we don't really know if it has failed or not 8592 // attempt to hydrate the DOM assuming it has succeeded, but we still 8593 // need to construct a suspense boundary first 8594 const result = hydrateNode(node, (suspense.pendingBranch = vnode.ssContent), parentComponent, suspense, slotScopeIds, optimized); 8595 if (suspense.deps === 0) { 8596 suspense.resolve(); 8597 } 8598 return result; 8599 /* eslint-enable no-restricted-globals */ 8600} 8601function normalizeSuspenseChildren(vnode) { 8602 const { shapeFlag, children } = vnode; 8603 const isSlotChildren = shapeFlag & 32 /* SLOTS_CHILDREN */; 8604 vnode.ssContent = normalizeSuspenseSlot(isSlotChildren ? children.default : children); 8605 vnode.ssFallback = isSlotChildren 8606 ? normalizeSuspenseSlot(children.fallback) 8607 : createVNode(Comment); 8608} 8609function normalizeSuspenseSlot(s) { 8610 let block; 8611 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(s)) { 8612 const trackBlock = isBlockTreeEnabled && s._c; 8613 if (trackBlock) { 8614 // disableTracking: false 8615 // allow block tracking for compiled slots 8616 // (see ./componentRenderContext.ts) 8617 s._d = false; 8618 openBlock(); 8619 } 8620 s = s(); 8621 if (trackBlock) { 8622 s._d = true; 8623 block = currentBlock; 8624 closeBlock(); 8625 } 8626 } 8627 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(s)) { 8628 const singleChild = filterSingleRoot(s); 8629 if (( true) && !singleChild) { 8630 warn(`<Suspense> slots expect a single root node.`); 8631 } 8632 s = singleChild; 8633 } 8634 s = normalizeVNode(s); 8635 if (block && !s.dynamicChildren) { 8636 s.dynamicChildren = block.filter(c => c !== s); 8637 } 8638 return s; 8639} 8640function queueEffectWithSuspense(fn, suspense) { 8641 if (suspense && suspense.pendingBranch) { 8642 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(fn)) { 8643 suspense.effects.push(...fn); 8644 } 8645 else { 8646 suspense.effects.push(fn); 8647 } 8648 } 8649 else { 8650 queuePostFlushCb(fn); 8651 } 8652} 8653function setActiveBranch(suspense, branch) { 8654 suspense.activeBranch = branch; 8655 const { vnode, parentComponent } = suspense; 8656 const el = (vnode.el = branch.el); 8657 // in case suspense is the root node of a component, 8658 // recursively update the HOC el 8659 if (parentComponent && parentComponent.subTree === vnode) { 8660 parentComponent.vnode.el = el; 8661 updateHOCHostEl(parentComponent, el); 8662 } 8663} 8664 8665function provide(key, value) { 8666 if (!currentInstance) { 8667 if ((true)) { 8668 warn(`provide() can only be used inside setup().`); 8669 } 8670 } 8671 else { 8672 let provides = currentInstance.provides; 8673 // by default an instance inherits its parent's provides object 8674 // but when it needs to provide values of its own, it creates its 8675 // own provides object using parent provides object as prototype. 8676 // this way in `inject` we can simply look up injections from direct 8677 // parent and let the prototype chain do the work. 8678 const parentProvides = currentInstance.parent && currentInstance.parent.provides; 8679 if (parentProvides === provides) { 8680 provides = currentInstance.provides = Object.create(parentProvides); 8681 } 8682 // TS doesn't allow symbol as index type 8683 provides[key] = value; 8684 } 8685} 8686function inject(key, defaultValue, treatDefaultAsFactory = false) { 8687 // fallback to `currentRenderingInstance` so that this can be called in 8688 // a functional component 8689 const instance = currentInstance || currentRenderingInstance; 8690 if (instance) { 8691 // #2400 8692 // to support `app.use` plugins, 8693 // fallback to appContext's `provides` if the instance is at root 8694 const provides = instance.parent == null 8695 ? instance.vnode.appContext && instance.vnode.appContext.provides 8696 : instance.parent.provides; 8697 if (provides && key in provides) { 8698 // TS doesn't allow symbol as index type 8699 return provides[key]; 8700 } 8701 else if (arguments.length > 1) { 8702 return treatDefaultAsFactory && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(defaultValue) 8703 ? defaultValue.call(instance.proxy) 8704 : defaultValue; 8705 } 8706 else if ((true)) { 8707 warn(`injection "${String(key)}" not found.`); 8708 } 8709 } 8710 else if ((true)) { 8711 warn(`inject() can only be used inside setup() or functional components.`); 8712 } 8713} 8714 8715// Simple effect. 8716function watchEffect(effect, options) { 8717 return doWatch(effect, null, options); 8718} 8719function watchPostEffect(effect, options) { 8720 return doWatch(effect, null, (( true) 8721 ? Object.assign(Object.assign({}, options), { flush: 'post' }) : 0)); 8722} 8723function watchSyncEffect(effect, options) { 8724 return doWatch(effect, null, (( true) 8725 ? Object.assign(Object.assign({}, options), { flush: 'sync' }) : 0)); 8726} 8727// initial value for watchers to trigger on undefined initial values 8728const INITIAL_WATCHER_VALUE = {}; 8729// implementation 8730function watch(source, cb, options) { 8731 if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(cb)) { 8732 warn(`\`watch(fn, options?)\` signature has been moved to a separate API. ` + 8733 `Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` + 8734 `supports \`watch(source, cb, options?) signature.`); 8735 } 8736 return doWatch(source, cb, options); 8737} 8738function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) { 8739 if (( true) && !cb) { 8740 if (immediate !== undefined) { 8741 warn(`watch() "immediate" option is only respected when using the ` + 8742 `watch(source, callback, options?) signature.`); 8743 } 8744 if (deep !== undefined) { 8745 warn(`watch() "deep" option is only respected when using the ` + 8746 `watch(source, callback, options?) signature.`); 8747 } 8748 } 8749 const warnInvalidSource = (s) => { 8750 warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` + 8751 `a reactive object, or an array of these types.`); 8752 }; 8753 const instance = currentInstance; 8754 let getter; 8755 let forceTrigger = false; 8756 let isMultiSource = false; 8757 if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(source)) { 8758 getter = () => source.value; 8759 forceTrigger = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isShallow)(source); 8760 } 8761 else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(source)) { 8762 getter = () => source; 8763 deep = true; 8764 } 8765 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(source)) { 8766 isMultiSource = true; 8767 forceTrigger = source.some(s => (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(s) || (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isShallow)(s)); 8768 getter = () => source.map(s => { 8769 if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(s)) { 8770 return s.value; 8771 } 8772 else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(s)) { 8773 return traverse(s); 8774 } 8775 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(s)) { 8776 return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */); 8777 } 8778 else { 8779 ( true) && warnInvalidSource(s); 8780 } 8781 }); 8782 } 8783 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(source)) { 8784 if (cb) { 8785 // getter with cb 8786 getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */); 8787 } 8788 else { 8789 // no cb -> simple effect 8790 getter = () => { 8791 if (instance && instance.isUnmounted) { 8792 return; 8793 } 8794 if (cleanup) { 8795 cleanup(); 8796 } 8797 return callWithAsyncErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onCleanup]); 8798 }; 8799 } 8800 } 8801 else { 8802 getter = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP; 8803 ( true) && warnInvalidSource(source); 8804 } 8805 if (cb && deep) { 8806 const baseGetter = getter; 8807 getter = () => traverse(baseGetter()); 8808 } 8809 let cleanup; 8810 let onCleanup = (fn) => { 8811 cleanup = effect.onStop = () => { 8812 callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */); 8813 }; 8814 }; 8815 // in SSR there is no need to setup an actual effect, and it should be noop 8816 // unless it's eager 8817 if (isInSSRComponentSetup) { 8818 // we will also not call the invalidate callback (+ runner is not set up) 8819 onCleanup = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP; 8820 if (!cb) { 8821 getter(); 8822 } 8823 else if (immediate) { 8824 callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [ 8825 getter(), 8826 isMultiSource ? [] : undefined, 8827 onCleanup 8828 ]); 8829 } 8830 return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP; 8831 } 8832 let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE; 8833 const job = () => { 8834 if (!effect.active) { 8835 return; 8836 } 8837 if (cb) { 8838 // watch(source, cb) 8839 const newValue = effect.run(); 8840 if (deep || 8841 forceTrigger || 8842 (isMultiSource 8843 ? newValue.some((v, i) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasChanged)(v, oldValue[i])) 8844 : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasChanged)(newValue, oldValue)) || 8845 (false )) { 8846 // cleanup before running cb again 8847 if (cleanup) { 8848 cleanup(); 8849 } 8850 callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [ 8851 newValue, 8852 // pass undefined as the old value when it's changed for the first time 8853 oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue, 8854 onCleanup 8855 ]); 8856 oldValue = newValue; 8857 } 8858 } 8859 else { 8860 // watchEffect 8861 effect.run(); 8862 } 8863 }; 8864 // important: mark the job as a watcher callback so that scheduler knows 8865 // it is allowed to self-trigger (#1727) 8866 job.allowRecurse = !!cb; 8867 let scheduler; 8868 if (flush === 'sync') { 8869 scheduler = job; // the scheduler function gets called directly 8870 } 8871 else if (flush === 'post') { 8872 scheduler = () => queuePostRenderEffect(job, instance && instance.suspense); 8873 } 8874 else { 8875 // default: 'pre' 8876 scheduler = () => queuePreFlushCb(job); 8877 } 8878 const effect = new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect(getter, scheduler); 8879 if ((true)) { 8880 effect.onTrack = onTrack; 8881 effect.onTrigger = onTrigger; 8882 } 8883 // initial run 8884 if (cb) { 8885 if (immediate) { 8886 job(); 8887 } 8888 else { 8889 oldValue = effect.run(); 8890 } 8891 } 8892 else if (flush === 'post') { 8893 queuePostRenderEffect(effect.run.bind(effect), instance && instance.suspense); 8894 } 8895 else { 8896 effect.run(); 8897 } 8898 return () => { 8899 effect.stop(); 8900 if (instance && instance.scope) { 8901 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(instance.scope.effects, effect); 8902 } 8903 }; 8904} 8905// this.$watch 8906function instanceWatch(source, value, options) { 8907 const publicThis = this.proxy; 8908 const getter = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(source) 8909 ? source.includes('.') 8910 ? createPathGetter(publicThis, source) 8911 : () => publicThis[source] 8912 : source.bind(publicThis, publicThis); 8913 let cb; 8914 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) { 8915 cb = value; 8916 } 8917 else { 8918 cb = value.handler; 8919 options = value; 8920 } 8921 const cur = currentInstance; 8922 setCurrentInstance(this); 8923 const res = doWatch(getter, cb.bind(publicThis), options); 8924 if (cur) { 8925 setCurrentInstance(cur); 8926 } 8927 else { 8928 unsetCurrentInstance(); 8929 } 8930 return res; 8931} 8932function createPathGetter(ctx, path) { 8933 const segments = path.split('.'); 8934 return () => { 8935 let cur = ctx; 8936 for (let i = 0; i < segments.length && cur; i++) { 8937 cur = cur[segments[i]]; 8938 } 8939 return cur; 8940 }; 8941} 8942function traverse(value, seen) { 8943 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(value) || value["__v_skip" /* SKIP */]) { 8944 return value; 8945 } 8946 seen = seen || new Set(); 8947 if (seen.has(value)) { 8948 return value; 8949 } 8950 seen.add(value); 8951 if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(value)) { 8952 traverse(value.value, seen); 8953 } 8954 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) { 8955 for (let i = 0; i < value.length; i++) { 8956 traverse(value[i], seen); 8957 } 8958 } 8959 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isMap)(value)) { 8960 value.forEach((v) => { 8961 traverse(v, seen); 8962 }); 8963 } 8964 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value)) { 8965 for (const key in value) { 8966 traverse(value[key], seen); 8967 } 8968 } 8969 return value; 8970} 8971 8972function useTransitionState() { 8973 const state = { 8974 isMounted: false, 8975 isLeaving: false, 8976 isUnmounting: false, 8977 leavingVNodes: new Map() 8978 }; 8979 onMounted(() => { 8980 state.isMounted = true; 8981 }); 8982 onBeforeUnmount(() => { 8983 state.isUnmounting = true; 8984 }); 8985 return state; 8986} 8987const TransitionHookValidator = [Function, Array]; 8988const BaseTransitionImpl = { 8989 name: `BaseTransition`, 8990 props: { 8991 mode: String, 8992 appear: Boolean, 8993 persisted: Boolean, 8994 // enter 8995 onBeforeEnter: TransitionHookValidator, 8996 onEnter: TransitionHookValidator, 8997 onAfterEnter: TransitionHookValidator, 8998 onEnterCancelled: TransitionHookValidator, 8999 // leave 9000 onBeforeLeave: TransitionHookValidator, 9001 onLeave: TransitionHookValidator, 9002 onAfterLeave: TransitionHookValidator, 9003 onLeaveCancelled: TransitionHookValidator, 9004 // appear 9005 onBeforeAppear: TransitionHookValidator, 9006 onAppear: TransitionHookValidator, 9007 onAfterAppear: TransitionHookValidator, 9008 onAppearCancelled: TransitionHookValidator 9009 }, 9010 setup(props, { slots }) { 9011 const instance = getCurrentInstance(); 9012 const state = useTransitionState(); 9013 let prevTransitionKey; 9014 return () => { 9015 const children = slots.default && getTransitionRawChildren(slots.default(), true); 9016 if (!children || !children.length) { 9017 return; 9018 } 9019 let child = children[0]; 9020 if (children.length > 1) { 9021 let hasFound = false; 9022 // locate first non-comment child 9023 for (const c of children) { 9024 if (c.type !== Comment) { 9025 if (( true) && hasFound) { 9026 // warn more than one non-comment child 9027 warn('<transition> can only be used on a single element or component. ' + 9028 'Use <transition-group> for lists.'); 9029 break; 9030 } 9031 child = c; 9032 hasFound = true; 9033 if (false) 9034 {} 9035 } 9036 } 9037 } 9038 // there's no need to track reactivity for these props so use the raw 9039 // props for a bit better perf 9040 const rawProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props); 9041 const { mode } = rawProps; 9042 // check mode 9043 if (( true) && 9044 mode && 9045 mode !== 'in-out' && 9046 mode !== 'out-in' && 9047 mode !== 'default') { 9048 warn(`invalid <transition> mode: ${mode}`); 9049 } 9050 if (state.isLeaving) { 9051 return emptyPlaceholder(child); 9052 } 9053 // in the case of <transition><keep-alive/></transition>, we need to 9054 // compare the type of the kept-alive children. 9055 const innerChild = getKeepAliveChild(child); 9056 if (!innerChild) { 9057 return emptyPlaceholder(child); 9058 } 9059 const enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance); 9060 setTransitionHooks(innerChild, enterHooks); 9061 const oldChild = instance.subTree; 9062 const oldInnerChild = oldChild && getKeepAliveChild(oldChild); 9063 let transitionKeyChanged = false; 9064 const { getTransitionKey } = innerChild.type; 9065 if (getTransitionKey) { 9066 const key = getTransitionKey(); 9067 if (prevTransitionKey === undefined) { 9068 prevTransitionKey = key; 9069 } 9070 else if (key !== prevTransitionKey) { 9071 prevTransitionKey = key; 9072 transitionKeyChanged = true; 9073 } 9074 } 9075 // handle mode 9076 if (oldInnerChild && 9077 oldInnerChild.type !== Comment && 9078 (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) { 9079 const leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance); 9080 // update old tree's hooks in case of dynamic transition 9081 setTransitionHooks(oldInnerChild, leavingHooks); 9082 // switching between different views 9083 if (mode === 'out-in') { 9084 state.isLeaving = true; 9085 // return placeholder node and queue update when leave finishes 9086 leavingHooks.afterLeave = () => { 9087 state.isLeaving = false; 9088 instance.update(); 9089 }; 9090 return emptyPlaceholder(child); 9091 } 9092 else if (mode === 'in-out' && innerChild.type !== Comment) { 9093 leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => { 9094 const leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild); 9095 leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild; 9096 // early removal callback 9097 el._leaveCb = () => { 9098 earlyRemove(); 9099 el._leaveCb = undefined; 9100 delete enterHooks.delayedLeave; 9101 }; 9102 enterHooks.delayedLeave = delayedLeave; 9103 }; 9104 } 9105 } 9106 return child; 9107 }; 9108 } 9109}; 9110// export the public type for h/tsx inference 9111// also to avoid inline import() in generated d.ts files 9112const BaseTransition = BaseTransitionImpl; 9113function getLeavingNodesForType(state, vnode) { 9114 const { leavingVNodes } = state; 9115 let leavingVNodesCache = leavingVNodes.get(vnode.type); 9116 if (!leavingVNodesCache) { 9117 leavingVNodesCache = Object.create(null); 9118 leavingVNodes.set(vnode.type, leavingVNodesCache); 9119 } 9120 return leavingVNodesCache; 9121} 9122// The transition hooks are attached to the vnode as vnode.transition 9123// and will be called at appropriate timing in the renderer. 9124function resolveTransitionHooks(vnode, props, state, instance) { 9125 const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props; 9126 const key = String(vnode.key); 9127 const leavingVNodesCache = getLeavingNodesForType(state, vnode); 9128 const callHook = (hook, args) => { 9129 hook && 9130 callWithAsyncErrorHandling(hook, instance, 9 /* TRANSITION_HOOK */, args); 9131 }; 9132 const callAsyncHook = (hook, args) => { 9133 const done = args[1]; 9134 callHook(hook, args); 9135 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)) { 9136 if (hook.every(hook => hook.length <= 1)) 9137 done(); 9138 } 9139 else if (hook.length <= 1) { 9140 done(); 9141 } 9142 }; 9143 const hooks = { 9144 mode, 9145 persisted, 9146 beforeEnter(el) { 9147 let hook = onBeforeEnter; 9148 if (!state.isMounted) { 9149 if (appear) { 9150 hook = onBeforeAppear || onBeforeEnter; 9151 } 9152 else { 9153 return; 9154 } 9155 } 9156 // for same element (v-show) 9157 if (el._leaveCb) { 9158 el._leaveCb(true /* cancelled */); 9159 } 9160 // for toggled element with same key (v-if) 9161 const leavingVNode = leavingVNodesCache[key]; 9162 if (leavingVNode && 9163 isSameVNodeType(vnode, leavingVNode) && 9164 leavingVNode.el._leaveCb) { 9165 // force early removal (not cancelled) 9166 leavingVNode.el._leaveCb(); 9167 } 9168 callHook(hook, [el]); 9169 }, 9170 enter(el) { 9171 let hook = onEnter; 9172 let afterHook = onAfterEnter; 9173 let cancelHook = onEnterCancelled; 9174 if (!state.isMounted) { 9175 if (appear) { 9176 hook = onAppear || onEnter; 9177 afterHook = onAfterAppear || onAfterEnter; 9178 cancelHook = onAppearCancelled || onEnterCancelled; 9179 } 9180 else { 9181 return; 9182 } 9183 } 9184 let called = false; 9185 const done = (el._enterCb = (cancelled) => { 9186 if (called) 9187 return; 9188 called = true; 9189 if (cancelled) { 9190 callHook(cancelHook, [el]); 9191 } 9192 else { 9193 callHook(afterHook, [el]); 9194 } 9195 if (hooks.delayedLeave) { 9196 hooks.delayedLeave(); 9197 } 9198 el._enterCb = undefined; 9199 }); 9200 if (hook) { 9201 callAsyncHook(hook, [el, done]); 9202 } 9203 else { 9204 done(); 9205 } 9206 }, 9207 leave(el, remove) { 9208 const key = String(vnode.key); 9209 if (el._enterCb) { 9210 el._enterCb(true /* cancelled */); 9211 } 9212 if (state.isUnmounting) { 9213 return remove(); 9214 } 9215 callHook(onBeforeLeave, [el]); 9216 let called = false; 9217 const done = (el._leaveCb = (cancelled) => { 9218 if (called) 9219 return; 9220 called = true; 9221 remove(); 9222 if (cancelled) { 9223 callHook(onLeaveCancelled, [el]); 9224 } 9225 else { 9226 callHook(onAfterLeave, [el]); 9227 } 9228 el._leaveCb = undefined; 9229 if (leavingVNodesCache[key] === vnode) { 9230 delete leavingVNodesCache[key]; 9231 } 9232 }); 9233 leavingVNodesCache[key] = vnode; 9234 if (onLeave) { 9235 callAsyncHook(onLeave, [el, done]); 9236 } 9237 else { 9238 done(); 9239 } 9240 }, 9241 clone(vnode) { 9242 return resolveTransitionHooks(vnode, props, state, instance); 9243 } 9244 }; 9245 return hooks; 9246} 9247// the placeholder really only handles one special case: KeepAlive 9248// in the case of a KeepAlive in a leave phase we need to return a KeepAlive 9249// placeholder with empty content to avoid the KeepAlive instance from being 9250// unmounted. 9251function emptyPlaceholder(vnode) { 9252 if (isKeepAlive(vnode)) { 9253 vnode = cloneVNode(vnode); 9254 vnode.children = null; 9255 return vnode; 9256 } 9257} 9258function getKeepAliveChild(vnode) { 9259 return isKeepAlive(vnode) 9260 ? vnode.children 9261 ? vnode.children[0] 9262 : undefined 9263 : vnode; 9264} 9265function setTransitionHooks(vnode, hooks) { 9266 if (vnode.shapeFlag & 6 /* COMPONENT */ && vnode.component) { 9267 setTransitionHooks(vnode.component.subTree, hooks); 9268 } 9269 else if (vnode.shapeFlag & 128 /* SUSPENSE */) { 9270 vnode.ssContent.transition = hooks.clone(vnode.ssContent); 9271 vnode.ssFallback.transition = hooks.clone(vnode.ssFallback); 9272 } 9273 else { 9274 vnode.transition = hooks; 9275 } 9276} 9277function getTransitionRawChildren(children, keepComment = false, parentKey) { 9278 let ret = []; 9279 let keyedFragmentCount = 0; 9280 for (let i = 0; i < children.length; i++) { 9281 let child = children[i]; 9282 // #5360 inherit parent key in case of <template v-for> 9283 const key = parentKey == null 9284 ? child.key 9285 : String(parentKey) + String(child.key != null ? child.key : i); 9286 // handle fragment children case, e.g. v-for 9287 if (child.type === Fragment) { 9288 if (child.patchFlag & 128 /* KEYED_FRAGMENT */) 9289 keyedFragmentCount++; 9290 ret = ret.concat(getTransitionRawChildren(child.children, keepComment, key)); 9291 } 9292 // comment placeholders should be skipped, e.g. v-if 9293 else if (keepComment || child.type !== Comment) { 9294 ret.push(key != null ? cloneVNode(child, { key }) : child); 9295 } 9296 } 9297 // #1126 if a transition children list contains multiple sub fragments, these 9298 // fragments will be merged into a flat children array. Since each v-for 9299 // fragment may contain different static bindings inside, we need to de-op 9300 // these children to force full diffs to ensure correct behavior. 9301 if (keyedFragmentCount > 1) { 9302 for (let i = 0; i < ret.length; i++) { 9303 ret[i].patchFlag = -2 /* BAIL */; 9304 } 9305 } 9306 return ret; 9307} 9308 9309// implementation, close to no-op 9310function defineComponent(options) { 9311 return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(options) ? { setup: options, name: options.name } : options; 9312} 9313 9314const isAsyncWrapper = (i) => !!i.type.__asyncLoader; 9315function defineAsyncComponent(source) { 9316 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(source)) { 9317 source = { loader: source }; 9318 } 9319 const { loader, loadingComponent, errorComponent, delay = 200, timeout, // undefined = never times out 9320 suspensible = true, onError: userOnError } = source; 9321 let pendingRequest = null; 9322 let resolvedComp; 9323 let retries = 0; 9324 const retry = () => { 9325 retries++; 9326 pendingRequest = null; 9327 return load(); 9328 }; 9329 const load = () => { 9330 let thisRequest; 9331 return (pendingRequest || 9332 (thisRequest = pendingRequest = 9333 loader() 9334 .catch(err => { 9335 err = err instanceof Error ? err : new Error(String(err)); 9336 if (userOnError) { 9337 return new Promise((resolve, reject) => { 9338 const userRetry = () => resolve(retry()); 9339 const userFail = () => reject(err); 9340 userOnError(err, userRetry, userFail, retries + 1); 9341 }); 9342 } 9343 else { 9344 throw err; 9345 } 9346 }) 9347 .then((comp) => { 9348 if (thisRequest !== pendingRequest && pendingRequest) { 9349 return pendingRequest; 9350 } 9351 if (( true) && !comp) { 9352 warn(`Async component loader resolved to undefined. ` + 9353 `If you are using retry(), make sure to return its return value.`); 9354 } 9355 // interop module default 9356 if (comp && 9357 (comp.__esModule || comp[Symbol.toStringTag] === 'Module')) { 9358 comp = comp.default; 9359 } 9360 if (( true) && comp && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(comp) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) { 9361 throw new Error(`Invalid async component load result: ${comp}`); 9362 } 9363 resolvedComp = comp; 9364 return comp; 9365 }))); 9366 }; 9367 return defineComponent({ 9368 name: 'AsyncComponentWrapper', 9369 __asyncLoader: load, 9370 get __asyncResolved() { 9371 return resolvedComp; 9372 }, 9373 setup() { 9374 const instance = currentInstance; 9375 // already resolved 9376 if (resolvedComp) { 9377 return () => createInnerComp(resolvedComp, instance); 9378 } 9379 const onError = (err) => { 9380 pendingRequest = null; 9381 handleError(err, instance, 13 /* ASYNC_COMPONENT_LOADER */, !errorComponent /* do not throw in dev if user provided error component */); 9382 }; 9383 // suspense-controlled or SSR. 9384 if ((suspensible && instance.suspense) || 9385 (isInSSRComponentSetup)) { 9386 return load() 9387 .then(comp => { 9388 return () => createInnerComp(comp, instance); 9389 }) 9390 .catch(err => { 9391 onError(err); 9392 return () => errorComponent 9393 ? createVNode(errorComponent, { 9394 error: err 9395 }) 9396 : null; 9397 }); 9398 } 9399 const loaded = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 9400 const error = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)(); 9401 const delayed = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)(!!delay); 9402 if (delay) { 9403 setTimeout(() => { 9404 delayed.value = false; 9405 }, delay); 9406 } 9407 if (timeout != null) { 9408 setTimeout(() => { 9409 if (!loaded.value && !error.value) { 9410 const err = new Error(`Async component timed out after ${timeout}ms.`); 9411 onError(err); 9412 error.value = err; 9413 } 9414 }, timeout); 9415 } 9416 load() 9417 .then(() => { 9418 loaded.value = true; 9419 if (instance.parent && isKeepAlive(instance.parent.vnode)) { 9420 // parent is keep-alive, force update so the loaded component's 9421 // name is taken into account 9422 queueJob(instance.parent.update); 9423 } 9424 }) 9425 .catch(err => { 9426 onError(err); 9427 error.value = err; 9428 }); 9429 return () => { 9430 if (loaded.value && resolvedComp) { 9431 return createInnerComp(resolvedComp, instance); 9432 } 9433 else if (error.value && errorComponent) { 9434 return createVNode(errorComponent, { 9435 error: error.value 9436 }); 9437 } 9438 else if (loadingComponent && !delayed.value) { 9439 return createVNode(loadingComponent); 9440 } 9441 }; 9442 } 9443 }); 9444} 9445function createInnerComp(comp, { vnode: { ref, props, children, shapeFlag }, parent }) { 9446 const vnode = createVNode(comp, props, children); 9447 // ensure inner component inherits the async wrapper's ref owner 9448 vnode.ref = ref; 9449 return vnode; 9450} 9451 9452const isKeepAlive = (vnode) => vnode.type.__isKeepAlive; 9453const KeepAliveImpl = { 9454 name: `KeepAlive`, 9455 // Marker for special handling inside the renderer. We are not using a === 9456 // check directly on KeepAlive in the renderer, because importing it directly 9457 // would prevent it from being tree-shaken. 9458 __isKeepAlive: true, 9459 props: { 9460 include: [String, RegExp, Array], 9461 exclude: [String, RegExp, Array], 9462 max: [String, Number] 9463 }, 9464 setup(props, { slots }) { 9465 const instance = getCurrentInstance(); 9466 // KeepAlive communicates with the instantiated renderer via the 9467 // ctx where the renderer passes in its internals, 9468 // and the KeepAlive instance exposes activate/deactivate implementations. 9469 // The whole point of this is to avoid importing KeepAlive directly in the 9470 // renderer to facilitate tree-shaking. 9471 const sharedContext = instance.ctx; 9472 // if the internal renderer is not registered, it indicates that this is server-side rendering, 9473 // for KeepAlive, we just need to render its children 9474 if (!sharedContext.renderer) { 9475 return () => { 9476 const children = slots.default && slots.default(); 9477 return children && children.length === 1 ? children[0] : children; 9478 }; 9479 } 9480 const cache = new Map(); 9481 const keys = new Set(); 9482 let current = null; 9483 if (true) { 9484 instance.__v_cache = cache; 9485 } 9486 const parentSuspense = instance.suspense; 9487 const { renderer: { p: patch, m: move, um: _unmount, o: { createElement } } } = sharedContext; 9488 const storageContainer = createElement('div'); 9489 sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => { 9490 const instance = vnode.component; 9491 move(vnode, container, anchor, 0 /* ENTER */, parentSuspense); 9492 // in case props have changed 9493 patch(instance.vnode, vnode, container, anchor, instance, parentSuspense, isSVG, vnode.slotScopeIds, optimized); 9494 queuePostRenderEffect(() => { 9495 instance.isDeactivated = false; 9496 if (instance.a) { 9497 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.a); 9498 } 9499 const vnodeHook = vnode.props && vnode.props.onVnodeMounted; 9500 if (vnodeHook) { 9501 invokeVNodeHook(vnodeHook, instance.parent, vnode); 9502 } 9503 }, parentSuspense); 9504 if (true) { 9505 // Update components tree 9506 devtoolsComponentAdded(instance); 9507 } 9508 }; 9509 sharedContext.deactivate = (vnode) => { 9510 const instance = vnode.component; 9511 move(vnode, storageContainer, null, 1 /* LEAVE */, parentSuspense); 9512 queuePostRenderEffect(() => { 9513 if (instance.da) { 9514 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.da); 9515 } 9516 const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted; 9517 if (vnodeHook) { 9518 invokeVNodeHook(vnodeHook, instance.parent, vnode); 9519 } 9520 instance.isDeactivated = true; 9521 }, parentSuspense); 9522 if (true) { 9523 // Update components tree 9524 devtoolsComponentAdded(instance); 9525 } 9526 }; 9527 function unmount(vnode) { 9528 // reset the shapeFlag so it can be properly unmounted 9529 resetShapeFlag(vnode); 9530 _unmount(vnode, instance, parentSuspense, true); 9531 } 9532 function pruneCache(filter) { 9533 cache.forEach((vnode, key) => { 9534 const name = getComponentName(vnode.type); 9535 if (name && (!filter || !filter(name))) { 9536 pruneCacheEntry(key); 9537 } 9538 }); 9539 } 9540 function pruneCacheEntry(key) { 9541 const cached = cache.get(key); 9542 if (!current || cached.type !== current.type) { 9543 unmount(cached); 9544 } 9545 else if (current) { 9546 // current active instance should no longer be kept-alive. 9547 // we can't unmount it now but it might be later, so reset its flag now. 9548 resetShapeFlag(current); 9549 } 9550 cache.delete(key); 9551 keys.delete(key); 9552 } 9553 // prune cache on include/exclude prop change 9554 watch(() => [props.include, props.exclude], ([include, exclude]) => { 9555 include && pruneCache(name => matches(include, name)); 9556 exclude && pruneCache(name => !matches(exclude, name)); 9557 }, 9558 // prune post-render after `current` has been updated 9559 { flush: 'post', deep: true }); 9560 // cache sub tree after render 9561 let pendingCacheKey = null; 9562 const cacheSubtree = () => { 9563 // fix #1621, the pendingCacheKey could be 0 9564 if (pendingCacheKey != null) { 9565 cache.set(pendingCacheKey, getInnerChild(instance.subTree)); 9566 } 9567 }; 9568 onMounted(cacheSubtree); 9569 onUpdated(cacheSubtree); 9570 onBeforeUnmount(() => { 9571 cache.forEach(cached => { 9572 const { subTree, suspense } = instance; 9573 const vnode = getInnerChild(subTree); 9574 if (cached.type === vnode.type) { 9575 // current instance will be unmounted as part of keep-alive's unmount 9576 resetShapeFlag(vnode); 9577 // but invoke its deactivated hook here 9578 const da = vnode.component.da; 9579 da && queuePostRenderEffect(da, suspense); 9580 return; 9581 } 9582 unmount(cached); 9583 }); 9584 }); 9585 return () => { 9586 pendingCacheKey = null; 9587 if (!slots.default) { 9588 return null; 9589 } 9590 const children = slots.default(); 9591 const rawVNode = children[0]; 9592 if (children.length > 1) { 9593 if ((true)) { 9594 warn(`KeepAlive should contain exactly one component child.`); 9595 } 9596 current = null; 9597 return children; 9598 } 9599 else if (!isVNode(rawVNode) || 9600 (!(rawVNode.shapeFlag & 4 /* STATEFUL_COMPONENT */) && 9601 !(rawVNode.shapeFlag & 128 /* SUSPENSE */))) { 9602 current = null; 9603 return rawVNode; 9604 } 9605 let vnode = getInnerChild(rawVNode); 9606 const comp = vnode.type; 9607 // for async components, name check should be based in its loaded 9608 // inner component if available 9609 const name = getComponentName(isAsyncWrapper(vnode) 9610 ? vnode.type.__asyncResolved || {} 9611 : comp); 9612 const { include, exclude, max } = props; 9613 if ((include && (!name || !matches(include, name))) || 9614 (exclude && name && matches(exclude, name))) { 9615 current = vnode; 9616 return rawVNode; 9617 } 9618 const key = vnode.key == null ? comp : vnode.key; 9619 const cachedVNode = cache.get(key); 9620 // clone vnode if it's reused because we are going to mutate it 9621 if (vnode.el) { 9622 vnode = cloneVNode(vnode); 9623 if (rawVNode.shapeFlag & 128 /* SUSPENSE */) { 9624 rawVNode.ssContent = vnode; 9625 } 9626 } 9627 // #1513 it's possible for the returned vnode to be cloned due to attr 9628 // fallthrough or scopeId, so the vnode here may not be the final vnode 9629 // that is mounted. Instead of caching it directly, we store the pending 9630 // key and cache `instance.subTree` (the normalized vnode) in 9631 // beforeMount/beforeUpdate hooks. 9632 pendingCacheKey = key; 9633 if (cachedVNode) { 9634 // copy over mounted state 9635 vnode.el = cachedVNode.el; 9636 vnode.component = cachedVNode.component; 9637 if (vnode.transition) { 9638 // recursively update transition hooks on subTree 9639 setTransitionHooks(vnode, vnode.transition); 9640 } 9641 // avoid vnode being mounted as fresh 9642 vnode.shapeFlag |= 512 /* COMPONENT_KEPT_ALIVE */; 9643 // make this key the freshest 9644 keys.delete(key); 9645 keys.add(key); 9646 } 9647 else { 9648 keys.add(key); 9649 // prune oldest entry 9650 if (max && keys.size > parseInt(max, 10)) { 9651 pruneCacheEntry(keys.values().next().value); 9652 } 9653 } 9654 // avoid vnode being unmounted 9655 vnode.shapeFlag |= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */; 9656 current = vnode; 9657 return isSuspense(rawVNode.type) ? rawVNode : vnode; 9658 }; 9659 } 9660}; 9661// export the public type for h/tsx inference 9662// also to avoid inline import() in generated d.ts files 9663const KeepAlive = KeepAliveImpl; 9664function matches(pattern, name) { 9665 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(pattern)) { 9666 return pattern.some((p) => matches(p, name)); 9667 } 9668 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(pattern)) { 9669 return pattern.split(',').includes(name); 9670 } 9671 else if (pattern.test) { 9672 return pattern.test(name); 9673 } 9674 /* istanbul ignore next */ 9675 return false; 9676} 9677function onActivated(hook, target) { 9678 registerKeepAliveHook(hook, "a" /* ACTIVATED */, target); 9679} 9680function onDeactivated(hook, target) { 9681 registerKeepAliveHook(hook, "da" /* DEACTIVATED */, target); 9682} 9683function registerKeepAliveHook(hook, type, target = currentInstance) { 9684 // cache the deactivate branch check wrapper for injected hooks so the same 9685 // hook can be properly deduped by the scheduler. "__wdc" stands for "with 9686 // deactivation check". 9687 const wrappedHook = hook.__wdc || 9688 (hook.__wdc = () => { 9689 // only fire the hook if the target instance is NOT in a deactivated branch. 9690 let current = target; 9691 while (current) { 9692 if (current.isDeactivated) { 9693 return; 9694 } 9695 current = current.parent; 9696 } 9697 return hook(); 9698 }); 9699 injectHook(type, wrappedHook, target); 9700 // In addition to registering it on the target instance, we walk up the parent 9701 // chain and register it on all ancestor instances that are keep-alive roots. 9702 // This avoids the need to walk the entire component tree when invoking these 9703 // hooks, and more importantly, avoids the need to track child components in 9704 // arrays. 9705 if (target) { 9706 let current = target.parent; 9707 while (current && current.parent) { 9708 if (isKeepAlive(current.parent.vnode)) { 9709 injectToKeepAliveRoot(wrappedHook, type, target, current); 9710 } 9711 current = current.parent; 9712 } 9713 } 9714} 9715function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { 9716 // injectHook wraps the original for error handling, so make sure to remove 9717 // the wrapped version. 9718 const injected = injectHook(type, hook, keepAliveRoot, true /* prepend */); 9719 onUnmounted(() => { 9720 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(keepAliveRoot[type], injected); 9721 }, target); 9722} 9723function resetShapeFlag(vnode) { 9724 let shapeFlag = vnode.shapeFlag; 9725 if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) { 9726 shapeFlag -= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */; 9727 } 9728 if (shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) { 9729 shapeFlag -= 512 /* COMPONENT_KEPT_ALIVE */; 9730 } 9731 vnode.shapeFlag = shapeFlag; 9732} 9733function getInnerChild(vnode) { 9734 return vnode.shapeFlag & 128 /* SUSPENSE */ ? vnode.ssContent : vnode; 9735} 9736 9737function injectHook(type, hook, target = currentInstance, prepend = false) { 9738 if (target) { 9739 const hooks = target[type] || (target[type] = []); 9740 // cache the error handling wrapper for injected hooks so the same hook 9741 // can be properly deduped by the scheduler. "__weh" stands for "with error 9742 // handling". 9743 const wrappedHook = hook.__weh || 9744 (hook.__weh = (...args) => { 9745 if (target.isUnmounted) { 9746 return; 9747 } 9748 // disable tracking inside all lifecycle hooks 9749 // since they can potentially be called inside effects. 9750 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)(); 9751 // Set currentInstance during hook invocation. 9752 // This assumes the hook does not synchronously trigger other hooks, which 9753 // can only be false when the user does something really funky. 9754 setCurrentInstance(target); 9755 const res = callWithAsyncErrorHandling(hook, target, type, args); 9756 unsetCurrentInstance(); 9757 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)(); 9758 return res; 9759 }); 9760 if (prepend) { 9761 hooks.unshift(wrappedHook); 9762 } 9763 else { 9764 hooks.push(wrappedHook); 9765 } 9766 return wrappedHook; 9767 } 9768 else if ((true)) { 9769 const apiName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(ErrorTypeStrings[type].replace(/ hook$/, '')); 9770 warn(`${apiName} is called when there is no active component instance to be ` + 9771 `associated with. ` + 9772 `Lifecycle injection APIs can only be used during execution of setup().` + 9773 (` If you are using async setup(), make sure to register lifecycle ` + 9774 `hooks before the first await statement.` 9775 )); 9776 } 9777} 9778const createHook = (lifecycle) => (hook, target = currentInstance) => 9779// post-create lifecycle registrations are noops during SSR (except for serverPrefetch) 9780(!isInSSRComponentSetup || lifecycle === "sp" /* SERVER_PREFETCH */) && 9781 injectHook(lifecycle, hook, target); 9782const onBeforeMount = createHook("bm" /* BEFORE_MOUNT */); 9783const onMounted = createHook("m" /* MOUNTED */); 9784const onBeforeUpdate = createHook("bu" /* BEFORE_UPDATE */); 9785const onUpdated = createHook("u" /* UPDATED */); 9786const onBeforeUnmount = createHook("bum" /* BEFORE_UNMOUNT */); 9787const onUnmounted = createHook("um" /* UNMOUNTED */); 9788const onServerPrefetch = createHook("sp" /* SERVER_PREFETCH */); 9789const onRenderTriggered = createHook("rtg" /* RENDER_TRIGGERED */); 9790const onRenderTracked = createHook("rtc" /* RENDER_TRACKED */); 9791function onErrorCaptured(hook, target = currentInstance) { 9792 injectHook("ec" /* ERROR_CAPTURED */, hook, target); 9793} 9794 9795/** 9796Runtime helper for applying directives to a vnode. Example usage: 9797 9798const comp = resolveComponent('comp') 9799const foo = resolveDirective('foo') 9800const bar = resolveDirective('bar') 9801 9802return withDirectives(h(comp), [ 9803 [foo, this.x], 9804 [bar, this.y] 9805]) 9806*/ 9807function validateDirectiveName(name) { 9808 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isBuiltInDirective)(name)) { 9809 warn('Do not use built-in directive ids as custom directive id: ' + name); 9810 } 9811} 9812/** 9813 * Adds directives to a VNode. 9814 */ 9815function withDirectives(vnode, directives) { 9816 const internalInstance = currentRenderingInstance; 9817 if (internalInstance === null) { 9818 ( true) && warn(`withDirectives can only be used inside render functions.`); 9819 return vnode; 9820 } 9821 const instance = getExposeProxy(internalInstance) || 9822 internalInstance.proxy; 9823 const bindings = vnode.dirs || (vnode.dirs = []); 9824 for (let i = 0; i < directives.length; i++) { 9825 let [dir, value, arg, modifiers = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ] = directives[i]; 9826 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(dir)) { 9827 dir = { 9828 mounted: dir, 9829 updated: dir 9830 }; 9831 } 9832 if (dir.deep) { 9833 traverse(value); 9834 } 9835 bindings.push({ 9836 dir, 9837 instance, 9838 value, 9839 oldValue: void 0, 9840 arg, 9841 modifiers 9842 }); 9843 } 9844 return vnode; 9845} 9846function invokeDirectiveHook(vnode, prevVNode, instance, name) { 9847 const bindings = vnode.dirs; 9848 const oldBindings = prevVNode && prevVNode.dirs; 9849 for (let i = 0; i < bindings.length; i++) { 9850 const binding = bindings[i]; 9851 if (oldBindings) { 9852 binding.oldValue = oldBindings[i].value; 9853 } 9854 let hook = binding.dir[name]; 9855 if (hook) { 9856 // disable tracking inside all lifecycle hooks 9857 // since they can potentially be called inside effects. 9858 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)(); 9859 callWithAsyncErrorHandling(hook, instance, 8 /* DIRECTIVE_HOOK */, [ 9860 vnode.el, 9861 binding, 9862 vnode, 9863 prevVNode 9864 ]); 9865 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)(); 9866 } 9867 } 9868} 9869 9870const COMPONENTS = 'components'; 9871const DIRECTIVES = 'directives'; 9872/** 9873 * @private 9874 */ 9875function resolveComponent(name, maybeSelfReference) { 9876 return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name; 9877} 9878const NULL_DYNAMIC_COMPONENT = Symbol(); 9879/** 9880 * @private 9881 */ 9882function resolveDynamicComponent(component) { 9883 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(component)) { 9884 return resolveAsset(COMPONENTS, component, false) || component; 9885 } 9886 else { 9887 // invalid types will fallthrough to createVNode and raise warning 9888 return (component || NULL_DYNAMIC_COMPONENT); 9889 } 9890} 9891/** 9892 * @private 9893 */ 9894function resolveDirective(name) { 9895 return resolveAsset(DIRECTIVES, name); 9896} 9897// implementation 9898function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) { 9899 const instance = currentRenderingInstance || currentInstance; 9900 if (instance) { 9901 const Component = instance.type; 9902 // explicit self name has highest priority 9903 if (type === COMPONENTS) { 9904 const selfName = getComponentName(Component, false /* do not include inferred name to avoid breaking existing code */); 9905 if (selfName && 9906 (selfName === name || 9907 selfName === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name) || 9908 selfName === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name)))) { 9909 return Component; 9910 } 9911 } 9912 const res = 9913 // local registration 9914 // check instance[type] first which is resolved for options API 9915 resolve(instance[type] || Component[type], name) || 9916 // global registration 9917 resolve(instance.appContext[type], name); 9918 if (!res && maybeSelfReference) { 9919 // fallback to implicit self-reference 9920 return Component; 9921 } 9922 if (( true) && warnMissing && !res) { 9923 const extra = type === COMPONENTS 9924 ? `\nIf this is a native custom element, make sure to exclude it from ` + 9925 `component resolution via compilerOptions.isCustomElement.` 9926 : ``; 9927 warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`); 9928 } 9929 return res; 9930 } 9931 else if ((true)) { 9932 warn(`resolve${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)(type.slice(0, -1))} ` + 9933 `can only be used in render() or setup().`); 9934 } 9935} 9936function resolve(registry, name) { 9937 return (registry && 9938 (registry[name] || 9939 registry[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name)] || 9940 registry[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name))])); 9941} 9942 9943/** 9944 * Actual implementation 9945 */ 9946function renderList(source, renderItem, cache, index) { 9947 let ret; 9948 const cached = (cache && cache[index]); 9949 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(source) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(source)) { 9950 ret = new Array(source.length); 9951 for (let i = 0, l = source.length; i < l; i++) { 9952 ret[i] = renderItem(source[i], i, undefined, cached && cached[i]); 9953 } 9954 } 9955 else if (typeof source === 'number') { 9956 if (( true) && !Number.isInteger(source)) { 9957 warn(`The v-for range expect an integer value but got ${source}.`); 9958 } 9959 ret = new Array(source); 9960 for (let i = 0; i < source; i++) { 9961 ret[i] = renderItem(i + 1, i, undefined, cached && cached[i]); 9962 } 9963 } 9964 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(source)) { 9965 if (source[Symbol.iterator]) { 9966 ret = Array.from(source, (item, i) => renderItem(item, i, undefined, cached && cached[i])); 9967 } 9968 else { 9969 const keys = Object.keys(source); 9970 ret = new Array(keys.length); 9971 for (let i = 0, l = keys.length; i < l; i++) { 9972 const key = keys[i]; 9973 ret[i] = renderItem(source[key], key, i, cached && cached[i]); 9974 } 9975 } 9976 } 9977 else { 9978 ret = []; 9979 } 9980 if (cache) { 9981 cache[index] = ret; 9982 } 9983 return ret; 9984} 9985 9986/** 9987 * Compiler runtime helper for creating dynamic slots object 9988 * @private 9989 */ 9990function createSlots(slots, dynamicSlots) { 9991 for (let i = 0; i < dynamicSlots.length; i++) { 9992 const slot = dynamicSlots[i]; 9993 // array of dynamic slot generated by <template v-for="..." #[...]> 9994 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(slot)) { 9995 for (let j = 0; j < slot.length; j++) { 9996 slots[slot[j].name] = slot[j].fn; 9997 } 9998 } 9999 else if (slot) { 10000 // conditional single slot generated by <template v-if="..." #foo> 10001 slots[slot.name] = slot.fn; 10002 } 10003 } 10004 return slots; 10005} 10006 10007/** 10008 * Compiler runtime helper for rendering `<slot/>` 10009 * @private 10010 */ 10011function renderSlot(slots, name, props = {}, 10012// this is not a user-facing function, so the fallback is always generated by 10013// the compiler and guaranteed to be a function returning an array 10014fallback, noSlotted) { 10015 if (currentRenderingInstance.isCE || 10016 (currentRenderingInstance.parent && 10017 isAsyncWrapper(currentRenderingInstance.parent) && 10018 currentRenderingInstance.parent.isCE)) { 10019 return createVNode('slot', name === 'default' ? null : { name }, fallback && fallback()); 10020 } 10021 let slot = slots[name]; 10022 if (( true) && slot && slot.length > 1) { 10023 warn(`SSR-optimized slot function detected in a non-SSR-optimized render ` + 10024 `function. You need to mark this component with $dynamic-slots in the ` + 10025 `parent template.`); 10026 slot = () => []; 10027 } 10028 // a compiled slot disables block tracking by default to avoid manual 10029 // invocation interfering with template-based block tracking, but in 10030 // `renderSlot` we can be sure that it's template-based so we can force 10031 // enable it. 10032 if (slot && slot._c) { 10033 slot._d = false; 10034 } 10035 openBlock(); 10036 const validSlotContent = slot && ensureValidVNode(slot(props)); 10037 const rendered = createBlock(Fragment, { key: props.key || `_${name}` }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 /* STABLE */ 10038 ? 64 /* STABLE_FRAGMENT */ 10039 : -2 /* BAIL */); 10040 if (!noSlotted && rendered.scopeId) { 10041 rendered.slotScopeIds = [rendered.scopeId + '-s']; 10042 } 10043 if (slot && slot._c) { 10044 slot._d = true; 10045 } 10046 return rendered; 10047} 10048function ensureValidVNode(vnodes) { 10049 return vnodes.some(child => { 10050 if (!isVNode(child)) 10051 return true; 10052 if (child.type === Comment) 10053 return false; 10054 if (child.type === Fragment && 10055 !ensureValidVNode(child.children)) 10056 return false; 10057 return true; 10058 }) 10059 ? vnodes 10060 : null; 10061} 10062 10063/** 10064 * For prefixing keys in v-on="obj" with "on" 10065 * @private 10066 */ 10067function toHandlers(obj) { 10068 const ret = {}; 10069 if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(obj)) { 10070 warn(`v-on with no argument expects an object value.`); 10071 return ret; 10072 } 10073 for (const key in obj) { 10074 ret[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(key)] = obj[key]; 10075 } 10076 return ret; 10077} 10078 10079/** 10080 * #2437 In Vue 3, functional components do not have a public instance proxy but 10081 * they exist in the internal parent chain. For code that relies on traversing 10082 * public $parent chains, skip functional ones and go to the parent instead. 10083 */ 10084const getPublicInstance = (i) => { 10085 if (!i) 10086 return null; 10087 if (isStatefulComponent(i)) 10088 return getExposeProxy(i) || i.proxy; 10089 return getPublicInstance(i.parent); 10090}; 10091const publicPropertiesMap = 10092// Move PURE marker to new line to workaround compiler discarding it 10093// due to type annotation 10094/*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), { 10095 $: i => i, 10096 $el: i => i.vnode.el, 10097 $data: i => i.data, 10098 $props: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.props) : 0), 10099 $attrs: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.attrs) : 0), 10100 $slots: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.slots) : 0), 10101 $refs: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.refs) : 0), 10102 $parent: i => getPublicInstance(i.parent), 10103 $root: i => getPublicInstance(i.root), 10104 $emit: i => i.emit, 10105 $options: i => ( true ? resolveMergedOptions(i) : 0), 10106 $forceUpdate: i => i.f || (i.f = () => queueJob(i.update)), 10107 $nextTick: i => i.n || (i.n = nextTick.bind(i.proxy)), 10108 $watch: i => ( true ? instanceWatch.bind(i) : 0) 10109}); 10110const isReservedPrefix = (key) => key === '_' || key === '$'; 10111const PublicInstanceProxyHandlers = { 10112 get({ _: instance }, key) { 10113 const { ctx, setupState, data, props, accessCache, type, appContext } = instance; 10114 // for internal formatters to know that this is a Vue instance 10115 if (( true) && key === '__isVue') { 10116 return true; 10117 } 10118 // prioritize <script setup> bindings during dev. 10119 // this allows even properties that start with _ or $ to be used - so that 10120 // it aligns with the production behavior where the render fn is inlined and 10121 // indeed has access to all declared variables. 10122 if (( true) && 10123 setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && 10124 setupState.__isScriptSetup && 10125 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) { 10126 return setupState[key]; 10127 } 10128 // data / props / ctx 10129 // This getter gets called for every property access on the render context 10130 // during render and is a major hotspot. The most expensive part of this 10131 // is the multiple hasOwn() calls. It's much faster to do a simple property 10132 // access on a plain object, so we use an accessCache object (with null 10133 // prototype) to memoize what access type a key corresponds to. 10134 let normalizedProps; 10135 if (key[0] !== '$') { 10136 const n = accessCache[key]; 10137 if (n !== undefined) { 10138 switch (n) { 10139 case 1 /* SETUP */: 10140 return setupState[key]; 10141 case 2 /* DATA */: 10142 return data[key]; 10143 case 4 /* CONTEXT */: 10144 return ctx[key]; 10145 case 3 /* PROPS */: 10146 return props[key]; 10147 // default: just fallthrough 10148 } 10149 } 10150 else if (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) { 10151 accessCache[key] = 1 /* SETUP */; 10152 return setupState[key]; 10153 } 10154 else if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) { 10155 accessCache[key] = 2 /* DATA */; 10156 return data[key]; 10157 } 10158 else if ( 10159 // only cache other properties when instance has declared (thus stable) 10160 // props 10161 (normalizedProps = instance.propsOptions[0]) && 10162 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(normalizedProps, key)) { 10163 accessCache[key] = 3 /* PROPS */; 10164 return props[key]; 10165 } 10166 else if (ctx !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key)) { 10167 accessCache[key] = 4 /* CONTEXT */; 10168 return ctx[key]; 10169 } 10170 else if ( false || shouldCacheAccess) { 10171 accessCache[key] = 0 /* OTHER */; 10172 } 10173 } 10174 const publicGetter = publicPropertiesMap[key]; 10175 let cssModule, globalProperties; 10176 // public $xxx properties 10177 if (publicGetter) { 10178 if (key === '$attrs') { 10179 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.track)(instance, "get" /* GET */, key); 10180 ( true) && markAttrsAccessed(); 10181 } 10182 return publicGetter(instance); 10183 } 10184 else if ( 10185 // css module (injected by vue-loader) 10186 (cssModule = type.__cssModules) && 10187 (cssModule = cssModule[key])) { 10188 return cssModule; 10189 } 10190 else if (ctx !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key)) { 10191 // user may set custom properties to `this` that start with `$` 10192 accessCache[key] = 4 /* CONTEXT */; 10193 return ctx[key]; 10194 } 10195 else if ( 10196 // global properties 10197 ((globalProperties = appContext.config.globalProperties), 10198 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(globalProperties, key))) { 10199 { 10200 return globalProperties[key]; 10201 } 10202 } 10203 else if (( true) && 10204 currentRenderingInstance && 10205 (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(key) || 10206 // #1091 avoid internal isRef/isVNode checks on component instance leading 10207 // to infinite warning loop 10208 key.indexOf('__v') !== 0)) { 10209 if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && isReservedPrefix(key[0]) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) { 10210 warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` + 10211 `character ("$" or "_") and is not proxied on the render context.`); 10212 } 10213 else if (instance === currentRenderingInstance) { 10214 warn(`Property ${JSON.stringify(key)} was accessed during render ` + 10215 `but is not defined on instance.`); 10216 } 10217 } 10218 }, 10219 set({ _: instance }, key, value) { 10220 const { data, setupState, ctx } = instance; 10221 if (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) { 10222 setupState[key] = value; 10223 return true; 10224 } 10225 else if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) { 10226 data[key] = value; 10227 return true; 10228 } 10229 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(instance.props, key)) { 10230 ( true) && 10231 warn(`Attempting to mutate prop "${key}". Props are readonly.`, instance); 10232 return false; 10233 } 10234 if (key[0] === '$' && key.slice(1) in instance) { 10235 ( true) && 10236 warn(`Attempting to mutate public property "${key}". ` + 10237 `Properties starting with $ are reserved and readonly.`, instance); 10238 return false; 10239 } 10240 else { 10241 if (( true) && key in instance.appContext.config.globalProperties) { 10242 Object.defineProperty(ctx, key, { 10243 enumerable: true, 10244 configurable: true, 10245 value 10246 }); 10247 } 10248 else { 10249 ctx[key] = value; 10250 } 10251 } 10252 return true; 10253 }, 10254 has({ _: { data, setupState, accessCache, ctx, appContext, propsOptions } }, key) { 10255 let normalizedProps; 10256 return (!!accessCache[key] || 10257 (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) || 10258 (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) || 10259 ((normalizedProps = propsOptions[0]) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(normalizedProps, key)) || 10260 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key) || 10261 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(publicPropertiesMap, key) || 10262 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(appContext.config.globalProperties, key)); 10263 }, 10264 defineProperty(target, key, descriptor) { 10265 if (descriptor.get != null) { 10266 // invalidate key cache of a getter based property #5417 10267 target._.accessCache[key] = 0; 10268 } 10269 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(descriptor, 'value')) { 10270 this.set(target, key, descriptor.value, null); 10271 } 10272 return Reflect.defineProperty(target, key, descriptor); 10273 } 10274}; 10275if (true) { 10276 PublicInstanceProxyHandlers.ownKeys = (target) => { 10277 warn(`Avoid app logic that relies on enumerating keys on a component instance. ` + 10278 `The keys will be empty in production mode to avoid performance overhead.`); 10279 return Reflect.ownKeys(target); 10280 }; 10281} 10282const RuntimeCompiledPublicInstanceProxyHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, PublicInstanceProxyHandlers, { 10283 get(target, key) { 10284 // fast path for unscopables when using `with` block 10285 if (key === Symbol.unscopables) { 10286 return; 10287 } 10288 return PublicInstanceProxyHandlers.get(target, key, target); 10289 }, 10290 has(_, key) { 10291 const has = key[0] !== '_' && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isGloballyWhitelisted)(key); 10292 if (( true) && !has && PublicInstanceProxyHandlers.has(_, key)) { 10293 warn(`Property ${JSON.stringify(key)} should not start with _ which is a reserved prefix for Vue internals.`); 10294 } 10295 return has; 10296 } 10297}); 10298// dev only 10299// In dev mode, the proxy target exposes the same properties as seen on `this` 10300// for easier console inspection. In prod mode it will be an empty object so 10301// these properties definitions can be skipped. 10302function createDevRenderContext(instance) { 10303 const target = {}; 10304 // expose internal instance for proxy handlers 10305 Object.defineProperty(target, `_`, { 10306 configurable: true, 10307 enumerable: false, 10308 get: () => instance 10309 }); 10310 // expose public properties 10311 Object.keys(publicPropertiesMap).forEach(key => { 10312 Object.defineProperty(target, key, { 10313 configurable: true, 10314 enumerable: false, 10315 get: () => publicPropertiesMap[key](instance), 10316 // intercepted by the proxy so no need for implementation, 10317 // but needed to prevent set errors 10318 set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP 10319 }); 10320 }); 10321 return target; 10322} 10323// dev only 10324function exposePropsOnRenderContext(instance) { 10325 const { ctx, propsOptions: [propsOptions] } = instance; 10326 if (propsOptions) { 10327 Object.keys(propsOptions).forEach(key => { 10328 Object.defineProperty(ctx, key, { 10329 enumerable: true, 10330 configurable: true, 10331 get: () => instance.props[key], 10332 set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP 10333 }); 10334 }); 10335 } 10336} 10337// dev only 10338function exposeSetupStateOnRenderContext(instance) { 10339 const { ctx, setupState } = instance; 10340 Object.keys((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(setupState)).forEach(key => { 10341 if (!setupState.__isScriptSetup) { 10342 if (isReservedPrefix(key[0])) { 10343 warn(`setup() return property ${JSON.stringify(key)} should not start with "$" or "_" ` + 10344 `which are reserved prefixes for Vue internals.`); 10345 return; 10346 } 10347 Object.defineProperty(ctx, key, { 10348 enumerable: true, 10349 configurable: true, 10350 get: () => setupState[key], 10351 set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP 10352 }); 10353 } 10354 }); 10355} 10356 10357function createDuplicateChecker() { 10358 const cache = Object.create(null); 10359 return (type, key) => { 10360 if (cache[key]) { 10361 warn(`${type} property "${key}" is already defined in ${cache[key]}.`); 10362 } 10363 else { 10364 cache[key] = type; 10365 } 10366 }; 10367} 10368let shouldCacheAccess = true; 10369function applyOptions(instance) { 10370 const options = resolveMergedOptions(instance); 10371 const publicThis = instance.proxy; 10372 const ctx = instance.ctx; 10373 // do not cache property access on public proxy during state initialization 10374 shouldCacheAccess = false; 10375 // call beforeCreate first before accessing other options since 10376 // the hook may mutate resolved options (#2791) 10377 if (options.beforeCreate) { 10378 callHook(options.beforeCreate, instance, "bc" /* BEFORE_CREATE */); 10379 } 10380 const { 10381 // state 10382 data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions, 10383 // lifecycle 10384 created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render, renderTracked, renderTriggered, errorCaptured, serverPrefetch, 10385 // public API 10386 expose, inheritAttrs, 10387 // assets 10388 components, directives, filters } = options; 10389 const checkDuplicateProperties = ( true) ? createDuplicateChecker() : 0; 10390 if ((true)) { 10391 const [propsOptions] = instance.propsOptions; 10392 if (propsOptions) { 10393 for (const key in propsOptions) { 10394 checkDuplicateProperties("Props" /* PROPS */, key); 10395 } 10396 } 10397 } 10398 // options initialization order (to be consistent with Vue 2): 10399 // - props (already done outside of this function) 10400 // - inject 10401 // - methods 10402 // - data (deferred since it relies on `this` access) 10403 // - computed 10404 // - watch (deferred since it relies on `this` access) 10405 if (injectOptions) { 10406 resolveInjections(injectOptions, ctx, checkDuplicateProperties, instance.appContext.config.unwrapInjectedRef); 10407 } 10408 if (methods) { 10409 for (const key in methods) { 10410 const methodHandler = methods[key]; 10411 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(methodHandler)) { 10412 // In dev mode, we use the `createRenderContext` function to define 10413 // methods to the proxy target, and those are read-only but 10414 // reconfigurable, so it needs to be redefined here 10415 if ((true)) { 10416 Object.defineProperty(ctx, key, { 10417 value: methodHandler.bind(publicThis), 10418 configurable: true, 10419 enumerable: true, 10420 writable: true 10421 }); 10422 } 10423 else {} 10424 if ((true)) { 10425 checkDuplicateProperties("Methods" /* METHODS */, key); 10426 } 10427 } 10428 else if ((true)) { 10429 warn(`Method "${key}" has type "${typeof methodHandler}" in the component definition. ` + 10430 `Did you reference the function correctly?`); 10431 } 10432 } 10433 } 10434 if (dataOptions) { 10435 if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(dataOptions)) { 10436 warn(`The data option must be a function. ` + 10437 `Plain object usage is no longer supported.`); 10438 } 10439 const data = dataOptions.call(publicThis, publicThis); 10440 if (( true) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(data)) { 10441 warn(`data() returned a Promise - note data() cannot be async; If you ` + 10442 `intend to perform data fetching before component renders, use ` + 10443 `async setup() + <Suspense>.`); 10444 } 10445 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(data)) { 10446 ( true) && warn(`data() should return an object.`); 10447 } 10448 else { 10449 instance.data = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.reactive)(data); 10450 if ((true)) { 10451 for (const key in data) { 10452 checkDuplicateProperties("Data" /* DATA */, key); 10453 // expose data on ctx during dev 10454 if (!isReservedPrefix(key[0])) { 10455 Object.defineProperty(ctx, key, { 10456 configurable: true, 10457 enumerable: true, 10458 get: () => data[key], 10459 set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP 10460 }); 10461 } 10462 } 10463 } 10464 } 10465 } 10466 // state initialization complete at this point - start caching access 10467 shouldCacheAccess = true; 10468 if (computedOptions) { 10469 for (const key in computedOptions) { 10470 const opt = computedOptions[key]; 10471 const get = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt) 10472 ? opt.bind(publicThis, publicThis) 10473 : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt.get) 10474 ? opt.get.bind(publicThis, publicThis) 10475 : _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP; 10476 if (( true) && get === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP) { 10477 warn(`Computed property "${key}" has no getter.`); 10478 } 10479 const set = !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt.set) 10480 ? opt.set.bind(publicThis) 10481 : ( true) 10482 ? () => { 10483 warn(`Write operation failed: computed property "${key}" is readonly.`); 10484 } 10485 : 0; 10486 const c = computed({ 10487 get, 10488 set 10489 }); 10490 Object.defineProperty(ctx, key, { 10491 enumerable: true, 10492 configurable: true, 10493 get: () => c.value, 10494 set: v => (c.value = v) 10495 }); 10496 if ((true)) { 10497 checkDuplicateProperties("Computed" /* COMPUTED */, key); 10498 } 10499 } 10500 } 10501 if (watchOptions) { 10502 for (const key in watchOptions) { 10503 createWatcher(watchOptions[key], ctx, publicThis, key); 10504 } 10505 } 10506 if (provideOptions) { 10507 const provides = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(provideOptions) 10508 ? provideOptions.call(publicThis) 10509 : provideOptions; 10510 Reflect.ownKeys(provides).forEach(key => { 10511 provide(key, provides[key]); 10512 }); 10513 } 10514 if (created) { 10515 callHook(created, instance, "c" /* CREATED */); 10516 } 10517 function registerLifecycleHook(register, hook) { 10518 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)) { 10519 hook.forEach(_hook => register(_hook.bind(publicThis))); 10520 } 10521 else if (hook) { 10522 register(hook.bind(publicThis)); 10523 } 10524 } 10525 registerLifecycleHook(onBeforeMount, beforeMount); 10526 registerLifecycleHook(onMounted, mounted); 10527 registerLifecycleHook(onBeforeUpdate, beforeUpdate); 10528 registerLifecycleHook(onUpdated, updated); 10529 registerLifecycleHook(onActivated, activated); 10530 registerLifecycleHook(onDeactivated, deactivated); 10531 registerLifecycleHook(onErrorCaptured, errorCaptured); 10532 registerLifecycleHook(onRenderTracked, renderTracked); 10533 registerLifecycleHook(onRenderTriggered, renderTriggered); 10534 registerLifecycleHook(onBeforeUnmount, beforeUnmount); 10535 registerLifecycleHook(onUnmounted, unmounted); 10536 registerLifecycleHook(onServerPrefetch, serverPrefetch); 10537 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(expose)) { 10538 if (expose.length) { 10539 const exposed = instance.exposed || (instance.exposed = {}); 10540 expose.forEach(key => { 10541 Object.defineProperty(exposed, key, { 10542 get: () => publicThis[key], 10543 set: val => (publicThis[key] = val) 10544 }); 10545 }); 10546 } 10547 else if (!instance.exposed) { 10548 instance.exposed = {}; 10549 } 10550 } 10551 // options that are handled when creating the instance but also need to be 10552 // applied from mixins 10553 if (render && instance.render === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP) { 10554 instance.render = render; 10555 } 10556 if (inheritAttrs != null) { 10557 instance.inheritAttrs = inheritAttrs; 10558 } 10559 // asset options. 10560 if (components) 10561 instance.components = components; 10562 if (directives) 10563 instance.directives = directives; 10564} 10565function resolveInjections(injectOptions, ctx, checkDuplicateProperties = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP, unwrapRef = false) { 10566 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(injectOptions)) { 10567 injectOptions = normalizeInject(injectOptions); 10568 } 10569 for (const key in injectOptions) { 10570 const opt = injectOptions[key]; 10571 let injected; 10572 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(opt)) { 10573 if ('default' in opt) { 10574 injected = inject(opt.from || key, opt.default, true /* treat default function as factory */); 10575 } 10576 else { 10577 injected = inject(opt.from || key); 10578 } 10579 } 10580 else { 10581 injected = inject(opt); 10582 } 10583 if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(injected)) { 10584 // TODO remove the check in 3.3 10585 if (unwrapRef) { 10586 Object.defineProperty(ctx, key, { 10587 enumerable: true, 10588 configurable: true, 10589 get: () => injected.value, 10590 set: v => (injected.value = v) 10591 }); 10592 } 10593 else { 10594 if ((true)) { 10595 warn(`injected property "${key}" is a ref and will be auto-unwrapped ` + 10596 `and no longer needs \`.value\` in the next minor release. ` + 10597 `To opt-in to the new behavior now, ` + 10598 `set \`app.config.unwrapInjectedRef = true\` (this config is ` + 10599 `temporary and will not be needed in the future.)`); 10600 } 10601 ctx[key] = injected; 10602 } 10603 } 10604 else { 10605 ctx[key] = injected; 10606 } 10607 if ((true)) { 10608 checkDuplicateProperties("Inject" /* INJECT */, key); 10609 } 10610 } 10611} 10612function callHook(hook, instance, type) { 10613 callWithAsyncErrorHandling((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook) 10614 ? hook.map(h => h.bind(instance.proxy)) 10615 : hook.bind(instance.proxy), instance, type); 10616} 10617function createWatcher(raw, ctx, publicThis, key) { 10618 const getter = key.includes('.') 10619 ? createPathGetter(publicThis, key) 10620 : () => publicThis[key]; 10621 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(raw)) { 10622 const handler = ctx[raw]; 10623 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handler)) { 10624 watch(getter, handler); 10625 } 10626 else if ((true)) { 10627 warn(`Invalid watch handler specified by key "${raw}"`, handler); 10628 } 10629 } 10630 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(raw)) { 10631 watch(getter, raw.bind(publicThis)); 10632 } 10633 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(raw)) { 10634 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) { 10635 raw.forEach(r => createWatcher(r, ctx, publicThis, key)); 10636 } 10637 else { 10638 const handler = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(raw.handler) 10639 ? raw.handler.bind(publicThis) 10640 : ctx[raw.handler]; 10641 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handler)) { 10642 watch(getter, handler, raw); 10643 } 10644 else if ((true)) { 10645 warn(`Invalid watch handler specified by key "${raw.handler}"`, handler); 10646 } 10647 } 10648 } 10649 else if ((true)) { 10650 warn(`Invalid watch option: "${key}"`, raw); 10651 } 10652} 10653/** 10654 * Resolve merged options and cache it on the component. 10655 * This is done only once per-component since the merging does not involve 10656 * instances. 10657 */ 10658function resolveMergedOptions(instance) { 10659 const base = instance.type; 10660 const { mixins, extends: extendsOptions } = base; 10661 const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext; 10662 const cached = cache.get(base); 10663 let resolved; 10664 if (cached) { 10665 resolved = cached; 10666 } 10667 else if (!globalMixins.length && !mixins && !extendsOptions) { 10668 { 10669 resolved = base; 10670 } 10671 } 10672 else { 10673 resolved = {}; 10674 if (globalMixins.length) { 10675 globalMixins.forEach(m => mergeOptions(resolved, m, optionMergeStrategies, true)); 10676 } 10677 mergeOptions(resolved, base, optionMergeStrategies); 10678 } 10679 cache.set(base, resolved); 10680 return resolved; 10681} 10682function mergeOptions(to, from, strats, asMixin = false) { 10683 const { mixins, extends: extendsOptions } = from; 10684 if (extendsOptions) { 10685 mergeOptions(to, extendsOptions, strats, true); 10686 } 10687 if (mixins) { 10688 mixins.forEach((m) => mergeOptions(to, m, strats, true)); 10689 } 10690 for (const key in from) { 10691 if (asMixin && key === 'expose') { 10692 ( true) && 10693 warn(`"expose" option is ignored when declared in mixins or extends. ` + 10694 `It should only be declared in the base component itself.`); 10695 } 10696 else { 10697 const strat = internalOptionMergeStrats[key] || (strats && strats[key]); 10698 to[key] = strat ? strat(to[key], from[key]) : from[key]; 10699 } 10700 } 10701 return to; 10702} 10703const internalOptionMergeStrats = { 10704 data: mergeDataFn, 10705 props: mergeObjectOptions, 10706 emits: mergeObjectOptions, 10707 // objects 10708 methods: mergeObjectOptions, 10709 computed: mergeObjectOptions, 10710 // lifecycle 10711 beforeCreate: mergeAsArray, 10712 created: mergeAsArray, 10713 beforeMount: mergeAsArray, 10714 mounted: mergeAsArray, 10715 beforeUpdate: mergeAsArray, 10716 updated: mergeAsArray, 10717 beforeDestroy: mergeAsArray, 10718 beforeUnmount: mergeAsArray, 10719 destroyed: mergeAsArray, 10720 unmounted: mergeAsArray, 10721 activated: mergeAsArray, 10722 deactivated: mergeAsArray, 10723 errorCaptured: mergeAsArray, 10724 serverPrefetch: mergeAsArray, 10725 // assets 10726 components: mergeObjectOptions, 10727 directives: mergeObjectOptions, 10728 // watch 10729 watch: mergeWatchOptions, 10730 // provide / inject 10731 provide: mergeDataFn, 10732 inject: mergeInject 10733}; 10734function mergeDataFn(to, from) { 10735 if (!from) { 10736 return to; 10737 } 10738 if (!to) { 10739 return from; 10740 } 10741 return function mergedDataFn() { 10742 return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend))((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(to) ? to.call(this, this) : to, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(from) ? from.call(this, this) : from); 10743 }; 10744} 10745function mergeInject(to, from) { 10746 return mergeObjectOptions(normalizeInject(to), normalizeInject(from)); 10747} 10748function normalizeInject(raw) { 10749 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) { 10750 const res = {}; 10751 for (let i = 0; i < raw.length; i++) { 10752 res[raw[i]] = raw[i]; 10753 } 10754 return res; 10755 } 10756 return raw; 10757} 10758function mergeAsArray(to, from) { 10759 return to ? [...new Set([].concat(to, from))] : from; 10760} 10761function mergeObjectOptions(to, from) { 10762 return to ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), to), from) : from; 10763} 10764function mergeWatchOptions(to, from) { 10765 if (!to) 10766 return from; 10767 if (!from) 10768 return to; 10769 const merged = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), to); 10770 for (const key in from) { 10771 merged[key] = mergeAsArray(to[key], from[key]); 10772 } 10773 return merged; 10774} 10775 10776function initProps(instance, rawProps, isStateful, // result of bitwise flag comparison 10777isSSR = false) { 10778 const props = {}; 10779 const attrs = {}; 10780 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(attrs, InternalObjectKey, 1); 10781 instance.propsDefaults = Object.create(null); 10782 setFullProps(instance, rawProps, props, attrs); 10783 // ensure all declared prop keys are present 10784 for (const key in instance.propsOptions[0]) { 10785 if (!(key in props)) { 10786 props[key] = undefined; 10787 } 10788 } 10789 // validation 10790 if ((true)) { 10791 validateProps(rawProps || {}, props, instance); 10792 } 10793 if (isStateful) { 10794 // stateful 10795 instance.props = isSSR ? props : (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReactive)(props); 10796 } 10797 else { 10798 if (!instance.type.props) { 10799 // functional w/ optional props, props === attrs 10800 instance.props = attrs; 10801 } 10802 else { 10803 // functional w/ declared props 10804 instance.props = props; 10805 } 10806 } 10807 instance.attrs = attrs; 10808} 10809function updateProps(instance, rawProps, rawPrevProps, optimized) { 10810 const { props, attrs, vnode: { patchFlag } } = instance; 10811 const rawCurrentProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props); 10812 const [options] = instance.propsOptions; 10813 let hasAttrsChanged = false; 10814 if ( 10815 // always force full diff in dev 10816 // - #1942 if hmr is enabled with sfc component 10817 // - vite#872 non-sfc component used by sfc component 10818 !(( true) && 10819 (instance.type.__hmrId || 10820 (instance.parent && instance.parent.type.__hmrId))) && 10821 (optimized || patchFlag > 0) && 10822 !(patchFlag & 16 /* FULL_PROPS */)) { 10823 if (patchFlag & 8 /* PROPS */) { 10824 // Compiler-generated props & no keys change, just set the updated 10825 // the props. 10826 const propsToUpdate = instance.vnode.dynamicProps; 10827 for (let i = 0; i < propsToUpdate.length; i++) { 10828 let key = propsToUpdate[i]; 10829 // skip if the prop key is a declared emit event listener 10830 if (isEmitListener(instance.emitsOptions, key)) { 10831 continue; 10832 } 10833 // PROPS flag guarantees rawProps to be non-null 10834 const value = rawProps[key]; 10835 if (options) { 10836 // attr / props separation was done on init and will be consistent 10837 // in this code path, so just check if attrs have it. 10838 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(attrs, key)) { 10839 if (value !== attrs[key]) { 10840 attrs[key] = value; 10841 hasAttrsChanged = true; 10842 } 10843 } 10844 else { 10845 const camelizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key); 10846 props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false /* isAbsent */); 10847 } 10848 } 10849 else { 10850 if (value !== attrs[key]) { 10851 attrs[key] = value; 10852 hasAttrsChanged = true; 10853 } 10854 } 10855 } 10856 } 10857 } 10858 else { 10859 // full props update. 10860 if (setFullProps(instance, rawProps, props, attrs)) { 10861 hasAttrsChanged = true; 10862 } 10863 // in case of dynamic props, check if we need to delete keys from 10864 // the props object 10865 let kebabKey; 10866 for (const key in rawCurrentProps) { 10867 if (!rawProps || 10868 // for camelCase 10869 (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) && 10870 // it's possible the original props was passed in as kebab-case 10871 // and converted to camelCase (#955) 10872 ((kebabKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)) === key || !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, kebabKey)))) { 10873 if (options) { 10874 if (rawPrevProps && 10875 // for camelCase 10876 (rawPrevProps[key] !== undefined || 10877 // for kebab-case 10878 rawPrevProps[kebabKey] !== undefined)) { 10879 props[key] = resolvePropValue(options, rawCurrentProps, key, undefined, instance, true /* isAbsent */); 10880 } 10881 } 10882 else { 10883 delete props[key]; 10884 } 10885 } 10886 } 10887 // in the case of functional component w/o props declaration, props and 10888 // attrs point to the same object so it should already have been updated. 10889 if (attrs !== rawCurrentProps) { 10890 for (const key in attrs) { 10891 if (!rawProps || 10892 (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) && 10893 (!false ))) { 10894 delete attrs[key]; 10895 hasAttrsChanged = true; 10896 } 10897 } 10898 } 10899 } 10900 // trigger updates for $attrs in case it's used in component slots 10901 if (hasAttrsChanged) { 10902 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.trigger)(instance, "set" /* SET */, '$attrs'); 10903 } 10904 if ((true)) { 10905 validateProps(rawProps || {}, props, instance); 10906 } 10907} 10908function setFullProps(instance, rawProps, props, attrs) { 10909 const [options, needCastKeys] = instance.propsOptions; 10910 let hasAttrsChanged = false; 10911 let rawCastValues; 10912 if (rawProps) { 10913 for (let key in rawProps) { 10914 // key, ref are reserved and never passed down 10915 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key)) { 10916 continue; 10917 } 10918 const value = rawProps[key]; 10919 // prop option names are camelized during normalization, so to support 10920 // kebab -> camel conversion here we need to camelize the key. 10921 let camelKey; 10922 if (options && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, (camelKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key)))) { 10923 if (!needCastKeys || !needCastKeys.includes(camelKey)) { 10924 props[camelKey] = value; 10925 } 10926 else { 10927 (rawCastValues || (rawCastValues = {}))[camelKey] = value; 10928 } 10929 } 10930 else if (!isEmitListener(instance.emitsOptions, key)) { 10931 if (!(key in attrs) || value !== attrs[key]) { 10932 attrs[key] = value; 10933 hasAttrsChanged = true; 10934 } 10935 } 10936 } 10937 } 10938 if (needCastKeys) { 10939 const rawCurrentProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props); 10940 const castValues = rawCastValues || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ; 10941 for (let i = 0; i < needCastKeys.length; i++) { 10942 const key = needCastKeys[i]; 10943 props[key] = resolvePropValue(options, rawCurrentProps, key, castValues[key], instance, !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(castValues, key)); 10944 } 10945 } 10946 return hasAttrsChanged; 10947} 10948function resolvePropValue(options, props, key, value, instance, isAbsent) { 10949 const opt = options[key]; 10950 if (opt != null) { 10951 const hasDefault = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(opt, 'default'); 10952 // default values 10953 if (hasDefault && value === undefined) { 10954 const defaultValue = opt.default; 10955 if (opt.type !== Function && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(defaultValue)) { 10956 const { propsDefaults } = instance; 10957 if (key in propsDefaults) { 10958 value = propsDefaults[key]; 10959 } 10960 else { 10961 setCurrentInstance(instance); 10962 value = propsDefaults[key] = defaultValue.call(null, props); 10963 unsetCurrentInstance(); 10964 } 10965 } 10966 else { 10967 value = defaultValue; 10968 } 10969 } 10970 // boolean casting 10971 if (opt[0 /* shouldCast */]) { 10972 if (isAbsent && !hasDefault) { 10973 value = false; 10974 } 10975 else if (opt[1 /* shouldCastTrue */] && 10976 (value === '' || value === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key))) { 10977 value = true; 10978 } 10979 } 10980 } 10981 return value; 10982} 10983function normalizePropsOptions(comp, appContext, asMixin = false) { 10984 const cache = appContext.propsCache; 10985 const cached = cache.get(comp); 10986 if (cached) { 10987 return cached; 10988 } 10989 const raw = comp.props; 10990 const normalized = {}; 10991 const needCastKeys = []; 10992 // apply mixin/extends props 10993 let hasExtends = false; 10994 if ( true && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) { 10995 const extendProps = (raw) => { 10996 hasExtends = true; 10997 const [props, keys] = normalizePropsOptions(raw, appContext, true); 10998 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, props); 10999 if (keys) 11000 needCastKeys.push(...keys); 11001 }; 11002 if (!asMixin && appContext.mixins.length) { 11003 appContext.mixins.forEach(extendProps); 11004 } 11005 if (comp.extends) { 11006 extendProps(comp.extends); 11007 } 11008 if (comp.mixins) { 11009 comp.mixins.forEach(extendProps); 11010 } 11011 } 11012 if (!raw && !hasExtends) { 11013 cache.set(comp, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR); 11014 return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR; 11015 } 11016 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) { 11017 for (let i = 0; i < raw.length; i++) { 11018 if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(raw[i])) { 11019 warn(`props must be strings when using array syntax.`, raw[i]); 11020 } 11021 const normalizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(raw[i]); 11022 if (validatePropName(normalizedKey)) { 11023 normalized[normalizedKey] = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ; 11024 } 11025 } 11026 } 11027 else if (raw) { 11028 if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(raw)) { 11029 warn(`invalid props options`, raw); 11030 } 11031 for (const key in raw) { 11032 const normalizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key); 11033 if (validatePropName(normalizedKey)) { 11034 const opt = raw[key]; 11035 const prop = (normalized[normalizedKey] = 11036 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opt) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt) ? { type: opt } : opt); 11037 if (prop) { 11038 const booleanIndex = getTypeIndex(Boolean, prop.type); 11039 const stringIndex = getTypeIndex(String, prop.type); 11040 prop[0 /* shouldCast */] = booleanIndex > -1; 11041 prop[1 /* shouldCastTrue */] = 11042 stringIndex < 0 || booleanIndex < stringIndex; 11043 // if the prop needs boolean casting or default value 11044 if (booleanIndex > -1 || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(prop, 'default')) { 11045 needCastKeys.push(normalizedKey); 11046 } 11047 } 11048 } 11049 } 11050 } 11051 const res = [normalized, needCastKeys]; 11052 cache.set(comp, res); 11053 return res; 11054} 11055function validatePropName(key) { 11056 if (key[0] !== '$') { 11057 return true; 11058 } 11059 else if ((true)) { 11060 warn(`Invalid prop name: "${key}" is a reserved property.`); 11061 } 11062 return false; 11063} 11064// use function string name to check type constructors 11065// so that it works across vms / iframes. 11066function getType(ctor) { 11067 const match = ctor && ctor.toString().match(/^\s*function (\w+)/); 11068 return match ? match[1] : ctor === null ? 'null' : ''; 11069} 11070function isSameType(a, b) { 11071 return getType(a) === getType(b); 11072} 11073function getTypeIndex(type, expectedTypes) { 11074 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(expectedTypes)) { 11075 return expectedTypes.findIndex(t => isSameType(t, type)); 11076 } 11077 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(expectedTypes)) { 11078 return isSameType(expectedTypes, type) ? 0 : -1; 11079 } 11080 return -1; 11081} 11082/** 11083 * dev only 11084 */ 11085function validateProps(rawProps, props, instance) { 11086 const resolvedValues = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props); 11087 const options = instance.propsOptions[0]; 11088 for (const key in options) { 11089 let opt = options[key]; 11090 if (opt == null) 11091 continue; 11092 validateProp(key, resolvedValues[key], opt, !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key))); 11093 } 11094} 11095/** 11096 * dev only 11097 */ 11098function validateProp(name, value, prop, isAbsent) { 11099 const { type, required, validator } = prop; 11100 // required! 11101 if (required && isAbsent) { 11102 warn('Missing required prop: "' + name + '"'); 11103 return; 11104 } 11105 // missing but optional 11106 if (value == null && !prop.required) { 11107 return; 11108 } 11109 // type check 11110 if (type != null && type !== true) { 11111 let isValid = false; 11112 const types = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(type) ? type : [type]; 11113 const expectedTypes = []; 11114 // value is valid as long as one of the specified types match 11115 for (let i = 0; i < types.length && !isValid; i++) { 11116 const { valid, expectedType } = assertType(value, types[i]); 11117 expectedTypes.push(expectedType || ''); 11118 isValid = valid; 11119 } 11120 if (!isValid) { 11121 warn(getInvalidTypeMessage(name, value, expectedTypes)); 11122 return; 11123 } 11124 } 11125 // custom validator 11126 if (validator && !validator(value)) { 11127 warn('Invalid prop: custom validator check failed for prop "' + name + '".'); 11128 } 11129} 11130const isSimpleType = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('String,Number,Boolean,Function,Symbol,BigInt'); 11131/** 11132 * dev only 11133 */ 11134function assertType(value, type) { 11135 let valid; 11136 const expectedType = getType(type); 11137 if (isSimpleType(expectedType)) { 11138 const t = typeof value; 11139 valid = t === expectedType.toLowerCase(); 11140 // for primitive wrapper objects 11141 if (!valid && t === 'object') { 11142 valid = value instanceof type; 11143 } 11144 } 11145 else if (expectedType === 'Object') { 11146 valid = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(value); 11147 } 11148 else if (expectedType === 'Array') { 11149 valid = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value); 11150 } 11151 else if (expectedType === 'null') { 11152 valid = value === null; 11153 } 11154 else { 11155 valid = value instanceof type; 11156 } 11157 return { 11158 valid, 11159 expectedType 11160 }; 11161} 11162/** 11163 * dev only 11164 */ 11165function getInvalidTypeMessage(name, value, expectedTypes) { 11166 let message = `Invalid prop: type check failed for prop "${name}".` + 11167 ` Expected ${expectedTypes.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize).join(' | ')}`; 11168 const expectedType = expectedTypes[0]; 11169 const receivedType = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toRawType)(value); 11170 const expectedValue = styleValue(value, expectedType); 11171 const receivedValue = styleValue(value, receivedType); 11172 // check if we need to specify expected value 11173 if (expectedTypes.length === 1 && 11174 isExplicable(expectedType) && 11175 !isBoolean(expectedType, receivedType)) { 11176 message += ` with value ${expectedValue}`; 11177 } 11178 message += `, got ${receivedType} `; 11179 // check if we need to specify received value 11180 if (isExplicable(receivedType)) { 11181 message += `with value ${receivedValue}.`; 11182 } 11183 return message; 11184} 11185/** 11186 * dev only 11187 */ 11188function styleValue(value, type) { 11189 if (type === 'String') { 11190 return `"${value}"`; 11191 } 11192 else if (type === 'Number') { 11193 return `${Number(value)}`; 11194 } 11195 else { 11196 return `${value}`; 11197 } 11198} 11199/** 11200 * dev only 11201 */ 11202function isExplicable(type) { 11203 const explicitTypes = ['string', 'number', 'boolean']; 11204 return explicitTypes.some(elem => type.toLowerCase() === elem); 11205} 11206/** 11207 * dev only 11208 */ 11209function isBoolean(...args) { 11210 return args.some(elem => elem.toLowerCase() === 'boolean'); 11211} 11212 11213const isInternalKey = (key) => key[0] === '_' || key === '$stable'; 11214const normalizeSlotValue = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value) 11215 ? value.map(normalizeVNode) 11216 : [normalizeVNode(value)]; 11217const normalizeSlot = (key, rawSlot, ctx) => { 11218 if (rawSlot._n) { 11219 // already normalized - #5353 11220 return rawSlot; 11221 } 11222 const normalized = withCtx((...args) => { 11223 if (( true) && currentInstance) { 11224 warn(`Slot "${key}" invoked outside of the render function: ` + 11225 `this will not track dependencies used in the slot. ` + 11226 `Invoke the slot function inside the render function instead.`); 11227 } 11228 return normalizeSlotValue(rawSlot(...args)); 11229 }, ctx); 11230 normalized._c = false; 11231 return normalized; 11232}; 11233const normalizeObjectSlots = (rawSlots, slots, instance) => { 11234 const ctx = rawSlots._ctx; 11235 for (const key in rawSlots) { 11236 if (isInternalKey(key)) 11237 continue; 11238 const value = rawSlots[key]; 11239 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) { 11240 slots[key] = normalizeSlot(key, value, ctx); 11241 } 11242 else if (value != null) { 11243 if (true) { 11244 warn(`Non-function value encountered for slot "${key}". ` + 11245 `Prefer function slots for better performance.`); 11246 } 11247 const normalized = normalizeSlotValue(value); 11248 slots[key] = () => normalized; 11249 } 11250 } 11251}; 11252const normalizeVNodeSlots = (instance, children) => { 11253 if (( true) && 11254 !isKeepAlive(instance.vnode) && 11255 !(false )) { 11256 warn(`Non-function value encountered for default slot. ` + 11257 `Prefer function slots for better performance.`); 11258 } 11259 const normalized = normalizeSlotValue(children); 11260 instance.slots.default = () => normalized; 11261}; 11262const initSlots = (instance, children) => { 11263 if (instance.vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) { 11264 const type = children._; 11265 if (type) { 11266 // users can get the shallow readonly version of the slots object through `this.$slots`, 11267 // we should avoid the proxy object polluting the slots of the internal instance 11268 instance.slots = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(children); 11269 // make compiler marker non-enumerable 11270 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(children, '_', type); 11271 } 11272 else { 11273 normalizeObjectSlots(children, (instance.slots = {})); 11274 } 11275 } 11276 else { 11277 instance.slots = {}; 11278 if (children) { 11279 normalizeVNodeSlots(instance, children); 11280 } 11281 } 11282 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(instance.slots, InternalObjectKey, 1); 11283}; 11284const updateSlots = (instance, children, optimized) => { 11285 const { vnode, slots } = instance; 11286 let needDeletionCheck = true; 11287 let deletionComparisonTarget = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ; 11288 if (vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) { 11289 const type = children._; 11290 if (type) { 11291 // compiled slots. 11292 if (( true) && isHmrUpdating) { 11293 // Parent was HMR updated so slot content may have changed. 11294 // force update slots and mark instance for hmr as well 11295 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(slots, children); 11296 } 11297 else if (optimized && type === 1 /* STABLE */) { 11298 // compiled AND stable. 11299 // no need to update, and skip stale slots removal. 11300 needDeletionCheck = false; 11301 } 11302 else { 11303 // compiled but dynamic (v-if/v-for on slots) - update slots, but skip 11304 // normalization. 11305 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(slots, children); 11306 // #2893 11307 // when rendering the optimized slots by manually written render function, 11308 // we need to delete the `slots._` flag if necessary to make subsequent updates reliable, 11309 // i.e. let the `renderSlot` create the bailed Fragment 11310 if (!optimized && type === 1 /* STABLE */) { 11311 delete slots._; 11312 } 11313 } 11314 } 11315 else { 11316 needDeletionCheck = !children.$stable; 11317 normalizeObjectSlots(children, slots); 11318 } 11319 deletionComparisonTarget = children; 11320 } 11321 else if (children) { 11322 // non slot object children (direct value) passed to a component 11323 normalizeVNodeSlots(instance, children); 11324 deletionComparisonTarget = { default: 1 }; 11325 } 11326 // delete stale slots 11327 if (needDeletionCheck) { 11328 for (const key in slots) { 11329 if (!isInternalKey(key) && !(key in deletionComparisonTarget)) { 11330 delete slots[key]; 11331 } 11332 } 11333 } 11334}; 11335 11336function createAppContext() { 11337 return { 11338 app: null, 11339 config: { 11340 isNativeTag: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NO, 11341 performance: false, 11342 globalProperties: {}, 11343 optionMergeStrategies: {}, 11344 errorHandler: undefined, 11345 warnHandler: undefined, 11346 compilerOptions: {} 11347 }, 11348 mixins: [], 11349 components: {}, 11350 directives: {}, 11351 provides: Object.create(null), 11352 optionsCache: new WeakMap(), 11353 propsCache: new WeakMap(), 11354 emitsCache: new WeakMap() 11355 }; 11356} 11357let uid = 0; 11358function createAppAPI(render, hydrate) { 11359 return function createApp(rootComponent, rootProps = null) { 11360 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(rootComponent)) { 11361 rootComponent = Object.assign({}, rootComponent); 11362 } 11363 if (rootProps != null && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(rootProps)) { 11364 ( true) && warn(`root props passed to app.mount() must be an object.`); 11365 rootProps = null; 11366 } 11367 const context = createAppContext(); 11368 const installedPlugins = new Set(); 11369 let isMounted = false; 11370 const app = (context.app = { 11371 _uid: uid++, 11372 _component: rootComponent, 11373 _props: rootProps, 11374 _container: null, 11375 _context: context, 11376 _instance: null, 11377 version, 11378 get config() { 11379 return context.config; 11380 }, 11381 set config(v) { 11382 if ((true)) { 11383 warn(`app.config cannot be replaced. Modify individual options instead.`); 11384 } 11385 }, 11386 use(plugin, ...options) { 11387 if (installedPlugins.has(plugin)) { 11388 ( true) && warn(`Plugin has already been applied to target app.`); 11389 } 11390 else if (plugin && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(plugin.install)) { 11391 installedPlugins.add(plugin); 11392 plugin.install(app, ...options); 11393 } 11394 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(plugin)) { 11395 installedPlugins.add(plugin); 11396 plugin(app, ...options); 11397 } 11398 else if ((true)) { 11399 warn(`A plugin must either be a function or an object with an "install" ` + 11400 `function.`); 11401 } 11402 return app; 11403 }, 11404 mixin(mixin) { 11405 if (true) { 11406 if (!context.mixins.includes(mixin)) { 11407 context.mixins.push(mixin); 11408 } 11409 else if ((true)) { 11410 warn('Mixin has already been applied to target app' + 11411 (mixin.name ? `: ${mixin.name}` : '')); 11412 } 11413 } 11414 else {} 11415 return app; 11416 }, 11417 component(name, component) { 11418 if ((true)) { 11419 validateComponentName(name, context.config); 11420 } 11421 if (!component) { 11422 return context.components[name]; 11423 } 11424 if (( true) && context.components[name]) { 11425 warn(`Component "${name}" has already been registered in target app.`); 11426 } 11427 context.components[name] = component; 11428 return app; 11429 }, 11430 directive(name, directive) { 11431 if ((true)) { 11432 validateDirectiveName(name); 11433 } 11434 if (!directive) { 11435 return context.directives[name]; 11436 } 11437 if (( true) && context.directives[name]) { 11438 warn(`Directive "${name}" has already been registered in target app.`); 11439 } 11440 context.directives[name] = directive; 11441 return app; 11442 }, 11443 mount(rootContainer, isHydrate, isSVG) { 11444 if (!isMounted) { 11445 // #5571 11446 if (( true) && rootContainer.__vue_app__) { 11447 warn(`There is already an app instance mounted on the host container.\n` + 11448 ` If you want to mount another app on the same host container,` + 11449 ` you need to unmount the previous app by calling \`app.unmount()\` first.`); 11450 } 11451 const vnode = createVNode(rootComponent, rootProps); 11452 // store app context on the root VNode. 11453 // this will be set on the root instance on initial mount. 11454 vnode.appContext = context; 11455 // HMR root reload 11456 if ((true)) { 11457 context.reload = () => { 11458 render(cloneVNode(vnode), rootContainer, isSVG); 11459 }; 11460 } 11461 if (isHydrate && hydrate) { 11462 hydrate(vnode, rootContainer); 11463 } 11464 else { 11465 render(vnode, rootContainer, isSVG); 11466 } 11467 isMounted = true; 11468 app._container = rootContainer; 11469 rootContainer.__vue_app__ = app; 11470 if (true) { 11471 app._instance = vnode.component; 11472 devtoolsInitApp(app, version); 11473 } 11474 return getExposeProxy(vnode.component) || vnode.component.proxy; 11475 } 11476 else if ((true)) { 11477 warn(`App has already been mounted.\n` + 11478 `If you want to remount the same app, move your app creation logic ` + 11479 `into a factory function and create fresh app instances for each ` + 11480 `mount - e.g. \`const createMyApp = () => createApp(App)\``); 11481 } 11482 }, 11483 unmount() { 11484 if (isMounted) { 11485 render(null, app._container); 11486 if (true) { 11487 app._instance = null; 11488 devtoolsUnmountApp(app); 11489 } 11490 delete app._container.__vue_app__; 11491 } 11492 else if ((true)) { 11493 warn(`Cannot unmount an app that is not mounted.`); 11494 } 11495 }, 11496 provide(key, value) { 11497 if (( true) && key in context.provides) { 11498 warn(`App already provides property with key "${String(key)}". ` + 11499 `It will be overwritten with the new value.`); 11500 } 11501 context.provides[key] = value; 11502 return app; 11503 } 11504 }); 11505 return app; 11506 }; 11507} 11508 11509/** 11510 * Function for handling a template ref 11511 */ 11512function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { 11513 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(rawRef)) { 11514 rawRef.forEach((r, i) => setRef(r, oldRawRef && ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(oldRawRef) ? oldRawRef[i] : oldRawRef), parentSuspense, vnode, isUnmount)); 11515 return; 11516 } 11517 if (isAsyncWrapper(vnode) && !isUnmount) { 11518 // when mounting async components, nothing needs to be done, 11519 // because the template ref is forwarded to inner component 11520 return; 11521 } 11522 const refValue = vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */ 11523 ? getExposeProxy(vnode.component) || vnode.component.proxy 11524 : vnode.el; 11525 const value = isUnmount ? null : refValue; 11526 const { i: owner, r: ref } = rawRef; 11527 if (( true) && !owner) { 11528 warn(`Missing ref owner context. ref cannot be used on hoisted vnodes. ` + 11529 `A vnode with ref must be created inside the render function.`); 11530 return; 11531 } 11532 const oldRef = oldRawRef && oldRawRef.r; 11533 const refs = owner.refs === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ ? (owner.refs = {}) : owner.refs; 11534 const setupState = owner.setupState; 11535 // dynamic ref changed. unset old ref 11536 if (oldRef != null && oldRef !== ref) { 11537 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(oldRef)) { 11538 refs[oldRef] = null; 11539 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, oldRef)) { 11540 setupState[oldRef] = null; 11541 } 11542 } 11543 else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(oldRef)) { 11544 oldRef.value = null; 11545 } 11546 } 11547 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(ref)) { 11548 callWithErrorHandling(ref, owner, 12 /* FUNCTION_REF */, [value, refs]); 11549 } 11550 else { 11551 const _isString = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(ref); 11552 const _isRef = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(ref); 11553 if (_isString || _isRef) { 11554 const doSet = () => { 11555 if (rawRef.f) { 11556 const existing = _isString ? refs[ref] : ref.value; 11557 if (isUnmount) { 11558 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(existing, refValue); 11559 } 11560 else { 11561 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing)) { 11562 if (_isString) { 11563 refs[ref] = [refValue]; 11564 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, ref)) { 11565 setupState[ref] = refs[ref]; 11566 } 11567 } 11568 else { 11569 ref.value = [refValue]; 11570 if (rawRef.k) 11571 refs[rawRef.k] = ref.value; 11572 } 11573 } 11574 else if (!existing.includes(refValue)) { 11575 existing.push(refValue); 11576 } 11577 } 11578 } 11579 else if (_isString) { 11580 refs[ref] = value; 11581 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, ref)) { 11582 setupState[ref] = value; 11583 } 11584 } 11585 else if (_isRef) { 11586 ref.value = value; 11587 if (rawRef.k) 11588 refs[rawRef.k] = value; 11589 } 11590 else if ((true)) { 11591 warn('Invalid template ref type:', ref, `(${typeof ref})`); 11592 } 11593 }; 11594 if (value) { 11595 doSet.id = -1; 11596 queuePostRenderEffect(doSet, parentSuspense); 11597 } 11598 else { 11599 doSet(); 11600 } 11601 } 11602 else if ((true)) { 11603 warn('Invalid template ref type:', ref, `(${typeof ref})`); 11604 } 11605 } 11606} 11607 11608let hasMismatch = false; 11609const isSVGContainer = (container) => /svg/.test(container.namespaceURI) && container.tagName !== 'foreignObject'; 11610const isComment = (node) => node.nodeType === 8 /* COMMENT */; 11611// Note: hydration is DOM-specific 11612// But we have to place it in core due to tight coupling with core - splitting 11613// it out creates a ton of unnecessary complexity. 11614// Hydration also depends on some renderer internal logic which needs to be 11615// passed in via arguments. 11616function createHydrationFunctions(rendererInternals) { 11617 const { mt: mountComponent, p: patch, o: { patchProp, createText, nextSibling, parentNode, remove, insert, createComment } } = rendererInternals; 11618 const hydrate = (vnode, container) => { 11619 if (!container.hasChildNodes()) { 11620 ( true) && 11621 warn(`Attempting to hydrate existing markup but container is empty. ` + 11622 `Performing full mount instead.`); 11623 patch(null, vnode, container); 11624 flushPostFlushCbs(); 11625 container._vnode = vnode; 11626 return; 11627 } 11628 hasMismatch = false; 11629 hydrateNode(container.firstChild, vnode, null, null, null); 11630 flushPostFlushCbs(); 11631 container._vnode = vnode; 11632 if (hasMismatch && !false) { 11633 // this error should show up in production 11634 console.error(`Hydration completed but contains mismatches.`); 11635 } 11636 }; 11637 const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => { 11638 const isFragmentStart = isComment(node) && node.data === '['; 11639 const onMismatch = () => handleMismatch(node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart); 11640 const { type, ref, shapeFlag, patchFlag } = vnode; 11641 const domType = node.nodeType; 11642 vnode.el = node; 11643 if (patchFlag === -2 /* BAIL */) { 11644 optimized = false; 11645 vnode.dynamicChildren = null; 11646 } 11647 let nextNode = null; 11648 switch (type) { 11649 case Text: 11650 if (domType !== 3 /* TEXT */) { 11651 // #5728 empty text node inside a slot can cause hydration failure 11652 // because the server rendered HTML won't contain a text node 11653 if (vnode.children === '') { 11654 insert((vnode.el = createText('')), parentNode(node), node); 11655 nextNode = node; 11656 } 11657 else { 11658 nextNode = onMismatch(); 11659 } 11660 } 11661 else { 11662 if (node.data !== vnode.children) { 11663 hasMismatch = true; 11664 ( true) && 11665 warn(`Hydration text mismatch:` + 11666 `\n- Client: ${JSON.stringify(node.data)}` + 11667 `\n- Server: ${JSON.stringify(vnode.children)}`); 11668 node.data = vnode.children; 11669 } 11670 nextNode = nextSibling(node); 11671 } 11672 break; 11673 case Comment: 11674 if (domType !== 8 /* COMMENT */ || isFragmentStart) { 11675 nextNode = onMismatch(); 11676 } 11677 else { 11678 nextNode = nextSibling(node); 11679 } 11680 break; 11681 case Static: 11682 if (domType !== 1 /* ELEMENT */ && domType !== 3 /* TEXT */) { 11683 nextNode = onMismatch(); 11684 } 11685 else { 11686 // determine anchor, adopt content 11687 nextNode = node; 11688 // if the static vnode has its content stripped during build, 11689 // adopt it from the server-rendered HTML. 11690 const needToAdoptContent = !vnode.children.length; 11691 for (let i = 0; i < vnode.staticCount; i++) { 11692 if (needToAdoptContent) 11693 vnode.children += 11694 nextNode.nodeType === 1 /* ELEMENT */ 11695 ? nextNode.outerHTML 11696 : nextNode.data; 11697 if (i === vnode.staticCount - 1) { 11698 vnode.anchor = nextNode; 11699 } 11700 nextNode = nextSibling(nextNode); 11701 } 11702 return nextNode; 11703 } 11704 break; 11705 case Fragment: 11706 if (!isFragmentStart) { 11707 nextNode = onMismatch(); 11708 } 11709 else { 11710 nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized); 11711 } 11712 break; 11713 default: 11714 if (shapeFlag & 1 /* ELEMENT */) { 11715 if (domType !== 1 /* ELEMENT */ || 11716 vnode.type.toLowerCase() !== 11717 node.tagName.toLowerCase()) { 11718 nextNode = onMismatch(); 11719 } 11720 else { 11721 nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized); 11722 } 11723 } 11724 else if (shapeFlag & 6 /* COMPONENT */) { 11725 // when setting up the render effect, if the initial vnode already 11726 // has .el set, the component will perform hydration instead of mount 11727 // on its sub-tree. 11728 vnode.slotScopeIds = slotScopeIds; 11729 const container = parentNode(node); 11730 mountComponent(vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), optimized); 11731 // component may be async, so in the case of fragments we cannot rely 11732 // on component's rendered output to determine the end of the fragment 11733 // instead, we do a lookahead to find the end anchor node. 11734 nextNode = isFragmentStart 11735 ? locateClosingAsyncAnchor(node) 11736 : nextSibling(node); 11737 // #4293 teleport as component root 11738 if (nextNode && 11739 isComment(nextNode) && 11740 nextNode.data === 'teleport end') { 11741 nextNode = nextSibling(nextNode); 11742 } 11743 // #3787 11744 // if component is async, it may get moved / unmounted before its 11745 // inner component is loaded, so we need to give it a placeholder 11746 // vnode that matches its adopted DOM. 11747 if (isAsyncWrapper(vnode)) { 11748 let subTree; 11749 if (isFragmentStart) { 11750 subTree = createVNode(Fragment); 11751 subTree.anchor = nextNode 11752 ? nextNode.previousSibling 11753 : container.lastChild; 11754 } 11755 else { 11756 subTree = 11757 node.nodeType === 3 ? createTextVNode('') : createVNode('div'); 11758 } 11759 subTree.el = node; 11760 vnode.component.subTree = subTree; 11761 } 11762 } 11763 else if (shapeFlag & 64 /* TELEPORT */) { 11764 if (domType !== 8 /* COMMENT */) { 11765 nextNode = onMismatch(); 11766 } 11767 else { 11768 nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren); 11769 } 11770 } 11771 else if (shapeFlag & 128 /* SUSPENSE */) { 11772 nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode); 11773 } 11774 else if ((true)) { 11775 warn('Invalid HostVNode type:', type, `(${typeof type})`); 11776 } 11777 } 11778 if (ref != null) { 11779 setRef(ref, null, parentSuspense, vnode); 11780 } 11781 return nextNode; 11782 }; 11783 const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { 11784 optimized = optimized || !!vnode.dynamicChildren; 11785 const { type, props, patchFlag, shapeFlag, dirs } = vnode; 11786 // #4006 for form elements with non-string v-model value bindings 11787 // e.g. <option :value="obj">, <input type="checkbox" :true-value="1"> 11788 const forcePatchValue = (type === 'input' && dirs) || type === 'option'; 11789 // skip props & children if this is hoisted static nodes 11790 // #5405 in dev, always hydrate children for HMR 11791 if (true /* HOISTED */) { 11792 if (dirs) { 11793 invokeDirectiveHook(vnode, null, parentComponent, 'created'); 11794 } 11795 // props 11796 if (props) { 11797 if (forcePatchValue || 11798 !optimized || 11799 patchFlag & (16 /* FULL_PROPS */ | 32 /* HYDRATE_EVENTS */)) { 11800 for (const key in props) { 11801 if ((forcePatchValue && key.endsWith('value')) || 11802 ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key))) { 11803 patchProp(el, key, null, props[key], false, undefined, parentComponent); 11804 } 11805 } 11806 } 11807 else if (props.onClick) { 11808 // Fast path for click listeners (which is most often) to avoid 11809 // iterating through props. 11810 patchProp(el, 'onClick', null, props.onClick, false, undefined, parentComponent); 11811 } 11812 } 11813 // vnode / directive hooks 11814 let vnodeHooks; 11815 if ((vnodeHooks = props && props.onVnodeBeforeMount)) { 11816 invokeVNodeHook(vnodeHooks, parentComponent, vnode); 11817 } 11818 if (dirs) { 11819 invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount'); 11820 } 11821 if ((vnodeHooks = props && props.onVnodeMounted) || dirs) { 11822 queueEffectWithSuspense(() => { 11823 vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode); 11824 dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted'); 11825 }, parentSuspense); 11826 } 11827 // children 11828 if (shapeFlag & 16 /* ARRAY_CHILDREN */ && 11829 // skip if element has innerHTML / textContent 11830 !(props && (props.innerHTML || props.textContent))) { 11831 let next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized); 11832 let hasWarned = false; 11833 while (next) { 11834 hasMismatch = true; 11835 if (( true) && !hasWarned) { 11836 warn(`Hydration children mismatch in <${vnode.type}>: ` + 11837 `server rendered element contains more child nodes than client vdom.`); 11838 hasWarned = true; 11839 } 11840 // The SSRed DOM contains more nodes than it should. Remove them. 11841 const cur = next; 11842 next = next.nextSibling; 11843 remove(cur); 11844 } 11845 } 11846 else if (shapeFlag & 8 /* TEXT_CHILDREN */) { 11847 if (el.textContent !== vnode.children) { 11848 hasMismatch = true; 11849 ( true) && 11850 warn(`Hydration text content mismatch in <${vnode.type}>:\n` + 11851 `- Client: ${el.textContent}\n` + 11852 `- Server: ${vnode.children}`); 11853 el.textContent = vnode.children; 11854 } 11855 } 11856 } 11857 return el.nextSibling; 11858 }; 11859 const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => { 11860 optimized = optimized || !!parentVNode.dynamicChildren; 11861 const children = parentVNode.children; 11862 const l = children.length; 11863 let hasWarned = false; 11864 for (let i = 0; i < l; i++) { 11865 const vnode = optimized 11866 ? children[i] 11867 : (children[i] = normalizeVNode(children[i])); 11868 if (node) { 11869 node = hydrateNode(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized); 11870 } 11871 else if (vnode.type === Text && !vnode.children) { 11872 continue; 11873 } 11874 else { 11875 hasMismatch = true; 11876 if (( true) && !hasWarned) { 11877 warn(`Hydration children mismatch in <${container.tagName.toLowerCase()}>: ` + 11878 `server rendered element contains fewer child nodes than client vdom.`); 11879 hasWarned = true; 11880 } 11881 // the SSRed DOM didn't contain enough nodes. Mount the missing ones. 11882 patch(null, vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds); 11883 } 11884 } 11885 return node; 11886 }; 11887 const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { 11888 const { slotScopeIds: fragmentSlotScopeIds } = vnode; 11889 if (fragmentSlotScopeIds) { 11890 slotScopeIds = slotScopeIds 11891 ? slotScopeIds.concat(fragmentSlotScopeIds) 11892 : fragmentSlotScopeIds; 11893 } 11894 const container = parentNode(node); 11895 const next = hydrateChildren(nextSibling(node), vnode, container, parentComponent, parentSuspense, slotScopeIds, optimized); 11896 if (next && isComment(next) && next.data === ']') { 11897 return nextSibling((vnode.anchor = next)); 11898 } 11899 else { 11900 // fragment didn't hydrate successfully, since we didn't get a end anchor 11901 // back. This should have led to node/children mismatch warnings. 11902 hasMismatch = true; 11903 // since the anchor is missing, we need to create one and insert it 11904 insert((vnode.anchor = createComment(`]`)), container, next); 11905 return next; 11906 } 11907 }; 11908 const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => { 11909 hasMismatch = true; 11910 ( true) && 11911 warn(`Hydration node mismatch:\n- Client vnode:`, vnode.type, `\n- Server rendered DOM:`, node, node.nodeType === 3 /* TEXT */ 11912 ? `(text)` 11913 : isComment(node) && node.data === '[' 11914 ? `(start of fragment)` 11915 : ``); 11916 vnode.el = null; 11917 if (isFragment) { 11918 // remove excessive fragment nodes 11919 const end = locateClosingAsyncAnchor(node); 11920 while (true) { 11921 const next = nextSibling(node); 11922 if (next && next !== end) { 11923 remove(next); 11924 } 11925 else { 11926 break; 11927 } 11928 } 11929 } 11930 const next = nextSibling(node); 11931 const container = parentNode(node); 11932 remove(node); 11933 patch(null, vnode, container, next, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds); 11934 return next; 11935 }; 11936 const locateClosingAsyncAnchor = (node) => { 11937 let match = 0; 11938 while (node) { 11939 node = nextSibling(node); 11940 if (node && isComment(node)) { 11941 if (node.data === '[') 11942 match++; 11943 if (node.data === ']') { 11944 if (match === 0) { 11945 return nextSibling(node); 11946 } 11947 else { 11948 match--; 11949 } 11950 } 11951 } 11952 } 11953 return node; 11954 }; 11955 return [hydrate, hydrateNode]; 11956} 11957 11958/* eslint-disable no-restricted-globals */ 11959let supported; 11960let perf; 11961function startMeasure(instance, type) { 11962 if (instance.appContext.config.performance && isSupported()) { 11963 perf.mark(`vue-${type}-${instance.uid}`); 11964 } 11965 if (true) { 11966 devtoolsPerfStart(instance, type, isSupported() ? perf.now() : Date.now()); 11967 } 11968} 11969function endMeasure(instance, type) { 11970 if (instance.appContext.config.performance && isSupported()) { 11971 const startTag = `vue-${type}-${instance.uid}`; 11972 const endTag = startTag + `:end`; 11973 perf.mark(endTag); 11974 perf.measure(`<${formatComponentName(instance, instance.type)}> ${type}`, startTag, endTag); 11975 perf.clearMarks(startTag); 11976 perf.clearMarks(endTag); 11977 } 11978 if (true) { 11979 devtoolsPerfEnd(instance, type, isSupported() ? perf.now() : Date.now()); 11980 } 11981} 11982function isSupported() { 11983 if (supported !== undefined) { 11984 return supported; 11985 } 11986 if (typeof window !== 'undefined' && window.performance) { 11987 supported = true; 11988 perf = window.performance; 11989 } 11990 else { 11991 supported = false; 11992 } 11993 return supported; 11994} 11995 11996/** 11997 * This is only called in esm-bundler builds. 11998 * It is called when a renderer is created, in `baseCreateRenderer` so that 11999 * importing runtime-core is side-effects free. 12000 * 12001 * istanbul-ignore-next 12002 */ 12003function initFeatureFlags() { 12004 const needWarn = []; 12005 if (false) {} 12006 if (false) {} 12007 if (( true) && needWarn.length) { 12008 const multi = needWarn.length > 1; 12009 console.warn(`Feature flag${multi ? `s` : ``} ${needWarn.join(', ')} ${multi ? `are` : `is`} not explicitly defined. You are running the esm-bundler build of Vue, ` + 12010 `which expects these compile-time feature flags to be globally injected ` + 12011 `via the bundler config in order to get better tree-shaking in the ` + 12012 `production bundle.\n\n` + 12013 `For more details, see https://link.vuejs.org/feature-flags.`); 12014 } 12015} 12016 12017const queuePostRenderEffect = queueEffectWithSuspense 12018 ; 12019/** 12020 * The createRenderer function accepts two generic arguments: 12021 * HostNode and HostElement, corresponding to Node and Element types in the 12022 * host environment. For example, for runtime-dom, HostNode would be the DOM 12023 * `Node` interface and HostElement would be the DOM `Element` interface. 12024 * 12025 * Custom renderers can pass in the platform specific types like this: 12026 * 12027 * ``` js 12028 * const { render, createApp } = createRenderer<Node, Element>({ 12029 * patchProp, 12030 * ...nodeOps 12031 * }) 12032 * ``` 12033 */ 12034function createRenderer(options) { 12035 return baseCreateRenderer(options); 12036} 12037// Separate API for creating hydration-enabled renderer. 12038// Hydration logic is only used when calling this function, making it 12039// tree-shakable. 12040function createHydrationRenderer(options) { 12041 return baseCreateRenderer(options, createHydrationFunctions); 12042} 12043// implementation 12044function baseCreateRenderer(options, createHydrationFns) { 12045 // compile-time feature flags check 12046 { 12047 initFeatureFlags(); 12048 } 12049 const target = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.getGlobalThis)(); 12050 target.__VUE__ = true; 12051 if (true) { 12052 setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target); 12053 } 12054 const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP, cloneNode: hostCloneNode, insertStaticContent: hostInsertStaticContent } = options; 12055 // Note: functions inside this closure should use `const xxx = () => {}` 12056 // style in order to prevent being inlined by minifiers. 12057 const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = ( true) && isHmrUpdating ? false : !!n2.dynamicChildren) => { 12058 if (n1 === n2) { 12059 return; 12060 } 12061 // patching & not same type, unmount old tree 12062 if (n1 && !isSameVNodeType(n1, n2)) { 12063 anchor = getNextHostNode(n1); 12064 unmount(n1, parentComponent, parentSuspense, true); 12065 n1 = null; 12066 } 12067 if (n2.patchFlag === -2 /* BAIL */) { 12068 optimized = false; 12069 n2.dynamicChildren = null; 12070 } 12071 const { type, ref, shapeFlag } = n2; 12072 switch (type) { 12073 case Text: 12074 processText(n1, n2, container, anchor); 12075 break; 12076 case Comment: 12077 processCommentNode(n1, n2, container, anchor); 12078 break; 12079 case Static: 12080 if (n1 == null) { 12081 mountStaticNode(n2, container, anchor, isSVG); 12082 } 12083 else if ((true)) { 12084 patchStaticNode(n1, n2, container, isSVG); 12085 } 12086 break; 12087 case Fragment: 12088 processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12089 break; 12090 default: 12091 if (shapeFlag & 1 /* ELEMENT */) { 12092 processElement(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12093 } 12094 else if (shapeFlag & 6 /* COMPONENT */) { 12095 processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12096 } 12097 else if (shapeFlag & 64 /* TELEPORT */) { 12098 type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); 12099 } 12100 else if (shapeFlag & 128 /* SUSPENSE */) { 12101 type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); 12102 } 12103 else if ((true)) { 12104 warn('Invalid VNode type:', type, `(${typeof type})`); 12105 } 12106 } 12107 // set ref 12108 if (ref != null && parentComponent) { 12109 setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2); 12110 } 12111 }; 12112 const processText = (n1, n2, container, anchor) => { 12113 if (n1 == null) { 12114 hostInsert((n2.el = hostCreateText(n2.children)), container, anchor); 12115 } 12116 else { 12117 const el = (n2.el = n1.el); 12118 if (n2.children !== n1.children) { 12119 hostSetText(el, n2.children); 12120 } 12121 } 12122 }; 12123 const processCommentNode = (n1, n2, container, anchor) => { 12124 if (n1 == null) { 12125 hostInsert((n2.el = hostCreateComment(n2.children || '')), container, anchor); 12126 } 12127 else { 12128 // there's no support for dynamic comments 12129 n2.el = n1.el; 12130 } 12131 }; 12132 const mountStaticNode = (n2, container, anchor, isSVG) => { 12133 [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG, n2.el, n2.anchor); 12134 }; 12135 /** 12136 * Dev / HMR only 12137 */ 12138 const patchStaticNode = (n1, n2, container, isSVG) => { 12139 // static nodes are only patched during dev for HMR 12140 if (n2.children !== n1.children) { 12141 const anchor = hostNextSibling(n1.anchor); 12142 // remove existing 12143 removeStaticNode(n1); 12144 [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG); 12145 } 12146 else { 12147 n2.el = n1.el; 12148 n2.anchor = n1.anchor; 12149 } 12150 }; 12151 const moveStaticNode = ({ el, anchor }, container, nextSibling) => { 12152 let next; 12153 while (el && el !== anchor) { 12154 next = hostNextSibling(el); 12155 hostInsert(el, container, nextSibling); 12156 el = next; 12157 } 12158 hostInsert(anchor, container, nextSibling); 12159 }; 12160 const removeStaticNode = ({ el, anchor }) => { 12161 let next; 12162 while (el && el !== anchor) { 12163 next = hostNextSibling(el); 12164 hostRemove(el); 12165 el = next; 12166 } 12167 hostRemove(anchor); 12168 }; 12169 const processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { 12170 isSVG = isSVG || n2.type === 'svg'; 12171 if (n1 == null) { 12172 mountElement(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12173 } 12174 else { 12175 patchElement(n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12176 } 12177 }; 12178 const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { 12179 let el; 12180 let vnodeHook; 12181 const { type, props, shapeFlag, transition, patchFlag, dirs } = vnode; 12182 if (false /* HOISTED */) {} 12183 else { 12184 el = vnode.el = hostCreateElement(vnode.type, isSVG, props && props.is, props); 12185 // mount children first, since some props may rely on child content 12186 // being already rendered, e.g. `<select value>` 12187 if (shapeFlag & 8 /* TEXT_CHILDREN */) { 12188 hostSetElementText(el, vnode.children); 12189 } 12190 else if (shapeFlag & 16 /* ARRAY_CHILDREN */) { 12191 mountChildren(vnode.children, el, null, parentComponent, parentSuspense, isSVG && type !== 'foreignObject', slotScopeIds, optimized); 12192 } 12193 if (dirs) { 12194 invokeDirectiveHook(vnode, null, parentComponent, 'created'); 12195 } 12196 // props 12197 if (props) { 12198 for (const key in props) { 12199 if (key !== 'value' && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key)) { 12200 hostPatchProp(el, key, null, props[key], isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); 12201 } 12202 } 12203 /** 12204 * Special case for setting value on DOM elements: 12205 * - it can be order-sensitive (e.g. should be set *after* min/max, #2325, #4024) 12206 * - it needs to be forced (#1471) 12207 * #2353 proposes adding another renderer option to configure this, but 12208 * the properties affects are so finite it is worth special casing it 12209 * here to reduce the complexity. (Special casing it also should not 12210 * affect non-DOM renderers) 12211 */ 12212 if ('value' in props) { 12213 hostPatchProp(el, 'value', null, props.value); 12214 } 12215 if ((vnodeHook = props.onVnodeBeforeMount)) { 12216 invokeVNodeHook(vnodeHook, parentComponent, vnode); 12217 } 12218 } 12219 // scopeId 12220 setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent); 12221 } 12222 if (true) { 12223 Object.defineProperty(el, '__vnode', { 12224 value: vnode, 12225 enumerable: false 12226 }); 12227 Object.defineProperty(el, '__vueParentComponent', { 12228 value: parentComponent, 12229 enumerable: false 12230 }); 12231 } 12232 if (dirs) { 12233 invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount'); 12234 } 12235 // #1583 For inside suspense + suspense not resolved case, enter hook should call when suspense resolved 12236 // #1689 For inside suspense + suspense resolved case, just call it 12237 const needCallTransitionHooks = (!parentSuspense || (parentSuspense && !parentSuspense.pendingBranch)) && 12238 transition && 12239 !transition.persisted; 12240 if (needCallTransitionHooks) { 12241 transition.beforeEnter(el); 12242 } 12243 hostInsert(el, container, anchor); 12244 if ((vnodeHook = props && props.onVnodeMounted) || 12245 needCallTransitionHooks || 12246 dirs) { 12247 queuePostRenderEffect(() => { 12248 vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); 12249 needCallTransitionHooks && transition.enter(el); 12250 dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted'); 12251 }, parentSuspense); 12252 } 12253 }; 12254 const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => { 12255 if (scopeId) { 12256 hostSetScopeId(el, scopeId); 12257 } 12258 if (slotScopeIds) { 12259 for (let i = 0; i < slotScopeIds.length; i++) { 12260 hostSetScopeId(el, slotScopeIds[i]); 12261 } 12262 } 12263 if (parentComponent) { 12264 let subTree = parentComponent.subTree; 12265 if (( true) && 12266 subTree.patchFlag > 0 && 12267 subTree.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) { 12268 subTree = 12269 filterSingleRoot(subTree.children) || subTree; 12270 } 12271 if (vnode === subTree) { 12272 const parentVNode = parentComponent.vnode; 12273 setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent); 12274 } 12275 } 12276 }; 12277 const mountChildren = (children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, start = 0) => { 12278 for (let i = start; i < children.length; i++) { 12279 const child = (children[i] = optimized 12280 ? cloneIfMounted(children[i]) 12281 : normalizeVNode(children[i])); 12282 patch(null, child, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12283 } 12284 }; 12285 const patchElement = (n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { 12286 const el = (n2.el = n1.el); 12287 let { patchFlag, dynamicChildren, dirs } = n2; 12288 // #1426 take the old vnode's patch flag into account since user may clone a 12289 // compiler-generated vnode, which de-opts to FULL_PROPS 12290 patchFlag |= n1.patchFlag & 16 /* FULL_PROPS */; 12291 const oldProps = n1.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ; 12292 const newProps = n2.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ; 12293 let vnodeHook; 12294 // disable recurse in beforeUpdate hooks 12295 parentComponent && toggleRecurse(parentComponent, false); 12296 if ((vnodeHook = newProps.onVnodeBeforeUpdate)) { 12297 invokeVNodeHook(vnodeHook, parentComponent, n2, n1); 12298 } 12299 if (dirs) { 12300 invokeDirectiveHook(n2, n1, parentComponent, 'beforeUpdate'); 12301 } 12302 parentComponent && toggleRecurse(parentComponent, true); 12303 if (( true) && isHmrUpdating) { 12304 // HMR updated, force full diff 12305 patchFlag = 0; 12306 optimized = false; 12307 dynamicChildren = null; 12308 } 12309 const areChildrenSVG = isSVG && n2.type !== 'foreignObject'; 12310 if (dynamicChildren) { 12311 patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds); 12312 if (( true) && parentComponent && parentComponent.type.__hmrId) { 12313 traverseStaticChildren(n1, n2); 12314 } 12315 } 12316 else if (!optimized) { 12317 // full diff 12318 patchChildren(n1, n2, el, null, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds, false); 12319 } 12320 if (patchFlag > 0) { 12321 // the presence of a patchFlag means this element's render code was 12322 // generated by the compiler and can take the fast path. 12323 // in this path old node and new node are guaranteed to have the same shape 12324 // (i.e. at the exact same position in the source template) 12325 if (patchFlag & 16 /* FULL_PROPS */) { 12326 // element props contain dynamic keys, full diff needed 12327 patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG); 12328 } 12329 else { 12330 // class 12331 // this flag is matched when the element has dynamic class bindings. 12332 if (patchFlag & 2 /* CLASS */) { 12333 if (oldProps.class !== newProps.class) { 12334 hostPatchProp(el, 'class', null, newProps.class, isSVG); 12335 } 12336 } 12337 // style 12338 // this flag is matched when the element has dynamic style bindings 12339 if (patchFlag & 4 /* STYLE */) { 12340 hostPatchProp(el, 'style', oldProps.style, newProps.style, isSVG); 12341 } 12342 // props 12343 // This flag is matched when the element has dynamic prop/attr bindings 12344 // other than class and style. The keys of dynamic prop/attrs are saved for 12345 // faster iteration. 12346 // Note dynamic keys like :[foo]="bar" will cause this optimization to 12347 // bail out and go through a full diff because we need to unset the old key 12348 if (patchFlag & 8 /* PROPS */) { 12349 // if the flag is present then dynamicProps must be non-null 12350 const propsToUpdate = n2.dynamicProps; 12351 for (let i = 0; i < propsToUpdate.length; i++) { 12352 const key = propsToUpdate[i]; 12353 const prev = oldProps[key]; 12354 const next = newProps[key]; 12355 // #1471 force patch value 12356 if (next !== prev || key === 'value') { 12357 hostPatchProp(el, key, prev, next, isSVG, n1.children, parentComponent, parentSuspense, unmountChildren); 12358 } 12359 } 12360 } 12361 } 12362 // text 12363 // This flag is matched when the element has only dynamic text children. 12364 if (patchFlag & 1 /* TEXT */) { 12365 if (n1.children !== n2.children) { 12366 hostSetElementText(el, n2.children); 12367 } 12368 } 12369 } 12370 else if (!optimized && dynamicChildren == null) { 12371 // unoptimized, full diff 12372 patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG); 12373 } 12374 if ((vnodeHook = newProps.onVnodeUpdated) || dirs) { 12375 queuePostRenderEffect(() => { 12376 vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1); 12377 dirs && invokeDirectiveHook(n2, n1, parentComponent, 'updated'); 12378 }, parentSuspense); 12379 } 12380 }; 12381 // The fast path for blocks. 12382 const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, isSVG, slotScopeIds) => { 12383 for (let i = 0; i < newChildren.length; i++) { 12384 const oldVNode = oldChildren[i]; 12385 const newVNode = newChildren[i]; 12386 // Determine the container (parent element) for the patch. 12387 const container = 12388 // oldVNode may be an errored async setup() component inside Suspense 12389 // which will not have a mounted element 12390 oldVNode.el && 12391 // - In the case of a Fragment, we need to provide the actual parent 12392 // of the Fragment itself so it can move its children. 12393 (oldVNode.type === Fragment || 12394 // - In the case of different nodes, there is going to be a replacement 12395 // which also requires the correct parent container 12396 !isSameVNodeType(oldVNode, newVNode) || 12397 // - In the case of a component, it could contain anything. 12398 oldVNode.shapeFlag & (6 /* COMPONENT */ | 64 /* TELEPORT */)) 12399 ? hostParentNode(oldVNode.el) 12400 : // In other cases, the parent container is not actually used so we 12401 // just pass the block element here to avoid a DOM parentNode call. 12402 fallbackContainer; 12403 patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, true); 12404 } 12405 }; 12406 const patchProps = (el, vnode, oldProps, newProps, parentComponent, parentSuspense, isSVG) => { 12407 if (oldProps !== newProps) { 12408 for (const key in newProps) { 12409 // empty string is not valid prop 12410 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key)) 12411 continue; 12412 const next = newProps[key]; 12413 const prev = oldProps[key]; 12414 // defer patching value 12415 if (next !== prev && key !== 'value') { 12416 hostPatchProp(el, key, prev, next, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); 12417 } 12418 } 12419 if (oldProps !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) { 12420 for (const key in oldProps) { 12421 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key) && !(key in newProps)) { 12422 hostPatchProp(el, key, oldProps[key], null, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); 12423 } 12424 } 12425 } 12426 if ('value' in newProps) { 12427 hostPatchProp(el, 'value', oldProps.value, newProps.value); 12428 } 12429 } 12430 }; 12431 const processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { 12432 const fragmentStartAnchor = (n2.el = n1 ? n1.el : hostCreateText('')); 12433 const fragmentEndAnchor = (n2.anchor = n1 ? n1.anchor : hostCreateText('')); 12434 let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2; 12435 if (( true) && 12436 // #5523 dev root fragment may inherit directives 12437 (isHmrUpdating || patchFlag & 2048 /* DEV_ROOT_FRAGMENT */)) { 12438 // HMR updated / Dev root fragment (w/ comments), force full diff 12439 patchFlag = 0; 12440 optimized = false; 12441 dynamicChildren = null; 12442 } 12443 // check if this is a slot fragment with :slotted scope ids 12444 if (fragmentSlotScopeIds) { 12445 slotScopeIds = slotScopeIds 12446 ? slotScopeIds.concat(fragmentSlotScopeIds) 12447 : fragmentSlotScopeIds; 12448 } 12449 if (n1 == null) { 12450 hostInsert(fragmentStartAnchor, container, anchor); 12451 hostInsert(fragmentEndAnchor, container, anchor); 12452 // a fragment can only have array children 12453 // since they are either generated by the compiler, or implicitly created 12454 // from arrays. 12455 mountChildren(n2.children, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12456 } 12457 else { 12458 if (patchFlag > 0 && 12459 patchFlag & 64 /* STABLE_FRAGMENT */ && 12460 dynamicChildren && 12461 // #2715 the previous fragment could've been a BAILed one as a result 12462 // of renderSlot() with no valid children 12463 n1.dynamicChildren) { 12464 // a stable fragment (template root or <template v-for>) doesn't need to 12465 // patch children order, but it may contain dynamicChildren. 12466 patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, isSVG, slotScopeIds); 12467 if (( true) && parentComponent && parentComponent.type.__hmrId) { 12468 traverseStaticChildren(n1, n2); 12469 } 12470 else if ( 12471 // #2080 if the stable fragment has a key, it's a <template v-for> that may 12472 // get moved around. Make sure all root level vnodes inherit el. 12473 // #2134 or if it's a component root, it may also get moved around 12474 // as the component is being moved. 12475 n2.key != null || 12476 (parentComponent && n2 === parentComponent.subTree)) { 12477 traverseStaticChildren(n1, n2, true /* shallow */); 12478 } 12479 } 12480 else { 12481 // keyed / unkeyed, or manual fragments. 12482 // for keyed & unkeyed, since they are compiler generated from v-for, 12483 // each child is guaranteed to be a block so the fragment will never 12484 // have dynamicChildren. 12485 patchChildren(n1, n2, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12486 } 12487 } 12488 }; 12489 const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { 12490 n2.slotScopeIds = slotScopeIds; 12491 if (n1 == null) { 12492 if (n2.shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) { 12493 parentComponent.ctx.activate(n2, container, anchor, isSVG, optimized); 12494 } 12495 else { 12496 mountComponent(n2, container, anchor, parentComponent, parentSuspense, isSVG, optimized); 12497 } 12498 } 12499 else { 12500 updateComponent(n1, n2, optimized); 12501 } 12502 }; 12503 const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => { 12504 const instance = (initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense)); 12505 if (( true) && instance.type.__hmrId) { 12506 registerHMR(instance); 12507 } 12508 if ((true)) { 12509 pushWarningContext(initialVNode); 12510 startMeasure(instance, `mount`); 12511 } 12512 // inject renderer internals for keepAlive 12513 if (isKeepAlive(initialVNode)) { 12514 instance.ctx.renderer = internals; 12515 } 12516 // resolve props and slots for setup context 12517 { 12518 if ((true)) { 12519 startMeasure(instance, `init`); 12520 } 12521 setupComponent(instance); 12522 if ((true)) { 12523 endMeasure(instance, `init`); 12524 } 12525 } 12526 // setup() is async. This component relies on async logic to be resolved 12527 // before proceeding 12528 if (instance.asyncDep) { 12529 parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect); 12530 // Give it a placeholder if this is not hydration 12531 // TODO handle self-defined fallback 12532 if (!initialVNode.el) { 12533 const placeholder = (instance.subTree = createVNode(Comment)); 12534 processCommentNode(null, placeholder, container, anchor); 12535 } 12536 return; 12537 } 12538 setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized); 12539 if ((true)) { 12540 popWarningContext(); 12541 endMeasure(instance, `mount`); 12542 } 12543 }; 12544 const updateComponent = (n1, n2, optimized) => { 12545 const instance = (n2.component = n1.component); 12546 if (shouldUpdateComponent(n1, n2, optimized)) { 12547 if (instance.asyncDep && 12548 !instance.asyncResolved) { 12549 // async & still pending - just update props and slots 12550 // since the component's reactive effect for render isn't set-up yet 12551 if ((true)) { 12552 pushWarningContext(n2); 12553 } 12554 updateComponentPreRender(instance, n2, optimized); 12555 if ((true)) { 12556 popWarningContext(); 12557 } 12558 return; 12559 } 12560 else { 12561 // normal update 12562 instance.next = n2; 12563 // in case the child component is also queued, remove it to avoid 12564 // double updating the same child component in the same flush. 12565 invalidateJob(instance.update); 12566 // instance.update is the reactive effect. 12567 instance.update(); 12568 } 12569 } 12570 else { 12571 // no update needed. just copy over properties 12572 n2.el = n1.el; 12573 instance.vnode = n2; 12574 } 12575 }; 12576 const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized) => { 12577 const componentUpdateFn = () => { 12578 if (!instance.isMounted) { 12579 let vnodeHook; 12580 const { el, props } = initialVNode; 12581 const { bm, m, parent } = instance; 12582 const isAsyncWrapperVNode = isAsyncWrapper(initialVNode); 12583 toggleRecurse(instance, false); 12584 // beforeMount hook 12585 if (bm) { 12586 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bm); 12587 } 12588 // onVnodeBeforeMount 12589 if (!isAsyncWrapperVNode && 12590 (vnodeHook = props && props.onVnodeBeforeMount)) { 12591 invokeVNodeHook(vnodeHook, parent, initialVNode); 12592 } 12593 toggleRecurse(instance, true); 12594 if (el && hydrateNode) { 12595 // vnode has adopted host node - perform hydration instead of mount. 12596 const hydrateSubTree = () => { 12597 if ((true)) { 12598 startMeasure(instance, `render`); 12599 } 12600 instance.subTree = renderComponentRoot(instance); 12601 if ((true)) { 12602 endMeasure(instance, `render`); 12603 } 12604 if ((true)) { 12605 startMeasure(instance, `hydrate`); 12606 } 12607 hydrateNode(el, instance.subTree, instance, parentSuspense, null); 12608 if ((true)) { 12609 endMeasure(instance, `hydrate`); 12610 } 12611 }; 12612 if (isAsyncWrapperVNode) { 12613 initialVNode.type.__asyncLoader().then( 12614 // note: we are moving the render call into an async callback, 12615 // which means it won't track dependencies - but it's ok because 12616 // a server-rendered async wrapper is already in resolved state 12617 // and it will never need to change. 12618 () => !instance.isUnmounted && hydrateSubTree()); 12619 } 12620 else { 12621 hydrateSubTree(); 12622 } 12623 } 12624 else { 12625 if ((true)) { 12626 startMeasure(instance, `render`); 12627 } 12628 const subTree = (instance.subTree = renderComponentRoot(instance)); 12629 if ((true)) { 12630 endMeasure(instance, `render`); 12631 } 12632 if ((true)) { 12633 startMeasure(instance, `patch`); 12634 } 12635 patch(null, subTree, container, anchor, instance, parentSuspense, isSVG); 12636 if ((true)) { 12637 endMeasure(instance, `patch`); 12638 } 12639 initialVNode.el = subTree.el; 12640 } 12641 // mounted hook 12642 if (m) { 12643 queuePostRenderEffect(m, parentSuspense); 12644 } 12645 // onVnodeMounted 12646 if (!isAsyncWrapperVNode && 12647 (vnodeHook = props && props.onVnodeMounted)) { 12648 const scopedInitialVNode = initialVNode; 12649 queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense); 12650 } 12651 // activated hook for keep-alive roots. 12652 // #1742 activated hook must be accessed after first render 12653 // since the hook may be injected by a child keep-alive 12654 if (initialVNode.shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */ || 12655 (parent && 12656 isAsyncWrapper(parent.vnode) && 12657 parent.vnode.shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */)) { 12658 instance.a && queuePostRenderEffect(instance.a, parentSuspense); 12659 } 12660 instance.isMounted = true; 12661 if (true) { 12662 devtoolsComponentAdded(instance); 12663 } 12664 // #2458: deference mount-only object parameters to prevent memleaks 12665 initialVNode = container = anchor = null; 12666 } 12667 else { 12668 // updateComponent 12669 // This is triggered by mutation of component's own state (next: null) 12670 // OR parent calling processComponent (next: VNode) 12671 let { next, bu, u, parent, vnode } = instance; 12672 let originNext = next; 12673 let vnodeHook; 12674 if ((true)) { 12675 pushWarningContext(next || instance.vnode); 12676 } 12677 // Disallow component effect recursion during pre-lifecycle hooks. 12678 toggleRecurse(instance, false); 12679 if (next) { 12680 next.el = vnode.el; 12681 updateComponentPreRender(instance, next, optimized); 12682 } 12683 else { 12684 next = vnode; 12685 } 12686 // beforeUpdate hook 12687 if (bu) { 12688 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bu); 12689 } 12690 // onVnodeBeforeUpdate 12691 if ((vnodeHook = next.props && next.props.onVnodeBeforeUpdate)) { 12692 invokeVNodeHook(vnodeHook, parent, next, vnode); 12693 } 12694 toggleRecurse(instance, true); 12695 // render 12696 if ((true)) { 12697 startMeasure(instance, `render`); 12698 } 12699 const nextTree = renderComponentRoot(instance); 12700 if ((true)) { 12701 endMeasure(instance, `render`); 12702 } 12703 const prevTree = instance.subTree; 12704 instance.subTree = nextTree; 12705 if ((true)) { 12706 startMeasure(instance, `patch`); 12707 } 12708 patch(prevTree, nextTree, 12709 // parent may have changed if it's in a teleport 12710 hostParentNode(prevTree.el), 12711 // anchor may have changed if it's in a fragment 12712 getNextHostNode(prevTree), instance, parentSuspense, isSVG); 12713 if ((true)) { 12714 endMeasure(instance, `patch`); 12715 } 12716 next.el = nextTree.el; 12717 if (originNext === null) { 12718 // self-triggered update. In case of HOC, update parent component 12719 // vnode el. HOC is indicated by parent instance's subTree pointing 12720 // to child component's vnode 12721 updateHOCHostEl(instance, nextTree.el); 12722 } 12723 // updated hook 12724 if (u) { 12725 queuePostRenderEffect(u, parentSuspense); 12726 } 12727 // onVnodeUpdated 12728 if ((vnodeHook = next.props && next.props.onVnodeUpdated)) { 12729 queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, next, vnode), parentSuspense); 12730 } 12731 if (true) { 12732 devtoolsComponentUpdated(instance); 12733 } 12734 if ((true)) { 12735 popWarningContext(); 12736 } 12737 } 12738 }; 12739 // create reactive effect for rendering 12740 const effect = (instance.effect = new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect(componentUpdateFn, () => queueJob(update), instance.scope // track it in component's effect scope 12741 )); 12742 const update = (instance.update = () => effect.run()); 12743 update.id = instance.uid; 12744 // allowRecurse 12745 // #1801, #2043 component render effects should allow recursive updates 12746 toggleRecurse(instance, true); 12747 if ((true)) { 12748 effect.onTrack = instance.rtc 12749 ? e => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.rtc, e) 12750 : void 0; 12751 effect.onTrigger = instance.rtg 12752 ? e => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.rtg, e) 12753 : void 0; 12754 update.ownerInstance = instance; 12755 } 12756 update(); 12757 }; 12758 const updateComponentPreRender = (instance, nextVNode, optimized) => { 12759 nextVNode.component = instance; 12760 const prevProps = instance.vnode.props; 12761 instance.vnode = nextVNode; 12762 instance.next = null; 12763 updateProps(instance, nextVNode.props, prevProps, optimized); 12764 updateSlots(instance, nextVNode.children, optimized); 12765 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)(); 12766 // props update may have triggered pre-flush watchers. 12767 // flush them before the render update. 12768 flushPreFlushCbs(undefined, instance.update); 12769 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)(); 12770 }; 12771 const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => { 12772 const c1 = n1 && n1.children; 12773 const prevShapeFlag = n1 ? n1.shapeFlag : 0; 12774 const c2 = n2.children; 12775 const { patchFlag, shapeFlag } = n2; 12776 // fast path 12777 if (patchFlag > 0) { 12778 if (patchFlag & 128 /* KEYED_FRAGMENT */) { 12779 // this could be either fully-keyed or mixed (some keyed some not) 12780 // presence of patchFlag means children are guaranteed to be arrays 12781 patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12782 return; 12783 } 12784 else if (patchFlag & 256 /* UNKEYED_FRAGMENT */) { 12785 // unkeyed 12786 patchUnkeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12787 return; 12788 } 12789 } 12790 // children has 3 possibilities: text, array or no children. 12791 if (shapeFlag & 8 /* TEXT_CHILDREN */) { 12792 // text children fast path 12793 if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) { 12794 unmountChildren(c1, parentComponent, parentSuspense); 12795 } 12796 if (c2 !== c1) { 12797 hostSetElementText(container, c2); 12798 } 12799 } 12800 else { 12801 if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) { 12802 // prev children was array 12803 if (shapeFlag & 16 /* ARRAY_CHILDREN */) { 12804 // two arrays, cannot assume anything, do full diff 12805 patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12806 } 12807 else { 12808 // no new children, just unmount old 12809 unmountChildren(c1, parentComponent, parentSuspense, true); 12810 } 12811 } 12812 else { 12813 // prev children was text OR null 12814 // new children is array OR null 12815 if (prevShapeFlag & 8 /* TEXT_CHILDREN */) { 12816 hostSetElementText(container, ''); 12817 } 12818 // mount new if array 12819 if (shapeFlag & 16 /* ARRAY_CHILDREN */) { 12820 mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12821 } 12822 } 12823 } 12824 }; 12825 const patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { 12826 c1 = c1 || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR; 12827 c2 = c2 || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR; 12828 const oldLength = c1.length; 12829 const newLength = c2.length; 12830 const commonLength = Math.min(oldLength, newLength); 12831 let i; 12832 for (i = 0; i < commonLength; i++) { 12833 const nextChild = (c2[i] = optimized 12834 ? cloneIfMounted(c2[i]) 12835 : normalizeVNode(c2[i])); 12836 patch(c1[i], nextChild, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12837 } 12838 if (oldLength > newLength) { 12839 // remove old 12840 unmountChildren(c1, parentComponent, parentSuspense, true, false, commonLength); 12841 } 12842 else { 12843 // mount new 12844 mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, commonLength); 12845 } 12846 }; 12847 // can be all-keyed or mixed 12848 const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => { 12849 let i = 0; 12850 const l2 = c2.length; 12851 let e1 = c1.length - 1; // prev ending index 12852 let e2 = l2 - 1; // next ending index 12853 // 1. sync from start 12854 // (a b) c 12855 // (a b) d e 12856 while (i <= e1 && i <= e2) { 12857 const n1 = c1[i]; 12858 const n2 = (c2[i] = optimized 12859 ? cloneIfMounted(c2[i]) 12860 : normalizeVNode(c2[i])); 12861 if (isSameVNodeType(n1, n2)) { 12862 patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12863 } 12864 else { 12865 break; 12866 } 12867 i++; 12868 } 12869 // 2. sync from end 12870 // a (b c) 12871 // d e (b c) 12872 while (i <= e1 && i <= e2) { 12873 const n1 = c1[e1]; 12874 const n2 = (c2[e2] = optimized 12875 ? cloneIfMounted(c2[e2]) 12876 : normalizeVNode(c2[e2])); 12877 if (isSameVNodeType(n1, n2)) { 12878 patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12879 } 12880 else { 12881 break; 12882 } 12883 e1--; 12884 e2--; 12885 } 12886 // 3. common sequence + mount 12887 // (a b) 12888 // (a b) c 12889 // i = 2, e1 = 1, e2 = 2 12890 // (a b) 12891 // c (a b) 12892 // i = 0, e1 = -1, e2 = 0 12893 if (i > e1) { 12894 if (i <= e2) { 12895 const nextPos = e2 + 1; 12896 const anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor; 12897 while (i <= e2) { 12898 patch(null, (c2[i] = optimized 12899 ? cloneIfMounted(c2[i]) 12900 : normalizeVNode(c2[i])), container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12901 i++; 12902 } 12903 } 12904 } 12905 // 4. common sequence + unmount 12906 // (a b) c 12907 // (a b) 12908 // i = 2, e1 = 2, e2 = 1 12909 // a (b c) 12910 // (b c) 12911 // i = 0, e1 = 0, e2 = -1 12912 else if (i > e2) { 12913 while (i <= e1) { 12914 unmount(c1[i], parentComponent, parentSuspense, true); 12915 i++; 12916 } 12917 } 12918 // 5. unknown sequence 12919 // [i ... e1 + 1]: a b [c d e] f g 12920 // [i ... e2 + 1]: a b [e d c h] f g 12921 // i = 2, e1 = 4, e2 = 5 12922 else { 12923 const s1 = i; // prev starting index 12924 const s2 = i; // next starting index 12925 // 5.1 build key:index map for newChildren 12926 const keyToNewIndexMap = new Map(); 12927 for (i = s2; i <= e2; i++) { 12928 const nextChild = (c2[i] = optimized 12929 ? cloneIfMounted(c2[i]) 12930 : normalizeVNode(c2[i])); 12931 if (nextChild.key != null) { 12932 if (( true) && keyToNewIndexMap.has(nextChild.key)) { 12933 warn(`Duplicate keys found during update:`, JSON.stringify(nextChild.key), `Make sure keys are unique.`); 12934 } 12935 keyToNewIndexMap.set(nextChild.key, i); 12936 } 12937 } 12938 // 5.2 loop through old children left to be patched and try to patch 12939 // matching nodes & remove nodes that are no longer present 12940 let j; 12941 let patched = 0; 12942 const toBePatched = e2 - s2 + 1; 12943 let moved = false; 12944 // used to track whether any node has moved 12945 let maxNewIndexSoFar = 0; 12946 // works as Map<newIndex, oldIndex> 12947 // Note that oldIndex is offset by +1 12948 // and oldIndex = 0 is a special value indicating the new node has 12949 // no corresponding old node. 12950 // used for determining longest stable subsequence 12951 const newIndexToOldIndexMap = new Array(toBePatched); 12952 for (i = 0; i < toBePatched; i++) 12953 newIndexToOldIndexMap[i] = 0; 12954 for (i = s1; i <= e1; i++) { 12955 const prevChild = c1[i]; 12956 if (patched >= toBePatched) { 12957 // all new children have been patched so this can only be a removal 12958 unmount(prevChild, parentComponent, parentSuspense, true); 12959 continue; 12960 } 12961 let newIndex; 12962 if (prevChild.key != null) { 12963 newIndex = keyToNewIndexMap.get(prevChild.key); 12964 } 12965 else { 12966 // key-less node, try to locate a key-less node of the same type 12967 for (j = s2; j <= e2; j++) { 12968 if (newIndexToOldIndexMap[j - s2] === 0 && 12969 isSameVNodeType(prevChild, c2[j])) { 12970 newIndex = j; 12971 break; 12972 } 12973 } 12974 } 12975 if (newIndex === undefined) { 12976 unmount(prevChild, parentComponent, parentSuspense, true); 12977 } 12978 else { 12979 newIndexToOldIndexMap[newIndex - s2] = i + 1; 12980 if (newIndex >= maxNewIndexSoFar) { 12981 maxNewIndexSoFar = newIndex; 12982 } 12983 else { 12984 moved = true; 12985 } 12986 patch(prevChild, c2[newIndex], container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 12987 patched++; 12988 } 12989 } 12990 // 5.3 move and mount 12991 // generate longest stable subsequence only when nodes have moved 12992 const increasingNewIndexSequence = moved 12993 ? getSequence(newIndexToOldIndexMap) 12994 : _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR; 12995 j = increasingNewIndexSequence.length - 1; 12996 // looping backwards so that we can use last patched node as anchor 12997 for (i = toBePatched - 1; i >= 0; i--) { 12998 const nextIndex = s2 + i; 12999 const nextChild = c2[nextIndex]; 13000 const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor; 13001 if (newIndexToOldIndexMap[i] === 0) { 13002 // mount new 13003 patch(null, nextChild, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 13004 } 13005 else if (moved) { 13006 // move if: 13007 // There is no stable subsequence (e.g. a reverse) 13008 // OR current node is not among the stable sequence 13009 if (j < 0 || i !== increasingNewIndexSequence[j]) { 13010 move(nextChild, container, anchor, 2 /* REORDER */); 13011 } 13012 else { 13013 j--; 13014 } 13015 } 13016 } 13017 } 13018 }; 13019 const move = (vnode, container, anchor, moveType, parentSuspense = null) => { 13020 const { el, type, transition, children, shapeFlag } = vnode; 13021 if (shapeFlag & 6 /* COMPONENT */) { 13022 move(vnode.component.subTree, container, anchor, moveType); 13023 return; 13024 } 13025 if (shapeFlag & 128 /* SUSPENSE */) { 13026 vnode.suspense.move(container, anchor, moveType); 13027 return; 13028 } 13029 if (shapeFlag & 64 /* TELEPORT */) { 13030 type.move(vnode, container, anchor, internals); 13031 return; 13032 } 13033 if (type === Fragment) { 13034 hostInsert(el, container, anchor); 13035 for (let i = 0; i < children.length; i++) { 13036 move(children[i], container, anchor, moveType); 13037 } 13038 hostInsert(vnode.anchor, container, anchor); 13039 return; 13040 } 13041 if (type === Static) { 13042 moveStaticNode(vnode, container, anchor); 13043 return; 13044 } 13045 // single nodes 13046 const needTransition = moveType !== 2 /* REORDER */ && 13047 shapeFlag & 1 /* ELEMENT */ && 13048 transition; 13049 if (needTransition) { 13050 if (moveType === 0 /* ENTER */) { 13051 transition.beforeEnter(el); 13052 hostInsert(el, container, anchor); 13053 queuePostRenderEffect(() => transition.enter(el), parentSuspense); 13054 } 13055 else { 13056 const { leave, delayLeave, afterLeave } = transition; 13057 const remove = () => hostInsert(el, container, anchor); 13058 const performLeave = () => { 13059 leave(el, () => { 13060 remove(); 13061 afterLeave && afterLeave(); 13062 }); 13063 }; 13064 if (delayLeave) { 13065 delayLeave(el, remove, performLeave); 13066 } 13067 else { 13068 performLeave(); 13069 } 13070 } 13071 } 13072 else { 13073 hostInsert(el, container, anchor); 13074 } 13075 }; 13076 const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => { 13077 const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs } = vnode; 13078 // unset ref 13079 if (ref != null) { 13080 setRef(ref, null, parentSuspense, vnode, true); 13081 } 13082 if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) { 13083 parentComponent.ctx.deactivate(vnode); 13084 return; 13085 } 13086 const shouldInvokeDirs = shapeFlag & 1 /* ELEMENT */ && dirs; 13087 const shouldInvokeVnodeHook = !isAsyncWrapper(vnode); 13088 let vnodeHook; 13089 if (shouldInvokeVnodeHook && 13090 (vnodeHook = props && props.onVnodeBeforeUnmount)) { 13091 invokeVNodeHook(vnodeHook, parentComponent, vnode); 13092 } 13093 if (shapeFlag & 6 /* COMPONENT */) { 13094 unmountComponent(vnode.component, parentSuspense, doRemove); 13095 } 13096 else { 13097 if (shapeFlag & 128 /* SUSPENSE */) { 13098 vnode.suspense.unmount(parentSuspense, doRemove); 13099 return; 13100 } 13101 if (shouldInvokeDirs) { 13102 invokeDirectiveHook(vnode, null, parentComponent, 'beforeUnmount'); 13103 } 13104 if (shapeFlag & 64 /* TELEPORT */) { 13105 vnode.type.remove(vnode, parentComponent, parentSuspense, optimized, internals, doRemove); 13106 } 13107 else if (dynamicChildren && 13108 // #1153: fast path should not be taken for non-stable (v-for) fragments 13109 (type !== Fragment || 13110 (patchFlag > 0 && patchFlag & 64 /* STABLE_FRAGMENT */))) { 13111 // fast path for block nodes: only need to unmount dynamic children. 13112 unmountChildren(dynamicChildren, parentComponent, parentSuspense, false, true); 13113 } 13114 else if ((type === Fragment && 13115 patchFlag & 13116 (128 /* KEYED_FRAGMENT */ | 256 /* UNKEYED_FRAGMENT */)) || 13117 (!optimized && shapeFlag & 16 /* ARRAY_CHILDREN */)) { 13118 unmountChildren(children, parentComponent, parentSuspense); 13119 } 13120 if (doRemove) { 13121 remove(vnode); 13122 } 13123 } 13124 if ((shouldInvokeVnodeHook && 13125 (vnodeHook = props && props.onVnodeUnmounted)) || 13126 shouldInvokeDirs) { 13127 queuePostRenderEffect(() => { 13128 vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); 13129 shouldInvokeDirs && 13130 invokeDirectiveHook(vnode, null, parentComponent, 'unmounted'); 13131 }, parentSuspense); 13132 } 13133 }; 13134 const remove = vnode => { 13135 const { type, el, anchor, transition } = vnode; 13136 if (type === Fragment) { 13137 if (( true) && 13138 vnode.patchFlag > 0 && 13139 vnode.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */ && 13140 transition && 13141 !transition.persisted) { 13142 vnode.children.forEach(child => { 13143 if (child.type === Comment) { 13144 hostRemove(child.el); 13145 } 13146 else { 13147 remove(child); 13148 } 13149 }); 13150 } 13151 else { 13152 removeFragment(el, anchor); 13153 } 13154 return; 13155 } 13156 if (type === Static) { 13157 removeStaticNode(vnode); 13158 return; 13159 } 13160 const performRemove = () => { 13161 hostRemove(el); 13162 if (transition && !transition.persisted && transition.afterLeave) { 13163 transition.afterLeave(); 13164 } 13165 }; 13166 if (vnode.shapeFlag & 1 /* ELEMENT */ && 13167 transition && 13168 !transition.persisted) { 13169 const { leave, delayLeave } = transition; 13170 const performLeave = () => leave(el, performRemove); 13171 if (delayLeave) { 13172 delayLeave(vnode.el, performRemove, performLeave); 13173 } 13174 else { 13175 performLeave(); 13176 } 13177 } 13178 else { 13179 performRemove(); 13180 } 13181 }; 13182 const removeFragment = (cur, end) => { 13183 // For fragments, directly remove all contained DOM nodes. 13184 // (fragment child nodes cannot have transition) 13185 let next; 13186 while (cur !== end) { 13187 next = hostNextSibling(cur); 13188 hostRemove(cur); 13189 cur = next; 13190 } 13191 hostRemove(end); 13192 }; 13193 const unmountComponent = (instance, parentSuspense, doRemove) => { 13194 if (( true) && instance.type.__hmrId) { 13195 unregisterHMR(instance); 13196 } 13197 const { bum, scope, update, subTree, um } = instance; 13198 // beforeUnmount hook 13199 if (bum) { 13200 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bum); 13201 } 13202 // stop effects in component scope 13203 scope.stop(); 13204 // update may be null if a component is unmounted before its async 13205 // setup has resolved. 13206 if (update) { 13207 // so that scheduler will no longer invoke it 13208 update.active = false; 13209 unmount(subTree, instance, parentSuspense, doRemove); 13210 } 13211 // unmounted hook 13212 if (um) { 13213 queuePostRenderEffect(um, parentSuspense); 13214 } 13215 queuePostRenderEffect(() => { 13216 instance.isUnmounted = true; 13217 }, parentSuspense); 13218 // A component with async dep inside a pending suspense is unmounted before 13219 // its async dep resolves. This should remove the dep from the suspense, and 13220 // cause the suspense to resolve immediately if that was the last dep. 13221 if (parentSuspense && 13222 parentSuspense.pendingBranch && 13223 !parentSuspense.isUnmounted && 13224 instance.asyncDep && 13225 !instance.asyncResolved && 13226 instance.suspenseId === parentSuspense.pendingId) { 13227 parentSuspense.deps--; 13228 if (parentSuspense.deps === 0) { 13229 parentSuspense.resolve(); 13230 } 13231 } 13232 if (true) { 13233 devtoolsComponentRemoved(instance); 13234 } 13235 }; 13236 const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => { 13237 for (let i = start; i < children.length; i++) { 13238 unmount(children[i], parentComponent, parentSuspense, doRemove, optimized); 13239 } 13240 }; 13241 const getNextHostNode = vnode => { 13242 if (vnode.shapeFlag & 6 /* COMPONENT */) { 13243 return getNextHostNode(vnode.component.subTree); 13244 } 13245 if (vnode.shapeFlag & 128 /* SUSPENSE */) { 13246 return vnode.suspense.next(); 13247 } 13248 return hostNextSibling((vnode.anchor || vnode.el)); 13249 }; 13250 const render = (vnode, container, isSVG) => { 13251 if (vnode == null) { 13252 if (container._vnode) { 13253 unmount(container._vnode, null, null, true); 13254 } 13255 } 13256 else { 13257 patch(container._vnode || null, vnode, container, null, null, null, isSVG); 13258 } 13259 flushPostFlushCbs(); 13260 container._vnode = vnode; 13261 }; 13262 const internals = { 13263 p: patch, 13264 um: unmount, 13265 m: move, 13266 r: remove, 13267 mt: mountComponent, 13268 mc: mountChildren, 13269 pc: patchChildren, 13270 pbc: patchBlockChildren, 13271 n: getNextHostNode, 13272 o: options 13273 }; 13274 let hydrate; 13275 let hydrateNode; 13276 if (createHydrationFns) { 13277 [hydrate, hydrateNode] = createHydrationFns(internals); 13278 } 13279 return { 13280 render, 13281 hydrate, 13282 createApp: createAppAPI(render, hydrate) 13283 }; 13284} 13285function toggleRecurse({ effect, update }, allowed) { 13286 effect.allowRecurse = update.allowRecurse = allowed; 13287} 13288/** 13289 * #1156 13290 * When a component is HMR-enabled, we need to make sure that all static nodes 13291 * inside a block also inherit the DOM element from the previous tree so that 13292 * HMR updates (which are full updates) can retrieve the element for patching. 13293 * 13294 * #2080 13295 * Inside keyed `template` fragment static children, if a fragment is moved, 13296 * the children will always be moved. Therefore, in order to ensure correct move 13297 * position, el should be inherited from previous nodes. 13298 */ 13299function traverseStaticChildren(n1, n2, shallow = false) { 13300 const ch1 = n1.children; 13301 const ch2 = n2.children; 13302 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ch1) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ch2)) { 13303 for (let i = 0; i < ch1.length; i++) { 13304 // this is only called in the optimized path so array children are 13305 // guaranteed to be vnodes 13306 const c1 = ch1[i]; 13307 let c2 = ch2[i]; 13308 if (c2.shapeFlag & 1 /* ELEMENT */ && !c2.dynamicChildren) { 13309 if (c2.patchFlag <= 0 || c2.patchFlag === 32 /* HYDRATE_EVENTS */) { 13310 c2 = ch2[i] = cloneIfMounted(ch2[i]); 13311 c2.el = c1.el; 13312 } 13313 if (!shallow) 13314 traverseStaticChildren(c1, c2); 13315 } 13316 // also inherit for comment nodes, but not placeholders (e.g. v-if which 13317 // would have received .el during block patch) 13318 if (( true) && c2.type === Comment && !c2.el) { 13319 c2.el = c1.el; 13320 } 13321 } 13322 } 13323} 13324// https://en.wikipedia.org/wiki/Longest_increasing_subsequence 13325function getSequence(arr) { 13326 const p = arr.slice(); 13327 const result = [0]; 13328 let i, j, u, v, c; 13329 const len = arr.length; 13330 for (i = 0; i < len; i++) { 13331 const arrI = arr[i]; 13332 if (arrI !== 0) { 13333 j = result[result.length - 1]; 13334 if (arr[j] < arrI) { 13335 p[i] = j; 13336 result.push(i); 13337 continue; 13338 } 13339 u = 0; 13340 v = result.length - 1; 13341 while (u < v) { 13342 c = (u + v) >> 1; 13343 if (arr[result[c]] < arrI) { 13344 u = c + 1; 13345 } 13346 else { 13347 v = c; 13348 } 13349 } 13350 if (arrI < arr[result[u]]) { 13351 if (u > 0) { 13352 p[i] = result[u - 1]; 13353 } 13354 result[u] = i; 13355 } 13356 } 13357 } 13358 u = result.length; 13359 v = result[u - 1]; 13360 while (u-- > 0) { 13361 result[u] = v; 13362 v = p[v]; 13363 } 13364 return result; 13365} 13366 13367const isTeleport = (type) => type.__isTeleport; 13368const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === ''); 13369const isTargetSVG = (target) => typeof SVGElement !== 'undefined' && target instanceof SVGElement; 13370const resolveTarget = (props, select) => { 13371 const targetSelector = props && props.to; 13372 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(targetSelector)) { 13373 if (!select) { 13374 ( true) && 13375 warn(`Current renderer does not support string target for Teleports. ` + 13376 `(missing querySelector renderer option)`); 13377 return null; 13378 } 13379 else { 13380 const target = select(targetSelector); 13381 if (!target) { 13382 ( true) && 13383 warn(`Failed to locate Teleport target with selector "${targetSelector}". ` + 13384 `Note the target element must exist before the component is mounted - ` + 13385 `i.e. the target cannot be rendered by the component itself, and ` + 13386 `ideally should be outside of the entire Vue component tree.`); 13387 } 13388 return target; 13389 } 13390 } 13391 else { 13392 if (( true) && !targetSelector && !isTeleportDisabled(props)) { 13393 warn(`Invalid Teleport target: ${targetSelector}`); 13394 } 13395 return targetSelector; 13396 } 13397}; 13398const TeleportImpl = { 13399 __isTeleport: true, 13400 process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals) { 13401 const { mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, o: { insert, querySelector, createText, createComment } } = internals; 13402 const disabled = isTeleportDisabled(n2.props); 13403 let { shapeFlag, children, dynamicChildren } = n2; 13404 // #3302 13405 // HMR updated, force full diff 13406 if (( true) && isHmrUpdating) { 13407 optimized = false; 13408 dynamicChildren = null; 13409 } 13410 if (n1 == null) { 13411 // insert anchors in the main view 13412 const placeholder = (n2.el = ( true) 13413 ? createComment('teleport start') 13414 : 0); 13415 const mainAnchor = (n2.anchor = ( true) 13416 ? createComment('teleport end') 13417 : 0); 13418 insert(placeholder, container, anchor); 13419 insert(mainAnchor, container, anchor); 13420 const target = (n2.target = resolveTarget(n2.props, querySelector)); 13421 const targetAnchor = (n2.targetAnchor = createText('')); 13422 if (target) { 13423 insert(targetAnchor, target); 13424 // #2652 we could be teleporting from a non-SVG tree into an SVG tree 13425 isSVG = isSVG || isTargetSVG(target); 13426 } 13427 else if (( true) && !disabled) { 13428 warn('Invalid Teleport target on mount:', target, `(${typeof target})`); 13429 } 13430 const mount = (container, anchor) => { 13431 // Teleport *always* has Array children. This is enforced in both the 13432 // compiler and vnode children normalization. 13433 if (shapeFlag & 16 /* ARRAY_CHILDREN */) { 13434 mountChildren(children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); 13435 } 13436 }; 13437 if (disabled) { 13438 mount(container, mainAnchor); 13439 } 13440 else if (target) { 13441 mount(target, targetAnchor); 13442 } 13443 } 13444 else { 13445 // update content 13446 n2.el = n1.el; 13447 const mainAnchor = (n2.anchor = n1.anchor); 13448 const target = (n2.target = n1.target); 13449 const targetAnchor = (n2.targetAnchor = n1.targetAnchor); 13450 const wasDisabled = isTeleportDisabled(n1.props); 13451 const currentContainer = wasDisabled ? container : target; 13452 const currentAnchor = wasDisabled ? mainAnchor : targetAnchor; 13453 isSVG = isSVG || isTargetSVG(target); 13454 if (dynamicChildren) { 13455 // fast path when the teleport happens to be a block root 13456 patchBlockChildren(n1.dynamicChildren, dynamicChildren, currentContainer, parentComponent, parentSuspense, isSVG, slotScopeIds); 13457 // even in block tree mode we need to make sure all root-level nodes 13458 // in the teleport inherit previous DOM references so that they can 13459 // be moved in future patches. 13460 traverseStaticChildren(n1, n2, true); 13461 } 13462 else if (!optimized) { 13463 patchChildren(n1, n2, currentContainer, currentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, false); 13464 } 13465 if (disabled) { 13466 if (!wasDisabled) { 13467 // enabled -> disabled 13468 // move into main container 13469 moveTeleport(n2, container, mainAnchor, internals, 1 /* TOGGLE */); 13470 } 13471 } 13472 else { 13473 // target changed 13474 if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) { 13475 const nextTarget = (n2.target = resolveTarget(n2.props, querySelector)); 13476 if (nextTarget) { 13477 moveTeleport(n2, nextTarget, null, internals, 0 /* TARGET_CHANGE */); 13478 } 13479 else if ((true)) { 13480 warn('Invalid Teleport target on update:', target, `(${typeof target})`); 13481 } 13482 } 13483 else if (wasDisabled) { 13484 // disabled -> enabled 13485 // move into teleport target 13486 moveTeleport(n2, target, targetAnchor, internals, 1 /* TOGGLE */); 13487 } 13488 } 13489 } 13490 }, 13491 remove(vnode, parentComponent, parentSuspense, optimized, { um: unmount, o: { remove: hostRemove } }, doRemove) { 13492 const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode; 13493 if (target) { 13494 hostRemove(targetAnchor); 13495 } 13496 // an unmounted teleport should always remove its children if not disabled 13497 if (doRemove || !isTeleportDisabled(props)) { 13498 hostRemove(anchor); 13499 if (shapeFlag & 16 /* ARRAY_CHILDREN */) { 13500 for (let i = 0; i < children.length; i++) { 13501 const child = children[i]; 13502 unmount(child, parentComponent, parentSuspense, true, !!child.dynamicChildren); 13503 } 13504 } 13505 } 13506 }, 13507 move: moveTeleport, 13508 hydrate: hydrateTeleport 13509}; 13510function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2 /* REORDER */) { 13511 // move target anchor if this is a target change. 13512 if (moveType === 0 /* TARGET_CHANGE */) { 13513 insert(vnode.targetAnchor, container, parentAnchor); 13514 } 13515 const { el, anchor, shapeFlag, children, props } = vnode; 13516 const isReorder = moveType === 2 /* REORDER */; 13517 // move main view anchor if this is a re-order. 13518 if (isReorder) { 13519 insert(el, container, parentAnchor); 13520 } 13521 // if this is a re-order and teleport is enabled (content is in target) 13522 // do not move children. So the opposite is: only move children if this 13523 // is not a reorder, or the teleport is disabled 13524 if (!isReorder || isTeleportDisabled(props)) { 13525 // Teleport has either Array children or no children. 13526 if (shapeFlag & 16 /* ARRAY_CHILDREN */) { 13527 for (let i = 0; i < children.length; i++) { 13528 move(children[i], container, parentAnchor, 2 /* REORDER */); 13529 } 13530 } 13531 } 13532 // move main view anchor if this is a re-order. 13533 if (isReorder) { 13534 insert(anchor, container, parentAnchor); 13535 } 13536} 13537function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { o: { nextSibling, parentNode, querySelector } }, hydrateChildren) { 13538 const target = (vnode.target = resolveTarget(vnode.props, querySelector)); 13539 if (target) { 13540 // if multiple teleports rendered to the same target element, we need to 13541 // pick up from where the last teleport finished instead of the first node 13542 const targetNode = target._lpa || target.firstChild; 13543 if (vnode.shapeFlag & 16 /* ARRAY_CHILDREN */) { 13544 if (isTeleportDisabled(vnode.props)) { 13545 vnode.anchor = hydrateChildren(nextSibling(node), vnode, parentNode(node), parentComponent, parentSuspense, slotScopeIds, optimized); 13546 vnode.targetAnchor = targetNode; 13547 } 13548 else { 13549 vnode.anchor = nextSibling(node); 13550 // lookahead until we find the target anchor 13551 // we cannot rely on return value of hydrateChildren() because there 13552 // could be nested teleports 13553 let targetAnchor = targetNode; 13554 while (targetAnchor) { 13555 targetAnchor = nextSibling(targetAnchor); 13556 if (targetAnchor && 13557 targetAnchor.nodeType === 8 && 13558 targetAnchor.data === 'teleport anchor') { 13559 vnode.targetAnchor = targetAnchor; 13560 target._lpa = 13561 vnode.targetAnchor && nextSibling(vnode.targetAnchor); 13562 break; 13563 } 13564 } 13565 hydrateChildren(targetNode, vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized); 13566 } 13567 } 13568 } 13569 return vnode.anchor && nextSibling(vnode.anchor); 13570} 13571// Force-casted public typing for h and TSX props inference 13572const Teleport = TeleportImpl; 13573 13574const Fragment = Symbol(( true) ? 'Fragment' : 0); 13575const Text = Symbol(( true) ? 'Text' : 0); 13576const Comment = Symbol(( true) ? 'Comment' : 0); 13577const Static = Symbol(( true) ? 'Static' : 0); 13578// Since v-if and v-for are the two possible ways node structure can dynamically 13579// change, once we consider v-if branches and each v-for fragment a block, we 13580// can divide a template into nested blocks, and within each block the node 13581// structure would be stable. This allows us to skip most children diffing 13582// and only worry about the dynamic nodes (indicated by patch flags). 13583const blockStack = []; 13584let currentBlock = null; 13585/** 13586 * Open a block. 13587 * This must be called before `createBlock`. It cannot be part of `createBlock` 13588 * because the children of the block are evaluated before `createBlock` itself 13589 * is called. The generated code typically looks like this: 13590 * 13591 * ```js 13592 * function render() { 13593 * return (openBlock(),createBlock('div', null, [...])) 13594 * } 13595 * ``` 13596 * disableTracking is true when creating a v-for fragment block, since a v-for 13597 * fragment always diffs its children. 13598 * 13599 * @private 13600 */ 13601function openBlock(disableTracking = false) { 13602 blockStack.push((currentBlock = disableTracking ? null : [])); 13603} 13604function closeBlock() { 13605 blockStack.pop(); 13606 currentBlock = blockStack[blockStack.length - 1] || null; 13607} 13608// Whether we should be tracking dynamic child nodes inside a block. 13609// Only tracks when this value is > 0 13610// We are not using a simple boolean because this value may need to be 13611// incremented/decremented by nested usage of v-once (see below) 13612let isBlockTreeEnabled = 1; 13613/** 13614 * Block tracking sometimes needs to be disabled, for example during the 13615 * creation of a tree that needs to be cached by v-once. The compiler generates 13616 * code like this: 13617 * 13618 * ``` js 13619 * _cache[1] || ( 13620 * setBlockTracking(-1), 13621 * _cache[1] = createVNode(...), 13622 * setBlockTracking(1), 13623 * _cache[1] 13624 * ) 13625 * ``` 13626 * 13627 * @private 13628 */ 13629function setBlockTracking(value) { 13630 isBlockTreeEnabled += value; 13631} 13632function setupBlock(vnode) { 13633 // save current block children on the block vnode 13634 vnode.dynamicChildren = 13635 isBlockTreeEnabled > 0 ? currentBlock || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR : null; 13636 // close block 13637 closeBlock(); 13638 // a block is always going to be patched, so track it as a child of its 13639 // parent block 13640 if (isBlockTreeEnabled > 0 && currentBlock) { 13641 currentBlock.push(vnode); 13642 } 13643 return vnode; 13644} 13645/** 13646 * @private 13647 */ 13648function createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) { 13649 return setupBlock(createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, true /* isBlock */)); 13650} 13651/** 13652 * Create a block root vnode. Takes the same exact arguments as `createVNode`. 13653 * A block root keeps track of dynamic nodes within the block in the 13654 * `dynamicChildren` array. 13655 * 13656 * @private 13657 */ 13658function createBlock(type, props, children, patchFlag, dynamicProps) { 13659 return setupBlock(createVNode(type, props, children, patchFlag, dynamicProps, true /* isBlock: prevent a block from tracking itself */)); 13660} 13661function isVNode(value) { 13662 return value ? value.__v_isVNode === true : false; 13663} 13664function isSameVNodeType(n1, n2) { 13665 if (( true) && 13666 n2.shapeFlag & 6 /* COMPONENT */ && 13667 hmrDirtyComponents.has(n2.type)) { 13668 // HMR only: if the component has been hot-updated, force a reload. 13669 return false; 13670 } 13671 return n1.type === n2.type && n1.key === n2.key; 13672} 13673let vnodeArgsTransformer; 13674/** 13675 * Internal API for registering an arguments transform for createVNode 13676 * used for creating stubs in the test-utils 13677 * It is *internal* but needs to be exposed for test-utils to pick up proper 13678 * typings 13679 */ 13680function transformVNodeArgs(transformer) { 13681 vnodeArgsTransformer = transformer; 13682} 13683const createVNodeWithArgsTransform = (...args) => { 13684 return _createVNode(...(vnodeArgsTransformer 13685 ? vnodeArgsTransformer(args, currentRenderingInstance) 13686 : args)); 13687}; 13688const InternalObjectKey = `__vInternal`; 13689const normalizeKey = ({ key }) => key != null ? key : null; 13690const normalizeRef = ({ ref, ref_key, ref_for }) => { 13691 return (ref != null 13692 ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(ref) || (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(ref) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(ref) 13693 ? { i: currentRenderingInstance, r: ref, k: ref_key, f: !!ref_for } 13694 : ref 13695 : null); 13696}; 13697function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1 /* ELEMENT */, isBlockNode = false, needFullChildrenNormalization = false) { 13698 const vnode = { 13699 __v_isVNode: true, 13700 __v_skip: true, 13701 type, 13702 props, 13703 key: props && normalizeKey(props), 13704 ref: props && normalizeRef(props), 13705 scopeId: currentScopeId, 13706 slotScopeIds: null, 13707 children, 13708 component: null, 13709 suspense: null, 13710 ssContent: null, 13711 ssFallback: null, 13712 dirs: null, 13713 transition: null, 13714 el: null, 13715 anchor: null, 13716 target: null, 13717 targetAnchor: null, 13718 staticCount: 0, 13719 shapeFlag, 13720 patchFlag, 13721 dynamicProps, 13722 dynamicChildren: null, 13723 appContext: null 13724 }; 13725 if (needFullChildrenNormalization) { 13726 normalizeChildren(vnode, children); 13727 // normalize suspense children 13728 if (shapeFlag & 128 /* SUSPENSE */) { 13729 type.normalize(vnode); 13730 } 13731 } 13732 else if (children) { 13733 // compiled element vnode - if children is passed, only possible types are 13734 // string or Array. 13735 vnode.shapeFlag |= (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(children) 13736 ? 8 /* TEXT_CHILDREN */ 13737 : 16 /* ARRAY_CHILDREN */; 13738 } 13739 // validate key 13740 if (( true) && vnode.key !== vnode.key) { 13741 warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type); 13742 } 13743 // track vnode for block tree 13744 if (isBlockTreeEnabled > 0 && 13745 // avoid a block node from tracking itself 13746 !isBlockNode && 13747 // has current parent block 13748 currentBlock && 13749 // presence of a patch flag indicates this node needs patching on updates. 13750 // component nodes also should always be patched, because even if the 13751 // component doesn't need to update, it needs to persist the instance on to 13752 // the next vnode so that it can be properly unmounted later. 13753 (vnode.patchFlag > 0 || shapeFlag & 6 /* COMPONENT */) && 13754 // the EVENTS flag is only for hydration and if it is the only flag, the 13755 // vnode should not be considered dynamic due to handler caching. 13756 vnode.patchFlag !== 32 /* HYDRATE_EVENTS */) { 13757 currentBlock.push(vnode); 13758 } 13759 return vnode; 13760} 13761const createVNode = (( true) ? createVNodeWithArgsTransform : 0); 13762function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) { 13763 if (!type || type === NULL_DYNAMIC_COMPONENT) { 13764 if (( true) && !type) { 13765 warn(`Invalid vnode type when creating vnode: ${type}.`); 13766 } 13767 type = Comment; 13768 } 13769 if (isVNode(type)) { 13770 // createVNode receiving an existing vnode. This happens in cases like 13771 // <component :is="vnode"/> 13772 // #2078 make sure to merge refs during the clone instead of overwriting it 13773 const cloned = cloneVNode(type, props, true /* mergeRef: true */); 13774 if (children) { 13775 normalizeChildren(cloned, children); 13776 } 13777 if (isBlockTreeEnabled > 0 && !isBlockNode && currentBlock) { 13778 if (cloned.shapeFlag & 6 /* COMPONENT */) { 13779 currentBlock[currentBlock.indexOf(type)] = cloned; 13780 } 13781 else { 13782 currentBlock.push(cloned); 13783 } 13784 } 13785 cloned.patchFlag |= -2 /* BAIL */; 13786 return cloned; 13787 } 13788 // class component normalization. 13789 if (isClassComponent(type)) { 13790 type = type.__vccOpts; 13791 } 13792 // class & style normalization. 13793 if (props) { 13794 // for reactive or proxy objects, we need to clone it to enable mutation. 13795 props = guardReactiveProps(props); 13796 let { class: klass, style } = props; 13797 if (klass && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(klass)) { 13798 props.class = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)(klass); 13799 } 13800 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(style)) { 13801 // reactive state objects need to be cloned since they are likely to be 13802 // mutated 13803 if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(style) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(style)) { 13804 style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, style); 13805 } 13806 props.style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle)(style); 13807 } 13808 } 13809 // encode the vnode type information into a bitmap 13810 const shapeFlag = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(type) 13811 ? 1 /* ELEMENT */ 13812 : isSuspense(type) 13813 ? 128 /* SUSPENSE */ 13814 : isTeleport(type) 13815 ? 64 /* TELEPORT */ 13816 : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(type) 13817 ? 4 /* STATEFUL_COMPONENT */ 13818 : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(type) 13819 ? 2 /* FUNCTIONAL_COMPONENT */ 13820 : 0; 13821 if (( true) && shapeFlag & 4 /* STATEFUL_COMPONENT */ && (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(type)) { 13822 type = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(type); 13823 warn(`Vue received a Component which was made a reactive object. This can ` + 13824 `lead to unnecessary performance overhead, and should be avoided by ` + 13825 `marking the component with \`markRaw\` or using \`shallowRef\` ` + 13826 `instead of \`ref\`.`, `\nComponent that was made reactive: `, type); 13827 } 13828 return createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, isBlockNode, true); 13829} 13830function guardReactiveProps(props) { 13831 if (!props) 13832 return null; 13833 return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(props) || InternalObjectKey in props 13834 ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, props) 13835 : props; 13836} 13837function cloneVNode(vnode, extraProps, mergeRef = false) { 13838 // This is intentionally NOT using spread or extend to avoid the runtime 13839 // key enumeration cost. 13840 const { props, ref, patchFlag, children } = vnode; 13841 const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props; 13842 const cloned = { 13843 __v_isVNode: true, 13844 __v_skip: true, 13845 type: vnode.type, 13846 props: mergedProps, 13847 key: mergedProps && normalizeKey(mergedProps), 13848 ref: extraProps && extraProps.ref 13849 ? // #2078 in the case of <component :is="vnode" ref="extra"/> 13850 // if the vnode itself already has a ref, cloneVNode will need to merge 13851 // the refs so the single vnode can be set on multiple refs 13852 mergeRef && ref 13853 ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ref) 13854 ? ref.concat(normalizeRef(extraProps)) 13855 : [ref, normalizeRef(extraProps)] 13856 : normalizeRef(extraProps) 13857 : ref, 13858 scopeId: vnode.scopeId, 13859 slotScopeIds: vnode.slotScopeIds, 13860 children: ( true) && patchFlag === -1 /* HOISTED */ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(children) 13861 ? children.map(deepCloneVNode) 13862 : children, 13863 target: vnode.target, 13864 targetAnchor: vnode.targetAnchor, 13865 staticCount: vnode.staticCount, 13866 shapeFlag: vnode.shapeFlag, 13867 // if the vnode is cloned with extra props, we can no longer assume its 13868 // existing patch flag to be reliable and need to add the FULL_PROPS flag. 13869 // note: preserve flag for fragments since they use the flag for children 13870 // fast paths only. 13871 patchFlag: extraProps && vnode.type !== Fragment 13872 ? patchFlag === -1 // hoisted node 13873 ? 16 /* FULL_PROPS */ 13874 : patchFlag | 16 /* FULL_PROPS */ 13875 : patchFlag, 13876 dynamicProps: vnode.dynamicProps, 13877 dynamicChildren: vnode.dynamicChildren, 13878 appContext: vnode.appContext, 13879 dirs: vnode.dirs, 13880 transition: vnode.transition, 13881 // These should technically only be non-null on mounted VNodes. However, 13882 // they *should* be copied for kept-alive vnodes. So we just always copy 13883 // them since them being non-null during a mount doesn't affect the logic as 13884 // they will simply be overwritten. 13885 component: vnode.component, 13886 suspense: vnode.suspense, 13887 ssContent: vnode.ssContent && cloneVNode(vnode.ssContent), 13888 ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback), 13889 el: vnode.el, 13890 anchor: vnode.anchor 13891 }; 13892 return cloned; 13893} 13894/** 13895 * Dev only, for HMR of hoisted vnodes reused in v-for 13896 * https://github.com/vitejs/vite/issues/2022 13897 */ 13898function deepCloneVNode(vnode) { 13899 const cloned = cloneVNode(vnode); 13900 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(vnode.children)) { 13901 cloned.children = vnode.children.map(deepCloneVNode); 13902 } 13903 return cloned; 13904} 13905/** 13906 * @private 13907 */ 13908function createTextVNode(text = ' ', flag = 0) { 13909 return createVNode(Text, null, text, flag); 13910} 13911/** 13912 * @private 13913 */ 13914function createStaticVNode(content, numberOfNodes) { 13915 // A static vnode can contain multiple stringified elements, and the number 13916 // of elements is necessary for hydration. 13917 const vnode = createVNode(Static, null, content); 13918 vnode.staticCount = numberOfNodes; 13919 return vnode; 13920} 13921/** 13922 * @private 13923 */ 13924function createCommentVNode(text = '', 13925// when used as the v-else branch, the comment node must be created as a 13926// block to ensure correct updates. 13927asBlock = false) { 13928 return asBlock 13929 ? (openBlock(), createBlock(Comment, null, text)) 13930 : createVNode(Comment, null, text); 13931} 13932function normalizeVNode(child) { 13933 if (child == null || typeof child === 'boolean') { 13934 // empty placeholder 13935 return createVNode(Comment); 13936 } 13937 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(child)) { 13938 // fragment 13939 return createVNode(Fragment, null, 13940 // #3666, avoid reference pollution when reusing vnode 13941 child.slice()); 13942 } 13943 else if (typeof child === 'object') { 13944 // already vnode, this should be the most common since compiled templates 13945 // always produce all-vnode children arrays 13946 return cloneIfMounted(child); 13947 } 13948 else { 13949 // strings and numbers 13950 return createVNode(Text, null, String(child)); 13951 } 13952} 13953// optimized normalization for template-compiled render fns 13954function cloneIfMounted(child) { 13955 return child.el === null || child.memo ? child : cloneVNode(child); 13956} 13957function normalizeChildren(vnode, children) { 13958 let type = 0; 13959 const { shapeFlag } = vnode; 13960 if (children == null) { 13961 children = null; 13962 } 13963 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(children)) { 13964 type = 16 /* ARRAY_CHILDREN */; 13965 } 13966 else if (typeof children === 'object') { 13967 if (shapeFlag & (1 /* ELEMENT */ | 64 /* TELEPORT */)) { 13968 // Normalize slot to plain children for plain element and Teleport 13969 const slot = children.default; 13970 if (slot) { 13971 // _c marker is added by withCtx() indicating this is a compiled slot 13972 slot._c && (slot._d = false); 13973 normalizeChildren(vnode, slot()); 13974 slot._c && (slot._d = true); 13975 } 13976 return; 13977 } 13978 else { 13979 type = 32 /* SLOTS_CHILDREN */; 13980 const slotFlag = children._; 13981 if (!slotFlag && !(InternalObjectKey in children)) { 13982 children._ctx = currentRenderingInstance; 13983 } 13984 else if (slotFlag === 3 /* FORWARDED */ && currentRenderingInstance) { 13985 // a child component receives forwarded slots from the parent. 13986 // its slot type is determined by its parent's slot type. 13987 if (currentRenderingInstance.slots._ === 1 /* STABLE */) { 13988 children._ = 1 /* STABLE */; 13989 } 13990 else { 13991 children._ = 2 /* DYNAMIC */; 13992 vnode.patchFlag |= 1024 /* DYNAMIC_SLOTS */; 13993 } 13994 } 13995 } 13996 } 13997 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(children)) { 13998 children = { default: children, _ctx: currentRenderingInstance }; 13999 type = 32 /* SLOTS_CHILDREN */; 14000 } 14001 else { 14002 children = String(children); 14003 // force teleport children to array so it can be moved around 14004 if (shapeFlag & 64 /* TELEPORT */) { 14005 type = 16 /* ARRAY_CHILDREN */; 14006 children = [createTextVNode(children)]; 14007 } 14008 else { 14009 type = 8 /* TEXT_CHILDREN */; 14010 } 14011 } 14012 vnode.children = children; 14013 vnode.shapeFlag |= type; 14014} 14015function mergeProps(...args) { 14016 const ret = {}; 14017 for (let i = 0; i < args.length; i++) { 14018 const toMerge = args[i]; 14019 for (const key in toMerge) { 14020 if (key === 'class') { 14021 if (ret.class !== toMerge.class) { 14022 ret.class = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)([ret.class, toMerge.class]); 14023 } 14024 } 14025 else if (key === 'style') { 14026 ret.style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle)([ret.style, toMerge.style]); 14027 } 14028 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) { 14029 const existing = ret[key]; 14030 const incoming = toMerge[key]; 14031 if (incoming && 14032 existing !== incoming && 14033 !((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing) && existing.includes(incoming))) { 14034 ret[key] = existing 14035 ? [].concat(existing, incoming) 14036 : incoming; 14037 } 14038 } 14039 else if (key !== '') { 14040 ret[key] = toMerge[key]; 14041 } 14042 } 14043 } 14044 return ret; 14045} 14046function invokeVNodeHook(hook, instance, vnode, prevVNode = null) { 14047 callWithAsyncErrorHandling(hook, instance, 7 /* VNODE_HOOK */, [ 14048 vnode, 14049 prevVNode 14050 ]); 14051} 14052 14053const emptyAppContext = createAppContext(); 14054let uid$1 = 0; 14055function createComponentInstance(vnode, parent, suspense) { 14056 const type = vnode.type; 14057 // inherit parent app context - or - if root, adopt from root vnode 14058 const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext; 14059 const instance = { 14060 uid: uid$1++, 14061 vnode, 14062 type, 14063 parent, 14064 appContext, 14065 root: null, 14066 next: null, 14067 subTree: null, 14068 effect: null, 14069 update: null, 14070 scope: new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.EffectScope(true /* detached */), 14071 render: null, 14072 proxy: null, 14073 exposed: null, 14074 exposeProxy: null, 14075 withProxy: null, 14076 provides: parent ? parent.provides : Object.create(appContext.provides), 14077 accessCache: null, 14078 renderCache: [], 14079 // local resolved assets 14080 components: null, 14081 directives: null, 14082 // resolved props and emits options 14083 propsOptions: normalizePropsOptions(type, appContext), 14084 emitsOptions: normalizeEmitsOptions(type, appContext), 14085 // emit 14086 emit: null, 14087 emitted: null, 14088 // props default value 14089 propsDefaults: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ, 14090 // inheritAttrs 14091 inheritAttrs: type.inheritAttrs, 14092 // state 14093 ctx: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ, 14094 data: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ, 14095 props: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ, 14096 attrs: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ, 14097 slots: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ, 14098 refs: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ, 14099 setupState: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ, 14100 setupContext: null, 14101 // suspense related 14102 suspense, 14103 suspenseId: suspense ? suspense.pendingId : 0, 14104 asyncDep: null, 14105 asyncResolved: false, 14106 // lifecycle hooks 14107 // not using enums here because it results in computed properties 14108 isMounted: false, 14109 isUnmounted: false, 14110 isDeactivated: false, 14111 bc: null, 14112 c: null, 14113 bm: null, 14114 m: null, 14115 bu: null, 14116 u: null, 14117 um: null, 14118 bum: null, 14119 da: null, 14120 a: null, 14121 rtg: null, 14122 rtc: null, 14123 ec: null, 14124 sp: null 14125 }; 14126 if ((true)) { 14127 instance.ctx = createDevRenderContext(instance); 14128 } 14129 else {} 14130 instance.root = parent ? parent.root : instance; 14131 instance.emit = emit$1.bind(null, instance); 14132 // apply custom element special handling 14133 if (vnode.ce) { 14134 vnode.ce(instance); 14135 } 14136 return instance; 14137} 14138let currentInstance = null; 14139const getCurrentInstance = () => currentInstance || currentRenderingInstance; 14140const setCurrentInstance = (instance) => { 14141 currentInstance = instance; 14142 instance.scope.on(); 14143}; 14144const unsetCurrentInstance = () => { 14145 currentInstance && currentInstance.scope.off(); 14146 currentInstance = null; 14147}; 14148const isBuiltInTag = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('slot,component'); 14149function validateComponentName(name, config) { 14150 const appIsNativeTag = config.isNativeTag || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NO; 14151 if (isBuiltInTag(name) || appIsNativeTag(name)) { 14152 warn('Do not use built-in or reserved HTML elements as component id: ' + name); 14153 } 14154} 14155function isStatefulComponent(instance) { 14156 return instance.vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */; 14157} 14158let isInSSRComponentSetup = false; 14159function setupComponent(instance, isSSR = false) { 14160 isInSSRComponentSetup = isSSR; 14161 const { props, children } = instance.vnode; 14162 const isStateful = isStatefulComponent(instance); 14163 initProps(instance, props, isStateful, isSSR); 14164 initSlots(instance, children); 14165 const setupResult = isStateful 14166 ? setupStatefulComponent(instance, isSSR) 14167 : undefined; 14168 isInSSRComponentSetup = false; 14169 return setupResult; 14170} 14171function setupStatefulComponent(instance, isSSR) { 14172 var _a; 14173 const Component = instance.type; 14174 if ((true)) { 14175 if (Component.name) { 14176 validateComponentName(Component.name, instance.appContext.config); 14177 } 14178 if (Component.components) { 14179 const names = Object.keys(Component.components); 14180 for (let i = 0; i < names.length; i++) { 14181 validateComponentName(names[i], instance.appContext.config); 14182 } 14183 } 14184 if (Component.directives) { 14185 const names = Object.keys(Component.directives); 14186 for (let i = 0; i < names.length; i++) { 14187 validateDirectiveName(names[i]); 14188 } 14189 } 14190 if (Component.compilerOptions && isRuntimeOnly()) { 14191 warn(`"compilerOptions" is only supported when using a build of Vue that ` + 14192 `includes the runtime compiler. Since you are using a runtime-only ` + 14193 `build, the options should be passed via your build tool config instead.`); 14194 } 14195 } 14196 // 0. create render proxy property access cache 14197 instance.accessCache = Object.create(null); 14198 // 1. create public instance / render proxy 14199 // also mark it raw so it's never observed 14200 instance.proxy = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw)(new Proxy(instance.ctx, PublicInstanceProxyHandlers)); 14201 if ((true)) { 14202 exposePropsOnRenderContext(instance); 14203 } 14204 // 2. call setup() 14205 const { setup } = Component; 14206 if (setup) { 14207 const setupContext = (instance.setupContext = 14208 setup.length > 1 ? createSetupContext(instance) : null); 14209 setCurrentInstance(instance); 14210 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)(); 14211 const setupResult = callWithErrorHandling(setup, instance, 0 /* SETUP_FUNCTION */, [( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(instance.props) : 0, setupContext]); 14212 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)(); 14213 unsetCurrentInstance(); 14214 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(setupResult)) { 14215 setupResult.then(unsetCurrentInstance, unsetCurrentInstance); 14216 if (isSSR) { 14217 // return the promise so server-renderer can wait on it 14218 return setupResult 14219 .then((resolvedResult) => { 14220 handleSetupResult(instance, resolvedResult, isSSR); 14221 }) 14222 .catch(e => { 14223 handleError(e, instance, 0 /* SETUP_FUNCTION */); 14224 }); 14225 } 14226 else { 14227 // async setup returned Promise. 14228 // bail here and wait for re-entry. 14229 instance.asyncDep = setupResult; 14230 if (( true) && !instance.suspense) { 14231 const name = (_a = Component.name) !== null && _a !== void 0 ? _a : 'Anonymous'; 14232 warn(`Component <${name}>: setup function returned a promise, but no ` + 14233 `<Suspense> boundary was found in the parent component tree. ` + 14234 `A component with async setup() must be nested in a <Suspense> ` + 14235 `in order to be rendered.`); 14236 } 14237 } 14238 } 14239 else { 14240 handleSetupResult(instance, setupResult, isSSR); 14241 } 14242 } 14243 else { 14244 finishComponentSetup(instance, isSSR); 14245 } 14246} 14247function handleSetupResult(instance, setupResult, isSSR) { 14248 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(setupResult)) { 14249 // setup returned an inline render function 14250 if (instance.type.__ssrInlineRender) { 14251 // when the function's name is `ssrRender` (compiled by SFC inline mode), 14252 // set it as ssrRender instead. 14253 instance.ssrRender = setupResult; 14254 } 14255 else { 14256 instance.render = setupResult; 14257 } 14258 } 14259 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(setupResult)) { 14260 if (( true) && isVNode(setupResult)) { 14261 warn(`setup() should not return VNodes directly - ` + 14262 `return a render function instead.`); 14263 } 14264 // setup returned bindings. 14265 // assuming a render function compiled from template is present. 14266 if (true) { 14267 instance.devtoolsRawSetupState = setupResult; 14268 } 14269 instance.setupState = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs)(setupResult); 14270 if ((true)) { 14271 exposeSetupStateOnRenderContext(instance); 14272 } 14273 } 14274 else if (( true) && setupResult !== undefined) { 14275 warn(`setup() should return an object. Received: ${setupResult === null ? 'null' : typeof setupResult}`); 14276 } 14277 finishComponentSetup(instance, isSSR); 14278} 14279let compile; 14280let installWithProxy; 14281/** 14282 * For runtime-dom to register the compiler. 14283 * Note the exported method uses any to avoid d.ts relying on the compiler types. 14284 */ 14285function registerRuntimeCompiler(_compile) { 14286 compile = _compile; 14287 installWithProxy = i => { 14288 if (i.render._rc) { 14289 i.withProxy = new Proxy(i.ctx, RuntimeCompiledPublicInstanceProxyHandlers); 14290 } 14291 }; 14292} 14293// dev only 14294const isRuntimeOnly = () => !compile; 14295function finishComponentSetup(instance, isSSR, skipOptions) { 14296 const Component = instance.type; 14297 // template / render function normalization 14298 // could be already set when returned from setup() 14299 if (!instance.render) { 14300 // only do on-the-fly compile if not in SSR - SSR on-the-fly compilation 14301 // is done by server-renderer 14302 if (!isSSR && compile && !Component.render) { 14303 const template = Component.template; 14304 if (template) { 14305 if ((true)) { 14306 startMeasure(instance, `compile`); 14307 } 14308 const { isCustomElement, compilerOptions } = instance.appContext.config; 14309 const { delimiters, compilerOptions: componentCompilerOptions } = Component; 14310 const finalCompilerOptions = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({ 14311 isCustomElement, 14312 delimiters 14313 }, compilerOptions), componentCompilerOptions); 14314 Component.render = compile(template, finalCompilerOptions); 14315 if ((true)) { 14316 endMeasure(instance, `compile`); 14317 } 14318 } 14319 } 14320 instance.render = (Component.render || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP); 14321 // for runtime-compiled render functions using `with` blocks, the render 14322 // proxy used needs a different `has` handler which is more performant and 14323 // also only allows a whitelist of globals to fallthrough. 14324 if (installWithProxy) { 14325 installWithProxy(instance); 14326 } 14327 } 14328 // support for 2.x options 14329 if (true) { 14330 setCurrentInstance(instance); 14331 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)(); 14332 applyOptions(instance); 14333 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)(); 14334 unsetCurrentInstance(); 14335 } 14336 // warn missing template/render 14337 // the runtime compilation of template in SSR is done by server-render 14338 if (( true) && !Component.render && instance.render === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP && !isSSR) { 14339 /* istanbul ignore if */ 14340 if (!compile && Component.template) { 14341 warn(`Component provided template option but ` + 14342 `runtime compilation is not supported in this build of Vue.` + 14343 (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` 14344 ) /* should not happen */); 14345 } 14346 else { 14347 warn(`Component is missing template or render function.`); 14348 } 14349 } 14350} 14351function createAttrsProxy(instance) { 14352 return new Proxy(instance.attrs, ( true) 14353 ? { 14354 get(target, key) { 14355 markAttrsAccessed(); 14356 (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.track)(instance, "get" /* GET */, '$attrs'); 14357 return target[key]; 14358 }, 14359 set() { 14360 warn(`setupContext.attrs is readonly.`); 14361 return false; 14362 }, 14363 deleteProperty() { 14364 warn(`setupContext.attrs is readonly.`); 14365 return false; 14366 } 14367 } 14368 : 0); 14369} 14370function createSetupContext(instance) { 14371 const expose = exposed => { 14372 if (( true) && instance.exposed) { 14373 warn(`expose() should be called only once per setup().`); 14374 } 14375 instance.exposed = exposed || {}; 14376 }; 14377 let attrs; 14378 if ((true)) { 14379 // We use getters in dev in case libs like test-utils overwrite instance 14380 // properties (overwrites should not be done in prod) 14381 return Object.freeze({ 14382 get attrs() { 14383 return attrs || (attrs = createAttrsProxy(instance)); 14384 }, 14385 get slots() { 14386 return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(instance.slots); 14387 }, 14388 get emit() { 14389 return (event, ...args) => instance.emit(event, ...args); 14390 }, 14391 expose 14392 }); 14393 } 14394 else {} 14395} 14396function getExposeProxy(instance) { 14397 if (instance.exposed) { 14398 return (instance.exposeProxy || 14399 (instance.exposeProxy = new Proxy((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs)((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw)(instance.exposed)), { 14400 get(target, key) { 14401 if (key in target) { 14402 return target[key]; 14403 } 14404 else if (key in publicPropertiesMap) { 14405 return publicPropertiesMap[key](instance); 14406 } 14407 } 14408 }))); 14409 } 14410} 14411const classifyRE = /(?:^|[-_])(\w)/g; 14412const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, ''); 14413function getComponentName(Component, includeInferred = true) { 14414 return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(Component) 14415 ? Component.displayName || Component.name 14416 : Component.name || (includeInferred && Component.__name); 14417} 14418/* istanbul ignore next */ 14419function formatComponentName(instance, Component, isRoot = false) { 14420 let name = getComponentName(Component); 14421 if (!name && Component.__file) { 14422 const match = Component.__file.match(/([^/\\]+)\.\w+$/); 14423 if (match) { 14424 name = match[1]; 14425 } 14426 } 14427 if (!name && instance && instance.parent) { 14428 // try to infer the name based on reverse resolution 14429 const inferFromRegistry = (registry) => { 14430 for (const key in registry) { 14431 if (registry[key] === Component) { 14432 return key; 14433 } 14434 } 14435 }; 14436 name = 14437 inferFromRegistry(instance.components || 14438 instance.parent.type.components) || inferFromRegistry(instance.appContext.components); 14439 } 14440 return name ? classify(name) : isRoot ? `App` : `Anonymous`; 14441} 14442function isClassComponent(value) { 14443 return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value) && '__vccOpts' in value; 14444} 14445 14446const computed = ((getterOrOptions, debugOptions) => { 14447 // @ts-ignore 14448 return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.computed)(getterOrOptions, debugOptions, isInSSRComponentSetup); 14449}); 14450 14451// dev only 14452const warnRuntimeUsage = (method) => warn(`${method}() is a compiler-hint helper that is only usable inside ` + 14453 `<script setup> of a single file component. Its arguments should be ` + 14454 `compiled away and passing it at runtime has no effect.`); 14455// implementation 14456function defineProps() { 14457 if ((true)) { 14458 warnRuntimeUsage(`defineProps`); 14459 } 14460 return null; 14461} 14462// implementation 14463function defineEmits() { 14464 if ((true)) { 14465 warnRuntimeUsage(`defineEmits`); 14466 } 14467 return null; 14468} 14469/** 14470 * Vue `<script setup>` compiler macro for declaring a component's exposed 14471 * instance properties when it is accessed by a parent component via template 14472 * refs. 14473 * 14474 * `<script setup>` components are closed by default - i.e. variables inside 14475 * the `<script setup>` scope is not exposed to parent unless explicitly exposed 14476 * via `defineExpose`. 14477 * 14478 * This is only usable inside `<script setup>`, is compiled away in the 14479 * output and should **not** be actually called at runtime. 14480 */ 14481function defineExpose(exposed) { 14482 if ((true)) { 14483 warnRuntimeUsage(`defineExpose`); 14484 } 14485} 14486/** 14487 * Vue `<script setup>` compiler macro for providing props default values when 14488 * using type-based `defineProps` declaration. 14489 * 14490 * Example usage: 14491 * ```ts 14492 * withDefaults(defineProps<{ 14493 * size?: number 14494 * labels?: string[] 14495 * }>(), { 14496 * size: 3, 14497 * labels: () => ['default label'] 14498 * }) 14499 * ``` 14500 * 14501 * This is only usable inside `<script setup>`, is compiled away in the output 14502 * and should **not** be actually called at runtime. 14503 */ 14504function withDefaults(props, defaults) { 14505 if ((true)) { 14506 warnRuntimeUsage(`withDefaults`); 14507 } 14508 return null; 14509} 14510function useSlots() { 14511 return getContext().slots; 14512} 14513function useAttrs() { 14514 return getContext().attrs; 14515} 14516function getContext() { 14517 const i = getCurrentInstance(); 14518 if (( true) && !i) { 14519 warn(`useContext() called without active instance.`); 14520 } 14521 return i.setupContext || (i.setupContext = createSetupContext(i)); 14522} 14523/** 14524 * Runtime helper for merging default declarations. Imported by compiled code 14525 * only. 14526 * @internal 14527 */ 14528function mergeDefaults(raw, defaults) { 14529 const props = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw) 14530 ? raw.reduce((normalized, p) => ((normalized[p] = {}), normalized), {}) 14531 : raw; 14532 for (const key in defaults) { 14533 const opt = props[key]; 14534 if (opt) { 14535 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opt) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt)) { 14536 props[key] = { type: opt, default: defaults[key] }; 14537 } 14538 else { 14539 opt.default = defaults[key]; 14540 } 14541 } 14542 else if (opt === null) { 14543 props[key] = { default: defaults[key] }; 14544 } 14545 else if ((true)) { 14546 warn(`props default key "${key}" has no corresponding declaration.`); 14547 } 14548 } 14549 return props; 14550} 14551/** 14552 * Used to create a proxy for the rest element when destructuring props with 14553 * defineProps(). 14554 * @internal 14555 */ 14556function createPropsRestProxy(props, excludedKeys) { 14557 const ret = {}; 14558 for (const key in props) { 14559 if (!excludedKeys.includes(key)) { 14560 Object.defineProperty(ret, key, { 14561 enumerable: true, 14562 get: () => props[key] 14563 }); 14564 } 14565 } 14566 return ret; 14567} 14568/** 14569 * `<script setup>` helper for persisting the current instance context over 14570 * async/await flows. 14571 * 14572 * `@vue/compiler-sfc` converts the following: 14573 * 14574 * ```ts 14575 * const x = await foo() 14576 * ``` 14577 * 14578 * into: 14579 * 14580 * ```ts 14581 * let __temp, __restore 14582 * const x = (([__temp, __restore] = withAsyncContext(() => foo())),__temp=await __temp,__restore(),__temp) 14583 * ``` 14584 * @internal 14585 */ 14586function withAsyncContext(getAwaitable) { 14587 const ctx = getCurrentInstance(); 14588 if (( true) && !ctx) { 14589 warn(`withAsyncContext called without active current instance. ` + 14590 `This is likely a bug.`); 14591 } 14592 let awaitable = getAwaitable(); 14593 unsetCurrentInstance(); 14594 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(awaitable)) { 14595 awaitable = awaitable.catch(e => { 14596 setCurrentInstance(ctx); 14597 throw e; 14598 }); 14599 } 14600 return [awaitable, () => setCurrentInstance(ctx)]; 14601} 14602 14603// Actual implementation 14604function h(type, propsOrChildren, children) { 14605 const l = arguments.length; 14606 if (l === 2) { 14607 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(propsOrChildren) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(propsOrChildren)) { 14608 // single vnode without props 14609 if (isVNode(propsOrChildren)) { 14610 return createVNode(type, null, [propsOrChildren]); 14611 } 14612 // props without children 14613 return createVNode(type, propsOrChildren); 14614 } 14615 else { 14616 // omit props 14617 return createVNode(type, null, propsOrChildren); 14618 } 14619 } 14620 else { 14621 if (l > 3) { 14622 children = Array.prototype.slice.call(arguments, 2); 14623 } 14624 else if (l === 3 && isVNode(children)) { 14625 children = [children]; 14626 } 14627 return createVNode(type, propsOrChildren, children); 14628 } 14629} 14630 14631const ssrContextKey = Symbol(( true) ? `ssrContext` : 0); 14632const useSSRContext = () => { 14633 { 14634 const ctx = inject(ssrContextKey); 14635 if (!ctx) { 14636 warn(`Server rendering context not provided. Make sure to only call ` + 14637 `useSSRContext() conditionally in the server build.`); 14638 } 14639 return ctx; 14640 } 14641}; 14642 14643function isShallow(value) { 14644 return !!(value && value["__v_isShallow" /* IS_SHALLOW */]); 14645} 14646 14647function initCustomFormatter() { 14648 /* eslint-disable no-restricted-globals */ 14649 if ( false || typeof window === 'undefined') { 14650 return; 14651 } 14652 const vueStyle = { style: 'color:#3ba776' }; 14653 const numberStyle = { style: 'color:#0b1bc9' }; 14654 const stringStyle = { style: 'color:#b62e24' }; 14655 const keywordStyle = { style: 'color:#9d288c' }; 14656 // custom formatter for Chrome 14657 // https://www.mattzeunert.com/2016/02/19/custom-chrome-devtools-object-formatters.html 14658 const formatter = { 14659 header(obj) { 14660 // TODO also format ComponentPublicInstance & ctx.slots/attrs in setup 14661 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(obj)) { 14662 return null; 14663 } 14664 if (obj.__isVue) { 14665 return ['div', vueStyle, `VueInstance`]; 14666 } 14667 else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(obj)) { 14668 return [ 14669 'div', 14670 {}, 14671 ['span', vueStyle, genRefFlag(obj)], 14672 '<', 14673 formatValue(obj.value), 14674 `>` 14675 ]; 14676 } 14677 else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(obj)) { 14678 return [ 14679 'div', 14680 {}, 14681 ['span', vueStyle, isShallow(obj) ? 'ShallowReactive' : 'Reactive'], 14682 '<', 14683 formatValue(obj), 14684 `>${(0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly)(obj) ? ` (readonly)` : ``}` 14685 ]; 14686 } 14687 else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly)(obj)) { 14688 return [ 14689 'div', 14690 {}, 14691 ['span', vueStyle, isShallow(obj) ? 'ShallowReadonly' : 'Readonly'], 14692 '<', 14693 formatValue(obj), 14694 '>' 14695 ]; 14696 } 14697 return null; 14698 }, 14699 hasBody(obj) { 14700 return obj && obj.__isVue; 14701 }, 14702 body(obj) { 14703 if (obj && obj.__isVue) { 14704 return [ 14705 'div', 14706 {}, 14707 ...formatInstance(obj.$) 14708 ]; 14709 } 14710 } 14711 }; 14712 function formatInstance(instance) { 14713 const blocks = []; 14714 if (instance.type.props && instance.props) { 14715 blocks.push(createInstanceBlock('props', (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(instance.props))); 14716 } 14717 if (instance.setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) { 14718 blocks.push(createInstanceBlock('setup', instance.setupState)); 14719 } 14720 if (instance.data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) { 14721 blocks.push(createInstanceBlock('data', (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(instance.data))); 14722 } 14723 const computed = extractKeys(instance, 'computed'); 14724 if (computed) { 14725 blocks.push(createInstanceBlock('computed', computed)); 14726 } 14727 const injected = extractKeys(instance, 'inject'); 14728 if (injected) { 14729 blocks.push(createInstanceBlock('injected', injected)); 14730 } 14731 blocks.push([ 14732 'div', 14733 {}, 14734 [ 14735 'span', 14736 { 14737 style: keywordStyle.style + ';opacity:0.66' 14738 }, 14739 '$ (internal): ' 14740 ], 14741 ['object', { object: instance }] 14742 ]); 14743 return blocks; 14744 } 14745 function createInstanceBlock(type, target) { 14746 target = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, target); 14747 if (!Object.keys(target).length) { 14748 return ['span', {}]; 14749 } 14750 return [ 14751 'div', 14752 { style: 'line-height:1.25em;margin-bottom:0.6em' }, 14753 [ 14754 'div', 14755 { 14756 style: 'color:#476582' 14757 }, 14758 type 14759 ], 14760 [ 14761 'div', 14762 { 14763 style: 'padding-left:1.25em' 14764 }, 14765 ...Object.keys(target).map(key => { 14766 return [ 14767 'div', 14768 {}, 14769 ['span', keywordStyle, key + ': '], 14770 formatValue(target[key], false) 14771 ]; 14772 }) 14773 ] 14774 ]; 14775 } 14776 function formatValue(v, asRaw = true) { 14777 if (typeof v === 'number') { 14778 return ['span', numberStyle, v]; 14779 } 14780 else if (typeof v === 'string') { 14781 return ['span', stringStyle, JSON.stringify(v)]; 14782 } 14783 else if (typeof v === 'boolean') { 14784 return ['span', keywordStyle, v]; 14785 } 14786 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(v)) { 14787 return ['object', { object: asRaw ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(v) : v }]; 14788 } 14789 else { 14790 return ['span', stringStyle, String(v)]; 14791 } 14792 } 14793 function extractKeys(instance, type) { 14794 const Comp = instance.type; 14795 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(Comp)) { 14796 return; 14797 } 14798 const extracted = {}; 14799 for (const key in instance.ctx) { 14800 if (isKeyOfType(Comp, key, type)) { 14801 extracted[key] = instance.ctx[key]; 14802 } 14803 } 14804 return extracted; 14805 } 14806 function isKeyOfType(Comp, key, type) { 14807 const opts = Comp[type]; 14808 if (((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opts) && opts.includes(key)) || 14809 ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(opts) && key in opts)) { 14810 return true; 14811 } 14812 if (Comp.extends && isKeyOfType(Comp.extends, key, type)) { 14813 return true; 14814 } 14815 if (Comp.mixins && Comp.mixins.some(m => isKeyOfType(m, key, type))) { 14816 return true; 14817 } 14818 } 14819 function genRefFlag(v) { 14820 if (isShallow(v)) { 14821 return `ShallowRef`; 14822 } 14823 if (v.effect) { 14824 return `ComputedRef`; 14825 } 14826 return `Ref`; 14827 } 14828 if (window.devtoolsFormatters) { 14829 window.devtoolsFormatters.push(formatter); 14830 } 14831 else { 14832 window.devtoolsFormatters = [formatter]; 14833 } 14834} 14835 14836function withMemo(memo, render, cache, index) { 14837 const cached = cache[index]; 14838 if (cached && isMemoSame(cached, memo)) { 14839 return cached; 14840 } 14841 const ret = render(); 14842 // shallow clone 14843 ret.memo = memo.slice(); 14844 return (cache[index] = ret); 14845} 14846function isMemoSame(cached, memo) { 14847 const prev = cached.memo; 14848 if (prev.length != memo.length) { 14849 return false; 14850 } 14851 for (let i = 0; i < prev.length; i++) { 14852 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasChanged)(prev[i], memo[i])) { 14853 return false; 14854 } 14855 } 14856 // make sure to let parent block track it when returning cached 14857 if (isBlockTreeEnabled > 0 && currentBlock) { 14858 currentBlock.push(cached); 14859 } 14860 return true; 14861} 14862 14863// Core API ------------------------------------------------------------------ 14864const version = "3.2.37"; 14865const _ssrUtils = { 14866 createComponentInstance, 14867 setupComponent, 14868 renderComponentRoot, 14869 setCurrentRenderingInstance, 14870 isVNode, 14871 normalizeVNode 14872}; 14873/** 14874 * SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds. 14875 * @internal 14876 */ 14877const ssrUtils = (_ssrUtils ); 14878/** 14879 * @internal only exposed in compat builds 14880 */ 14881const resolveFilter = null; 14882/** 14883 * @internal only exposed in compat builds. 14884 */ 14885const compatUtils = (null); 14886 14887 14888 14889 14890/***/ }), 14891
vendor: 86,412 bytes, lines 14892-16750
14892/***/ "./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js": 14893/*!***********************************************************************!*\ 14894 !*** ./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js ***! 14895 \***********************************************************************/ 14896/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 14897 14898"use strict"; 14899__webpack_require__.r(__webpack_exports__); 14900/* harmony export */ __webpack_require__.d(__webpack_exports__, { 14901/* harmony export */ "BaseTransition": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition; }, 14902/* harmony export */ "Comment": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Comment; }, 14903/* harmony export */ "EffectScope": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.EffectScope; }, 14904/* harmony export */ "Fragment": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment; }, 14905/* harmony export */ "KeepAlive": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.KeepAlive; }, 14906/* harmony export */ "ReactiveEffect": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect; }, 14907/* harmony export */ "Static": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Static; }, 14908/* harmony export */ "Suspense": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Suspense; }, 14909/* harmony export */ "Teleport": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Teleport; }, 14910/* harmony export */ "Text": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Text; }, 14911/* harmony export */ "Transition": function() { return /* binding */ Transition; }, 14912/* harmony export */ "TransitionGroup": function() { return /* binding */ TransitionGroup; }, 14913/* harmony export */ "VueElement": function() { return /* binding */ VueElement; }, 14914/* harmony export */ "callWithAsyncErrorHandling": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling; }, 14915/* harmony export */ "callWithErrorHandling": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithErrorHandling; }, 14916/* harmony export */ "camelize": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.camelize; }, 14917/* harmony export */ "capitalize": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.capitalize; }, 14918/* harmony export */ "cloneVNode": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.cloneVNode; }, 14919/* harmony export */ "compatUtils": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.compatUtils; }, 14920/* harmony export */ "computed": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.computed; }, 14921/* harmony export */ "createApp": function() { return /* binding */ createApp; }, 14922/* harmony export */ "createBlock": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createBlock; }, 14923/* harmony export */ "createCommentVNode": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode; }, 14924/* harmony export */ "createElementBlock": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createElementBlock; }, 14925/* harmony export */ "createElementVNode": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createElementVNode; }, 14926/* harmony export */ "createHydrationRenderer": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer; }, 14927/* harmony export */ "createPropsRestProxy": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createPropsRestProxy; }, 14928/* harmony export */ "createRenderer": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createRenderer; }, 14929/* harmony export */ "createSSRApp": function() { return /* binding */ createSSRApp; }, 14930/* harmony export */ "createSlots": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createSlots; }, 14931/* harmony export */ "createStaticVNode": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode; }, 14932/* harmony export */ "createTextVNode": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createTextVNode; }, 14933/* harmony export */ "createVNode": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode; }, 14934/* harmony export */ "customRef": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.customRef; }, 14935/* harmony export */ "defineAsyncComponent": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent; }, 14936/* harmony export */ "defineComponent": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineComponent; }, 14937/* harmony export */ "defineCustomElement": function() { return /* binding */ defineCustomElement; }, 14938/* harmony export */ "defineEmits": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineEmits; }, 14939/* harmony export */ "defineExpose": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineExpose; }, 14940/* harmony export */ "defineProps": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineProps; }, 14941/* harmony export */ "defineSSRCustomElement": function() { return /* binding */ defineSSRCustomElement; }, 14942/* harmony export */ "devtools": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.devtools; }, 14943/* harmony export */ "effect": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.effect; }, 14944/* harmony export */ "effectScope": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.effectScope; }, 14945/* harmony export */ "getCurrentInstance": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance; }, 14946/* harmony export */ "getCurrentScope": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope; }, 14947/* harmony export */ "getTransitionRawChildren": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren; }, 14948/* harmony export */ "guardReactiveProps": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps; }, 14949/* harmony export */ "h": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.h; }, 14950/* harmony export */ "handleError": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.handleError; }, 14951/* harmony export */ "hydrate": function() { return /* binding */ hydrate; }, 14952/* harmony export */ "initCustomFormatter": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.initCustomFormatter; }, 14953/* harmony export */ "initDirectivesForSSR": function() { return /* binding */ initDirectivesForSSR; }, 14954/* harmony export */ "inject": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.inject; }, 14955/* harmony export */ "isMemoSame": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isMemoSame; }, 14956/* harmony export */ "isProxy": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isProxy; }, 14957/* harmony export */ "isReactive": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isReactive; }, 14958/* harmony export */ "isReadonly": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isReadonly; }, 14959/* harmony export */ "isRef": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRef; }, 14960/* harmony export */ "isRuntimeOnly": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly; }, 14961/* harmony export */ "isShallow": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isShallow; }, 14962/* harmony export */ "isVNode": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isVNode; }, 14963/* harmony export */ "markRaw": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.markRaw; }, 14964/* harmony export */ "mergeDefaults": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.mergeDefaults; }, 14965/* harmony export */ "mergeProps": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.mergeProps; }, 14966/* harmony export */ "nextTick": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.nextTick; }, 14967/* harmony export */ "normalizeClass": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeClass; }, 14968/* harmony export */ "normalizeProps": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeProps; }, 14969/* harmony export */ "normalizeStyle": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle; }, 14970/* harmony export */ "onActivated": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onActivated; }, 14971/* harmony export */ "onBeforeMount": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeMount; }, 14972/* harmony export */ "onBeforeUnmount": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeUnmount; }, 14973/* harmony export */ "onBeforeUpdate": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeUpdate; }, 14974/* harmony export */ "onDeactivated": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onDeactivated; }, 14975/* harmony export */ "onErrorCaptured": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured; }, 14976/* harmony export */ "onMounted": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onMounted; }, 14977/* harmony export */ "onRenderTracked": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onRenderTracked; }, 14978/* harmony export */ "onRenderTriggered": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onRenderTriggered; }, 14979/* harmony export */ "onScopeDispose": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose; }, 14980/* harmony export */ "onServerPrefetch": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onServerPrefetch; }, 14981/* harmony export */ "onUnmounted": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUnmounted; }, 14982/* harmony export */ "onUpdated": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUpdated; }, 14983/* harmony export */ "openBlock": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.openBlock; }, 14984/* harmony export */ "popScopeId": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.popScopeId; }, 14985/* harmony export */ "provide": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.provide; }, 14986/* harmony export */ "proxyRefs": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.proxyRefs; }, 14987/* harmony export */ "pushScopeId": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.pushScopeId; }, 14988/* harmony export */ "queuePostFlushCb": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.queuePostFlushCb; }, 14989/* harmony export */ "reactive": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.reactive; }, 14990/* harmony export */ "readonly": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.readonly; }, 14991/* harmony export */ "ref": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ref; }, 14992/* harmony export */ "registerRuntimeCompiler": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeCompiler; }, 14993/* harmony export */ "render": function() { return /* binding */ render; }, 14994/* harmony export */ "renderList": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.renderList; }, 14995/* harmony export */ "renderSlot": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.renderSlot; }, 14996/* harmony export */ "resolveComponent": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveComponent; }, 14997/* harmony export */ "resolveDirective": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveDirective; }, 14998/* harmony export */ "resolveDynamicComponent": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent; }, 14999/* harmony export */ "resolveFilter": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveFilter; }, 15000/* harmony export */ "resolveTransitionHooks": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks; }, 15001/* harmony export */ "setBlockTracking": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setBlockTracking; }, 15002/* harmony export */ "setDevtoolsHook": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setDevtoolsHook; }, 15003/* harmony export */ "setTransitionHooks": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks; }, 15004/* harmony export */ "shallowReactive": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowReactive; }, 15005/* harmony export */ "shallowReadonly": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly; }, 15006/* harmony export */ "shallowRef": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowRef; }, 15007/* harmony export */ "ssrContextKey": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ssrContextKey; }, 15008/* harmony export */ "ssrUtils": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ssrUtils; }, 15009/* harmony export */ "stop": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.stop; }, 15010/* harmony export */ "toDisplayString": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toDisplayString; }, 15011/* harmony export */ "toHandlerKey": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey; }, 15012/* harmony export */ "toHandlers": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toHandlers; }, 15013/* harmony export */ "toRaw": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRaw; }, 15014/* harmony export */ "toRef": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRef; }, 15015/* harmony export */ "toRefs": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRefs; }, 15016/* harmony export */ "transformVNodeArgs": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.transformVNodeArgs; }, 15017/* harmony export */ "triggerRef": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.triggerRef; }, 15018/* harmony export */ "unref": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.unref; }, 15019/* harmony export */ "useAttrs": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useAttrs; }, 15020/* harmony export */ "useCssModule": function() { return /* binding */ useCssModule; }, 15021/* harmony export */ "useCssVars": function() { return /* binding */ useCssVars; }, 15022/* harmony export */ "useSSRContext": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useSSRContext; }, 15023/* harmony export */ "useSlots": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useSlots; }, 15024/* harmony export */ "useTransitionState": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useTransitionState; }, 15025/* harmony export */ "vModelCheckbox": function() { return /* binding */ vModelCheckbox; }, 15026/* harmony export */ "vModelDynamic": function() { return /* binding */ vModelDynamic; }, 15027/* harmony export */ "vModelRadio": function() { return /* binding */ vModelRadio; }, 15028/* harmony export */ "vModelSelect": function() { return /* binding */ vModelSelect; }, 15029/* harmony export */ "vModelText": function() { return /* binding */ vModelText; }, 15030/* harmony export */ "vShow": function() { return /* binding */ vShow; }, 15031/* harmony export */ "version": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.version; }, 15032/* harmony export */ "warn": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn; }, 15033/* harmony export */ "watch": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watch; }, 15034/* harmony export */ "watchEffect": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchEffect; }, 15035/* harmony export */ "watchPostEffect": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect; }, 15036/* harmony export */ "watchSyncEffect": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchSyncEffect; }, 15037/* harmony export */ "withAsyncContext": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withAsyncContext; }, 15038/* harmony export */ "withCtx": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withCtx; }, 15039/* harmony export */ "withDefaults": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withDefaults; }, 15040/* harmony export */ "withDirectives": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withDirectives; }, 15041/* harmony export */ "withKeys": function() { return /* binding */ withKeys; }, 15042/* harmony export */ "withMemo": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withMemo; }, 15043/* harmony export */ "withModifiers": function() { return /* binding */ withModifiers; }, 15044/* harmony export */ "withScopeId": function() { return /* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withScopeId; } 15045/* harmony export */ }); 15046/* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js"); 15047/* harmony import */ var _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/runtime-core */ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"); 15048/* harmony import */ var _vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @vue/runtime-core */ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js"); 15049 15050 15051 15052 15053const svgNS = 'http://www.w3.org/2000/svg'; 15054const doc = (typeof document !== 'undefined' ? document : null); 15055const templateContainer = doc && /*#__PURE__*/ doc.createElement('template'); 15056const nodeOps = { 15057 insert: (child, parent, anchor) => { 15058 parent.insertBefore(child, anchor || null); 15059 }, 15060 remove: child => { 15061 const parent = child.parentNode; 15062 if (parent) { 15063 parent.removeChild(child); 15064 } 15065 }, 15066 createElement: (tag, isSVG, is, props) => { 15067 const el = isSVG 15068 ? doc.createElementNS(svgNS, tag) 15069 : doc.createElement(tag, is ? { is } : undefined); 15070 if (tag === 'select' && props && props.multiple != null) { 15071 el.setAttribute('multiple', props.multiple); 15072 } 15073 return el; 15074 }, 15075 createText: text => doc.createTextNode(text), 15076 createComment: text => doc.createComment(text), 15077 setText: (node, text) => { 15078 node.nodeValue = text; 15079 }, 15080 setElementText: (el, text) => { 15081 el.textContent = text; 15082 }, 15083 parentNode: node => node.parentNode, 15084 nextSibling: node => node.nextSibling, 15085 querySelector: selector => doc.querySelector(selector), 15086 setScopeId(el, id) { 15087 el.setAttribute(id, ''); 15088 }, 15089 cloneNode(el) { 15090 const cloned = el.cloneNode(true); 15091 // #3072 15092 // - in `patchDOMProp`, we store the actual value in the `el._value` property. 15093 // - normally, elements using `:value` bindings will not be hoisted, but if 15094 // the bound value is a constant, e.g. `:value="true"` - they do get 15095 // hoisted. 15096 // - in production, hoisted nodes are cloned when subsequent inserts, but 15097 // cloneNode() does not copy the custom property we attached. 15098 // - This may need to account for other custom DOM properties we attach to 15099 // elements in addition to `_value` in the future. 15100 if (`_value` in el) { 15101 cloned._value = el._value; 15102 } 15103 return cloned; 15104 }, 15105 // __UNSAFE__ 15106 // Reason: innerHTML. 15107 // Static content here can only come from compiled templates. 15108 // As long as the user only uses trusted templates, this is safe. 15109 insertStaticContent(content, parent, anchor, isSVG, start, end) { 15110 // <parent> before | first ... last | anchor </parent> 15111 const before = anchor ? anchor.previousSibling : parent.lastChild; 15112 // #5308 can only take cached path if: 15113 // - has a single root node 15114 // - nextSibling info is still available 15115 if (start && (start === end || start.nextSibling)) { 15116 // cached 15117 while (true) { 15118 parent.insertBefore(start.cloneNode(true), anchor); 15119 if (start === end || !(start = start.nextSibling)) 15120 break; 15121 } 15122 } 15123 else { 15124 // fresh insert 15125 templateContainer.innerHTML = isSVG ? `<svg>${content}</svg>` : content; 15126 const template = templateContainer.content; 15127 if (isSVG) { 15128 // remove outer svg wrapper 15129 const wrapper = template.firstChild; 15130 while (wrapper.firstChild) { 15131 template.appendChild(wrapper.firstChild); 15132 } 15133 template.removeChild(wrapper); 15134 } 15135 parent.insertBefore(template, anchor); 15136 } 15137 return [ 15138 // first 15139 before ? before.nextSibling : parent.firstChild, 15140 // last 15141 anchor ? anchor.previousSibling : parent.lastChild 15142 ]; 15143 } 15144}; 15145 15146// compiler should normalize class + :class bindings on the same element 15147// into a single binding ['staticClass', dynamic] 15148function patchClass(el, value, isSVG) { 15149 // directly setting className should be faster than setAttribute in theory 15150 // if this is an element during a transition, take the temporary transition 15151 // classes into account. 15152 const transitionClasses = el._vtc; 15153 if (transitionClasses) { 15154 value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(' '); 15155 } 15156 if (value == null) { 15157 el.removeAttribute('class'); 15158 } 15159 else if (isSVG) { 15160 el.setAttribute('class', value); 15161 } 15162 else { 15163 el.className = value; 15164 } 15165} 15166 15167function patchStyle(el, prev, next) { 15168 const style = el.style; 15169 const isCssString = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(next); 15170 if (next && !isCssString) { 15171 for (const key in next) { 15172 setStyle(style, key, next[key]); 15173 } 15174 if (prev && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(prev)) { 15175 for (const key in prev) { 15176 if (next[key] == null) { 15177 setStyle(style, key, ''); 15178 } 15179 } 15180 } 15181 } 15182 else { 15183 const currentDisplay = style.display; 15184 if (isCssString) { 15185 if (prev !== next) { 15186 style.cssText = next; 15187 } 15188 } 15189 else if (prev) { 15190 el.removeAttribute('style'); 15191 } 15192 // indicates that the `display` of the element is controlled by `v-show`, 15193 // so we always keep the current `display` value regardless of the `style` 15194 // value, thus handing over control to `v-show`. 15195 if ('_vod' in el) { 15196 style.display = currentDisplay; 15197 } 15198 } 15199} 15200const importantRE = /\s*!important$/; 15201function setStyle(style, name, val) { 15202 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(val)) { 15203 val.forEach(v => setStyle(style, name, v)); 15204 } 15205 else { 15206 if (val == null) 15207 val = ''; 15208 if (name.startsWith('--')) { 15209 // custom property definition 15210 style.setProperty(name, val); 15211 } 15212 else { 15213 const prefixed = autoPrefix(style, name); 15214 if (importantRE.test(val)) { 15215 // !important 15216 style.setProperty((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(prefixed), val.replace(importantRE, ''), 'important'); 15217 } 15218 else { 15219 style[prefixed] = val; 15220 } 15221 } 15222 } 15223} 15224const prefixes = ['Webkit', 'Moz', 'ms']; 15225const prefixCache = {}; 15226function autoPrefix(style, rawName) { 15227 const cached = prefixCache[rawName]; 15228 if (cached) { 15229 return cached; 15230 } 15231 let name = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(rawName); 15232 if (name !== 'filter' && name in style) { 15233 return (prefixCache[rawName] = name); 15234 } 15235 name = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)(name); 15236 for (let i = 0; i < prefixes.length; i++) { 15237 const prefixed = prefixes[i] + name; 15238 if (prefixed in style) { 15239 return (prefixCache[rawName] = prefixed); 15240 } 15241 } 15242 return rawName; 15243} 15244 15245const xlinkNS = 'http://www.w3.org/1999/xlink'; 15246function patchAttr(el, key, value, isSVG, instance) { 15247 if (isSVG && key.startsWith('xlink:')) { 15248 if (value == null) { 15249 el.removeAttributeNS(xlinkNS, key.slice(6, key.length)); 15250 } 15251 else { 15252 el.setAttributeNS(xlinkNS, key, value); 15253 } 15254 } 15255 else { 15256 // note we are only checking boolean attributes that don't have a 15257 // corresponding dom prop of the same name here. 15258 const isBoolean = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSpecialBooleanAttr)(key); 15259 if (value == null || (isBoolean && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.includeBooleanAttr)(value))) { 15260 el.removeAttribute(key); 15261 } 15262 else { 15263 el.setAttribute(key, isBoolean ? '' : value); 15264 } 15265 } 15266} 15267 15268// __UNSAFE__ 15269// functions. The user is responsible for using them with only trusted content. 15270function patchDOMProp(el, key, value, 15271// the following args are passed only due to potential innerHTML/textContent 15272// overriding existing VNodes, in which case the old tree must be properly 15273// unmounted. 15274prevChildren, parentComponent, parentSuspense, unmountChildren) { 15275 if (key === 'innerHTML' || key === 'textContent') { 15276 if (prevChildren) { 15277 unmountChildren(prevChildren, parentComponent, parentSuspense); 15278 } 15279 el[key] = value == null ? '' : value; 15280 return; 15281 } 15282 if (key === 'value' && 15283 el.tagName !== 'PROGRESS' && 15284 // custom elements may use _value internally 15285 !el.tagName.includes('-')) { 15286 // store value as _value as well since 15287 // non-string values will be stringified. 15288 el._value = value; 15289 const newValue = value == null ? '' : value; 15290 if (el.value !== newValue || 15291 // #4956: always set for OPTION elements because its value falls back to 15292 // textContent if no value attribute is present. And setting .value for 15293 // OPTION has no side effect 15294 el.tagName === 'OPTION') { 15295 el.value = newValue; 15296 } 15297 if (value == null) { 15298 el.removeAttribute(key); 15299 } 15300 return; 15301 } 15302 let needRemove = false; 15303 if (value === '' || value == null) { 15304 const type = typeof el[key]; 15305 if (type === 'boolean') { 15306 // e.g. <select multiple> compiles to { multiple: '' } 15307 value = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.includeBooleanAttr)(value); 15308 } 15309 else if (value == null && type === 'string') { 15310 // e.g. <div :id="null"> 15311 value = ''; 15312 needRemove = true; 15313 } 15314 else if (type === 'number') { 15315 // e.g. <img :width="null"> 15316 // the value of some IDL attr must be greater than 0, e.g. input.size = 0 -> error 15317 value = 0; 15318 needRemove = true; 15319 } 15320 } 15321 // some properties perform value validation and throw, 15322 // some properties has getter, no setter, will error in 'use strict' 15323 // eg. <select :type="null"></select> <select :willValidate="null"></select> 15324 try { 15325 el[key] = value; 15326 } 15327 catch (e) { 15328 if ((true)) { 15329 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Failed setting prop "${key}" on <${el.tagName.toLowerCase()}>: ` + 15330 `value ${value} is invalid.`, e); 15331 } 15332 } 15333 needRemove && el.removeAttribute(key); 15334} 15335 15336// Async edge case fix requires storing an event listener's attach timestamp. 15337const [_getNow, skipTimestampCheck] = /*#__PURE__*/ (() => { 15338 let _getNow = Date.now; 15339 let skipTimestampCheck = false; 15340 if (typeof window !== 'undefined') { 15341 // Determine what event timestamp the browser is using. Annoyingly, the 15342 // timestamp can either be hi-res (relative to page load) or low-res 15343 // (relative to UNIX epoch), so in order to compare time we have to use the 15344 // same timestamp type when saving the flush timestamp. 15345 if (Date.now() > document.createEvent('Event').timeStamp) { 15346 // if the low-res timestamp which is bigger than the event timestamp 15347 // (which is evaluated AFTER) it means the event is using a hi-res timestamp, 15348 // and we need to use the hi-res version for event listeners as well. 15349 _getNow = performance.now.bind(performance); 15350 } 15351 // #3485: Firefox <= 53 has incorrect Event.timeStamp implementation 15352 // and does not fire microtasks in between event propagation, so safe to exclude. 15353 const ffMatch = navigator.userAgent.match(/firefox\/(\d+)/i); 15354 skipTimestampCheck = !!(ffMatch && Number(ffMatch[1]) <= 53); 15355 } 15356 return [_getNow, skipTimestampCheck]; 15357})(); 15358// To avoid the overhead of repeatedly calling performance.now(), we cache 15359// and use the same timestamp for all event listeners attached in the same tick. 15360let cachedNow = 0; 15361const p = /*#__PURE__*/ Promise.resolve(); 15362const reset = () => { 15363 cachedNow = 0; 15364}; 15365const getNow = () => cachedNow || (p.then(reset), (cachedNow = _getNow())); 15366function addEventListener(el, event, handler, options) { 15367 el.addEventListener(event, handler, options); 15368} 15369function removeEventListener(el, event, handler, options) { 15370 el.removeEventListener(event, handler, options); 15371} 15372function patchEvent(el, rawName, prevValue, nextValue, instance = null) { 15373 // vei = vue event invokers 15374 const invokers = el._vei || (el._vei = {}); 15375 const existingInvoker = invokers[rawName]; 15376 if (nextValue && existingInvoker) { 15377 // patch 15378 existingInvoker.value = nextValue; 15379 } 15380 else { 15381 const [name, options] = parseName(rawName); 15382 if (nextValue) { 15383 // add 15384 const invoker = (invokers[rawName] = createInvoker(nextValue, instance)); 15385 addEventListener(el, name, invoker, options); 15386 } 15387 else if (existingInvoker) { 15388 // remove 15389 removeEventListener(el, name, existingInvoker, options); 15390 invokers[rawName] = undefined; 15391 } 15392 } 15393} 15394const optionsModifierRE = /(?:Once|Passive|Capture)$/; 15395function parseName(name) { 15396 let options; 15397 if (optionsModifierRE.test(name)) { 15398 options = {}; 15399 let m; 15400 while ((m = name.match(optionsModifierRE))) { 15401 name = name.slice(0, name.length - m[0].length); 15402 options[m[0].toLowerCase()] = true; 15403 } 15404 } 15405 return [(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(name.slice(2)), options]; 15406} 15407function createInvoker(initialValue, instance) { 15408 const invoker = (e) => { 15409 // async edge case #6566: inner click event triggers patch, event handler 15410 // attached to outer element during patch, and triggered again. This 15411 // happens because browsers fire microtask ticks between event propagation. 15412 // the solution is simple: we save the timestamp when a handler is attached, 15413 // and the handler would only fire if the event passed to it was fired 15414 // AFTER it was attached. 15415 const timeStamp = e.timeStamp || _getNow(); 15416 if (skipTimestampCheck || timeStamp >= invoker.attached - 1) { 15417 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling)(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* NATIVE_EVENT_HANDLER */, [e]); 15418 } 15419 }; 15420 invoker.value = initialValue; 15421 invoker.attached = getNow(); 15422 return invoker; 15423} 15424function patchStopImmediatePropagation(e, value) { 15425 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) { 15426 const originalStop = e.stopImmediatePropagation; 15427 e.stopImmediatePropagation = () => { 15428 originalStop.call(e); 15429 e._stopped = true; 15430 }; 15431 return value.map(fn => (e) => !e._stopped && fn && fn(e)); 15432 } 15433 else { 15434 return value; 15435 } 15436} 15437 15438const nativeOnRE = /^on[a-z]/; 15439const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => { 15440 if (key === 'class') { 15441 patchClass(el, nextValue, isSVG); 15442 } 15443 else if (key === 'style') { 15444 patchStyle(el, prevValue, nextValue); 15445 } 15446 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) { 15447 // ignore v-model listeners 15448 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key)) { 15449 patchEvent(el, key, prevValue, nextValue, parentComponent); 15450 } 15451 } 15452 else if (key[0] === '.' 15453 ? ((key = key.slice(1)), true) 15454 : key[0] === '^' 15455 ? ((key = key.slice(1)), false) 15456 : shouldSetAsProp(el, key, nextValue, isSVG)) { 15457 patchDOMProp(el, key, nextValue, prevChildren, parentComponent, parentSuspense, unmountChildren); 15458 } 15459 else { 15460 // special case for <input v-model type="checkbox"> with 15461 // :true-value & :false-value 15462 // store value as dom properties since non-string values will be 15463 // stringified. 15464 if (key === 'true-value') { 15465 el._trueValue = nextValue; 15466 } 15467 else if (key === 'false-value') { 15468 el._falseValue = nextValue; 15469 } 15470 patchAttr(el, key, nextValue, isSVG); 15471 } 15472}; 15473function shouldSetAsProp(el, key, value, isSVG) { 15474 if (isSVG) { 15475 // most keys must be set as attribute on svg elements to work 15476 // ...except innerHTML & textContent 15477 if (key === 'innerHTML' || key === 'textContent') { 15478 return true; 15479 } 15480 // or native onclick with function values 15481 if (key in el && nativeOnRE.test(key) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) { 15482 return true; 15483 } 15484 return false; 15485 } 15486 // these are enumerated attrs, however their corresponding DOM properties 15487 // are actually booleans - this leads to setting it with a string "false" 15488 // value leading it to be coerced to `true`, so we need to always treat 15489 // them as attributes. 15490 // Note that `contentEditable` doesn't have this problem: its DOM 15491 // property is also enumerated string values. 15492 if (key === 'spellcheck' || key === 'draggable' || key === 'translate') { 15493 return false; 15494 } 15495 // #1787, #2840 form property on form elements is readonly and must be set as 15496 // attribute. 15497 if (key === 'form') { 15498 return false; 15499 } 15500 // #1526 <input list> must be set as attribute 15501 if (key === 'list' && el.tagName === 'INPUT') { 15502 return false; 15503 } 15504 // #2766 <textarea type> must be set as attribute 15505 if (key === 'type' && el.tagName === 'TEXTAREA') { 15506 return false; 15507 } 15508 // native onclick with string value, must be set as attribute 15509 if (nativeOnRE.test(key) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(value)) { 15510 return false; 15511 } 15512 return key in el; 15513} 15514 15515function defineCustomElement(options, hydrate) { 15516 const Comp = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineComponent)(options); 15517 class VueCustomElement extends VueElement { 15518 constructor(initialProps) { 15519 super(Comp, initialProps, hydrate); 15520 } 15521 } 15522 VueCustomElement.def = Comp; 15523 return VueCustomElement; 15524} 15525const defineSSRCustomElement = ((options) => { 15526 // @ts-ignore 15527 return defineCustomElement(options, hydrate); 15528}); 15529const BaseClass = (typeof HTMLElement !== 'undefined' ? HTMLElement : class { 15530}); 15531class VueElement extends BaseClass { 15532 constructor(_def, _props = {}, hydrate) { 15533 super(); 15534 this._def = _def; 15535 this._props = _props; 15536 /** 15537 * @internal 15538 */ 15539 this._instance = null; 15540 this._connected = false; 15541 this._resolved = false; 15542 this._numberProps = null; 15543 if (this.shadowRoot && hydrate) { 15544 hydrate(this._createVNode(), this.shadowRoot); 15545 } 15546 else { 15547 if (( true) && this.shadowRoot) { 15548 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Custom element has pre-rendered declarative shadow root but is not ` + 15549 `defined as hydratable. Use \`defineSSRCustomElement\`.`); 15550 } 15551 this.attachShadow({ mode: 'open' }); 15552 } 15553 } 15554 connectedCallback() { 15555 this._connected = true; 15556 if (!this._instance) { 15557 this._resolveDef(); 15558 } 15559 } 15560 disconnectedCallback() { 15561 this._connected = false; 15562 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.nextTick)(() => { 15563 if (!this._connected) { 15564 render(null, this.shadowRoot); 15565 this._instance = null; 15566 } 15567 }); 15568 } 15569 /** 15570 * resolve inner component definition (handle possible async component) 15571 */ 15572 _resolveDef() { 15573 if (this._resolved) { 15574 return; 15575 } 15576 this._resolved = true; 15577 // set initial attrs 15578 for (let i = 0; i < this.attributes.length; i++) { 15579 this._setAttr(this.attributes[i].name); 15580 } 15581 // watch future attr changes 15582 new MutationObserver(mutations => { 15583 for (const m of mutations) { 15584 this._setAttr(m.attributeName); 15585 } 15586 }).observe(this, { attributes: true }); 15587 const resolve = (def) => { 15588 const { props, styles } = def; 15589 const hasOptions = !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(props); 15590 const rawKeys = props ? (hasOptions ? Object.keys(props) : props) : []; 15591 // cast Number-type props set before resolve 15592 let numberProps; 15593 if (hasOptions) { 15594 for (const key in this._props) { 15595 const opt = props[key]; 15596 if (opt === Number || (opt && opt.type === Number)) { 15597 this._props[key] = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(this._props[key]); 15598 (numberProps || (numberProps = Object.create(null)))[key] = true; 15599 } 15600 } 15601 } 15602 this._numberProps = numberProps; 15603 // check if there are props set pre-upgrade or connect 15604 for (const key of Object.keys(this)) { 15605 if (key[0] !== '_') { 15606 this._setProp(key, this[key], true, false); 15607 } 15608 } 15609 // defining getter/setters on prototype 15610 for (const key of rawKeys.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)) { 15611 Object.defineProperty(this, key, { 15612 get() { 15613 return this._getProp(key); 15614 }, 15615 set(val) { 15616 this._setProp(key, val); 15617 } 15618 }); 15619 } 15620 // apply CSS 15621 this._applyStyles(styles); 15622 // initial render 15623 this._update(); 15624 }; 15625 const asyncDef = this._def.__asyncLoader; 15626 if (asyncDef) { 15627 asyncDef().then(resolve); 15628 } 15629 else { 15630 resolve(this._def); 15631 } 15632 } 15633 _setAttr(key) { 15634 let value = this.getAttribute(key); 15635 if (this._numberProps && this._numberProps[key]) { 15636 value = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(value); 15637 } 15638 this._setProp((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key), value, false); 15639 } 15640 /** 15641 * @internal 15642 */ 15643 _getProp(key) { 15644 return this._props[key]; 15645 } 15646 /** 15647 * @internal 15648 */ 15649 _setProp(key, val, shouldReflect = true, shouldUpdate = true) { 15650 if (val !== this._props[key]) { 15651 this._props[key] = val; 15652 if (shouldUpdate && this._instance) { 15653 this._update(); 15654 } 15655 // reflect 15656 if (shouldReflect) { 15657 if (val === true) { 15658 this.setAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key), ''); 15659 } 15660 else if (typeof val === 'string' || typeof val === 'number') { 15661 this.setAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key), val + ''); 15662 } 15663 else if (!val) { 15664 this.removeAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)); 15665 } 15666 } 15667 } 15668 } 15669 _update() { 15670 render(this._createVNode(), this.shadowRoot); 15671 } 15672 _createVNode() { 15673 const vnode = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode)(this._def, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, this._props)); 15674 if (!this._instance) { 15675 vnode.ce = instance => { 15676 this._instance = instance; 15677 instance.isCE = true; 15678 // HMR 15679 if ((true)) { 15680 instance.ceReload = newStyles => { 15681 // always reset styles 15682 if (this._styles) { 15683 this._styles.forEach(s => this.shadowRoot.removeChild(s)); 15684 this._styles.length = 0; 15685 } 15686 this._applyStyles(newStyles); 15687 // if this is an async component, ceReload is called from the inner 15688 // component so no need to reload the async wrapper 15689 if (!this._def.__asyncLoader) { 15690 // reload 15691 this._instance = null; 15692 this._update(); 15693 } 15694 }; 15695 } 15696 // intercept emit 15697 instance.emit = (event, ...args) => { 15698 this.dispatchEvent(new CustomEvent(event, { 15699 detail: args 15700 })); 15701 }; 15702 // locate nearest Vue custom element parent for provide/inject 15703 let parent = this; 15704 while ((parent = 15705 parent && (parent.parentNode || parent.host))) { 15706 if (parent instanceof VueElement) { 15707 instance.parent = parent._instance; 15708 break; 15709 } 15710 } 15711 }; 15712 } 15713 return vnode; 15714 } 15715 _applyStyles(styles) { 15716 if (styles) { 15717 styles.forEach(css => { 15718 const s = document.createElement('style'); 15719 s.textContent = css; 15720 this.shadowRoot.appendChild(s); 15721 // record for HMR 15722 if ((true)) { 15723 (this._styles || (this._styles = [])).push(s); 15724 } 15725 }); 15726 } 15727 } 15728} 15729 15730function useCssModule(name = '$style') { 15731 /* istanbul ignore else */ 15732 { 15733 const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)(); 15734 if (!instance) { 15735 ( true) && (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`useCssModule must be called inside setup()`); 15736 return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ; 15737 } 15738 const modules = instance.type.__cssModules; 15739 if (!modules) { 15740 ( true) && (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Current instance does not have CSS modules injected.`); 15741 return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ; 15742 } 15743 const mod = modules[name]; 15744 if (!mod) { 15745 ( true) && 15746 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Current instance does not have CSS module named "${name}".`); 15747 return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ; 15748 } 15749 return mod; 15750 } 15751} 15752 15753/** 15754 * Runtime helper for SFC's CSS variable injection feature. 15755 * @private 15756 */ 15757function useCssVars(getter) { 15758 const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)(); 15759 /* istanbul ignore next */ 15760 if (!instance) { 15761 ( true) && 15762 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`useCssVars is called without current active component instance.`); 15763 return; 15764 } 15765 const setVars = () => setVarsOnVNode(instance.subTree, getter(instance.proxy)); 15766 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect)(setVars); 15767 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => { 15768 const ob = new MutationObserver(setVars); 15769 ob.observe(instance.subTree.el.parentNode, { childList: true }); 15770 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUnmounted)(() => ob.disconnect()); 15771 }); 15772} 15773function setVarsOnVNode(vnode, vars) { 15774 if (vnode.shapeFlag & 128 /* SUSPENSE */) { 15775 const suspense = vnode.suspense; 15776 vnode = suspense.activeBranch; 15777 if (suspense.pendingBranch && !suspense.isHydrating) { 15778 suspense.effects.push(() => { 15779 setVarsOnVNode(suspense.activeBranch, vars); 15780 }); 15781 } 15782 } 15783 // drill down HOCs until it's a non-component vnode 15784 while (vnode.component) { 15785 vnode = vnode.component.subTree; 15786 } 15787 if (vnode.shapeFlag & 1 /* ELEMENT */ && vnode.el) { 15788 setVarsOnNode(vnode.el, vars); 15789 } 15790 else if (vnode.type === _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment) { 15791 vnode.children.forEach(c => setVarsOnVNode(c, vars)); 15792 } 15793 else if (vnode.type === _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Static) { 15794 let { el, anchor } = vnode; 15795 while (el) { 15796 setVarsOnNode(el, vars); 15797 if (el === anchor) 15798 break; 15799 el = el.nextSibling; 15800 } 15801 } 15802} 15803function setVarsOnNode(el, vars) { 15804 if (el.nodeType === 1) { 15805 const style = el.style; 15806 for (const key in vars) { 15807 style.setProperty(`--${key}`, vars[key]); 15808 } 15809 } 15810} 15811 15812const TRANSITION = 'transition'; 15813const ANIMATION = 'animation'; 15814// DOM Transition is a higher-order-component based on the platform-agnostic 15815// base Transition component, with DOM-specific logic. 15816const Transition = (props, { slots }) => (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.h)(_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition, resolveTransitionProps(props), slots); 15817Transition.displayName = 'Transition'; 15818const DOMTransitionPropsValidators = { 15819 name: String, 15820 type: String, 15821 css: { 15822 type: Boolean, 15823 default: true 15824 }, 15825 duration: [String, Number, Object], 15826 enterFromClass: String, 15827 enterActiveClass: String, 15828 enterToClass: String, 15829 appearFromClass: String, 15830 appearActiveClass: String, 15831 appearToClass: String, 15832 leaveFromClass: String, 15833 leaveActiveClass: String, 15834 leaveToClass: String 15835}; 15836const TransitionPropsValidators = (Transition.props = 15837 /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition.props, DOMTransitionPropsValidators)); 15838/** 15839 * #3227 Incoming hooks may be merged into arrays when wrapping Transition 15840 * with custom HOCs. 15841 */ 15842const callHook = (hook, args = []) => { 15843 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)) { 15844 hook.forEach(h => h(...args)); 15845 } 15846 else if (hook) { 15847 hook(...args); 15848 } 15849}; 15850/** 15851 * Check if a hook expects a callback (2nd arg), which means the user 15852 * intends to explicitly control the end of the transition. 15853 */ 15854const hasExplicitCallback = (hook) => { 15855 return hook 15856 ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook) 15857 ? hook.some(h => h.length > 1) 15858 : hook.length > 1 15859 : false; 15860}; 15861function resolveTransitionProps(rawProps) { 15862 const baseProps = {}; 15863 for (const key in rawProps) { 15864 if (!(key in DOMTransitionPropsValidators)) { 15865 baseProps[key] = rawProps[key]; 15866 } 15867 } 15868 if (rawProps.css === false) { 15869 return baseProps; 15870 } 15871 const { name = 'v', type, duration, enterFromClass = `${name}-enter-from`, enterActiveClass = `${name}-enter-active`, enterToClass = `${name}-enter-to`, appearFromClass = enterFromClass, appearActiveClass = enterActiveClass, appearToClass = enterToClass, leaveFromClass = `${name}-leave-from`, leaveActiveClass = `${name}-leave-active`, leaveToClass = `${name}-leave-to` } = rawProps; 15872 const durations = normalizeDuration(duration); 15873 const enterDuration = durations && durations[0]; 15874 const leaveDuration = durations && durations[1]; 15875 const { onBeforeEnter, onEnter, onEnterCancelled, onLeave, onLeaveCancelled, onBeforeAppear = onBeforeEnter, onAppear = onEnter, onAppearCancelled = onEnterCancelled } = baseProps; 15876 const finishEnter = (el, isAppear, done) => { 15877 removeTransitionClass(el, isAppear ? appearToClass : enterToClass); 15878 removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass); 15879 done && done(); 15880 }; 15881 const finishLeave = (el, done) => { 15882 el._isLeaving = false; 15883 removeTransitionClass(el, leaveFromClass); 15884 removeTransitionClass(el, leaveToClass); 15885 removeTransitionClass(el, leaveActiveClass); 15886 done && done(); 15887 }; 15888 const makeEnterHook = (isAppear) => { 15889 return (el, done) => { 15890 const hook = isAppear ? onAppear : onEnter; 15891 const resolve = () => finishEnter(el, isAppear, done); 15892 callHook(hook, [el, resolve]); 15893 nextFrame(() => { 15894 removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass); 15895 addTransitionClass(el, isAppear ? appearToClass : enterToClass); 15896 if (!hasExplicitCallback(hook)) { 15897 whenTransitionEnds(el, type, enterDuration, resolve); 15898 } 15899 }); 15900 }; 15901 }; 15902 return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(baseProps, { 15903 onBeforeEnter(el) { 15904 callHook(onBeforeEnter, [el]); 15905 addTransitionClass(el, enterFromClass); 15906 addTransitionClass(el, enterActiveClass); 15907 }, 15908 onBeforeAppear(el) { 15909 callHook(onBeforeAppear, [el]); 15910 addTransitionClass(el, appearFromClass); 15911 addTransitionClass(el, appearActiveClass); 15912 }, 15913 onEnter: makeEnterHook(false), 15914 onAppear: makeEnterHook(true), 15915 onLeave(el, done) { 15916 el._isLeaving = true; 15917 const resolve = () => finishLeave(el, done); 15918 addTransitionClass(el, leaveFromClass); 15919 // force reflow so *-leave-from classes immediately take effect (#2593) 15920 forceReflow(); 15921 addTransitionClass(el, leaveActiveClass); 15922 nextFrame(() => { 15923 if (!el._isLeaving) { 15924 // cancelled 15925 return; 15926 } 15927 removeTransitionClass(el, leaveFromClass); 15928 addTransitionClass(el, leaveToClass); 15929 if (!hasExplicitCallback(onLeave)) { 15930 whenTransitionEnds(el, type, leaveDuration, resolve); 15931 } 15932 }); 15933 callHook(onLeave, [el, resolve]); 15934 }, 15935 onEnterCancelled(el) { 15936 finishEnter(el, false); 15937 callHook(onEnterCancelled, [el]); 15938 }, 15939 onAppearCancelled(el) { 15940 finishEnter(el, true); 15941 callHook(onAppearCancelled, [el]); 15942 }, 15943 onLeaveCancelled(el) { 15944 finishLeave(el); 15945 callHook(onLeaveCancelled, [el]); 15946 } 15947 }); 15948} 15949function normalizeDuration(duration) { 15950 if (duration == null) { 15951 return null; 15952 } 15953 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(duration)) { 15954 return [NumberOf(duration.enter), NumberOf(duration.leave)]; 15955 } 15956 else { 15957 const n = NumberOf(duration); 15958 return [n, n]; 15959 } 15960} 15961function NumberOf(val) { 15962 const res = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(val); 15963 if ((true)) 15964 validateDuration(res); 15965 return res; 15966} 15967function validateDuration(val) { 15968 if (typeof val !== 'number') { 15969 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<transition> explicit duration is not a valid number - ` + 15970 `got ${JSON.stringify(val)}.`); 15971 } 15972 else if (isNaN(val)) { 15973 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<transition> explicit duration is NaN - ` + 15974 'the duration expression might be incorrect.'); 15975 } 15976} 15977function addTransitionClass(el, cls) { 15978 cls.split(/\s+/).forEach(c => c && el.classList.add(c)); 15979 (el._vtc || 15980 (el._vtc = new Set())).add(cls); 15981} 15982function removeTransitionClass(el, cls) { 15983 cls.split(/\s+/).forEach(c => c && el.classList.remove(c)); 15984 const { _vtc } = el; 15985 if (_vtc) { 15986 _vtc.delete(cls); 15987 if (!_vtc.size) { 15988 el._vtc = undefined; 15989 } 15990 } 15991} 15992function nextFrame(cb) { 15993 requestAnimationFrame(() => { 15994 requestAnimationFrame(cb); 15995 }); 15996} 15997let endId = 0; 15998function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) { 15999 const id = (el._endId = ++endId); 16000 const resolveIfNotStale = () => { 16001 if (id === el._endId) { 16002 resolve(); 16003 } 16004 }; 16005 if (explicitTimeout) { 16006 return setTimeout(resolveIfNotStale, explicitTimeout); 16007 } 16008 const { type, timeout, propCount } = getTransitionInfo(el, expectedType); 16009 if (!type) { 16010 return resolve(); 16011 } 16012 const endEvent = type + 'end'; 16013 let ended = 0; 16014 const end = () => { 16015 el.removeEventListener(endEvent, onEnd); 16016 resolveIfNotStale(); 16017 }; 16018 const onEnd = (e) => { 16019 if (e.target === el && ++ended >= propCount) { 16020 end(); 16021 } 16022 }; 16023 setTimeout(() => { 16024 if (ended < propCount) { 16025 end(); 16026 } 16027 }, timeout + 1); 16028 el.addEventListener(endEvent, onEnd); 16029} 16030function getTransitionInfo(el, expectedType) { 16031 const styles = window.getComputedStyle(el); 16032 // JSDOM may return undefined for transition properties 16033 const getStyleProperties = (key) => (styles[key] || '').split(', '); 16034 const transitionDelays = getStyleProperties(TRANSITION + 'Delay'); 16035 const transitionDurations = getStyleProperties(TRANSITION + 'Duration'); 16036 const transitionTimeout = getTimeout(transitionDelays, transitionDurations); 16037 const animationDelays = getStyleProperties(ANIMATION + 'Delay'); 16038 const animationDurations = getStyleProperties(ANIMATION + 'Duration'); 16039 const animationTimeout = getTimeout(animationDelays, animationDurations); 16040 let type = null; 16041 let timeout = 0; 16042 let propCount = 0; 16043 /* istanbul ignore if */ 16044 if (expectedType === TRANSITION) { 16045 if (transitionTimeout > 0) { 16046 type = TRANSITION; 16047 timeout = transitionTimeout; 16048 propCount = transitionDurations.length; 16049 } 16050 } 16051 else if (expectedType === ANIMATION) { 16052 if (animationTimeout > 0) { 16053 type = ANIMATION; 16054 timeout = animationTimeout; 16055 propCount = animationDurations.length; 16056 } 16057 } 16058 else { 16059 timeout = Math.max(transitionTimeout, animationTimeout); 16060 type = 16061 timeout > 0 16062 ? transitionTimeout > animationTimeout 16063 ? TRANSITION 16064 : ANIMATION 16065 : null; 16066 propCount = type 16067 ? type === TRANSITION 16068 ? transitionDurations.length 16069 : animationDurations.length 16070 : 0; 16071 } 16072 const hasTransform = type === TRANSITION && 16073 /\b(transform|all)(,|$)/.test(styles[TRANSITION + 'Property']); 16074 return { 16075 type, 16076 timeout, 16077 propCount, 16078 hasTransform 16079 }; 16080} 16081function getTimeout(delays, durations) { 16082 while (delays.length < durations.length) { 16083 delays = delays.concat(delays); 16084 } 16085 return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i]))); 16086} 16087// Old versions of Chromium (below 61.0.3163.100) formats floating pointer 16088// numbers in a locale-dependent way, using a comma instead of a dot. 16089// If comma is not replaced with a dot, the input will be rounded down 16090// (i.e. acting as a floor function) causing unexpected behaviors 16091function toMs(s) { 16092 return Number(s.slice(0, -1).replace(',', '.')) * 1000; 16093} 16094// synchronously force layout to put elements into a certain state 16095function forceReflow() { 16096 return document.body.offsetHeight; 16097} 16098 16099const positionMap = new WeakMap(); 16100const newPositionMap = new WeakMap(); 16101const TransitionGroupImpl = { 16102 name: 'TransitionGroup', 16103 props: /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, TransitionPropsValidators, { 16104 tag: String, 16105 moveClass: String 16106 }), 16107 setup(props, { slots }) { 16108 const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)(); 16109 const state = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useTransitionState)(); 16110 let prevChildren; 16111 let children; 16112 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUpdated)(() => { 16113 // children is guaranteed to exist after initial render 16114 if (!prevChildren.length) { 16115 return; 16116 } 16117 const moveClass = props.moveClass || `${props.name || 'v'}-move`; 16118 if (!hasCSSTransform(prevChildren[0].el, instance.vnode.el, moveClass)) { 16119 return; 16120 } 16121 // we divide the work into three loops to avoid mixing DOM reads and writes 16122 // in each iteration - which helps prevent layout thrashing. 16123 prevChildren.forEach(callPendingCbs); 16124 prevChildren.forEach(recordPosition); 16125 const movedChildren = prevChildren.filter(applyTranslation); 16126 // force reflow to put everything in position 16127 forceReflow(); 16128 movedChildren.forEach(c => { 16129 const el = c.el; 16130 const style = el.style; 16131 addTransitionClass(el, moveClass); 16132 style.transform = style.webkitTransform = style.transitionDuration = ''; 16133 const cb = (el._moveCb = (e) => { 16134 if (e && e.target !== el) { 16135 return; 16136 } 16137 if (!e || /transform$/.test(e.propertyName)) { 16138 el.removeEventListener('transitionend', cb); 16139 el._moveCb = null; 16140 removeTransitionClass(el, moveClass); 16141 } 16142 }); 16143 el.addEventListener('transitionend', cb); 16144 }); 16145 }); 16146 return () => { 16147 const rawProps = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__.toRaw)(props); 16148 const cssTransitionProps = resolveTransitionProps(rawProps); 16149 let tag = rawProps.tag || _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment; 16150 prevChildren = children; 16151 children = slots.default ? (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren)(slots.default()) : []; 16152 for (let i = 0; i < children.length; i++) { 16153 const child = children[i]; 16154 if (child.key != null) { 16155 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks)(child, (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks)(child, cssTransitionProps, state, instance)); 16156 } 16157 else if ((true)) { 16158 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<TransitionGroup> children must be keyed.`); 16159 } 16160 } 16161 if (prevChildren) { 16162 for (let i = 0; i < prevChildren.length; i++) { 16163 const child = prevChildren[i]; 16164 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks)(child, (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks)(child, cssTransitionProps, state, instance)); 16165 positionMap.set(child, child.el.getBoundingClientRect()); 16166 } 16167 } 16168 return (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode)(tag, null, children); 16169 }; 16170 } 16171}; 16172const TransitionGroup = TransitionGroupImpl; 16173function callPendingCbs(c) { 16174 const el = c.el; 16175 if (el._moveCb) { 16176 el._moveCb(); 16177 } 16178 if (el._enterCb) { 16179 el._enterCb(); 16180 } 16181} 16182function recordPosition(c) { 16183 newPositionMap.set(c, c.el.getBoundingClientRect()); 16184} 16185function applyTranslation(c) { 16186 const oldPos = positionMap.get(c); 16187 const newPos = newPositionMap.get(c); 16188 const dx = oldPos.left - newPos.left; 16189 const dy = oldPos.top - newPos.top; 16190 if (dx || dy) { 16191 const s = c.el.style; 16192 s.transform = s.webkitTransform = `translate(${dx}px,${dy}px)`; 16193 s.transitionDuration = '0s'; 16194 return c; 16195 } 16196} 16197function hasCSSTransform(el, root, moveClass) { 16198 // Detect whether an element with the move class applied has 16199 // CSS transitions. Since the element may be inside an entering 16200 // transition at this very moment, we make a clone of it and remove 16201 // all other transition classes applied to ensure only the move class 16202 // is applied. 16203 const clone = el.cloneNode(); 16204 if (el._vtc) { 16205 el._vtc.forEach(cls => { 16206 cls.split(/\s+/).forEach(c => c && clone.classList.remove(c)); 16207 }); 16208 } 16209 moveClass.split(/\s+/).forEach(c => c && clone.classList.add(c)); 16210 clone.style.display = 'none'; 16211 const container = (root.nodeType === 1 ? root : root.parentNode); 16212 container.appendChild(clone); 16213 const { hasTransform } = getTransitionInfo(clone); 16214 container.removeChild(clone); 16215 return hasTransform; 16216} 16217 16218const getModelAssigner = (vnode) => { 16219 const fn = vnode.props['onUpdate:modelValue'] || 16220 (false ); 16221 return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(fn) ? value => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(fn, value) : fn; 16222}; 16223function onCompositionStart(e) { 16224 e.target.composing = true; 16225} 16226function onCompositionEnd(e) { 16227 const target = e.target; 16228 if (target.composing) { 16229 target.composing = false; 16230 target.dispatchEvent(new Event('input')); 16231 } 16232} 16233// We are exporting the v-model runtime directly as vnode hooks so that it can 16234// be tree-shaken in case v-model is never used. 16235const vModelText = { 16236 created(el, { modifiers: { lazy, trim, number } }, vnode) { 16237 el._assign = getModelAssigner(vnode); 16238 const castToNumber = number || (vnode.props && vnode.props.type === 'number'); 16239 addEventListener(el, lazy ? 'change' : 'input', e => { 16240 if (e.target.composing) 16241 return; 16242 let domValue = el.value; 16243 if (trim) { 16244 domValue = domValue.trim(); 16245 } 16246 if (castToNumber) { 16247 domValue = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(domValue); 16248 } 16249 el._assign(domValue); 16250 }); 16251 if (trim) { 16252 addEventListener(el, 'change', () => { 16253 el.value = el.value.trim(); 16254 }); 16255 } 16256 if (!lazy) { 16257 addEventListener(el, 'compositionstart', onCompositionStart); 16258 addEventListener(el, 'compositionend', onCompositionEnd); 16259 // Safari < 10.2 & UIWebView doesn't fire compositionend when 16260 // switching focus before confirming composition choice 16261 // this also fixes the issue where some browsers e.g. iOS Chrome 16262 // fires "change" instead of "input" on autocomplete. 16263 addEventListener(el, 'change', onCompositionEnd); 16264 } 16265 }, 16266 // set value on mounted so it's after min/max for type="range" 16267 mounted(el, { value }) { 16268 el.value = value == null ? '' : value; 16269 }, 16270 beforeUpdate(el, { value, modifiers: { lazy, trim, number } }, vnode) { 16271 el._assign = getModelAssigner(vnode); 16272 // avoid clearing unresolved text. #2302 16273 if (el.composing) 16274 return; 16275 if (document.activeElement === el && el.type !== 'range') { 16276 if (lazy) { 16277 return; 16278 } 16279 if (trim && el.value.trim() === value) { 16280 return; 16281 } 16282 if ((number || el.type === 'number') && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(el.value) === value) { 16283 return; 16284 } 16285 } 16286 const newValue = value == null ? '' : value; 16287 if (el.value !== newValue) { 16288 el.value = newValue; 16289 } 16290 } 16291}; 16292const vModelCheckbox = { 16293 // #4096 array checkboxes need to be deep traversed 16294 deep: true, 16295 created(el, _, vnode) { 16296 el._assign = getModelAssigner(vnode); 16297 addEventListener(el, 'change', () => { 16298 const modelValue = el._modelValue; 16299 const elementValue = getValue(el); 16300 const checked = el.checked; 16301 const assign = el._assign; 16302 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(modelValue)) { 16303 const index = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(modelValue, elementValue); 16304 const found = index !== -1; 16305 if (checked && !found) { 16306 assign(modelValue.concat(elementValue)); 16307 } 16308 else if (!checked && found) { 16309 const filtered = [...modelValue]; 16310 filtered.splice(index, 1); 16311 assign(filtered); 16312 } 16313 } 16314 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(modelValue)) { 16315 const cloned = new Set(modelValue); 16316 if (checked) { 16317 cloned.add(elementValue); 16318 } 16319 else { 16320 cloned.delete(elementValue); 16321 } 16322 assign(cloned); 16323 } 16324 else { 16325 assign(getCheckboxValue(el, checked)); 16326 } 16327 }); 16328 }, 16329 // set initial checked on mount to wait for true-value/false-value 16330 mounted: setChecked, 16331 beforeUpdate(el, binding, vnode) { 16332 el._assign = getModelAssigner(vnode); 16333 setChecked(el, binding, vnode); 16334 } 16335}; 16336function setChecked(el, { value, oldValue }, vnode) { 16337 el._modelValue = value; 16338 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) { 16339 el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, vnode.props.value) > -1; 16340 } 16341 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) { 16342 el.checked = value.has(vnode.props.value); 16343 } 16344 else if (value !== oldValue) { 16345 el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, getCheckboxValue(el, true)); 16346 } 16347} 16348const vModelRadio = { 16349 created(el, { value }, vnode) { 16350 el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, vnode.props.value); 16351 el._assign = getModelAssigner(vnode); 16352 addEventListener(el, 'change', () => { 16353 el._assign(getValue(el)); 16354 }); 16355 }, 16356 beforeUpdate(el, { value, oldValue }, vnode) { 16357 el._assign = getModelAssigner(vnode); 16358 if (value !== oldValue) { 16359 el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, vnode.props.value); 16360 } 16361 } 16362}; 16363const vModelSelect = { 16364 // <select multiple> value need to be deep traversed 16365 deep: true, 16366 created(el, { value, modifiers: { number } }, vnode) { 16367 const isSetModel = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value); 16368 addEventListener(el, 'change', () => { 16369 const selectedVal = Array.prototype.filter 16370 .call(el.options, (o) => o.selected) 16371 .map((o) => number ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(getValue(o)) : getValue(o)); 16372 el._assign(el.multiple 16373 ? isSetModel 16374 ? new Set(selectedVal) 16375 : selectedVal 16376 : selectedVal[0]); 16377 }); 16378 el._assign = getModelAssigner(vnode); 16379 }, 16380 // set value in mounted & updated because <select> relies on its children 16381 // <option>s. 16382 mounted(el, { value }) { 16383 setSelected(el, value); 16384 }, 16385 beforeUpdate(el, _binding, vnode) { 16386 el._assign = getModelAssigner(vnode); 16387 }, 16388 updated(el, { value }) { 16389 setSelected(el, value); 16390 } 16391}; 16392function setSelected(el, value) { 16393 const isMultiple = el.multiple; 16394 if (isMultiple && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) { 16395 ( true) && 16396 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<select multiple v-model> expects an Array or Set value for its binding, ` + 16397 `but got ${Object.prototype.toString.call(value).slice(8, -1)}.`); 16398 return; 16399 } 16400 for (let i = 0, l = el.options.length; i < l; i++) { 16401 const option = el.options[i]; 16402 const optionValue = getValue(option); 16403 if (isMultiple) { 16404 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) { 16405 option.selected = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, optionValue) > -1; 16406 } 16407 else { 16408 option.selected = value.has(optionValue); 16409 } 16410 } 16411 else { 16412 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(getValue(option), value)) { 16413 if (el.selectedIndex !== i) 16414 el.selectedIndex = i; 16415 return; 16416 } 16417 } 16418 } 16419 if (!isMultiple && el.selectedIndex !== -1) { 16420 el.selectedIndex = -1; 16421 } 16422} 16423// retrieve raw value set via :value bindings 16424function getValue(el) { 16425 return '_value' in el ? el._value : el.value; 16426} 16427// retrieve raw value for true-value and false-value set via :true-value or :false-value bindings 16428function getCheckboxValue(el, checked) { 16429 const key = checked ? '_trueValue' : '_falseValue'; 16430 return key in el ? el[key] : checked; 16431} 16432const vModelDynamic = { 16433 created(el, binding, vnode) { 16434 callModelHook(el, binding, vnode, null, 'created'); 16435 }, 16436 mounted(el, binding, vnode) { 16437 callModelHook(el, binding, vnode, null, 'mounted'); 16438 }, 16439 beforeUpdate(el, binding, vnode, prevVNode) { 16440 callModelHook(el, binding, vnode, prevVNode, 'beforeUpdate'); 16441 }, 16442 updated(el, binding, vnode, prevVNode) { 16443 callModelHook(el, binding, vnode, prevVNode, 'updated'); 16444 } 16445}; 16446function resolveDynamicModel(tagName, type) { 16447 switch (tagName) { 16448 case 'SELECT': 16449 return vModelSelect; 16450 case 'TEXTAREA': 16451 return vModelText; 16452 default: 16453 switch (type) { 16454 case 'checkbox': 16455 return vModelCheckbox; 16456 case 'radio': 16457 return vModelRadio; 16458 default: 16459 return vModelText; 16460 } 16461 } 16462} 16463function callModelHook(el, binding, vnode, prevVNode, hook) { 16464 const modelToUse = resolveDynamicModel(el.tagName, vnode.props && vnode.props.type); 16465 const fn = modelToUse[hook]; 16466 fn && fn(el, binding, vnode, prevVNode); 16467} 16468// SSR vnode transforms, only used when user includes client-oriented render 16469// function in SSR 16470function initVModelForSSR() { 16471 vModelText.getSSRProps = ({ value }) => ({ value }); 16472 vModelRadio.getSSRProps = ({ value }, vnode) => { 16473 if (vnode.props && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(vnode.props.value, value)) { 16474 return { checked: true }; 16475 } 16476 }; 16477 vModelCheckbox.getSSRProps = ({ value }, vnode) => { 16478 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) { 16479 if (vnode.props && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, vnode.props.value) > -1) { 16480 return { checked: true }; 16481 } 16482 } 16483 else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) { 16484 if (vnode.props && value.has(vnode.props.value)) { 16485 return { checked: true }; 16486 } 16487 } 16488 else if (value) { 16489 return { checked: true }; 16490 } 16491 }; 16492 vModelDynamic.getSSRProps = (binding, vnode) => { 16493 if (typeof vnode.type !== 'string') { 16494 return; 16495 } 16496 const modelToUse = resolveDynamicModel( 16497 // resolveDynamicModel expects an uppercase tag name, but vnode.type is lowercase 16498 vnode.type.toUpperCase(), vnode.props && vnode.props.type); 16499 if (modelToUse.getSSRProps) { 16500 return modelToUse.getSSRProps(binding, vnode); 16501 } 16502 }; 16503} 16504 16505const systemModifiers = ['ctrl', 'shift', 'alt', 'meta']; 16506const modifierGuards = { 16507 stop: e => e.stopPropagation(), 16508 prevent: e => e.preventDefault(), 16509 self: e => e.target !== e.currentTarget, 16510 ctrl: e => !e.ctrlKey, 16511 shift: e => !e.shiftKey, 16512 alt: e => !e.altKey, 16513 meta: e => !e.metaKey, 16514 left: e => 'button' in e && e.button !== 0, 16515 middle: e => 'button' in e && e.button !== 1, 16516 right: e => 'button' in e && e.button !== 2, 16517 exact: (e, modifiers) => systemModifiers.some(m => e[`${m}Key`] && !modifiers.includes(m)) 16518}; 16519/** 16520 * @private 16521 */ 16522const withModifiers = (fn, modifiers) => { 16523 return (event, ...args) => { 16524 for (let i = 0; i < modifiers.length; i++) { 16525 const guard = modifierGuards[modifiers[i]]; 16526 if (guard && guard(event, modifiers)) 16527 return; 16528 } 16529 return fn(event, ...args); 16530 }; 16531}; 16532// Kept for 2.x compat. 16533// Note: IE11 compat for `spacebar` and `del` is removed for now. 16534const keyNames = { 16535 esc: 'escape', 16536 space: ' ', 16537 up: 'arrow-up', 16538 left: 'arrow-left', 16539 right: 'arrow-right', 16540 down: 'arrow-down', 16541 delete: 'backspace' 16542}; 16543/** 16544 * @private 16545 */ 16546const withKeys = (fn, modifiers) => { 16547 return (event) => { 16548 if (!('key' in event)) { 16549 return; 16550 } 16551 const eventKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event.key); 16552 if (modifiers.some(k => k === eventKey || keyNames[k] === eventKey)) { 16553 return fn(event); 16554 } 16555 }; 16556}; 16557 16558const vShow = { 16559 beforeMount(el, { value }, { transition }) { 16560 el._vod = el.style.display === 'none' ? '' : el.style.display; 16561 if (transition && value) { 16562 transition.beforeEnter(el); 16563 } 16564 else { 16565 setDisplay(el, value); 16566 } 16567 }, 16568 mounted(el, { value }, { transition }) { 16569 if (transition && value) { 16570 transition.enter(el); 16571 } 16572 }, 16573 updated(el, { value, oldValue }, { transition }) { 16574 if (!value === !oldValue) 16575 return; 16576 if (transition) { 16577 if (value) { 16578 transition.beforeEnter(el); 16579 setDisplay(el, true); 16580 transition.enter(el); 16581 } 16582 else { 16583 transition.leave(el, () => { 16584 setDisplay(el, false); 16585 }); 16586 } 16587 } 16588 else { 16589 setDisplay(el, value); 16590 } 16591 }, 16592 beforeUnmount(el, { value }) { 16593 setDisplay(el, value); 16594 } 16595}; 16596function setDisplay(el, value) { 16597 el.style.display = value ? el._vod : 'none'; 16598} 16599// SSR vnode transforms, only used when user includes client-oriented render 16600// function in SSR 16601function initVShowForSSR() { 16602 vShow.getSSRProps = ({ value }) => { 16603 if (!value) { 16604 return { style: { display: 'none' } }; 16605 } 16606 }; 16607} 16608 16609const rendererOptions = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({ patchProp }, nodeOps); 16610// lazy create the renderer - this makes core renderer logic tree-shakable 16611// in case the user only imports reactivity utilities from Vue. 16612let renderer; 16613let enabledHydration = false; 16614function ensureRenderer() { 16615 return (renderer || 16616 (renderer = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createRenderer)(rendererOptions))); 16617} 16618function ensureHydrationRenderer() { 16619 renderer = enabledHydration 16620 ? renderer 16621 : (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer)(rendererOptions); 16622 enabledHydration = true; 16623 return renderer; 16624} 16625// use explicit type casts here to avoid import() calls in rolled-up d.ts 16626const render = ((...args) => { 16627 ensureRenderer().render(...args); 16628}); 16629const hydrate = ((...args) => { 16630 ensureHydrationRenderer().hydrate(...args); 16631}); 16632const createApp = ((...args) => { 16633 const app = ensureRenderer().createApp(...args); 16634 if ((true)) { 16635 injectNativeTagCheck(app); 16636 injectCompilerOptionsCheck(app); 16637 } 16638 const { mount } = app; 16639 app.mount = (containerOrSelector) => { 16640 const container = normalizeContainer(containerOrSelector); 16641 if (!container) 16642 return; 16643 const component = app._component; 16644 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(component) && !component.render && !component.template) { 16645 // __UNSAFE__ 16646 // Reason: potential execution of JS expressions in in-DOM template. 16647 // The user must make sure the in-DOM template is trusted. If it's 16648 // rendered by the server, the template should not contain any user data. 16649 component.template = container.innerHTML; 16650 } 16651 // clear content before mounting 16652 container.innerHTML = ''; 16653 const proxy = mount(container, false, container instanceof SVGElement); 16654 if (container instanceof Element) { 16655 container.removeAttribute('v-cloak'); 16656 container.setAttribute('data-v-app', ''); 16657 } 16658 return proxy; 16659 }; 16660 return app; 16661}); 16662const createSSRApp = ((...args) => { 16663 const app = ensureHydrationRenderer().createApp(...args); 16664 if ((true)) { 16665 injectNativeTagCheck(app); 16666 injectCompilerOptionsCheck(app); 16667 } 16668 const { mount } = app; 16669 app.mount = (containerOrSelector) => { 16670 const container = normalizeContainer(containerOrSelector); 16671 if (container) { 16672 return mount(container, true, container instanceof SVGElement); 16673 } 16674 }; 16675 return app; 16676}); 16677function injectNativeTagCheck(app) { 16678 // Inject `isNativeTag` 16679 // this is used for component name validation (dev only) 16680 Object.defineProperty(app.config, 'isNativeTag', { 16681 value: (tag) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isHTMLTag)(tag) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSVGTag)(tag), 16682 writable: false 16683 }); 16684} 16685// dev only 16686function injectCompilerOptionsCheck(app) { 16687 if ((0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly)()) { 16688 const isCustomElement = app.config.isCustomElement; 16689 Object.defineProperty(app.config, 'isCustomElement', { 16690 get() { 16691 return isCustomElement; 16692 }, 16693 set() { 16694 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`The \`isCustomElement\` config option is deprecated. Use ` + 16695 `\`compilerOptions.isCustomElement\` instead.`); 16696 } 16697 }); 16698 const compilerOptions = app.config.compilerOptions; 16699 const msg = `The \`compilerOptions\` config option is only respected when using ` + 16700 `a build of Vue.js that includes the runtime compiler (aka "full build"). ` + 16701 `Since you are using the runtime-only build, \`compilerOptions\` ` + 16702 `must be passed to \`@vue/compiler-dom\` in the build setup instead.\n` + 16703 `- For vue-loader: pass it via vue-loader's \`compilerOptions\` loader option.\n` + 16704 `- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n` + 16705 `- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom`; 16706 Object.defineProperty(app.config, 'compilerOptions', { 16707 get() { 16708 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(msg); 16709 return compilerOptions; 16710 }, 16711 set() { 16712 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(msg); 16713 } 16714 }); 16715 } 16716} 16717function normalizeContainer(container) { 16718 if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(container)) { 16719 const res = document.querySelector(container); 16720 if (( true) && !res) { 16721 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Failed to mount app: mount target selector "${container}" returned null.`); 16722 } 16723 return res; 16724 } 16725 if (( true) && 16726 window.ShadowRoot && 16727 container instanceof window.ShadowRoot && 16728 container.mode === 'closed') { 16729 (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`); 16730 } 16731 return container; 16732} 16733let ssrDirectiveInitialized = false; 16734/** 16735 * @internal 16736 */ 16737const initDirectivesForSSR = () => { 16738 if (!ssrDirectiveInitialized) { 16739 ssrDirectiveInitialized = true; 16740 initVModelForSSR(); 16741 initVShowForSSR(); 16742 } 16743 } 16744 ; 16745 16746 16747 16748 16749/***/ }), 16750
vendor: 29,512 bytes, lines 16751-17421
16751/***/ "./node_modules/@vue/shared/dist/shared.esm-bundler.js": 16752/*!*************************************************************!*\ 16753 !*** ./node_modules/@vue/shared/dist/shared.esm-bundler.js ***! 16754 \*************************************************************/ 16755/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 16756 16757"use strict"; 16758__webpack_require__.r(__webpack_exports__); 16759/* harmony export */ __webpack_require__.d(__webpack_exports__, { 16760/* harmony export */ "EMPTY_ARR": function() { return /* binding */ EMPTY_ARR; }, 16761/* harmony export */ "EMPTY_OBJ": function() { return /* binding */ EMPTY_OBJ; }, 16762/* harmony export */ "NO": function() { return /* binding */ NO; }, 16763/* harmony export */ "NOOP": function() { return /* binding */ NOOP; }, 16764/* harmony export */ "PatchFlagNames": function() { return /* binding */ PatchFlagNames; }, 16765/* harmony export */ "camelize": function() { return /* binding */ camelize; }, 16766/* harmony export */ "capitalize": function() { return /* binding */ capitalize; }, 16767/* harmony export */ "def": function() { return /* binding */ def; }, 16768/* harmony export */ "escapeHtml": function() { return /* binding */ escapeHtml; }, 16769/* harmony export */ "escapeHtmlComment": function() { return /* binding */ escapeHtmlComment; }, 16770/* harmony export */ "extend": function() { return /* binding */ extend; }, 16771/* harmony export */ "genPropsAccessExp": function() { return /* binding */ genPropsAccessExp; }, 16772/* harmony export */ "generateCodeFrame": function() { return /* binding */ generateCodeFrame; }, 16773/* harmony export */ "getGlobalThis": function() { return /* binding */ getGlobalThis; }, 16774/* harmony export */ "hasChanged": function() { return /* binding */ hasChanged; }, 16775/* harmony export */ "hasOwn": function() { return /* binding */ hasOwn; }, 16776/* harmony export */ "hyphenate": function() { return /* binding */ hyphenate; }, 16777/* harmony export */ "includeBooleanAttr": function() { return /* binding */ includeBooleanAttr; }, 16778/* harmony export */ "invokeArrayFns": function() { return /* binding */ invokeArrayFns; }, 16779/* harmony export */ "isArray": function() { return /* binding */ isArray; }, 16780/* harmony export */ "isBooleanAttr": function() { return /* binding */ isBooleanAttr; }, 16781/* harmony export */ "isBuiltInDirective": function() { return /* binding */ isBuiltInDirective; }, 16782/* harmony export */ "isDate": function() { return /* binding */ isDate; }, 16783/* harmony export */ "isFunction": function() { return /* binding */ isFunction; }, 16784/* harmony export */ "isGloballyWhitelisted": function() { return /* binding */ isGloballyWhitelisted; }, 16785/* harmony export */ "isHTMLTag": function() { return /* binding */ isHTMLTag; }, 16786/* harmony export */ "isIntegerKey": function() { return /* binding */ isIntegerKey; }, 16787/* harmony export */ "isKnownHtmlAttr": function() { return /* binding */ isKnownHtmlAttr; }, 16788/* harmony export */ "isKnownSvgAttr": function() { return /* binding */ isKnownSvgAttr; }, 16789/* harmony export */ "isMap": function() { return /* binding */ isMap; }, 16790/* harmony export */ "isModelListener": function() { return /* binding */ isModelListener; }, 16791/* harmony export */ "isNoUnitNumericStyleProp": function() { return /* binding */ isNoUnitNumericStyleProp; }, 16792/* harmony export */ "isObject": function() { return /* binding */ isObject; }, 16793/* harmony export */ "isOn": function() { return /* binding */ isOn; }, 16794/* harmony export */ "isPlainObject": function() { return /* binding */ isPlainObject; }, 16795/* harmony export */ "isPromise": function() { return /* binding */ isPromise; }, 16796/* harmony export */ "isReservedProp": function() { return /* binding */ isReservedProp; }, 16797/* harmony export */ "isSSRSafeAttrName": function() { return /* binding */ isSSRSafeAttrName; }, 16798/* harmony export */ "isSVGTag": function() { return /* binding */ isSVGTag; }, 16799/* harmony export */ "isSet": function() { return /* binding */ isSet; }, 16800/* harmony export */ "isSpecialBooleanAttr": function() { return /* binding */ isSpecialBooleanAttr; }, 16801/* harmony export */ "isString": function() { return /* binding */ isString; }, 16802/* harmony export */ "isSymbol": function() { return /* binding */ isSymbol; }, 16803/* harmony export */ "isVoidTag": function() { return /* binding */ isVoidTag; }, 16804/* harmony export */ "looseEqual": function() { return /* binding */ looseEqual; }, 16805/* harmony export */ "looseIndexOf": function() { return /* binding */ looseIndexOf; }, 16806/* harmony export */ "makeMap": function() { return /* binding */ makeMap; }, 16807/* harmony export */ "normalizeClass": function() { return /* binding */ normalizeClass; }, 16808/* harmony export */ "normalizeProps": function() { return /* binding */ normalizeProps; }, 16809/* harmony export */ "normalizeStyle": function() { return /* binding */ normalizeStyle; }, 16810/* harmony export */ "objectToString": function() { return /* binding */ objectToString; }, 16811/* harmony export */ "parseStringStyle": function() { return /* binding */ parseStringStyle; }, 16812/* harmony export */ "propsToAttrMap": function() { return /* binding */ propsToAttrMap; }, 16813/* harmony export */ "remove": function() { return /* binding */ remove; }, 16814/* harmony export */ "slotFlagsText": function() { return /* binding */ slotFlagsText; }, 16815/* harmony export */ "stringifyStyle": function() { return /* binding */ stringifyStyle; }, 16816/* harmony export */ "toDisplayString": function() { return /* binding */ toDisplayString; }, 16817/* harmony export */ "toHandlerKey": function() { return /* binding */ toHandlerKey; }, 16818/* harmony export */ "toNumber": function() { return /* binding */ toNumber; }, 16819/* harmony export */ "toRawType": function() { return /* binding */ toRawType; }, 16820/* harmony export */ "toTypeString": function() { return /* binding */ toTypeString; } 16821/* harmony export */ }); 16822/** 16823 * Make a map and return a function for checking if a key 16824 * is in that map. 16825 * IMPORTANT: all calls of this function must be prefixed with 16826 * \/\*#\_\_PURE\_\_\*\/ 16827 * So that rollup can tree-shake them if necessary. 16828 */ 16829function makeMap(str, expectsLowerCase) { 16830 const map = Object.create(null); 16831 const list = str.split(','); 16832 for (let i = 0; i < list.length; i++) { 16833 map[list[i]] = true; 16834 } 16835 return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val]; 16836} 16837 16838/** 16839 * dev only flag -> name mapping 16840 */ 16841const PatchFlagNames = { 16842 [1 /* TEXT */]: `TEXT`, 16843 [2 /* CLASS */]: `CLASS`, 16844 [4 /* STYLE */]: `STYLE`, 16845 [8 /* PROPS */]: `PROPS`, 16846 [16 /* FULL_PROPS */]: `FULL_PROPS`, 16847 [32 /* HYDRATE_EVENTS */]: `HYDRATE_EVENTS`, 16848 [64 /* STABLE_FRAGMENT */]: `STABLE_FRAGMENT`, 16849 [128 /* KEYED_FRAGMENT */]: `KEYED_FRAGMENT`, 16850 [256 /* UNKEYED_FRAGMENT */]: `UNKEYED_FRAGMENT`, 16851 [512 /* NEED_PATCH */]: `NEED_PATCH`, 16852 [1024 /* DYNAMIC_SLOTS */]: `DYNAMIC_SLOTS`, 16853 [2048 /* DEV_ROOT_FRAGMENT */]: `DEV_ROOT_FRAGMENT`, 16854 [-1 /* HOISTED */]: `HOISTED`, 16855 [-2 /* BAIL */]: `BAIL` 16856}; 16857 16858/** 16859 * Dev only 16860 */ 16861const slotFlagsText = { 16862 [1 /* STABLE */]: 'STABLE', 16863 [2 /* DYNAMIC */]: 'DYNAMIC', 16864 [3 /* FORWARDED */]: 'FORWARDED' 16865}; 16866 16867const GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' + 16868 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' + 16869 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt'; 16870const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED); 16871 16872const range = 2; 16873function generateCodeFrame(source, start = 0, end = source.length) { 16874 // Split the content into individual lines but capture the newline sequence 16875 // that separated each line. This is important because the actual sequence is 16876 // needed to properly take into account the full line length for offset 16877 // comparison 16878 let lines = source.split(/(\r?\n)/); 16879 // Separate the lines and newline sequences into separate arrays for easier referencing 16880 const newlineSequences = lines.filter((_, idx) => idx % 2 === 1); 16881 lines = lines.filter((_, idx) => idx % 2 === 0); 16882 let count = 0; 16883 const res = []; 16884 for (let i = 0; i < lines.length; i++) { 16885 count += 16886 lines[i].length + 16887 ((newlineSequences[i] && newlineSequences[i].length) || 0); 16888 if (count >= start) { 16889 for (let j = i - range; j <= i + range || end > count; j++) { 16890 if (j < 0 || j >= lines.length) 16891 continue; 16892 const line = j + 1; 16893 res.push(`${line}${' '.repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`); 16894 const lineLength = lines[j].length; 16895 const newLineSeqLength = (newlineSequences[j] && newlineSequences[j].length) || 0; 16896 if (j === i) { 16897 // push underline 16898 const pad = start - (count - (lineLength + newLineSeqLength)); 16899 const length = Math.max(1, end > count ? lineLength - pad : end - start); 16900 res.push(` | ` + ' '.repeat(pad) + '^'.repeat(length)); 16901 } 16902 else if (j > i) { 16903 if (end > count) { 16904 const length = Math.max(Math.min(end - count, lineLength), 1); 16905 res.push(` | ` + '^'.repeat(length)); 16906 } 16907 count += lineLength + newLineSeqLength; 16908 } 16909 } 16910 break; 16911 } 16912 } 16913 return res.join('\n'); 16914} 16915 16916/** 16917 * On the client we only need to offer special cases for boolean attributes that 16918 * have different names from their corresponding dom properties: 16919 * - itemscope -> N/A 16920 * - allowfullscreen -> allowFullscreen 16921 * - formnovalidate -> formNoValidate 16922 * - ismap -> isMap 16923 * - nomodule -> noModule 16924 * - novalidate -> noValidate 16925 * - readonly -> readOnly 16926 */ 16927const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`; 16928const isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs); 16929/** 16930 * The full list is needed during SSR to produce the correct initial markup. 16931 */ 16932const isBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs + 16933 `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,` + 16934 `loop,open,required,reversed,scoped,seamless,` + 16935 `checked,muted,multiple,selected`); 16936/** 16937 * Boolean attributes should be included if the value is truthy or ''. 16938 * e.g. `<select multiple>` compiles to `{ multiple: '' }` 16939 */ 16940function includeBooleanAttr(value) { 16941 return !!value || value === ''; 16942} 16943const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/; 16944const attrValidationCache = {}; 16945function isSSRSafeAttrName(name) { 16946 if (attrValidationCache.hasOwnProperty(name)) { 16947 return attrValidationCache[name]; 16948 } 16949 const isUnsafe = unsafeAttrCharRE.test(name); 16950 if (isUnsafe) { 16951 console.error(`unsafe attribute name: ${name}`); 16952 } 16953 return (attrValidationCache[name] = !isUnsafe); 16954} 16955const propsToAttrMap = { 16956 acceptCharset: 'accept-charset', 16957 className: 'class', 16958 htmlFor: 'for', 16959 httpEquiv: 'http-equiv' 16960}; 16961/** 16962 * CSS properties that accept plain numbers 16963 */ 16964const isNoUnitNumericStyleProp = /*#__PURE__*/ makeMap(`animation-iteration-count,border-image-outset,border-image-slice,` + 16965 `border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,` + 16966 `columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,` + 16967 `grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,` + 16968 `grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,` + 16969 `line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,` + 16970 // SVG 16971 `fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,` + 16972 `stroke-miterlimit,stroke-opacity,stroke-width`); 16973/** 16974 * Known attributes, this is used for stringification of runtime static nodes 16975 * so that we don't stringify bindings that cannot be set from HTML. 16976 * Don't also forget to allow `data-*` and `aria-*`! 16977 * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes 16978 */ 16979const isKnownHtmlAttr = /*#__PURE__*/ makeMap(`accept,accept-charset,accesskey,action,align,allow,alt,async,` + 16980 `autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,` + 16981 `border,buffered,capture,challenge,charset,checked,cite,class,code,` + 16982 `codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,` + 16983 `coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,` + 16984 `disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,` + 16985 `formaction,formenctype,formmethod,formnovalidate,formtarget,headers,` + 16986 `height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,` + 16987 `ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,` + 16988 `manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,` + 16989 `open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,` + 16990 `referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,` + 16991 `selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,` + 16992 `start,step,style,summary,tabindex,target,title,translate,type,usemap,` + 16993 `value,width,wrap`); 16994/** 16995 * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute 16996 */ 16997const isKnownSvgAttr = /*#__PURE__*/ makeMap(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,` + 16998 `arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,` + 16999 `baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,` + 17000 `clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,` + 17001 `color-interpolation-filters,color-profile,color-rendering,` + 17002 `contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,` + 17003 `descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,` + 17004 `dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,` + 17005 `fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,` + 17006 `font-family,font-size,font-size-adjust,font-stretch,font-style,` + 17007 `font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,` + 17008 `glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,` + 17009 `gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,` + 17010 `horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,` + 17011 `k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,` + 17012 `lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,` + 17013 `marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,` + 17014 `mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,` + 17015 `name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,` + 17016 `overflow,overline-position,overline-thickness,panose-1,paint-order,path,` + 17017 `pathLength,patternContentUnits,patternTransform,patternUnits,ping,` + 17018 `pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,` + 17019 `preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,` + 17020 `rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,` + 17021 `restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,` + 17022 `specularConstant,specularExponent,speed,spreadMethod,startOffset,` + 17023 `stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,` + 17024 `strikethrough-position,strikethrough-thickness,string,stroke,` + 17025 `stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,` + 17026 `stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,` + 17027 `systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,` + 17028 `text-decoration,text-rendering,textLength,to,transform,transform-origin,` + 17029 `type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,` + 17030 `unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,` + 17031 `v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,` + 17032 `vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,` + 17033 `writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,` + 17034 `xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,` + 17035 `xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`); 17036 17037function normalizeStyle(value) { 17038 if (isArray(value)) { 17039 const res = {}; 17040 for (let i = 0; i < value.length; i++) { 17041 const item = value[i]; 17042 const normalized = isString(item) 17043 ? parseStringStyle(item) 17044 : normalizeStyle(item); 17045 if (normalized) { 17046 for (const key in normalized) { 17047 res[key] = normalized[key]; 17048 } 17049 } 17050 } 17051 return res; 17052 } 17053 else if (isString(value)) { 17054 return value; 17055 } 17056 else if (isObject(value)) { 17057 return value; 17058 } 17059} 17060const listDelimiterRE = /;(?![^(]*\))/g; 17061const propertyDelimiterRE = /:(.+)/; 17062function parseStringStyle(cssText) { 17063 const ret = {}; 17064 cssText.split(listDelimiterRE).forEach(item => { 17065 if (item) { 17066 const tmp = item.split(propertyDelimiterRE); 17067 tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); 17068 } 17069 }); 17070 return ret; 17071} 17072function stringifyStyle(styles) { 17073 let ret = ''; 17074 if (!styles || isString(styles)) { 17075 return ret; 17076 } 17077 for (const key in styles) { 17078 const value = styles[key]; 17079 const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); 17080 if (isString(value) || 17081 (typeof value === 'number' && isNoUnitNumericStyleProp(normalizedKey))) { 17082 // only render valid values 17083 ret += `${normalizedKey}:${value};`; 17084 } 17085 } 17086 return ret; 17087} 17088function normalizeClass(value) { 17089 let res = ''; 17090 if (isString(value)) { 17091 res = value; 17092 } 17093 else if (isArray(value)) { 17094 for (let i = 0; i < value.length; i++) { 17095 const normalized = normalizeClass(value[i]); 17096 if (normalized) { 17097 res += normalized + ' '; 17098 } 17099 } 17100 } 17101 else if (isObject(value)) { 17102 for (const name in value) { 17103 if (value[name]) { 17104 res += name + ' '; 17105 } 17106 } 17107 } 17108 return res.trim(); 17109} 17110function normalizeProps(props) { 17111 if (!props) 17112 return null; 17113 let { class: klass, style } = props; 17114 if (klass && !isString(klass)) { 17115 props.class = normalizeClass(klass); 17116 } 17117 if (style) { 17118 props.style = normalizeStyle(style); 17119 } 17120 return props; 17121} 17122 17123// These tag configs are shared between compiler-dom and runtime-dom, so they 17124// https://developer.mozilla.org/en-US/docs/Web/HTML/Element 17125const HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' + 17126 'header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' + 17127 'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' + 17128 'data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,' + 17129 'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' + 17130 'canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,' + 17131 'th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,' + 17132 'option,output,progress,select,textarea,details,dialog,menu,' + 17133 'summary,template,blockquote,iframe,tfoot'; 17134// https://developer.mozilla.org/en-US/docs/Web/SVG/Element 17135const SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' + 17136 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' + 17137 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' + 17138 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' + 17139 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' + 17140 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' + 17141 'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' + 17142 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' + 17143 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' + 17144 'text,textPath,title,tspan,unknown,use,view'; 17145const VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr'; 17146/** 17147 * Compiler only. 17148 * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag. 17149 */ 17150const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS); 17151/** 17152 * Compiler only. 17153 * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag. 17154 */ 17155const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS); 17156/** 17157 * Compiler only. 17158 * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag. 17159 */ 17160const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS); 17161 17162const escapeRE = /["'&<>]/; 17163function escapeHtml(string) { 17164 const str = '' + string; 17165 const match = escapeRE.exec(str); 17166 if (!match) { 17167 return str; 17168 } 17169 let html = ''; 17170 let escaped; 17171 let index; 17172 let lastIndex = 0; 17173 for (index = match.index; index < str.length; index++) { 17174 switch (str.charCodeAt(index)) { 17175 case 34: // " 17176 escaped = '"'; 17177 break; 17178 case 38: // & 17179 escaped = '&'; 17180 break; 17181 case 39: // ' 17182 escaped = '''; 17183 break; 17184 case 60: // < 17185 escaped = '<'; 17186 break; 17187 case 62: // > 17188 escaped = '>'; 17189 break; 17190 default: 17191 continue; 17192 } 17193 if (lastIndex !== index) { 17194 html += str.slice(lastIndex, index); 17195 } 17196 lastIndex = index + 1; 17197 html += escaped; 17198 } 17199 return lastIndex !== index ? html + str.slice(lastIndex, index) : html; 17200} 17201// https://www.w3.org/TR/html52/syntax.html#comments 17202const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g; 17203function escapeHtmlComment(src) { 17204 return src.replace(commentStripRE, ''); 17205} 17206 17207function looseCompareArrays(a, b) { 17208 if (a.length !== b.length) 17209 return false; 17210 let equal = true; 17211 for (let i = 0; equal && i < a.length; i++) { 17212 equal = looseEqual(a[i], b[i]); 17213 } 17214 return equal; 17215} 17216function looseEqual(a, b) { 17217 if (a === b) 17218 return true; 17219 let aValidType = isDate(a); 17220 let bValidType = isDate(b); 17221 if (aValidType || bValidType) { 17222 return aValidType && bValidType ? a.getTime() === b.getTime() : false; 17223 } 17224 aValidType = isSymbol(a); 17225 bValidType = isSymbol(b); 17226 if (aValidType || bValidType) { 17227 return a === b; 17228 } 17229 aValidType = isArray(a); 17230 bValidType = isArray(b); 17231 if (aValidType || bValidType) { 17232 return aValidType && bValidType ? looseCompareArrays(a, b) : false; 17233 } 17234 aValidType = isObject(a); 17235 bValidType = isObject(b); 17236 if (aValidType || bValidType) { 17237 /* istanbul ignore if: this if will probably never be called */ 17238 if (!aValidType || !bValidType) { 17239 return false; 17240 } 17241 const aKeysCount = Object.keys(a).length; 17242 const bKeysCount = Object.keys(b).length; 17243 if (aKeysCount !== bKeysCount) { 17244 return false; 17245 } 17246 for (const key in a) { 17247 const aHasKey = a.hasOwnProperty(key); 17248 const bHasKey = b.hasOwnProperty(key); 17249 if ((aHasKey && !bHasKey) || 17250 (!aHasKey && bHasKey) || 17251 !looseEqual(a[key], b[key])) { 17252 return false; 17253 } 17254 } 17255 } 17256 return String(a) === String(b); 17257} 17258function looseIndexOf(arr, val) { 17259 return arr.findIndex(item => looseEqual(item, val)); 17260} 17261 17262/** 17263 * For converting {{ interpolation }} values to displayed strings. 17264 * @private 17265 */ 17266const toDisplayString = (val) => { 17267 return isString(val) 17268 ? val 17269 : val == null 17270 ? '' 17271 : isArray(val) || 17272 (isObject(val) && 17273 (val.toString === objectToString || !isFunction(val.toString))) 17274 ? JSON.stringify(val, replacer, 2) 17275 : String(val); 17276}; 17277const replacer = (_key, val) => { 17278 // can't use isRef here since @vue/shared has no deps 17279 if (val && val.__v_isRef) { 17280 return replacer(_key, val.value); 17281 } 17282 else if (isMap(val)) { 17283 return { 17284 [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val]) => { 17285 entries[`${key} =>`] = val; 17286 return entries; 17287 }, {}) 17288 }; 17289 } 17290 else if (isSet(val)) { 17291 return { 17292 [`Set(${val.size})`]: [...val.values()] 17293 }; 17294 } 17295 else if (isObject(val) && !isArray(val) && !isPlainObject(val)) { 17296 return String(val); 17297 } 17298 return val; 17299}; 17300 17301const EMPTY_OBJ = ( true) 17302 ? Object.freeze({}) 17303 : 0; 17304const EMPTY_ARR = ( true) ? Object.freeze([]) : 0; 17305const NOOP = () => { }; 17306/** 17307 * Always return false. 17308 */ 17309const NO = () => false; 17310const onRE = /^on[^a-z]/; 17311const isOn = (key) => onRE.test(key); 17312const isModelListener = (key) => key.startsWith('onUpdate:'); 17313const extend = Object.assign; 17314const remove = (arr, el) => { 17315 const i = arr.indexOf(el); 17316 if (i > -1) { 17317 arr.splice(i, 1); 17318 } 17319}; 17320const hasOwnProperty = Object.prototype.hasOwnProperty; 17321const hasOwn = (val, key) => hasOwnProperty.call(val, key); 17322const isArray = Array.isArray; 17323const isMap = (val) => toTypeString(val) === '[object Map]'; 17324const isSet = (val) => toTypeString(val) === '[object Set]'; 17325const isDate = (val) => toTypeString(val) === '[object Date]'; 17326const isFunction = (val) => typeof val === 'function'; 17327const isString = (val) => typeof val === 'string'; 17328const isSymbol = (val) => typeof val === 'symbol'; 17329const isObject = (val) => val !== null && typeof val === 'object'; 17330const isPromise = (val) => { 17331 return isObject(val) && isFunction(val.then) && isFunction(val.catch); 17332}; 17333const objectToString = Object.prototype.toString; 17334const toTypeString = (value) => objectToString.call(value); 17335const toRawType = (value) => { 17336 // extract "RawType" from strings like "[object RawType]" 17337 return toTypeString(value).slice(8, -1); 17338}; 17339const isPlainObject = (val) => toTypeString(val) === '[object Object]'; 17340const isIntegerKey = (key) => isString(key) && 17341 key !== 'NaN' && 17342 key[0] !== '-' && 17343 '' + parseInt(key, 10) === key; 17344const isReservedProp = /*#__PURE__*/ makeMap( 17345// the leading comma is intentional so empty string "" is also included 17346',key,ref,ref_for,ref_key,' + 17347 'onVnodeBeforeMount,onVnodeMounted,' + 17348 'onVnodeBeforeUpdate,onVnodeUpdated,' + 17349 'onVnodeBeforeUnmount,onVnodeUnmounted'); 17350const isBuiltInDirective = /*#__PURE__*/ makeMap('bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo'); 17351const cacheStringFunction = (fn) => { 17352 const cache = Object.create(null); 17353 return ((str) => { 17354 const hit = cache[str]; 17355 return hit || (cache[str] = fn(str)); 17356 }); 17357}; 17358const camelizeRE = /-(\w)/g; 17359/** 17360 * @private 17361 */ 17362const camelize = cacheStringFunction((str) => { 17363 return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : '')); 17364}); 17365const hyphenateRE = /\B([A-Z])/g; 17366/** 17367 * @private 17368 */ 17369const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase()); 17370/** 17371 * @private 17372 */ 17373const capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1)); 17374/** 17375 * @private 17376 */ 17377const toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``); 17378// compare whether a value has changed, accounting for NaN. 17379const hasChanged = (value, oldValue) => !Object.is(value, oldValue); 17380const invokeArrayFns = (fns, arg) => { 17381 for (let i = 0; i < fns.length; i++) { 17382 fns[i](arg); 17383 } 17384}; 17385const def = (obj, key, value) => { 17386 Object.defineProperty(obj, key, { 17387 configurable: true, 17388 enumerable: false, 17389 value 17390 }); 17391}; 17392const toNumber = (val) => { 17393 const n = parseFloat(val); 17394 return isNaN(n) ? val : n; 17395}; 17396let _globalThis; 17397const getGlobalThis = () => { 17398 return (_globalThis || 17399 (_globalThis = 17400 typeof globalThis !== 'undefined' 17401 ? globalThis 17402 : typeof self !== 'undefined' 17403 ? self 17404 : typeof window !== 'undefined' 17405 ? window 17406 : typeof __webpack_require__.g !== 'undefined' 17407 ? __webpack_require__.g 17408 : {})); 17409}; 17410const identRE = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/; 17411function genPropsAccessExp(name) { 17412 return identRE.test(name) 17413 ? `__props.${name}` 17414 : `__props[${JSON.stringify(name)}]`; 17415} 17416 17417 17418 17419 17420/***/ }), 17421
vendor: 243,058 bytes, lines 17422-22180
17422/***/ "./node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.es.js": 17423/*!***********************************************************************!*\ 17424 !*** ./node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.es.js ***! 17425 \***********************************************************************/ 17426/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 17427 17428"use strict"; 17429__webpack_require__.r(__webpack_exports__); 17430/* harmony export */ __webpack_require__.d(__webpack_exports__, { 17431/* harmony export */ "default": function() { return /* binding */ component; } 17432/* harmony export */ }); 17433/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 17434/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/parse/index.js"); 17435/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isValid/index.js"); 17436/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isDate/index.js"); 17437/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/setHours/index.js"); 17438/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/setMinutes/index.js"); 17439/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/setSeconds/index.js"); 17440/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/setMilliseconds/index.js"); 17441/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/addMonths/index.js"); 17442/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/getMonth/index.js"); 17443/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/getYear/index.js"); 17444/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/setMonth/index.js"); 17445/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/setYear/index.js"); 17446/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/getHours/index.js"); 17447/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/getMinutes/index.js"); 17448/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/getSeconds/index.js"); 17449/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/format/index.js"); 17450/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isAfter/index.js"); 17451/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isBefore/index.js"); 17452/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/isEqual/index.js"); 17453/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/add/index.js"); 17454/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/set/index.js"); 17455/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/sub/index.js"); 17456/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/parseISO/index.js"); 17457/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/startOfWeek/index.js"); 17458/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/endOfWeek/index.js"); 17459/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/getDay/index.js"); 17460/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/addDays/index.js"); 17461/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/subMonths/index.js"); 17462/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/addYears/index.js"); 17463/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/subYears/index.js"); 17464/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/differenceInCalendarDays/index.js"); 17465/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/eachDayOfInterval/index.js"); 17466/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! date-fns */ "./node_modules/date-fns/esm/getISOWeek/index.js"); 17467 17468 17469const _export_sfc = (sfc, props) => { 17470 const target = sfc.__vccOpts || sfc; 17471 for (const [key, val] of props) { 17472 target[key] = val; 17473 } 17474 return target; 17475}; 17476const _sfc_main$h = {}; 17477const _hoisted_1$g = { 17478 version: "1.1", 17479 xmlns: "http://www.w3.org/2000/svg", 17480 width: "32", 17481 height: "32", 17482 viewBox: "0 0 32 32", 17483 class: "dp__icon" 17484}; 17485const _hoisted_2$e = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z" }, null, -1); 17486const _hoisted_3$e = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z" }, null, -1); 17487const _hoisted_4$8 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z" }, null, -1); 17488const _hoisted_5$4 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z" }, null, -1); 17489const _hoisted_6$2 = [ 17490 _hoisted_2$e, 17491 _hoisted_3$e, 17492 _hoisted_4$8, 17493 _hoisted_5$4 17494]; 17495function _sfc_render$6(_ctx, _cache) { 17496 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("svg", _hoisted_1$g, _hoisted_6$2); 17497} 17498const CalendarIcon = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$6]]); 17499const _sfc_main$g = {}; 17500const _hoisted_1$f = { 17501 version: "1.1", 17502 xmlns: "http://www.w3.org/2000/svg", 17503 width: "32", 17504 height: "32", 17505 viewBox: "0 0 32 32", 17506 class: "dp__icon" 17507}; 17508const _hoisted_2$d = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z" }, null, -1); 17509const _hoisted_3$d = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z" }, null, -1); 17510const _hoisted_4$7 = [ 17511 _hoisted_2$d, 17512 _hoisted_3$d 17513]; 17514function _sfc_render$5(_ctx, _cache) { 17515 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("svg", _hoisted_1$f, _hoisted_4$7); 17516} 17517const CancelIcon = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$5]]); 17518const _sfc_main$f = {}; 17519const _hoisted_1$e = { 17520 version: "1.1", 17521 xmlns: "http://www.w3.org/2000/svg", 17522 width: "32", 17523 height: "32", 17524 viewBox: "0 0 32 32", 17525 class: "dp__icon" 17526}; 17527const _hoisted_2$c = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z" }, null, -1); 17528const _hoisted_3$c = [ 17529 _hoisted_2$c 17530]; 17531function _sfc_render$4(_ctx, _cache) { 17532 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("svg", _hoisted_1$e, _hoisted_3$c); 17533} 17534const ChevronLeftIcon = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$4]]); 17535const _sfc_main$e = {}; 17536const _hoisted_1$d = { 17537 version: "1.1", 17538 xmlns: "http://www.w3.org/2000/svg", 17539 width: "32", 17540 height: "32", 17541 viewBox: "0 0 32 32", 17542 class: "dp__icon" 17543}; 17544const _hoisted_2$b = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z" }, null, -1); 17545const _hoisted_3$b = [ 17546 _hoisted_2$b 17547]; 17548function _sfc_render$3(_ctx, _cache) { 17549 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("svg", _hoisted_1$d, _hoisted_3$b); 17550} 17551const ChevronRightIcon = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$3]]); 17552const _sfc_main$d = {}; 17553const _hoisted_1$c = { 17554 version: "1.1", 17555 xmlns: "http://www.w3.org/2000/svg", 17556 width: "32", 17557 height: "32", 17558 viewBox: "0 0 32 32", 17559 class: "dp__icon" 17560}; 17561const _hoisted_2$a = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z" }, null, -1); 17562const _hoisted_3$a = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z" }, null, -1); 17563const _hoisted_4$6 = [ 17564 _hoisted_2$a, 17565 _hoisted_3$a 17566]; 17567function _sfc_render$2(_ctx, _cache) { 17568 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("svg", _hoisted_1$c, _hoisted_4$6); 17569} 17570const ClockIcon = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$2]]); 17571const _sfc_main$c = {}; 17572const _hoisted_1$b = { 17573 version: "1.1", 17574 xmlns: "http://www.w3.org/2000/svg", 17575 width: "32", 17576 height: "32", 17577 viewBox: "0 0 32 32", 17578 class: "dp__icon" 17579}; 17580const _hoisted_2$9 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z" }, null, -1); 17581const _hoisted_3$9 = [ 17582 _hoisted_2$9 17583]; 17584function _sfc_render$1(_ctx, _cache) { 17585 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("svg", _hoisted_1$b, _hoisted_3$9); 17586} 17587const ChevronUpIcon = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$1]]); 17588const _sfc_main$b = {}; 17589const _hoisted_1$a = { 17590 version: "1.1", 17591 xmlns: "http://www.w3.org/2000/svg", 17592 width: "32", 17593 height: "32", 17594 viewBox: "0 0 32 32", 17595 class: "dp__icon" 17596}; 17597const _hoisted_2$8 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z" }, null, -1); 17598const _hoisted_3$8 = [ 17599 _hoisted_2$8 17600]; 17601function _sfc_render(_ctx, _cache) { 17602 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("svg", _hoisted_1$a, _hoisted_3$8); 17603} 17604const ChevronDownIcon = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render]]); 17605const parseFreeInput = (value, pattern) => { 17606 const parsedDate = (0,date_fns__WEBPACK_IMPORTED_MODULE_1__["default"])(value, pattern.slice(0, value.length), new Date()); 17607 if ((0,date_fns__WEBPACK_IMPORTED_MODULE_2__["default"])(parsedDate) && (0,date_fns__WEBPACK_IMPORTED_MODULE_3__["default"])(parsedDate)) { 17608 return parsedDate; 17609 } 17610 return null; 17611}; 17612const resetDateTime = (value) => { 17613 let dateParse = new Date(JSON.parse(JSON.stringify(value))); 17614 dateParse = (0,date_fns__WEBPACK_IMPORTED_MODULE_4__["default"])(dateParse, 0); 17615 dateParse = (0,date_fns__WEBPACK_IMPORTED_MODULE_5__["default"])(dateParse, 0); 17616 dateParse = (0,date_fns__WEBPACK_IMPORTED_MODULE_6__["default"])(dateParse, 0); 17617 dateParse = (0,date_fns__WEBPACK_IMPORTED_MODULE_7__["default"])(dateParse, 0); 17618 return dateParse; 17619}; 17620const isValidDate = (value) => { 17621 if (Array.isArray(value)) { 17622 return (0,date_fns__WEBPACK_IMPORTED_MODULE_2__["default"])(value[0]) && (value[1] ? (0,date_fns__WEBPACK_IMPORTED_MODULE_2__["default"])(value[1]) : true); 17623 } 17624 return value ? (0,date_fns__WEBPACK_IMPORTED_MODULE_2__["default"])(value) : false; 17625}; 17626const setDateTime = (date, hours, minutes, seconds) => { 17627 let dateCopy = date ? new Date(date) : new Date(); 17628 if (hours || hours === 0) { 17629 dateCopy = (0,date_fns__WEBPACK_IMPORTED_MODULE_4__["default"])(dateCopy, +hours); 17630 } 17631 if (minutes || minutes === 0) { 17632 dateCopy = (0,date_fns__WEBPACK_IMPORTED_MODULE_5__["default"])(dateCopy, +minutes); 17633 } 17634 if (seconds || seconds === 0) { 17635 dateCopy = (0,date_fns__WEBPACK_IMPORTED_MODULE_6__["default"])(dateCopy, +seconds); 17636 } 17637 return (0,date_fns__WEBPACK_IMPORTED_MODULE_7__["default"])(dateCopy, 0); 17638}; 17639const getNextMonthYear = (date) => { 17640 const newDate = (0,date_fns__WEBPACK_IMPORTED_MODULE_8__["default"])(date, 1); 17641 return { month: (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(newDate), year: (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(newDate) }; 17642}; 17643const setDateMonthOrYear = (date, month, year) => { 17644 let dateCopy = date ? new Date(date) : new Date(); 17645 if (month || month === 0) { 17646 dateCopy = (0,date_fns__WEBPACK_IMPORTED_MODULE_11__["default"])(dateCopy, month); 17647 } 17648 if (year) { 17649 dateCopy = (0,date_fns__WEBPACK_IMPORTED_MODULE_12__["default"])(dateCopy, year); 17650 } 17651 return dateCopy; 17652}; 17653const getTimeFormat = (is24, seconds) => is24 ? `HH:mm${seconds ? ":ss" : ""}` : `hh:mm${seconds ? ":ss" : ""} aa`; 17654const getDefaultPattern = (pattern, is24, enableSeconds, monthPicker, timePicker, weekPicker, yearPicker, enableTimePicker) => { 17655 if (pattern) { 17656 return pattern; 17657 } 17658 if (monthPicker) { 17659 return "MM/yyyy"; 17660 } 17661 if (timePicker) { 17662 return getTimeFormat(is24, enableSeconds); 17663 } 17664 if (weekPicker) { 17665 return "MM/dd/yyyy"; 17666 } 17667 if (yearPicker) { 17668 return "yyyy"; 17669 } 17670 return enableTimePicker ? `MM/dd/yyyy, ${getTimeFormat(is24, enableSeconds)}` : "MM/dd/yyyy"; 17671}; 17672const getTimeVal = (date) => { 17673 const dateValue = date || new Date(); 17674 return { 17675 hours: (0,date_fns__WEBPACK_IMPORTED_MODULE_13__["default"])(dateValue), 17676 minutes: (0,date_fns__WEBPACK_IMPORTED_MODULE_14__["default"])(dateValue), 17677 seconds: (0,date_fns__WEBPACK_IMPORTED_MODULE_15__["default"])(dateValue) 17678 }; 17679}; 17680const getMonthVal = (date) => ({ month: (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(date), year: (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(date) }); 17681const getMonthValForExternal = (date) => { 17682 if (Array.isArray(date)) { 17683 return [getMonthVal(date[0]), date[1] ? getMonthVal(date[1]) : null]; 17684 } 17685 return getMonthVal(date); 17686}; 17687const getTImeForExternal = (date) => { 17688 if (Array.isArray(date)) { 17689 return [getTimeVal(date[0]), getTimeVal(date[1])]; 17690 } 17691 return getTimeVal(date); 17692}; 17693const formatFn = (value, pattern, locale) => { 17694 if (locale) { 17695 return (0,date_fns__WEBPACK_IMPORTED_MODULE_16__["default"])(value, pattern, { locale }); 17696 } 17697 return (0,date_fns__WEBPACK_IMPORTED_MODULE_16__["default"])(value, pattern); 17698}; 17699const formatDate = (value, pattern, locale, textInputSeparator, modelAuto) => { 17700 if (Array.isArray(value)) { 17701 return `${formatFn(value[0], pattern, locale)} ${modelAuto && !value[1] ? "" : textInputSeparator ? textInputSeparator : "-"} ${value[1] ? formatFn(value[1], pattern, locale) : ""}`; 17702 } 17703 return formatFn(value, pattern, locale); 17704}; 17705const isDateAfter = (date, dateToCompare) => { 17706 if (!date || !dateToCompare) { 17707 return false; 17708 } 17709 return (0,date_fns__WEBPACK_IMPORTED_MODULE_17__["default"])(resetDateTime(date), resetDateTime(dateToCompare)); 17710}; 17711const isDateBefore = (date, dateToCompare) => { 17712 if (!date || !dateToCompare) { 17713 return false; 17714 } 17715 return (0,date_fns__WEBPACK_IMPORTED_MODULE_18__["default"])(resetDateTime(date), resetDateTime(dateToCompare)); 17716}; 17717const isDateEqual = (date, dateToCompare) => { 17718 if (!date || !dateToCompare) { 17719 return false; 17720 } 17721 return (0,date_fns__WEBPACK_IMPORTED_MODULE_19__["default"])(resetDateTime(date), resetDateTime(dateToCompare)); 17722}; 17723const addTime = (initial, toAdd) => (0,date_fns__WEBPACK_IMPORTED_MODULE_20__["default"])((0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(), initial), toAdd); 17724const subTime = (initial, toSub) => (0,date_fns__WEBPACK_IMPORTED_MODULE_22__["default"])((0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(), initial), toSub); 17725const setTimeValue = (date) => (0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(), { hours: (0,date_fns__WEBPACK_IMPORTED_MODULE_13__["default"])(date), minutes: (0,date_fns__WEBPACK_IMPORTED_MODULE_14__["default"])(date), seconds: (0,date_fns__WEBPACK_IMPORTED_MODULE_15__["default"])(date) }); 17726const getMinMaxTime = (time) => { 17727 return (0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(), { 17728 hours: +time.hours || 0, 17729 minutes: +time.minutes || 0, 17730 seconds: +time.seconds || 0 17731 }); 17732}; 17733const validateTime = (date, dateToCompare, compare, full) => { 17734 if (!date) 17735 return true; 17736 if (full) { 17737 const valid = compare === "max" ? (0,date_fns__WEBPACK_IMPORTED_MODULE_18__["default"])(date, dateToCompare) : (0,date_fns__WEBPACK_IMPORTED_MODULE_17__["default"])(date, dateToCompare); 17738 const setOptions = { seconds: 0, milliseconds: 0 }; 17739 return valid || (0,date_fns__WEBPACK_IMPORTED_MODULE_19__["default"])((0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(date, setOptions), (0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(dateToCompare, setOptions)); 17740 } 17741 return compare === "max" ? date.getTime() <= dateToCompare.getTime() : date.getTime() >= dateToCompare.getTime(); 17742}; 17743const isValidTime = (date, maxTime, minTime, maxDate, minDate) => { 17744 let isValid2 = true; 17745 if (!date) { 17746 return true; 17747 } 17748 const selectedDateTime = !minDate && !maxDate ? Array.isArray(date) ? [date[0] ? setTimeValue(date[0]) : null, date[1] ? setTimeValue(date[1]) : null] : setTimeValue(date) : date; 17749 if (maxTime || maxDate) { 17750 const max = maxTime ? getMinMaxTime(maxTime) : new Date(maxDate); 17751 if (Array.isArray(selectedDateTime)) { 17752 isValid2 = validateTime(selectedDateTime[0], max, "max", !!maxDate) && validateTime(selectedDateTime[1], max, "max", !!maxDate); 17753 } else { 17754 isValid2 = validateTime(selectedDateTime, max, "max", !!maxDate); 17755 } 17756 } 17757 if (minTime || minDate) { 17758 const min = minTime ? getMinMaxTime(minTime) : new Date(minDate); 17759 if (Array.isArray(selectedDateTime)) { 17760 isValid2 = validateTime(selectedDateTime[0], min, "min", !!minDate) && validateTime(selectedDateTime[1], min, "min", !!minDate) && isValid2; 17761 } else { 17762 isValid2 = validateTime(selectedDateTime, min, "min", !!minDate) && isValid2; 17763 } 17764 } 17765 return isValid2; 17766}; 17767const isMonthWithinRange = (date, minDate, maxDate) => { 17768 let valid = true; 17769 if (minDate && maxDate) { 17770 valid = isDateAfter(new Date(date), new Date(minDate)) && isDateBefore(new Date(date), new Date(maxDate)); 17771 } 17772 if (minDate) { 17773 valid = isDateAfter(new Date(date), new Date(minDate)); 17774 } 17775 if (maxDate) { 17776 valid = isDateBefore(new Date(date), new Date(maxDate)); 17777 } 17778 return valid; 17779}; 17780const sanitizeDate = (date) => { 17781 if (date instanceof Date) { 17782 return date; 17783 } 17784 return (0,date_fns__WEBPACK_IMPORTED_MODULE_23__["default"])(date); 17785}; 17786const dateToUtc = (date, preserve) => { 17787 if (preserve) { 17788 const tzOffset = new Date().getTimezoneOffset() * 6e4; 17789 return new Date(date.getTime() - tzOffset).toISOString(); 17790 } 17791 const utcDate = Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds()); 17792 return new Date(utcDate).toISOString(); 17793}; 17794const isDateBetween = (range, hoverDate, dateToCheck) => { 17795 if (range && range[0] && range[1]) { 17796 return isDateAfter(dateToCheck, range[0]) && isDateBefore(dateToCheck, range[1]); 17797 } 17798 if (range && range[0] && hoverDate) { 17799 return isDateAfter(dateToCheck, range[0]) && isDateBefore(dateToCheck, hoverDate) || isDateBefore(dateToCheck, range[0]) && isDateAfter(dateToCheck, hoverDate); 17800 } 17801 return false; 17802}; 17803const getWeekFromDate = (date, weekStartsOn) => { 17804 const start = (0,date_fns__WEBPACK_IMPORTED_MODULE_24__["default"])(date, { weekStartsOn }); 17805 const end = (0,date_fns__WEBPACK_IMPORTED_MODULE_25__["default"])(date, { weekStartsOn }); 17806 return [start, end]; 17807}; 17808const matchDate = (date, pattern) => { 17809 if (Array.isArray(pattern)) { 17810 return pattern.some((includedDate) => isDateEqual(sanitizeDate(new Date(includedDate)), sanitizeDate(date))); 17811 } 17812 return pattern(date); 17813}; 17814const validateDate = (date, minDate, maxDate, disabledDates, allowedDates, filters, disabledWeekDays, yearRange) => { 17815 const aboveMax = maxDate ? isDateAfter(sanitizeDate(date), sanitizeDate(maxDate)) : false; 17816 const bellowMin = minDate ? isDateBefore(sanitizeDate(date), sanitizeDate(minDate)) : false; 17817 const inDisableArr = matchDate(date, disabledDates); 17818 const disabledMonths = filters.months.length ? filters.months.map((month) => +month) : []; 17819 const inDisabledMonths = disabledMonths.includes((0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(date)); 17820 const weekDayDisabled = disabledWeekDays.length ? disabledWeekDays.some((day) => +day === (0,date_fns__WEBPACK_IMPORTED_MODULE_26__["default"])(date)) : false; 17821 const notInSpecific = allowedDates.length ? !allowedDates.some((dateVal) => isDateEqual(sanitizeDate(dateVal), sanitizeDate(date))) : false; 17822 const dateYear = (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(date); 17823 const outOfYearRange = dateYear < +yearRange[0] || dateYear > +yearRange[1]; 17824 return !(aboveMax || bellowMin || inDisableArr || inDisabledMonths || outOfYearRange || weekDayDisabled || notInSpecific); 17825}; 17826const dateValidator = (minDate, maxDate, disabledDates, allowedDates, filters, disabledWeekDays, yearRange) => { 17827 const validate = (date) => validateDate(date, minDate, maxDate, disabledDates, allowedDates, filters, disabledWeekDays, yearRange); 17828 return { 17829 validate 17830 }; 17831}; 17832const ariaLabelsKey = Symbol(); 17833const transitionsKey = Symbol(); 17834const autoApplyKey = Symbol(); 17835const textInputKey = Symbol(); 17836const formatLocaleKey = Symbol(); 17837const arrowNavigationKey = Symbol(); 17838const ControlProps = { 17839 disabled: { type: Boolean, default: false }, 17840 readonly: { type: Boolean, default: false }, 17841 autoApply: { type: Boolean, default: false }, 17842 inline: { type: Boolean, default: false }, 17843 textInput: { type: Boolean, default: false } 17844}; 17845const SharedProps = { 17846 range: { type: Boolean, default: false }, 17847 uid: { type: String, default: null } 17848}; 17849const TimeInputProps = { 17850 enableSeconds: { type: Boolean, default: false }, 17851 is24: { type: Boolean, default: true }, 17852 noHoursOverlay: { type: Boolean, default: false }, 17853 noMinutesOverlay: { type: Boolean, default: false }, 17854 noSecondsOverlay: { type: Boolean, default: false }, 17855 hoursGridIncrement: { type: [String, Number], default: 1 }, 17856 minutesGridIncrement: { type: [String, Number], default: 5 }, 17857 secondsGridIncrement: { type: [String, Number], default: 5 }, 17858 hoursIncrement: { type: [Number, String], default: 1 }, 17859 minutesIncrement: { type: [Number, String], default: 1 }, 17860 secondsIncrement: { type: [Number, String], default: 1 } 17861}; 17862const TimePickerProps = { 17863 ...TimeInputProps, 17864 fixedStart: { type: Boolean, default: false }, 17865 fixedEnd: { type: Boolean, default: false }, 17866 timePicker: { type: Boolean, default: false } 17867}; 17868const InputProps = { 17869 name: { type: String, default: null }, 17870 placeholder: { type: String, default: "" }, 17871 hideInputIcon: { type: Boolean, default: false }, 17872 clearable: { type: Boolean, default: true }, 17873 state: { type: Boolean, default: null }, 17874 required: { type: Boolean, default: false }, 17875 autocomplete: { type: String, default: "off" }, 17876 inputClassName: { type: String, default: null }, 17877 inlineWithInput: { type: Boolean, default: false }, 17878 textInputOptions: { type: Object, default: () => null } 17879}; 17880const TimeValidationProps = { 17881 minTime: { type: Object, default: null }, 17882 maxTime: { type: Object, default: null } 17883}; 17884const DateValidationProps = { 17885 minDate: { type: [Date, String], default: null }, 17886 maxDate: { type: [Date, String], default: null } 17887}; 17888const ActionRowProps = { 17889 selectText: { type: String, default: "Select" }, 17890 cancelText: { type: String, default: "Cancel" }, 17891 previewFormat: { 17892 type: [String, Function], 17893 default: () => "" 17894 }, 17895 multiDates: { type: Boolean, default: false }, 17896 partialRange: { type: Boolean, default: true }, 17897 ...TimeValidationProps 17898}; 17899const MenuNestedDownProps = { 17900 monthPicker: { type: Boolean, default: false }, 17901 customProps: { type: Object, default: null }, 17902 yearPicker: { type: Boolean, default: false }, 17903 modelAuto: { type: Boolean, default: false } 17904}; 17905const CalendarProps = { 17906 locale: { type: String, default: "en-Us" }, 17907 weekNumName: { type: String, default: "W" }, 17908 weekStart: { type: [Number, String], default: 1 }, 17909 weekNumbers: { type: Boolean, default: false }, 17910 calendarClassName: { type: String, default: null }, 17911 noSwipe: { type: Boolean, default: false }, 17912 monthChangeOnScroll: { type: [Boolean, String], default: true }, 17913 dayNames: { 17914 type: [Function, Array], 17915 default: null 17916 } 17917}; 17918const MenuProps = { 17919 ...TimePickerProps, 17920 ...ActionRowProps, 17921 ...MenuNestedDownProps, 17922 ...DateValidationProps, 17923 ...CalendarProps, 17924 ...SharedProps, 17925 vertical: { type: Boolean, default: false }, 17926 disableMonthYearSelect: { type: Boolean, default: false }, 17927 menuClassName: { type: String, default: null }, 17928 yearRange: { type: Array, default: () => [1900, 2100] }, 17929 multiCalendarsSolo: { type: Boolean, default: false }, 17930 calendarCellClassName: { type: String, default: null }, 17931 enableTimePicker: { type: Boolean, default: true }, 17932 autoApply: { type: Boolean, default: false }, 17933 disabledDates: { type: [Array, Function], default: () => [] }, 17934 monthNameFormat: { type: String, default: "short" }, 17935 startDate: { type: [Date, String], default: null }, 17936 startTime: { type: [Object, Array], default: null }, 17937 monthYearComponent: { type: Object, default: null }, 17938 timePickerComponent: { type: Object, default: null }, 17939 actionRowComponent: { type: Object, default: null }, 17940 hideOffsetDates: { type: Boolean, default: false }, 17941 autoRange: { type: [Number, String], default: null }, 17942 noToday: { type: Boolean, default: false }, 17943 disabledWeekDays: { type: Array, default: () => [] }, 17944 allowedDates: { type: Array, default: () => [] }, 17945 showNowButton: { type: Boolean, default: false }, 17946 nowButtonLabel: { type: String, default: "Now" }, 17947 markers: { type: Array, default: () => [] }, 17948 modeHeight: { type: [Number, String], default: 255 }, 17949 escClose: { type: Boolean, default: true }, 17950 spaceConfirm: { type: Boolean, default: true }, 17951 monthChangeOnArrows: { type: Boolean, default: true }, 17952 presetRanges: { type: Array, default: () => [] }, 17953 flow: { type: Array, default: () => [] }, 17954 preventMinMaxNavigation: { type: Boolean, default: false }, 17955 minRange: { type: [Number, String], default: null }, 17956 maxRange: { type: [Number, String], default: null }, 17957 multiDatesLimit: { type: [Number, String], default: null }, 17958 reverseYears: { type: Boolean, default: false }, 17959 keepActionRow: { type: Boolean, default: false }, 17960 weekPicker: { type: Boolean, default: false }, 17961 filters: { type: Object, default: () => ({}) }, 17962 arrowNavigation: { type: Boolean, default: false }, 17963 multiStatic: { type: Boolean, default: true }, 17964 disableTimeRangeValidation: { type: Boolean, default: false }, 17965 highlight: { 17966 type: [Array, Function], 17967 default: null 17968 } 17969}; 17970const AllProps = { 17971 ...InputProps, 17972 ...ControlProps, 17973 ...MenuProps, 17974 multiCalendars: { type: [Boolean, Number, String], default: null }, 17975 modelValue: { type: [String, Date, Array, Object, Number], default: null }, 17976 modelType: { type: String, default: null }, 17977 position: { type: String, default: "center" }, 17978 dark: { type: Boolean, default: false }, 17979 format: { 17980 type: [String, Function], 17981 default: () => null 17982 }, 17983 closeOnScroll: { type: Boolean, default: false }, 17984 autoPosition: { type: Boolean, default: true }, 17985 closeOnAutoApply: { type: Boolean, default: true }, 17986 teleport: { type: [String, Object], default: "body" }, 17987 altPosition: { type: [Boolean, Function], default: false }, 17988 transitions: { type: [Boolean, Object], default: true }, 17989 formatLocale: { type: Object, default: null }, 17990 utc: { type: [Boolean, String], default: false }, 17991 ariaLabels: { type: Object, default: () => ({}) } 17992}; 17993const NestedInternalSharedProps = { 17994 range: { type: Boolean, default: false }, 17995 multiCalendars: { type: Number, default: 0 }, 17996 internalModelValue: { type: [Date, Array], default: null } 17997}; 17998const MonthCalendarSharedProps = { 17999 ...MenuNestedDownProps, 18000 ...NestedInternalSharedProps, 18001 vertical: { type: Boolean, default: false }, 18002 month: { type: Number, default: 0 }, 18003 year: { type: Number, default: 0 }, 18004 instance: { type: Number, default: 1 } 18005}; 18006const _hoisted_1$9 = ["aria-label", "aria-disabled", "aria-readonly"]; 18007const _hoisted_2$7 = { 18008 key: 1, 18009 class: "dp__input_wrap" 18010}; 18011const _hoisted_3$7 = ["id", "name", "placeholder", "disabled", "readonly", "required", "value", "autocomplete", "onKeydown"]; 18012const _hoisted_4$5 = { 18013 key: 2, 18014 class: "dp__input_icon" 18015}; 18016const _hoisted_5$3 = { 18017 key: 4, 18018 class: "dp__clear_icon" 18019}; 18020const _sfc_main$a = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 18021 __name: "DatepickerInput", 18022 props: { 18023 ...InputProps, 18024 ...ControlProps, 18025 ...SharedProps, 18026 inputValue: { type: String, default: "" }, 18027 inline: { type: Boolean, default: false }, 18028 isMenuOpen: { type: Boolean, default: false }, 18029 pattern: { type: String, default: "" } 18030 }, 18031 emits: [ 18032 "clear", 18033 "open", 18034 "update:inputValue", 18035 "setInputDate", 18036 "close", 18037 "selectDate", 18038 "setEmptyDate", 18039 "toggle", 18040 "focus-prev", 18041 "focus", 18042 "blur" 18043 ], 18044 setup(__props, { expose, emit }) { 18045 const props = __props; 18046 const parsedDate = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(); 18047 const inputRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 18048 const isFocused = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 18049 const ariaLabels = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(ariaLabelsKey); 18050 const inputClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 18051 dp__pointer: !props.disabled && !props.readonly && !props.textInput, 18052 dp__disabled: props.disabled, 18053 dp__input_readonly: !props.textInput, 18054 dp__input: true, 18055 dp__input_icon_pad: !props.hideInputIcon, 18056 dp__input_valid: props.state, 18057 dp__input_invalid: props.state === false, 18058 dp__input_focus: isFocused.value || props.isMenuOpen, 18059 dp__input_reg: !props.textInput, 18060 [props.inputClassName]: !!props.inputClassName 18061 })); 18062 const handleInput = (event) => { 18063 const { value } = event.target; 18064 const { format: format2, rangeSeparator } = props.textInputOptions; 18065 if (value !== "") { 18066 if (props.range) { 18067 const [dateOne, dateTwo] = value.split(`${rangeSeparator}`); 18068 if (dateOne && dateTwo) { 18069 const parsedDateOne = parseFreeInput(dateOne.trim(), format2 || props.pattern); 18070 const parsedDateTwo = parseFreeInput(dateTwo.trim(), format2 || props.pattern); 18071 parsedDate.value = parsedDateOne && parsedDateTwo ? [parsedDateOne, parsedDateTwo] : null; 18072 } 18073 } else { 18074 parsedDate.value = parseFreeInput(value, format2 || props.pattern); 18075 } 18076 emit("setInputDate", parsedDate.value); 18077 } else { 18078 emit("setInputDate", null); 18079 if (props.autoApply) { 18080 emit("setEmptyDate"); 18081 parsedDate.value = null; 18082 } 18083 } 18084 emit("update:inputValue", value); 18085 }; 18086 const handleEnter = () => { 18087 var _a, _b; 18088 if (((_a = props.textInputOptions) == null ? void 0 : _a.enterSubmit) && isValidDate(parsedDate.value) && props.inputValue !== "") { 18089 emit("setInputDate", parsedDate.value, true); 18090 parsedDate.value = null; 18091 } else if (((_b = props.textInputOptions) == null ? void 0 : _b.enterSubmit) && props.inputValue === "") { 18092 parsedDate.value = null; 18093 emit("clear"); 18094 } 18095 }; 18096 const handleTab = () => { 18097 var _a, _b; 18098 if (((_a = props.textInputOptions) == null ? void 0 : _a.tabSubmit) && isValidDate(parsedDate.value) && props.inputValue !== "") { 18099 emit("setInputDate", parsedDate.value, true); 18100 parsedDate.value = null; 18101 } else if (((_b = props.textInputOptions) == null ? void 0 : _b.tabSubmit) && props.inputValue === "") { 18102 parsedDate.value = null; 18103 emit("clear"); 18104 } 18105 }; 18106 const handleFocus = () => { 18107 isFocused.value = true; 18108 emit("focus"); 18109 }; 18110 const handleOpen = () => { 18111 var _a; 18112 if (props.textInput && ((_a = props.textInputOptions) == null ? void 0 : _a.openMenu)) { 18113 if (!props.isMenuOpen) { 18114 emit("open"); 18115 } else if (props.textInputOptions.enterSubmit) { 18116 emit("selectDate"); 18117 } 18118 } else if (!props.textInput) { 18119 emit("toggle"); 18120 } 18121 }; 18122 const handleBlur = () => { 18123 isFocused.value = false; 18124 if (!props.isMenuOpen) { 18125 emit("blur"); 18126 } 18127 if (props.autoApply && props.textInput && parsedDate.value) { 18128 emit("setInputDate", parsedDate.value); 18129 emit("selectDate"); 18130 parsedDate.value = null; 18131 } 18132 }; 18133 const onClear = () => { 18134 emit("clear"); 18135 }; 18136 const handleKeyPress = (ev) => { 18137 if (!props.textInput) { 18138 ev.preventDefault(); 18139 } 18140 }; 18141 const focusInput = () => { 18142 if (inputRef.value) { 18143 inputRef.value.focus({ preventScroll: true }); 18144 } 18145 }; 18146 expose({ 18147 focusInput 18148 }); 18149 return (_ctx, _cache) => { 18150 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 18151 onClick: handleOpen, 18152 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).input, 18153 role: "textbox", 18154 "aria-multiline": "false", 18155 "aria-disabled": _ctx.disabled, 18156 "aria-readonly": _ctx.readonly 18157 }, [ 18158 _ctx.$slots.trigger && !_ctx.$slots["dp-input"] && !__props.inline ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "trigger", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18159 !_ctx.$slots.trigger && (!__props.inline || _ctx.inlineWithInput) ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_2$7, [ 18160 _ctx.$slots["dp-input"] && !_ctx.$slots.trigger && !__props.inline ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "dp-input", { 18161 key: 0, 18162 value: __props.inputValue, 18163 onInput: handleInput, 18164 onEnter: handleEnter, 18165 onTab: handleTab, 18166 onClear 18167 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18168 !_ctx.$slots["dp-input"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("input", { 18169 key: 1, 18170 ref_key: "inputRef", 18171 ref: inputRef, 18172 id: _ctx.uid ? `dp-input-${_ctx.uid}` : void 0, 18173 name: _ctx.name, 18174 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(inputClass)), 18175 placeholder: _ctx.placeholder, 18176 disabled: _ctx.disabled, 18177 readonly: _ctx.readonly, 18178 required: _ctx.required, 18179 value: __props.inputValue, 18180 autocomplete: _ctx.autocomplete, 18181 onInput: handleInput, 18182 onKeydown: [ 18183 (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(handleOpen, ["enter"]), 18184 (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(handleTab, ["tab"]) 18185 ], 18186 onBlur: handleBlur, 18187 onFocus: handleFocus, 18188 onKeypress: handleKeyPress 18189 }, null, 42, _hoisted_3$7)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18190 _ctx.$slots["input-icon"] && !_ctx.hideInputIcon ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_4$5, [ 18191 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "input-icon") 18192 ])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18193 !_ctx.$slots["input-icon"] && !_ctx.hideInputIcon && !_ctx.$slots["dp-input"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(CalendarIcon), { 18194 key: 3, 18195 class: "dp__input_icon dp__input_icons" 18196 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18197 _ctx.$slots["clear-icon"] && __props.inputValue && _ctx.clearable && !_ctx.disabled && !_ctx.readonly ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_5$3, [ 18198 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "clear-icon", { clear: onClear }) 18199 ])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18200 _ctx.clearable && !_ctx.$slots["clear-icon"] && __props.inputValue && !_ctx.disabled && !_ctx.readonly ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(CancelIcon), { 18201 key: 5, 18202 class: "dp__clear_icon dp__input_icons", 18203 onClick: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(onClear, ["stop", "prevent"]) 18204 }, null, 8, ["onClick"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 18205 ])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 18206 ], 8, _hoisted_1$9); 18207 }; 18208 } 18209}); 18210const getWeekDays = (startDay, month, hideOffsetDates) => { 18211 const startDate = new Date(JSON.parse(JSON.stringify(startDay))); 18212 const dates = []; 18213 for (let i = 0; i < 7; i++) { 18214 const next = (0,date_fns__WEBPACK_IMPORTED_MODULE_27__["default"])(startDate, i); 18215 const isNext = (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(next) !== month; 18216 dates.push({ 18217 text: hideOffsetDates && isNext ? "" : next.getDate(), 18218 value: next, 18219 current: !isNext 18220 }); 18221 } 18222 return dates; 18223}; 18224const getCalendarDays = (month, year, start, hideOffsetDates) => { 18225 const weeks = []; 18226 const firstDate = new Date(year, month); 18227 const lastDate = new Date(year, month + 1, 0); 18228 const firstDateInCalendar = (0,date_fns__WEBPACK_IMPORTED_MODULE_24__["default"])(firstDate, { weekStartsOn: start }); 18229 const addDaysToWeek = (date) => { 18230 const days = getWeekDays(date, month, hideOffsetDates); 18231 weeks.push({ days }); 18232 if (!weeks[weeks.length - 1].days.some((day) => isDateEqual(resetDateTime(day.value), resetDateTime(lastDate)))) { 18233 const nextDate = (0,date_fns__WEBPACK_IMPORTED_MODULE_27__["default"])(date, 7); 18234 addDaysToWeek(nextDate); 18235 } 18236 }; 18237 addDaysToWeek(firstDateInCalendar); 18238 return weeks; 18239}; 18240const getArrayInArray = (list, increment = 3) => { 18241 const items = []; 18242 for (let i = 0; i < list.length; i += increment) { 18243 items.push([list[i], list[i + 1], list[i + 2]]); 18244 } 18245 return items; 18246}; 18247const getDayNames = (locale, weekStart) => { 18248 const days = [1, 2, 3, 4, 5, 6, 7].map((day) => { 18249 return new Intl.DateTimeFormat(locale, { weekday: "short", timeZone: "UTC" }).format(new Date(`2017-01-0${day}T00:00:00+00:00`)).slice(0, 2); 18250 }); 18251 const beforeWeekStart = days.slice(0, weekStart); 18252 const afterWeekStart = days.slice(weekStart + 1, days.length); 18253 return [days[weekStart]].concat(...afterWeekStart).concat(...beforeWeekStart); 18254}; 18255const getYears = (yearRange) => { 18256 const years = []; 18257 for (let year = +yearRange[0]; year <= +yearRange[1]; year++) { 18258 years.push({ value: +year, text: `${year}` }); 18259 } 18260 return years; 18261}; 18262const getMonths = (locale, format2) => { 18263 const formatter = new Intl.DateTimeFormat(locale, { month: format2, timeZone: "UTC" }); 18264 const months = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map((month) => { 18265 const mm = month < 10 ? `0${month}` : month; 18266 return new Date(`2017-${mm}-01T00:00:00+00:00`); 18267 }); 18268 return months.map((date, i) => ({ 18269 text: formatter.format(date), 18270 value: i 18271 })); 18272}; 18273const hoursToAmPmHours = (index) => { 18274 const hoursValues = [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; 18275 return hoursValues[index]; 18276}; 18277const getDefaultTextInputOptions = () => ({ 18278 enterSubmit: true, 18279 tabSubmit: true, 18280 openMenu: true, 18281 rangeSeparator: " - " 18282}); 18283const getDefaultFilters = (filters) => Object.assign({ months: [], years: [], times: { hours: [], minutes: [], seconds: [] } }, filters); 18284const getKey = (index) => { 18285 const len = 5; 18286 function makeKey(length) { 18287 let result = ""; 18288 const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; 18289 const charactersLength = characters.length; 18290 for (let i = 0; i < length; i++) { 18291 result += characters.charAt(Math.floor(Math.random() * charactersLength)); 18292 } 18293 return result + index; 18294 } 18295 return makeKey(len); 18296}; 18297const unrefElement = (elRef) => { 18298 var _a; 18299 const plain = (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(elRef); 18300 return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain; 18301}; 18302const getDefaultMarker = (marker) => Object.assign({ type: "dot" }, marker); 18303const mergeDefaultTransitions = (conf) => Object.assign({ 18304 menuAppear: "dp-menu-appear", 18305 open: "dp-slide-down", 18306 close: "dp-slide-up", 18307 next: "calendar-next", 18308 previous: "calendar-prev", 18309 vNext: "dp-slide-up", 18310 vPrevious: "dp-slide-down" 18311}, conf); 18312const defaultAriaLabels = (labels) => { 18313 return Object.assign({ 18314 toggleOverlay: "Toggle overlay", 18315 menu: "Datepicker menu", 18316 input: "Datepicker input", 18317 calendarWrap: "Calendar wrapper", 18318 calendarDays: "Calendar days", 18319 openTimePicker: "Open time picker", 18320 closeTimePicker: "Close time Picker", 18321 incrementValue: (type) => `Increment ${type}`, 18322 decrementValue: (type) => `Decrement ${type}`, 18323 openTpOverlay: (type) => `Open ${type} overlay`, 18324 amPmButton: "Switch AM/PM mode", 18325 openYearsOverlay: "Open years overlay", 18326 openMonthsOverlay: "Open months overlay", 18327 nextMonth: "Next month", 18328 prevMonth: "Previous month" 18329 }, labels); 18330}; 18331const isModelAuto = (modelValue) => { 18332 if (Array.isArray(modelValue)) { 18333 return !!modelValue[0] && !!modelValue[1]; 18334 } 18335 return false; 18336}; 18337const refSets = (0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)({ 18338 monthYear: [], 18339 calendar: [], 18340 time: [], 18341 actionRow: [], 18342 selectionGrid: [], 18343 timePicker: { 18344 "0": [], 18345 "1": [] 18346 }, 18347 monthPicker: [] 18348}); 18349const timePickerBackRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 18350const isSelectionGrid = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 18351const isTimePicker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 18352const isMonthPicker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 18353const isTimePickerMode = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 18354const selectedIndex = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(0); 18355const activeRow = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(0); 18356const useArrowNavigation = () => { 18357 const matrix = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 18358 return isSelectionGrid.value ? [...refSets.selectionGrid, refSets.actionRow].filter((set2) => set2.length) : isTimePicker.value ? [ 18359 ...refSets.timePicker[0], 18360 ...refSets.timePicker[1], 18361 isTimePickerMode.value ? [] : [timePickerBackRef.value], 18362 refSets.actionRow 18363 ].filter((set2) => set2.length) : isMonthPicker.value ? [...refSets.monthPicker, refSets.actionRow] : [refSets.monthYear, ...refSets.calendar, refSets.time, refSets.actionRow].filter((set2) => set2.length); 18364 }); 18365 const handleSelectionIndexX = (increment) => { 18366 selectedIndex.value = increment ? selectedIndex.value + 1 : selectedIndex.value - 1; 18367 let el = null; 18368 if (matrix.value[activeRow.value]) { 18369 el = matrix.value[activeRow.value][selectedIndex.value]; 18370 } 18371 if (!el) { 18372 selectedIndex.value = increment ? selectedIndex.value - 1 : selectedIndex.value + 1; 18373 } 18374 }; 18375 const handleSelectionIndexY = (increment) => { 18376 if (activeRow.value === 0 && !increment || activeRow.value === matrix.value.length && increment) 18377 return; 18378 activeRow.value = increment ? activeRow.value + 1 : activeRow.value - 1; 18379 const el = matrix.value[activeRow.value]; 18380 if (!el) { 18381 activeRow.value = increment ? activeRow.value - 1 : activeRow.value + 1; 18382 } else { 18383 if (matrix.value[activeRow.value] && !matrix.value[activeRow.value][selectedIndex.value] && selectedIndex.value !== 0) { 18384 selectedIndex.value = matrix.value[activeRow.value].length - 1; 18385 } 18386 } 18387 }; 18388 const handleElFocus = (increment) => { 18389 let el = null; 18390 if (matrix.value[activeRow.value]) { 18391 el = matrix.value[activeRow.value][selectedIndex.value]; 18392 } 18393 if (el) { 18394 el.focus({ preventScroll: !isSelectionGrid.value }); 18395 } else { 18396 selectedIndex.value = increment ? selectedIndex.value - 1 : selectedIndex.value + 1; 18397 } 18398 }; 18399 const arrowRight = () => { 18400 handleSelectionIndexX(true); 18401 handleElFocus(true); 18402 }; 18403 const arrowLeft = () => { 18404 handleSelectionIndexX(false); 18405 handleElFocus(false); 18406 }; 18407 const arrowUp = () => { 18408 handleSelectionIndexY(false); 18409 handleElFocus(true); 18410 }; 18411 const arrowDown = () => { 18412 handleSelectionIndexY(true); 18413 handleElFocus(true); 18414 }; 18415 const buildMatrix = (elements, set2) => { 18416 refSets[set2] = elements; 18417 }; 18418 const buildMultiLevelMatrix = (elements, set2) => { 18419 refSets[set2] = elements; 18420 }; 18421 const resetNavigation = () => { 18422 selectedIndex.value = 0; 18423 activeRow.value = 0; 18424 }; 18425 const setMonthPicker = (value) => { 18426 isMonthPicker.value = value; 18427 resetNavigation(); 18428 }; 18429 const setSelectionGrid = (value) => { 18430 isSelectionGrid.value = value; 18431 resetNavigation(); 18432 if (!value) { 18433 refSets.selectionGrid = []; 18434 } 18435 }; 18436 const setTimePicker = (value, mode = false) => { 18437 isTimePicker.value = value; 18438 isTimePickerMode.value = mode; 18439 resetNavigation(); 18440 if (!value) { 18441 refSets.timePicker[0] = []; 18442 refSets.timePicker[1] = []; 18443 } 18444 }; 18445 const setTimePickerElements = (elements, order = 0) => { 18446 refSets.timePicker[order] = elements; 18447 }; 18448 const setTimePickerBackRef = (el) => { 18449 timePickerBackRef.value = el; 18450 }; 18451 const clearArrowNav = () => { 18452 refSets.monthYear = []; 18453 refSets.calendar = []; 18454 refSets.time = []; 18455 refSets.actionRow = []; 18456 refSets.selectionGrid = []; 18457 refSets.timePicker[0] = []; 18458 refSets.timePicker[1] = []; 18459 isSelectionGrid.value = false; 18460 isTimePicker.value = false; 18461 isTimePickerMode.value = false; 18462 isMonthPicker.value = false; 18463 resetNavigation(); 18464 timePickerBackRef.value = null; 18465 }; 18466 return { 18467 buildMatrix, 18468 buildMultiLevelMatrix, 18469 setTimePickerBackRef, 18470 setSelectionGrid, 18471 setTimePicker, 18472 setTimePickerElements, 18473 arrowRight, 18474 arrowLeft, 18475 arrowUp, 18476 arrowDown, 18477 clearArrowNav, 18478 setMonthPicker 18479 }; 18480}; 18481const _hoisted_1$8 = ["aria-label"]; 18482const _hoisted_2$6 = { 18483 class: "dp__calendar_header", 18484 role: "row" 18485}; 18486const _hoisted_3$6 = { 18487 key: 0, 18488 class: "dp__calendar_header_item", 18489 role: "gridcell" 18490}; 18491const _hoisted_4$4 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { class: "dp__calendar_header_separator" }, null, -1); 18492const _hoisted_5$2 = ["aria-label"]; 18493const _hoisted_6$1 = { 18494 key: 0, 18495 role: "gridcell", 18496 class: "dp__calendar_item dp__week_num" 18497}; 18498const _hoisted_7$1 = { class: "dp__cell_inner" }; 18499const _hoisted_8 = ["aria-selected", "aria-disabled", "onClick", "onKeydown", "onMouseover"]; 18500const _hoisted_9 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { class: "dp__arrow_bottom_tp" }, null, -1); 18501const _sfc_main$9 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 18502 __name: "Calendar", 18503 props: { 18504 ...MonthCalendarSharedProps, 18505 ...CalendarProps, 18506 mappedDates: { type: Array, default: () => [] }, 18507 getWeekNum: { 18508 type: Function, 18509 default: () => "" 18510 }, 18511 modeHeight: { type: [Number, String], default: 255 }, 18512 specificMode: { type: Boolean, default: false } 18513 }, 18514 emits: ["selectDate", "setHoverDate", "handleScroll", "mount", "handleSwipe"], 18515 setup(__props, { expose, emit }) { 18516 const props = __props; 18517 const showMakerTooltip = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 18518 const markerTooltipStyle = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)({ bottom: "", left: "", transform: "" }); 18519 const dayRefs = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([]); 18520 const calendarWrapRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 18521 const showCalendar = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(true); 18522 const transitions = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(transitionsKey); 18523 const ariaLabels = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(ariaLabelsKey); 18524 const arrowNavigation = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(arrowNavigationKey); 18525 const transitionName = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(""); 18526 const touch = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)({ startX: 0, endX: 0, startY: 0, endY: 0 }); 18527 const weekDays = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 18528 return props.dayNames ? Array.isArray(props.dayNames) ? props.dayNames : props.dayNames(props.locale, +props.weekStart) : getDayNames(props.locale, +props.weekStart); 18529 }); 18530 const { buildMultiLevelMatrix } = useArrowNavigation(); 18531 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => { 18532 emit("mount", { cmp: "calendar", refs: dayRefs }); 18533 if (!props.noSwipe) { 18534 if (calendarWrapRef.value) { 18535 calendarWrapRef.value.addEventListener("touchstart", onTouchStart, { passive: false }); 18536 calendarWrapRef.value.addEventListener("touchend", onTouchEnd, { passive: false }); 18537 calendarWrapRef.value.addEventListener("touchmove", onTouchMove, { passive: false }); 18538 } 18539 } 18540 if (props.monthChangeOnScroll && calendarWrapRef.value) { 18541 calendarWrapRef.value.addEventListener("wheel", onScroll, { passive: false }); 18542 } 18543 }); 18544 const triggerTransition = (month, year) => { 18545 if (transitions == null ? void 0 : transitions.value) { 18546 const newDate = resetDateTime(setDateMonthOrYear(new Date(), props.month, props.year)); 18547 transitionName.value = isDateAfter(resetDateTime(setDateMonthOrYear(new Date(), month, year)), newDate) ? transitions.value[props.vertical ? "vNext" : "next"] : transitions.value[props.vertical ? "vPrevious" : "previous"]; 18548 showCalendar.value = false; 18549 (0,vue__WEBPACK_IMPORTED_MODULE_0__.nextTick)(() => { 18550 showCalendar.value = true; 18551 }); 18552 } 18553 }; 18554 const calendarWrapClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 18555 dp__calendar_wrap: true, 18556 [props.calendarClassName]: !!props.calendarClassName 18557 })); 18558 const markerClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (marker) => { 18559 const defaultMarker = getDefaultMarker(marker); 18560 return { 18561 dp__marker_dot: defaultMarker.type === "dot", 18562 dp__marker_line: defaultMarker.type === "line" 18563 }; 18564 }); 18565 const dateMatch = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (day) => isDateEqual(day, showMakerTooltip.value)); 18566 const calendarParentClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 18567 dp__calendar: true, 18568 dp__calendar_next: props.multiCalendars > 0 && props.instance !== 0 18569 })); 18570 const contentWrapStyle = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.specificMode ? { height: `${props.modeHeight}px` } : null); 18571 const onMouseOver = (day, weekInd, dayInd) => { 18572 var _a, _b; 18573 emit("setHoverDate", day); 18574 if ((_b = (_a = day.marker) == null ? void 0 : _a.tooltip) == null ? void 0 : _b.length) { 18575 const el = unrefElement(dayRefs.value[weekInd][dayInd]); 18576 if (el) { 18577 const { width, height } = el.getBoundingClientRect(); 18578 markerTooltipStyle.value = { 18579 bottom: `${height}px`, 18580 left: `${width / 2}px`, 18581 transform: `translateX(-50%)` 18582 }; 18583 showMakerTooltip.value = day.value; 18584 } 18585 } 18586 }; 18587 const onMouseLeave = () => { 18588 showMakerTooltip.value = null; 18589 }; 18590 const onTouchStart = (ev) => { 18591 touch.value.startX = ev.changedTouches[0].screenX; 18592 touch.value.startY = ev.changedTouches[0].screenY; 18593 }; 18594 const onTouchEnd = (ev) => { 18595 touch.value.endX = ev.changedTouches[0].screenX; 18596 touch.value.endY = ev.changedTouches[0].screenY; 18597 handleTouch(); 18598 }; 18599 const onTouchMove = (ev) => { 18600 ev.preventDefault(); 18601 }; 18602 const handleTouch = () => { 18603 const property = props.vertical ? "Y" : "X"; 18604 if (Math.abs(touch.value[`start${property}`] - touch.value[`end${property}`]) > 10) { 18605 emit("handleSwipe", touch.value[`start${property}`] > touch.value[`end${property}`] ? "right" : "left"); 18606 } 18607 }; 18608 const assignDayRef = (el, weekInd, dayInd) => { 18609 if (el) { 18610 if (Array.isArray(dayRefs.value[weekInd])) { 18611 dayRefs.value[weekInd][dayInd] = el; 18612 } else { 18613 dayRefs.value[weekInd] = [el]; 18614 } 18615 } 18616 if (arrowNavigation == null ? void 0 : arrowNavigation.value) { 18617 buildMultiLevelMatrix(dayRefs.value, "calendar"); 18618 } 18619 }; 18620 const onScroll = (ev) => { 18621 if (props.monthChangeOnScroll) { 18622 ev.preventDefault(); 18623 emit("handleScroll", ev); 18624 } 18625 }; 18626 expose({ triggerTransition }); 18627 return (_ctx, _cache) => { 18628 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 18629 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(calendarParentClass)) 18630 }, [ 18631 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 18632 style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(contentWrapStyle)) 18633 }, [ 18634 !__props.specificMode ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 18635 key: 0, 18636 ref_key: "calendarWrapRef", 18637 ref: calendarWrapRef, 18638 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(calendarWrapClass)), 18639 role: "grid", 18640 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).calendarWrap 18641 }, [ 18642 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_2$6, [ 18643 _ctx.weekNumbers ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_3$6, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.weekNumName), 1)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18644 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(weekDays), (dayVal, i) => { 18645 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 18646 class: "dp__calendar_header_item", 18647 role: "gridcell", 18648 key: i 18649 }, [ 18650 _ctx.$slots["calendar-header"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "calendar-header", { 18651 key: 0, 18652 day: dayVal, 18653 index: i 18654 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18655 !_ctx.$slots["calendar-header"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [ 18656 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(dayVal), 1) 18657 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 18658 ]); 18659 }), 128)) 18660 ]), 18661 _hoisted_4$4, 18662 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_0__.Transition, { 18663 name: transitionName.value, 18664 css: !!(0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(transitions) 18665 }, { 18666 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 18667 showCalendar.value ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 18668 key: 0, 18669 class: "dp__calendar", 18670 role: "grid", 18671 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).calendarDays 18672 }, [ 18673 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(__props.mappedDates, (week, weekInd) => { 18674 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 18675 class: "dp__calendar_row", 18676 role: "row", 18677 key: weekInd 18678 }, [ 18679 _ctx.weekNumbers ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_6$1, [ 18680 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_7$1, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(__props.getWeekNum(week.days)), 1) 18681 ])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18682 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(week.days, (dayVal, dayInd) => { 18683 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 18684 role: "gridcell", 18685 class: "dp__calendar_item", 18686 ref_for: true, 18687 ref: (el) => assignDayRef(el, weekInd, dayInd), 18688 key: dayInd + weekInd, 18689 "aria-selected": dayVal.classData.dp__active_date || dayVal.classData.dp__range_start || dayVal.classData.dp__range_start, 18690 "aria-disabled": dayVal.classData.dp__cell_disabled, 18691 tabindex: "0", 18692 onClick: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(($event) => _ctx.$emit("selectDate", dayVal), ["stop", "prevent"]), 18693 onKeydown: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => _ctx.$emit("selectDate", dayVal), ["enter"]), 18694 onMouseover: ($event) => onMouseOver(dayVal, weekInd, dayInd), 18695 onMouseleave: onMouseLeave 18696 }, [ 18697 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 18698 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["dp__cell_inner", dayVal.classData]) 18699 }, [ 18700 _ctx.$slots.day ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "day", { 18701 key: 0, 18702 day: +dayVal.text, 18703 date: dayVal.value 18704 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18705 !_ctx.$slots.day ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [ 18706 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(dayVal.text), 1) 18707 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18708 dayVal.marker ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 18709 key: 2, 18710 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(markerClass)(dayVal.marker)), 18711 style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)(dayVal.marker.color ? { backgroundColor: dayVal.marker.color } : {}) 18712 }, null, 6)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18713 (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(dateMatch)(dayVal.value) ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 18714 key: 3, 18715 class: "dp__marker_tooltip", 18716 style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)(markerTooltipStyle.value) 18717 }, [ 18718 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 18719 class: "dp__tooltip_content", 18720 onClick: _cache[0] || (_cache[0] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(() => { 18721 }, ["stop"])) 18722 }, [ 18723 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(dayVal.marker.tooltip, (tooltip, i) => { 18724 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 18725 key: i, 18726 class: "dp__tooltip_text" 18727 }, [ 18728 _ctx.$slots["marker-tooltip"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "marker-tooltip", { 18729 key: 0, 18730 tooltop: tooltip, 18731 day: dayVal.value 18732 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18733 !_ctx.$slots["marker-tooltip"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [ 18734 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 18735 class: "dp__tooltip_mark", 18736 style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)(tooltip.color ? { backgroundColor: tooltip.color } : {}) 18737 }, null, 4), 18738 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(tooltip.text), 1) 18739 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 18740 ]); 18741 }), 128)), 18742 _hoisted_9 18743 ]) 18744 ], 4)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 18745 ], 2) 18746 ], 40, _hoisted_8); 18747 }), 128)) 18748 ]); 18749 }), 128)) 18750 ], 8, _hoisted_5$2)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 18751 ]), 18752 _: 3 18753 }, 8, ["name", "css"]) 18754 ], 10, _hoisted_1$8)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 18755 ], 4) 18756 ], 2); 18757 }; 18758 } 18759}); 18760const isTime = (value) => { 18761 return typeof value === "object"; 18762}; 18763const modelValueIsRange = (modelValue, range) => { 18764 return range; 18765}; 18766const isTimeArray = (value) => { 18767 return Array.isArray(value) && value.length === 2; 18768}; 18769const isMonthArray = (value) => { 18770 return Array.isArray(value); 18771}; 18772const isMonth = (value) => { 18773 return typeof value === "object"; 18774}; 18775const isModelValueRange = (value) => { 18776 return Array.isArray(value); 18777}; 18778const isNumberArray = (value) => { 18779 return Array.isArray(value); 18780}; 18781const isRange = (value) => { 18782 return Array.isArray(value) && value.length === 2; 18783}; 18784const isRangeArray = (value, partialRange) => { 18785 if (partialRange) 18786 return Array.isArray(value); 18787 return isRange(value); 18788}; 18789const isTimeArr = (value) => { 18790 return Array.isArray(value); 18791}; 18792const isSingle = (value) => { 18793 return typeof value === "string" || typeof value === "object" || typeof value === "number"; 18794}; 18795const isString = (value) => { 18796 return typeof value === "string"; 18797}; 18798const _hoisted_1$7 = { class: "dp__selection_preview" }; 18799const _hoisted_2$5 = { class: "dp__action_buttons" }; 18800const _hoisted_3$5 = ["onKeydown"]; 18801const _sfc_main$8 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 18802 __name: "ActionRow", 18803 props: { 18804 ...ActionRowProps, 18805 ...DateValidationProps, 18806 ...TimeValidationProps, 18807 ...MenuNestedDownProps, 18808 ...NestedInternalSharedProps, 18809 inline: { type: Boolean, default: false }, 18810 timePicker: { type: Boolean, default: false }, 18811 calendarWidth: { type: Number, default: 0 }, 18812 menuMount: { type: Boolean, default: false }, 18813 enableTimePicker: { type: Boolean, default: true } 18814 }, 18815 emits: ["closePicker", "selectDate"], 18816 setup(__props, { emit }) { 18817 const props = __props; 18818 const { buildMatrix } = useArrowNavigation(); 18819 const formatLocale = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(formatLocaleKey); 18820 const arrowNavigation = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(arrowNavigationKey); 18821 const cancelButtonRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 18822 const selectButtonRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 18823 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => { 18824 if (arrowNavigation == null ? void 0 : arrowNavigation.value) { 18825 buildMatrix([unrefElement(cancelButtonRef), unrefElement(selectButtonRef)], "actionRow"); 18826 } 18827 }); 18828 const validDateRange = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 18829 return props.range && !props.partialRange && props.internalModelValue ? props.internalModelValue.length === 2 : true; 18830 }); 18831 const selectClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 18832 dp__action: true, 18833 dp__select: true, 18834 dp__action_disabled: !isTimeValid.value || !isMonthValid.value || !validDateRange.value 18835 })); 18836 const isTimeValid = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 18837 if (!props.enableTimePicker) 18838 return true; 18839 return isValidTime(props.internalModelValue, props.maxTime, props.minTime, props.maxDate, props.minDate); 18840 }); 18841 const isMonthValid = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 18842 if (!props.monthPicker) 18843 return true; 18844 return isMonthWithinRange(props.internalModelValue, props.minDate, props.maxDate); 18845 }); 18846 const formatWrap = (date) => { 18847 return formatDate(date, props.previewFormat, formatLocale == null ? void 0 : formatLocale.value); 18848 }; 18849 const previewValue = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 18850 if (!props.internalModelValue || !props.menuMount) 18851 return ""; 18852 if (typeof props.previewFormat === "string") { 18853 if (isModelValueRange(props.internalModelValue)) { 18854 if (props.internalModelValue.length === 2 && props.internalModelValue[1]) { 18855 if (props.multiCalendars > 0) { 18856 return `${formatWrap(props.internalModelValue[0])} - ${formatWrap(props.internalModelValue[1])}`; 18857 } 18858 return [formatWrap(props.internalModelValue[0]), formatWrap(props.internalModelValue[1])]; 18859 } 18860 if (props.multiDates) { 18861 return props.internalModelValue.map((date) => `${formatWrap(date)}`); 18862 } 18863 if (props.modelAuto) { 18864 return `${formatWrap(props.internalModelValue[0])}`; 18865 } 18866 return `${formatWrap(props.internalModelValue[0])} -`; 18867 } 18868 return formatDate(props.internalModelValue, props.previewFormat, formatLocale == null ? void 0 : formatLocale.value); 18869 } 18870 if (props.timePicker) { 18871 return props.previewFormat(getTImeForExternal(props.internalModelValue)); 18872 } 18873 if (props.monthPicker) { 18874 return props.previewFormat(getMonthVal(props.internalModelValue)); 18875 } 18876 return props.previewFormat(props.internalModelValue); 18877 }); 18878 const selectDate = () => { 18879 if (isTimeValid.value && isMonthValid.value) { 18880 emit("selectDate"); 18881 } 18882 }; 18883 return (_ctx, _cache) => { 18884 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 18885 class: "dp__action_row", 18886 style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)(__props.calendarWidth ? { width: `${__props.calendarWidth}px` } : {}) 18887 }, [ 18888 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_1$7, [ 18889 _ctx.$slots["action-preview"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "action-preview", { 18890 key: 0, 18891 value: _ctx.internalModelValue 18892 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18893 !_ctx.$slots["action-preview"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [ 18894 !Array.isArray((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(previewValue)) ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 0 }, [ 18895 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(previewValue)), 1) 18896 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18897 Array.isArray((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(previewValue)) ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(previewValue), (preview, i) => { 18898 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { key: i }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(preview), 1); 18899 }), 128)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 18900 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 18901 ]), 18902 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_2$5, [ 18903 _ctx.$slots["action-select"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "action-select", { 18904 key: 0, 18905 value: _ctx.internalModelValue 18906 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18907 !_ctx.$slots["action-select"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [ 18908 !__props.inline ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", { 18909 key: 0, 18910 class: "dp__action dp__cancel", 18911 ref_key: "cancelButtonRef", 18912 ref: cancelButtonRef, 18913 tabindex: "0", 18914 onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("closePicker")), 18915 onKeydown: _cache[1] || (_cache[1] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => _ctx.$emit("closePicker"), ["enter"])) 18916 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.cancelText), 545)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 18917 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { 18918 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(selectClass)), 18919 tabindex: "0", 18920 onKeydown: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(selectDate, ["enter"]), 18921 onClick: selectDate, 18922 ref_key: "selectButtonRef", 18923 ref: selectButtonRef 18924 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.selectText), 43, _hoisted_3$5) 18925 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 18926 ]) 18927 ], 4); 18928 }; 18929 } 18930}); 18931const _hoisted_1$6 = { class: "dp__selection_grid_header" }; 18932const _hoisted_2$4 = ["aria-selected", "aria-disabled", "onClick", "onKeydown", "onMouseover"]; 18933const _hoisted_3$4 = ["aria-label", "onKeydown"]; 18934const _sfc_main$7 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 18935 __name: "SelectionGrid", 18936 props: { 18937 items: { type: Array, default: () => [] }, 18938 modelValue: { type: [String, Number], default: null }, 18939 multiModelValue: { type: Array, default: () => [] }, 18940 disabledValues: { type: Array, default: () => [] }, 18941 minValue: { type: [Number, String], default: null }, 18942 maxValue: { type: [Number, String], default: null }, 18943 year: { type: Number, default: 0 }, 18944 skipActive: { type: Boolean, default: false }, 18945 headerRefs: { type: Array, default: () => [] }, 18946 skipButtonRef: { type: Boolean, default: false }, 18947 monthPicker: { type: Boolean, default: false }, 18948 yearPicker: { type: Boolean, default: false } 18949 }, 18950 emits: ["update:modelValue", "selected", "toggle", "reset-flow"], 18951 setup(__props, { expose, emit }) { 18952 const props = __props; 18953 const scrollable = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 18954 const selectionActiveRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 18955 const gridWrapRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 18956 const elementRefs = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([]); 18957 const autoApply = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(autoApplyKey, false); 18958 const textInput = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(textInputKey, (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false)); 18959 const ariaLabels = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(ariaLabelsKey); 18960 const arrowNavigation = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(arrowNavigationKey); 18961 const hoverValue = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(); 18962 const toggleButton = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(); 18963 const { setSelectionGrid, buildMultiLevelMatrix, setMonthPicker } = useArrowNavigation(); 18964 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onBeforeUpdate)(() => { 18965 selectionActiveRef.value = null; 18966 }); 18967 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => { 18968 (0,vue__WEBPACK_IMPORTED_MODULE_0__.nextTick)().then(() => setScrollPosition()); 18969 focusGrid(); 18970 handleArrowNav(true); 18971 }); 18972 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onUnmounted)(() => handleArrowNav(false)); 18973 const handleArrowNav = (value) => { 18974 var _a; 18975 if (arrowNavigation == null ? void 0 : arrowNavigation.value) { 18976 if ((_a = props.headerRefs) == null ? void 0 : _a.length) { 18977 setMonthPicker(value); 18978 } else { 18979 setSelectionGrid(value); 18980 } 18981 } 18982 }; 18983 const focusGrid = () => { 18984 const elm = unrefElement(gridWrapRef); 18985 if (elm) { 18986 if (!textInput.value) { 18987 elm.focus({ preventScroll: true }); 18988 } 18989 scrollable.value = elm.clientHeight < elm.scrollHeight; 18990 } 18991 }; 18992 const dpOverlayClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 18993 dp__overlay: true 18994 })); 18995 const cellClassName = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 18996 dp__overlay_col: true 18997 })); 18998 const mappedItems = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 18999 return props.items.map((item) => { 19000 return item.filter((exists) => exists).map((itemVal) => { 19001 var _a, _b, _c; 19002 const disabled = props.disabledValues.some((val) => val === itemVal.value) || checkMinMaxValue(itemVal.value); 19003 const active = ((_a = props.multiModelValue) == null ? void 0 : _a.length) ? (_b = props.multiModelValue) == null ? void 0 : _b.some((value) => isDateEqual(value, (0,date_fns__WEBPACK_IMPORTED_MODULE_12__["default"])(props.monthPicker ? (0,date_fns__WEBPACK_IMPORTED_MODULE_11__["default"])(new Date(), itemVal.value) : new Date(), props.monthPicker ? props.year : itemVal.value))) : props.skipActive ? false : itemVal.value === props.modelValue; 19004 return { 19005 ...itemVal, 19006 className: { 19007 dp__overlay_cell_active: active, 19008 dp__overlay_cell: !active, 19009 dp__overlay_cell_disabled: disabled, 19010 dp__overlay_cell_active_disabled: disabled && active, 19011 dp__overlay_cell_pad: true, 19012 dp__cell_in_between: ((_c = props.multiModelValue) == null ? void 0 : _c.length) ? rangeActive(itemVal.value) : false 19013 } 19014 }; 19015 }); 19016 }); 19017 }); 19018 const actionButtonClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 19019 dp__button: true, 19020 dp__overlay_action: true, 19021 dp__over_action_scroll: scrollable.value, 19022 dp__button_bottom: autoApply 19023 })); 19024 const containerClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19025 var _a, _b; 19026 return { 19027 dp__overlay_container: true, 19028 dp__container_flex: ((_a = props.items) == null ? void 0 : _a.length) <= 6, 19029 dp__container_block: ((_b = props.items) == null ? void 0 : _b.length) > 6 19030 }; 19031 }); 19032 const checkMinMaxValue = (value) => { 19033 const hasMax = props.maxValue || props.maxValue === 0; 19034 const hasMin = props.minValue || props.minValue === 0; 19035 if (!hasMax && !hasMin) 19036 return false; 19037 if (hasMax && hasMin) { 19038 return +value > +props.maxValue || +value < +props.minValue; 19039 } 19040 if (hasMax) { 19041 return +value > +props.maxValue; 19042 } 19043 if (hasMin) { 19044 return +value < +props.minValue; 19045 } 19046 return false; 19047 }; 19048 const setScrollPosition = () => { 19049 const el = unrefElement(selectionActiveRef); 19050 if (el) { 19051 const parent = unrefElement(gridWrapRef); 19052 if (parent) { 19053 parent.scrollTop = el.offsetTop - parent.offsetTop - (parent.getBoundingClientRect().height / 2 - el.getBoundingClientRect().height); 19054 } 19055 } 19056 }; 19057 const onClick = (val) => { 19058 if (!props.disabledValues.some((value) => value === val) && !checkMinMaxValue(val)) { 19059 emit("update:modelValue", val); 19060 emit("selected"); 19061 } 19062 }; 19063 const rangeActive = (value) => { 19064 const yearValue = props.monthPicker ? props.year : value; 19065 return isDateBetween(props.multiModelValue, (0,date_fns__WEBPACK_IMPORTED_MODULE_12__["default"])(props.monthPicker ? (0,date_fns__WEBPACK_IMPORTED_MODULE_11__["default"])(new Date(), hoverValue.value || 0) : new Date(), props.monthPicker ? yearValue : hoverValue.value || yearValue), (0,date_fns__WEBPACK_IMPORTED_MODULE_12__["default"])(props.monthPicker ? (0,date_fns__WEBPACK_IMPORTED_MODULE_11__["default"])(new Date(), value) : new Date(), yearValue)); 19066 }; 19067 const toggle = () => { 19068 emit("toggle"); 19069 emit("reset-flow"); 19070 }; 19071 const assignRef = (el, col, rowInd, colInd) => { 19072 var _a, _b; 19073 if (el) { 19074 if (col.value === +props.modelValue && !props.disabledValues.includes(col.value)) { 19075 selectionActiveRef.value = el; 19076 } 19077 if (arrowNavigation == null ? void 0 : arrowNavigation.value) { 19078 if (Array.isArray(elementRefs.value[rowInd])) { 19079 elementRefs.value[rowInd][colInd] = el; 19080 } else { 19081 elementRefs.value[rowInd] = [el]; 19082 } 19083 const refs = ((_a = props.headerRefs) == null ? void 0 : _a.length) ? [props.headerRefs].concat(elementRefs.value) : elementRefs.value.concat([props.skipButtonRef ? [] : [toggleButton.value]]); 19084 buildMultiLevelMatrix(refs, ((_b = props.headerRefs) == null ? void 0 : _b.length) ? "monthPicker" : "selectionGrid"); 19085 } 19086 } 19087 }; 19088 expose({ focusGrid }); 19089 return (_ctx, _cache) => { 19090 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 19091 ref_key: "gridWrapRef", 19092 ref: gridWrapRef, 19093 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(dpOverlayClass)), 19094 role: "dialog", 19095 tabindex: "0" 19096 }, [ 19097 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 19098 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(containerClass)), 19099 role: "grid" 19100 }, [ 19101 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_1$6, [ 19102 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "header") 19103 ]), 19104 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(mappedItems), (row, i) => { 19105 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 19106 class: "dp__overlay_row", 19107 key: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(getKey)(i), 19108 role: "row" 19109 }, [ 19110 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(row, (col, ind) => { 19111 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 19112 role: "gridcell", 19113 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(cellClassName)), 19114 key: col.value, 19115 "aria-selected": col.value === __props.modelValue && !__props.disabledValues.includes(col.value), 19116 "aria-disabled": col.className.dp__overlay_cell_disabled, 19117 ref_for: true, 19118 ref: (el) => assignRef(el, col, i, ind), 19119 tabindex: "0", 19120 onClick: ($event) => onClick(col.value), 19121 onKeydown: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => onClick(col.value), ["enter"]), 19122 onMouseover: ($event) => hoverValue.value = col.value 19123 }, [ 19124 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 19125 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(col.className) 19126 }, [ 19127 _ctx.$slots.item ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "item", { 19128 key: 0, 19129 item: col 19130 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19131 !_ctx.$slots.item ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [ 19132 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(col.text), 1) 19133 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19134 ], 2) 19135 ], 42, _hoisted_2$4); 19136 }), 128)) 19137 ]); 19138 }), 128)), 19139 _ctx.$slots["button-icon"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 19140 key: 0, 19141 role: "button", 19142 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).toggleOverlay, 19143 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(actionButtonClass)), 19144 tabindex: "0", 19145 ref_key: "toggleButton", 19146 ref: toggleButton, 19147 onClick: toggle, 19148 onKeydown: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(toggle, ["enter"]) 19149 }, [ 19150 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "button-icon") 19151 ], 42, _hoisted_3$4)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19152 ], 2) 19153 ], 2); 19154 }; 19155 } 19156}); 19157const useTransitions = () => { 19158 const transitions = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(transitionsKey); 19159 const transitionName = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (isOpen) => { 19160 if (transitions == null ? void 0 : transitions.value) { 19161 return isOpen ? transitions.value.open : transitions.value.close; 19162 } 19163 return ""; 19164 }); 19165 return { transitionName, showTransition: !!(transitions == null ? void 0 : transitions.value) }; 19166}; 19167const _hoisted_1$5 = { 19168 key: 0, 19169 class: "dp__time_input" 19170}; 19171const _hoisted_2$3 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" : "); 19172const _hoisted_3$3 = ["aria-label", "onKeydown", "onClick"]; 19173const _hoisted_4$3 = ["aria-label", "onKeydown", "onClick"]; 19174const _hoisted_5$1 = ["aria-label", "onKeydown", "onClick"]; 19175const _hoisted_6 = { key: 0 }; 19176const _hoisted_7 = ["aria-label", "onKeydown"]; 19177const _sfc_main$6 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 19178 __name: "TimeInput", 19179 props: { 19180 ...TimeInputProps, 19181 hours: { type: Number, default: 0 }, 19182 minutes: { type: Number, default: 0 }, 19183 seconds: { type: Number, default: 0 }, 19184 filters: { type: Object, default: () => ({}) }, 19185 disabled: { type: Boolean, default: false }, 19186 closeTimePickerBtn: { type: Object, default: null }, 19187 order: { type: Number, default: 0 } 19188 }, 19189 emits: [ 19190 "setHours", 19191 "setMinutes", 19192 "update:hours", 19193 "update:minutes", 19194 "update:seconds", 19195 "reset-flow", 19196 "mounted", 19197 "overlay-closed" 19198 ], 19199 setup(__props, { expose, emit }) { 19200 const props = __props; 19201 const overlays = (0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)({ 19202 hours: false, 19203 minutes: false, 19204 seconds: false 19205 }); 19206 const amPm = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)("AM"); 19207 const amPmButton = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 19208 const ariaLabels = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(ariaLabelsKey); 19209 const arrowNavigation = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(arrowNavigationKey); 19210 const elementRefs = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([]); 19211 const { transitionName, showTransition } = useTransitions(); 19212 const { setTimePickerElements, setTimePickerBackRef } = useArrowNavigation(); 19213 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => { 19214 emit("mounted"); 19215 }); 19216 const timeColClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 19217 dp__time_col: true, 19218 dp__time_col_reg: !props.enableSeconds && props.is24, 19219 dp__time_col_reg_with_button: !props.enableSeconds && !props.is24, 19220 dp__time_col_sec: props.enableSeconds && props.is24, 19221 dp__time_col_sec_with_button: props.enableSeconds && !props.is24 19222 })); 19223 const timeInputs = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19224 const inputs = [{ type: "hours" }, "separator", { type: "minutes" }]; 19225 return props.enableSeconds ? inputs.concat(["separator", { type: "seconds" }]) : inputs; 19226 }); 19227 const timeInputOverlays = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => timeInputs.value.filter((input) => typeof input !== "string")); 19228 const timeValueDisplay = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (type) => { 19229 if (type === "hours") { 19230 const hour = convert24ToAmPm(props.hours); 19231 return { text: hour < 10 ? `0${hour}` : `${hour}`, value: hour }; 19232 } 19233 return { text: props[type] < 10 ? `0${props[type]}` : `${props[type]}`, value: props[type] }; 19234 }); 19235 const getGridItems = (type) => { 19236 const max = type === "hours" ? props.is24 ? 24 : 12 : 60; 19237 const increment = +props[`${type}GridIncrement`]; 19238 const generatedArray = []; 19239 for (let i = 0; i < max; i += increment) { 19240 generatedArray.push({ value: i, text: i < 10 ? `0${i}` : `${i}` }); 19241 } 19242 return getArrayInArray(generatedArray); 19243 }; 19244 const checkOverlayDisabled = (type) => { 19245 return props[`no${type[0].toUpperCase() + type.slice(1)}Overlay`]; 19246 }; 19247 const toggleOverlay = (type) => { 19248 if (!checkOverlayDisabled(type)) { 19249 overlays[type] = !overlays[type]; 19250 if (!overlays[type]) { 19251 emit("overlay-closed"); 19252 } 19253 } 19254 }; 19255 const handleTimeValue = (type, inc = true) => { 19256 const method = type === "hours" ? date_fns__WEBPACK_IMPORTED_MODULE_13__["default"] : type === "minutes" ? date_fns__WEBPACK_IMPORTED_MODULE_14__["default"] : date_fns__WEBPACK_IMPORTED_MODULE_15__["default"]; 19257 const addOrSub = inc ? addTime : subTime; 19258 emit(`update:${type}`, method(addOrSub({ [type]: +props[type] }, { [type]: +props[`${type}Increment`] }))); 19259 }; 19260 const convert24ToAmPm = (time) => { 19261 if (props.is24) { 19262 return time; 19263 } 19264 if (time >= 12) { 19265 amPm.value = "PM"; 19266 } else { 19267 amPm.value = "AM"; 19268 } 19269 return hoursToAmPmHours(time); 19270 }; 19271 const setAmPm = () => { 19272 if (amPm.value === "PM") { 19273 amPm.value = "AM"; 19274 emit("update:hours", props.hours - 12); 19275 } else { 19276 amPm.value = "PM"; 19277 emit("update:hours", props.hours + 12); 19278 } 19279 }; 19280 const openChildCmp = (child) => { 19281 overlays[child] = true; 19282 }; 19283 const assignRefs = (el, col, pos) => { 19284 if (el && (arrowNavigation == null ? void 0 : arrowNavigation.value)) { 19285 if (Array.isArray(elementRefs.value[col])) { 19286 elementRefs.value[col][pos] = el; 19287 } else { 19288 elementRefs.value[col] = [el]; 19289 } 19290 const matrix = elementRefs.value.reduce((col2, row) => row.map((_, i) => [...col2[i] || [], row[i]]), []); 19291 setTimePickerBackRef(props.closeTimePickerBtn); 19292 if (amPmButton.value) { 19293 matrix[1] = matrix[1].concat(amPmButton.value); 19294 } 19295 setTimePickerElements(matrix, props.order); 19296 } 19297 }; 19298 const handleTimeFromOverlay = (type, value) => { 19299 if (type === "hours" && !props.is24) { 19300 return emit(`update:${type}`, amPm.value === "PM" ? value + 12 : value); 19301 } 19302 return emit(`update:${type}`, value); 19303 }; 19304 expose({ openChildCmp }); 19305 return (_ctx, _cache) => { 19306 return !__props.disabled ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_1$5, [ 19307 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(timeInputs), (timeInput, i) => { 19308 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 19309 key: i, 19310 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(timeColClass)) 19311 }, [ 19312 timeInput === "separator" ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 0 }, [ 19313 _hoisted_2$3 19314 ], 64)) : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [ 19315 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 19316 class: "dp__inc_dec_button", 19317 role: "button", 19318 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).incrementValue(timeInput.type), 19319 tabindex: "0", 19320 onKeydown: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => handleTimeValue(timeInput.type), ["enter"]), 19321 onClick: ($event) => handleTimeValue(timeInput.type), 19322 ref_for: true, 19323 ref: (el) => assignRefs(el, i, 0) 19324 }, [ 19325 _ctx.$slots["arrow-up"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "arrow-up", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19326 !_ctx.$slots["arrow-up"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ChevronUpIcon), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19327 ], 40, _hoisted_3$3), 19328 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 19329 role: "button", 19330 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).openTpOverlay(timeInput.type), 19331 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(checkOverlayDisabled(timeInput.type) ? "" : "dp__time_display"), 19332 tabindex: "0", 19333 onKeydown: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => toggleOverlay(timeInput.type), ["enter"]), 19334 onClick: ($event) => toggleOverlay(timeInput.type), 19335 ref_for: true, 19336 ref: (el) => assignRefs(el, i, 1) 19337 }, [ 19338 _ctx.$slots[timeInput.type] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, timeInput.type, { 19339 key: 0, 19340 text: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(timeValueDisplay)(timeInput.type).text, 19341 value: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(timeValueDisplay)(timeInput.type).value 19342 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19343 !_ctx.$slots[timeInput.type] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [ 19344 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(timeValueDisplay)(timeInput.type).text), 1) 19345 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19346 ], 42, _hoisted_4$3), 19347 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 19348 class: "dp__inc_dec_button", 19349 role: "button", 19350 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).decrementValue(timeInput.type), 19351 tabindex: "0", 19352 onKeydown: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => handleTimeValue(timeInput.type, false), ["enter"]), 19353 onClick: ($event) => handleTimeValue(timeInput.type, false), 19354 ref_for: true, 19355 ref: (el) => assignRefs(el, i, 2) 19356 }, [ 19357 _ctx.$slots["arrow-down"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "arrow-down", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19358 !_ctx.$slots["arrow-down"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ChevronDownIcon), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19359 ], 40, _hoisted_5$1) 19360 ], 64)) 19361 ], 2); 19362 }), 128)), 19363 !_ctx.is24 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_6, [ 19364 _ctx.$slots["am-pm-button"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "am-pm-button", { 19365 key: 0, 19366 toggle: setAmPm, 19367 value: amPm.value 19368 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19369 !_ctx.$slots["am-pm-button"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", { 19370 key: 1, 19371 ref_key: "amPmButton", 19372 ref: amPmButton, 19373 type: "button", 19374 class: "dp__pm_am_button", 19375 role: "button", 19376 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).amPmButton, 19377 tabindex: "0", 19378 onClick: setAmPm, 19379 onKeydown: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(setAmPm, ["prevent"]), ["enter"]) 19380 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(amPm.value), 41, _hoisted_7)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19381 ])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19382 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(timeInputOverlays), (timeInput, i) => { 19383 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Transition, { 19384 key: i, 19385 name: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(transitionName)(overlays[timeInput.type]), 19386 css: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(showTransition) 19387 }, { 19388 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 19389 overlays[timeInput.type] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_sfc_main$7, { 19390 key: 0, 19391 items: getGridItems(timeInput.type), 19392 "disabled-values": __props.filters.times[timeInput.type], 19393 "onUpdate:modelValue": ($event) => handleTimeFromOverlay(timeInput.type, $event), 19394 onSelected: ($event) => toggleOverlay(timeInput.type), 19395 onToggle: ($event) => toggleOverlay(timeInput.type), 19396 onResetFlow: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("reset-flow")) 19397 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ 19398 "button-icon": (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 19399 _ctx.$slots["clock-icon"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "clock-icon", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19400 !_ctx.$slots["clock-icon"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ClockIcon), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19401 ]), 19402 _: 2 19403 }, [ 19404 _ctx.$slots[`${timeInput.type}-overlay`] ? { 19405 name: "item", 19406 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(({ item }) => [ 19407 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, `${timeInput.type}-overlay`, { 19408 text: item.text, 19409 value: item.value 19410 }) 19411 ]) 19412 } : void 0 19413 ]), 1032, ["items", "disabled-values", "onUpdate:modelValue", "onSelected", "onToggle"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19414 ]), 19415 _: 2 19416 }, 1032, ["name", "css"]); 19417 }), 128)) 19418 ])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true); 19419 }; 19420 } 19421}); 19422const slots = [ 19423 { name: "clock-icon", use: ["time", "calendar"] }, 19424 { name: "arrow-left", use: ["month-year", "calendar"] }, 19425 { name: "arrow-right", use: ["month-year", "calendar"] }, 19426 { name: "arrow-up", use: ["time", "calendar"] }, 19427 { name: "arrow-down", use: ["time", "calendar"] }, 19428 { name: "calendar-icon", use: ["month-year", "time", "calendar"] }, 19429 { name: "day", use: ["calendar"] }, 19430 { name: "month-overlay", use: ["calendar", "month-year"] }, 19431 { name: "year-overlay", use: ["calendar", "month-year"] }, 19432 { name: "hours-overlay", use: ["calendar", "time"] }, 19433 { name: "minutes-overlay", use: ["calendar", "time"] }, 19434 { name: "seconds-overlay", use: ["calendar", "time"] }, 19435 { name: "hours", use: ["calendar", "time"] }, 19436 { name: "minutes", use: ["calendar", "time"] }, 19437 { name: "month", use: ["calendar", "month-year"] }, 19438 { name: "year", use: ["calendar", "month-year"] }, 19439 { name: "action-select", use: ["action"] }, 19440 { name: "action-preview", use: ["action"] }, 19441 { name: "calendar-header", use: ["calendar"] }, 19442 { name: "marker-tooltip", use: ["calendar"] }, 19443 { name: "now-button", use: [] }, 19444 { name: "time-picker-overlay", use: ["calendar", "time"] }, 19445 { name: "am-pm-button", use: ["calendar", "time"] } 19446]; 19447const inputSlots = [{ name: "trigger" }, { name: "input-icon" }, { name: "clear-icon" }, { name: "dp-input" }]; 19448const slotNames = { 19449 all: () => slots, 19450 monthYear: () => slots.filter((slot) => slot.use.includes("month-year")), 19451 input: () => inputSlots, 19452 timePicker: () => slots.filter((slot) => slot.use.includes("time")), 19453 action: () => slots.filter((slot) => slot.use.includes("action")), 19454 calendar: () => slots.filter((slot) => slot.use.includes("calendar")) 19455}; 19456const mapSlots = (slots2, usage) => { 19457 const toReturn = []; 19458 slotNames[usage]().forEach((slot) => { 19459 if (slots2[slot.name]) { 19460 toReturn.push(slot.name); 19461 } 19462 }); 19463 return toReturn; 19464}; 19465const _hoisted_1$4 = ["aria-label"]; 19466const _hoisted_2$2 = { class: "dp__overlay_container dp__container_flex" }; 19467const _hoisted_3$2 = { 19468 key: 1, 19469 class: "dp__overlay_row" 19470}; 19471const _hoisted_4$2 = ["aria-label"]; 19472const _sfc_main$5 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 19473 __name: "TimePicker", 19474 props: { 19475 ...TimePickerProps, 19476 range: { type: Boolean, default: false }, 19477 filters: { type: Object, default: () => ({}) }, 19478 hours: { type: [Number, Array], default: 0 }, 19479 minutes: { type: [Number, Array], default: 0 }, 19480 seconds: { type: [Number, Array], default: 0 }, 19481 customProps: { type: Object, default: null }, 19482 modelAuto: { type: Boolean, default: false }, 19483 internalModelValue: { type: [Date, Array], default: null } 19484 }, 19485 emits: [ 19486 "update:hours", 19487 "update:minutes", 19488 "update:seconds", 19489 "mount", 19490 "reset-flow", 19491 "overlay-closed" 19492 ], 19493 setup(__props, { expose, emit }) { 19494 const props = __props; 19495 const slots2 = (0,vue__WEBPACK_IMPORTED_MODULE_0__.useSlots)(); 19496 const openTimePickerBtn = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 19497 const closeTimePickerBtn = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 19498 const autoApply = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(autoApplyKey, false); 19499 const timeInputRefs = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([]); 19500 const overlayRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 19501 const ariaLabels = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(ariaLabelsKey); 19502 const arrowNavigation = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(arrowNavigationKey); 19503 const { transitionName, showTransition } = useTransitions(); 19504 const { buildMatrix, setTimePicker } = useArrowNavigation(); 19505 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => { 19506 emit("mount"); 19507 if (!props.timePicker && (arrowNavigation == null ? void 0 : arrowNavigation.value)) { 19508 buildMatrix([unrefElement(openTimePickerBtn.value)], "time"); 19509 } else { 19510 setTimePicker(true, props.timePicker); 19511 } 19512 }); 19513 const shouldShowRangedInput = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19514 if (props.range && props.modelAuto) 19515 return isModelAuto(props.internalModelValue); 19516 return true; 19517 }); 19518 const showTimePicker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 19519 const getTimeInput = (i) => { 19520 return { 19521 hours: Array.isArray(props.hours) ? props.hours[i] : props.hours, 19522 minutes: Array.isArray(props.minutes) ? props.minutes[i] : props.minutes, 19523 seconds: Array.isArray(props.seconds) ? props.seconds[i] : props.seconds 19524 }; 19525 }; 19526 const timeInputs = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19527 const arr = []; 19528 if (props.range) { 19529 for (let i = 0; i < 2; i++) { 19530 arr.push(getTimeInput(i)); 19531 } 19532 } else { 19533 arr.push(getTimeInput(0)); 19534 } 19535 return arr; 19536 }); 19537 const toggleTimePicker = (show, flow = false, childOpen = "") => { 19538 if (!flow) { 19539 emit("reset-flow"); 19540 } 19541 showTimePicker.value = show; 19542 if (arrowNavigation == null ? void 0 : arrowNavigation.value) { 19543 setTimePicker(show); 19544 if (!show) { 19545 emit("overlay-closed"); 19546 } 19547 } 19548 (0,vue__WEBPACK_IMPORTED_MODULE_0__.nextTick)(() => { 19549 if (childOpen !== "" && timeInputRefs.value[0]) { 19550 timeInputRefs.value[0].openChildCmp(childOpen); 19551 } 19552 }); 19553 }; 19554 const toggleButtonClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 19555 dp__button: true, 19556 dp__button_bottom: autoApply 19557 })); 19558 const timeInputSlots = mapSlots(slots2, "timePicker"); 19559 const getEvent = (event, index, property) => { 19560 if (!props.range) { 19561 return event; 19562 } 19563 if (index === 0) { 19564 return [event, timeInputs.value[1][property]]; 19565 } 19566 return [timeInputs.value[0][property], event]; 19567 }; 19568 const updateHours = (hours) => { 19569 emit("update:hours", hours); 19570 }; 19571 const updateMinutes = (minutes) => { 19572 emit("update:minutes", minutes); 19573 }; 19574 const updateSeconds = (seconds) => { 19575 emit("update:seconds", seconds); 19576 }; 19577 const focusOverlay = () => { 19578 if (overlayRef.value && (arrowNavigation == null ? void 0 : arrowNavigation.value)) { 19579 overlayRef.value.focus({ preventScroll: true }); 19580 } 19581 }; 19582 expose({ toggleTimePicker }); 19583 return (_ctx, _cache) => { 19584 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", null, [ 19585 !_ctx.timePicker ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 19586 key: 0, 19587 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(toggleButtonClass)), 19588 role: "button", 19589 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).openTimePicker, 19590 tabindex: "0", 19591 ref_key: "openTimePickerBtn", 19592 ref: openTimePickerBtn, 19593 onKeydown: _cache[0] || (_cache[0] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => toggleTimePicker(true), ["enter"])), 19594 onClick: _cache[1] || (_cache[1] = ($event) => toggleTimePicker(true)) 19595 }, [ 19596 _ctx.$slots["clock-icon"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "clock-icon", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19597 !_ctx.$slots["clock-icon"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ClockIcon), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19598 ], 42, _hoisted_1$4)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19599 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_0__.Transition, { 19600 name: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(transitionName)(showTimePicker.value), 19601 css: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(showTransition) 19602 }, { 19603 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 19604 showTimePicker.value || _ctx.timePicker ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 19605 key: 0, 19606 class: "dp__overlay", 19607 ref_key: "overlayRef", 19608 ref: overlayRef, 19609 tabindex: "0" 19610 }, [ 19611 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_2$2, [ 19612 _ctx.$slots["time-picker-overlay"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "time-picker-overlay", { 19613 key: 0, 19614 range: __props.range, 19615 hours: __props.hours, 19616 minutes: __props.minutes, 19617 seconds: __props.seconds, 19618 setHours: updateHours, 19619 setMinutes: updateMinutes, 19620 setSeconds: updateSeconds 19621 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19622 !_ctx.$slots["time-picker-overlay"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_3$2, [ 19623 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(timeInputs), (tInput, index) => { 19624 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_sfc_main$6, (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ 19625 key: index, 19626 disabled: index === 0 ? _ctx.fixedStart : _ctx.fixedEnd, 19627 hours: tInput.hours, 19628 minutes: tInput.minutes, 19629 seconds: tInput.seconds, 19630 filters: __props.filters, 19631 ref_for: true, 19632 ref_key: "timeInputRefs", 19633 ref: timeInputRefs 19634 }, { 19635 is24: _ctx.is24, 19636 hoursGridIncrement: _ctx.hoursGridIncrement, 19637 minutesGridIncrement: _ctx.minutesGridIncrement, 19638 secondsGridIncrement: _ctx.secondsGridIncrement, 19639 hoursIncrement: _ctx.hoursIncrement, 19640 minutesIncrement: _ctx.minutesIncrement, 19641 secondsIncrement: _ctx.secondsIncrement, 19642 filters: __props.filters, 19643 noHoursOverlay: _ctx.noHoursOverlay, 19644 noMinutesOverlay: _ctx.noMinutesOverlay, 19645 noSecondsOverlay: _ctx.noSecondsOverlay, 19646 enableSeconds: _ctx.enableSeconds, 19647 closeTimePickerBtn: closeTimePickerBtn.value, 19648 order: index 19649 }, { 19650 "onUpdate:hours": ($event) => updateHours(getEvent($event, index, "hours")), 19651 "onUpdate:minutes": ($event) => updateMinutes(getEvent($event, index, "minutes")), 19652 "onUpdate:seconds": ($event) => updateSeconds(getEvent($event, index, "seconds")), 19653 onMounted: focusOverlay, 19654 onOverlayClosed: focusOverlay 19655 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ _: 2 }, [ 19656 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(timeInputSlots), (slot, i) => { 19657 return { 19658 name: slot, 19659 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)((args) => [ 19660 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, slot, (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,vue__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps)(args))) 19661 ]) 19662 }; 19663 }) 19664 ]), 1040, ["disabled", "hours", "minutes", "seconds", "filters", "onUpdate:hours", "onUpdate:minutes", "onUpdate:seconds"])), [ 19665 [vue__WEBPACK_IMPORTED_MODULE_0__.vShow, index === 0 ? true : (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(shouldShowRangedInput)] 19666 ]); 19667 }), 128)) 19668 ])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19669 !_ctx.timePicker ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 19670 key: 2, 19671 ref_key: "closeTimePickerBtn", 19672 ref: closeTimePickerBtn, 19673 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(toggleButtonClass)), 19674 role: "button", 19675 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).closeTimePicker, 19676 tabindex: "0", 19677 onKeydown: _cache[2] || (_cache[2] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => toggleTimePicker(false), ["enter"])), 19678 onClick: _cache[3] || (_cache[3] = ($event) => toggleTimePicker(false)) 19679 }, [ 19680 _ctx.$slots["calendar-icon"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "calendar-icon", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19681 !_ctx.$slots["calendar-icon"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(CalendarIcon), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19682 ], 42, _hoisted_4$2)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19683 ]) 19684 ], 512)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19685 ]), 19686 _: 3 19687 }, 8, ["name", "css"]) 19688 ]); 19689 }; 19690 } 19691}); 19692const _hoisted_1$3 = ["aria-label"]; 19693const _sfc_main$4 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 19694 __name: "ActionIcon", 19695 props: { ariaLabel: { type: String, default: "" } }, 19696 emits: ["activate", "setRef"], 19697 setup(__props, { emit }) { 19698 const elRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 19699 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => emit("setRef", elRef)); 19700 return (_ctx, _cache) => { 19701 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 19702 class: "dp__month_year_col_nav", 19703 onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("activate")), 19704 onKeydown: _cache[1] || (_cache[1] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => _ctx.$emit("activate"), ["enter"])), 19705 tabindex: "0", 19706 ref_key: "elRef", 19707 ref: elRef 19708 }, [ 19709 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 19710 class: "dp__inner_nav", 19711 role: "button", 19712 "aria-label": __props.ariaLabel 19713 }, [ 19714 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default") 19715 ], 8, _hoisted_1$3) 19716 ], 544); 19717 }; 19718 } 19719}); 19720const _hoisted_1$2 = ["aria-label"]; 19721const _sfc_main$3 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 19722 __name: "RegularPicker", 19723 props: { 19724 ariaLabel: { type: String, default: "" }, 19725 showSelectionGrid: { type: Boolean, default: false }, 19726 modelValue: { type: Number, default: null }, 19727 items: { type: Array, default: () => [] }, 19728 disabledValues: { type: Array, default: () => [] }, 19729 minValue: { type: Number, default: null }, 19730 maxValue: { type: Number, default: null }, 19731 slotName: { type: String, default: "" }, 19732 headerRefs: { type: Array, default: () => [] } 19733 }, 19734 emits: ["update:model-value", "toggle", "setRef"], 19735 setup(__props, { emit }) { 19736 const { transitionName, showTransition } = useTransitions(); 19737 const elRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 19738 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => emit("setRef", elRef)); 19739 return (_ctx, _cache) => { 19740 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, [ 19741 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 19742 class: "dp__month_year_select", 19743 onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle")), 19744 onKeydown: _cache[1] || (_cache[1] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => _ctx.$emit("toggle"), ["enter"])), 19745 role: "button", 19746 "aria-label": __props.ariaLabel, 19747 tabindex: "0", 19748 ref_key: "elRef", 19749 ref: elRef 19750 }, [ 19751 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default") 19752 ], 40, _hoisted_1$2), 19753 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_0__.Transition, { 19754 name: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(transitionName)(__props.showSelectionGrid), 19755 css: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(showTransition) 19756 }, { 19757 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 19758 __props.showSelectionGrid ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_sfc_main$7, (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ key: 0 }, { 19759 modelValue: __props.modelValue, 19760 items: __props.items, 19761 disabledValues: __props.disabledValues, 19762 minValue: __props.minValue, 19763 maxValue: __props.maxValue 19764 }, { 19765 "header-refs": [], 19766 "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:model-value", $event)), 19767 onToggle: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("toggle")) 19768 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ 19769 "button-icon": (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 19770 _ctx.$slots["calendar-icon"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "calendar-icon", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 19771 !_ctx.$slots["calendar-icon"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(CalendarIcon), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19772 ]), 19773 _: 2 19774 }, [ 19775 _ctx.$slots[__props.slotName] ? { 19776 name: "item", 19777 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(({ item }) => [ 19778 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, __props.slotName, { item }) 19779 ]) 19780 } : void 0 19781 ]), 1040)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 19782 ]), 19783 _: 3 19784 }, 8, ["name", "css"]) 19785 ], 64); 19786 }; 19787 } 19788}); 19789const getDateForCompare = (date, month, year) => { 19790 return [(0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(date), { date: 1 }), (0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(), { month, year, date: 1 })]; 19791}; 19792const validateMinDate = (minDate, month, year) => { 19793 return isDateBefore(...getDateForCompare(minDate, month, year)) || isDateEqual(...getDateForCompare(minDate, month, year)); 19794}; 19795const validateMaxDate = (maxDate, month, year) => { 19796 return isDateAfter(...getDateForCompare(maxDate, month, year)) || isDateEqual(...getDateForCompare(maxDate, month, year)); 19797}; 19798const validateMonthYearInRange = (minDate, maxDate, month, year, isNext, preventNav) => { 19799 let valid = false; 19800 if (preventNav) { 19801 if (minDate && maxDate) { 19802 if (maxDate && isNext && validateMaxDate(maxDate, month, year)) { 19803 valid = true; 19804 } 19805 if (minDate && !isNext && validateMinDate(minDate, month, year)) { 19806 valid = true; 19807 } 19808 } else if (minDate && validateMinDate(minDate, month, year)) { 19809 valid = true; 19810 } else if (maxDate && validateMaxDate(maxDate, month, year)) { 19811 valid = true; 19812 } 19813 } else { 19814 valid = true; 19815 } 19816 return valid; 19817}; 19818const useMontYearPick = (props, emit) => { 19819 const recursiveMonthAdjust = (date, increment) => { 19820 let monthDate = date; 19821 if (props.filters.months.includes((0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(monthDate))) { 19822 monthDate = increment ? (0,date_fns__WEBPACK_IMPORTED_MODULE_8__["default"])(date, 1) : (0,date_fns__WEBPACK_IMPORTED_MODULE_28__["default"])(date, 1); 19823 return recursiveMonthAdjust(monthDate, increment); 19824 } 19825 return monthDate; 19826 }; 19827 const recursiveYearAdjust = (date, increment) => { 19828 let yearDate = date; 19829 if (props.filters.years.includes((0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(yearDate))) { 19830 yearDate = increment ? (0,date_fns__WEBPACK_IMPORTED_MODULE_29__["default"])(date, 1) : (0,date_fns__WEBPACK_IMPORTED_MODULE_30__["default"])(date, 1); 19831 return recursiveYearAdjust(yearDate, increment); 19832 } 19833 return yearDate; 19834 }; 19835 const handleMonthYearChange = (isNext) => { 19836 const initialDate = (0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(), { month: props.month, year: props.year }); 19837 let date = isNext ? (0,date_fns__WEBPACK_IMPORTED_MODULE_8__["default"])(initialDate, 1) : (0,date_fns__WEBPACK_IMPORTED_MODULE_28__["default"])(initialDate, 1); 19838 let month = (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(date); 19839 let year = (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(date); 19840 if (props.filters.months.includes(month)) { 19841 date = recursiveMonthAdjust(date, isNext); 19842 month = (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(date); 19843 year = (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(date); 19844 } 19845 if (props.filters.years.includes(year)) { 19846 date = recursiveYearAdjust(date, isNext); 19847 year = (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(date); 19848 } 19849 if (validateMonthYearInRange(props.minDate, props.maxDate, month, year, isNext, props.preventMinMaxNavigation)) { 19850 updateMonthYear(month, year); 19851 } 19852 }; 19853 const updateMonthYear = (month, year) => { 19854 emit("update-month-year", { month, year }); 19855 }; 19856 return { handleMonthYearChange }; 19857}; 19858const _hoisted_1$1 = { class: "dp__month_year_row" }; 19859const _hoisted_2$1 = { class: "dp__month_picker_header" }; 19860const _hoisted_3$1 = ["aria-label"]; 19861const _hoisted_4$1 = ["aria-label", "onKeydown"]; 19862const _hoisted_5 = ["aria-label"]; 19863const _sfc_main$2 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 19864 __name: "MonthYearPicker", 19865 props: { 19866 ...MonthCalendarSharedProps, 19867 ...DateValidationProps, 19868 preventMinMaxNavigation: { type: Boolean, default: false }, 19869 reverseYears: { type: Boolean, default: false }, 19870 years: { type: Array, default: () => [] }, 19871 months: { type: Array, default: () => [] }, 19872 filters: { type: Object, default: () => ({}) }, 19873 multiCalendarsSolo: { type: Boolean, default: false }, 19874 yearPicker: { type: Boolean, default: false } 19875 }, 19876 emits: ["update-month-year", "monthYearSelect", "mount", "reset-flow", "overlay-closed"], 19877 setup(__props, { expose, emit }) { 19878 const props = __props; 19879 const { transitionName, showTransition } = useTransitions(); 19880 const { buildMatrix } = useArrowNavigation(); 19881 const showMonthPicker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 19882 const showYearPicker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 19883 const elementRefs = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([null, null, null, null]); 19884 const mpPrevIconRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 19885 const mpYearButtonRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 19886 const mpNextIconRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 19887 const ariaLabels = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(ariaLabelsKey); 19888 const arrowNavigation = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(arrowNavigationKey); 19889 const { handleMonthYearChange } = useMontYearPick(props, emit); 19890 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => { 19891 emit("mount"); 19892 }); 19893 const bindOptions = (type) => ({ 19894 get: () => props[type], 19895 set: (value) => { 19896 const otherType = type === "month" ? "year" : "month"; 19897 emit("update-month-year", { [type]: value, [otherType]: props[otherType] }); 19898 emit("monthYearSelect", type === "year"); 19899 if (type === "month") { 19900 toggleMonthPicker(true); 19901 } else { 19902 toggleYearPicker(true); 19903 } 19904 } 19905 }); 19906 const monthModelBind = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(bindOptions("month")); 19907 const yearModelBind = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(bindOptions("year")); 19908 const childProps = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (type) => { 19909 const isMonth2 = type === "month"; 19910 return { 19911 showSelectionGrid: (isMonth2 ? showMonthPicker : showYearPicker).value, 19912 items: (isMonth2 ? groupedMonths : groupedYears).value, 19913 disabledValues: props.filters[isMonth2 ? "months" : "years"], 19914 minValue: (isMonth2 ? minMonth : minYear).value, 19915 maxValue: (isMonth2 ? maxMonth : maxYear).value, 19916 headerRefs: isMonth2 && props.monthPicker ? [mpPrevIconRef.value, mpYearButtonRef.value, mpNextIconRef.value] : [] 19917 }; 19918 }); 19919 const minYear = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.minDate ? (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(new Date(props.minDate)) : null); 19920 const maxYear = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.maxDate ? (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(new Date(props.maxDate)) : null); 19921 const minMonth = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19922 if (props.minDate && minYear.value) { 19923 if (minYear.value > props.year) 19924 return 12; 19925 if (minYear.value === props.year) 19926 return (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(new Date(props.minDate)); 19927 } 19928 return null; 19929 }); 19930 const maxMonth = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19931 if (props.maxDate && maxYear.value) { 19932 if (maxYear.value < props.year) 19933 return -1; 19934 if (maxYear.value === props.year) 19935 return (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(new Date(props.maxDate)); 19936 return null; 19937 } 19938 return null; 19939 }); 19940 const multiModelValue = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19941 return props.range && props.internalModelValue && (props.monthPicker || props.yearPicker) ? props.internalModelValue : []; 19942 }); 19943 const getGroupedList = (items, reverse = false) => { 19944 const list = []; 19945 for (let i = 0; i < items.length; i += 3) { 19946 const listItems = [items[i], items[i + 1], items[i + 2]]; 19947 list.push(reverse ? listItems.reverse() : listItems); 19948 } 19949 return reverse ? list.reverse() : list; 19950 }; 19951 const getMonthDisplayVal = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19952 const month = props.months.find((month2) => month2.value === props.month); 19953 if (month) 19954 return month; 19955 return { text: "", value: 0 }; 19956 }); 19957 const groupedMonths = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19958 return getGroupedList(props.months); 19959 }); 19960 const groupedYears = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19961 return getGroupedList(props.years, props.reverseYears); 19962 }); 19963 const showLeftIcon = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19964 if (props.multiCalendars) { 19965 return !props.multiCalendarsSolo ? props.instance === 0 : true; 19966 } 19967 return true; 19968 }); 19969 const showRightIcon = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 19970 if (props.multiCalendars) { 19971 return !props.multiCalendarsSolo ? props.instance === props.multiCalendars - 1 : true; 19972 } 19973 return true; 19974 }); 19975 const toggleMonthPicker = (flow = false) => { 19976 checkFlow(flow); 19977 showMonthPicker.value = !showMonthPicker.value; 19978 if (!showMonthPicker.value) { 19979 emit("overlay-closed"); 19980 } 19981 }; 19982 const toggleYearPicker = (flow = false) => { 19983 checkFlow(flow); 19984 showYearPicker.value = !showYearPicker.value; 19985 if (!showYearPicker.value) { 19986 emit("overlay-closed"); 19987 } 19988 }; 19989 const checkFlow = (flow) => { 19990 if (!flow) { 19991 emit("reset-flow"); 19992 } 19993 }; 19994 const handleYear = (increment = false) => { 19995 emit("update-month-year", { year: increment ? props.year + 1 : props.year - 1, month: props.month }); 19996 }; 19997 const setElRefs = (el, i) => { 19998 if (arrowNavigation == null ? void 0 : arrowNavigation.value) { 19999 elementRefs.value[i] = unrefElement(el); 20000 buildMatrix(elementRefs.value, "monthYear"); 20001 } 20002 }; 20003 expose({ 20004 toggleMonthPicker, 20005 toggleYearPicker 20006 }); 20007 return (_ctx, _cache) => { 20008 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_1$1, [ 20009 !_ctx.monthPicker && !__props.yearPicker ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 0 }, [ 20010 (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(showLeftIcon) && !_ctx.vertical ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_sfc_main$4, { 20011 key: 0, 20012 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).prevMonth, 20013 onActivate: _cache[0] || (_cache[0] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(handleMonthYearChange)(false)), 20014 onSetRef: _cache[1] || (_cache[1] = ($event) => setElRefs($event, 0)) 20015 }, { 20016 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 20017 _ctx.$slots["arrow-left"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "arrow-left", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20018 !_ctx.$slots["arrow-left"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ChevronLeftIcon), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20019 ]), 20020 _: 3 20021 }, 8, ["aria-label"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20022 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_sfc_main$3, (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ 20023 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).openMonthsOverlay, 20024 "slot-name": "month-overlay", 20025 modelValue: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(monthModelBind), 20026 "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.isRef)(monthModelBind) ? monthModelBind.value = $event : null) 20027 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(childProps)("month"), { 20028 onToggle: toggleMonthPicker, 20029 onSetRef: _cache[3] || (_cache[3] = ($event) => setElRefs($event, 1)) 20030 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ 20031 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 20032 _ctx.$slots.month ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "month", (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(getMonthDisplayVal)))) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20033 !_ctx.$slots.month ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [ 20034 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(getMonthDisplayVal).text), 1) 20035 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20036 ]), 20037 _: 2 20038 }, [ 20039 _ctx.$slots["calendar-icon"] ? { 20040 name: "calendar-icon", 20041 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 20042 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "calendar-icon") 20043 ]) 20044 } : void 0, 20045 _ctx.$slots["month-overlay"] ? { 20046 name: "month-overlay", 20047 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(({ item }) => [ 20048 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "month-overlay", { 20049 text: item.text, 20050 value: item.value 20051 }) 20052 ]) 20053 } : void 0 20054 ]), 1040, ["aria-label", "modelValue"]), 20055 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_sfc_main$3, (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ 20056 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).openYearsOverlay, 20057 "slot-name": "year-overlay", 20058 modelValue: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(yearModelBind), 20059 "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.isRef)(yearModelBind) ? yearModelBind.value = $event : null) 20060 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(childProps)("year"), { 20061 onToggle: toggleYearPicker, 20062 onSetRef: _cache[5] || (_cache[5] = ($event) => setElRefs($event, 2)) 20063 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ 20064 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 20065 _ctx.$slots.year ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "year", { 20066 key: 0, 20067 year: _ctx.year 20068 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20069 !_ctx.$slots.year ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [ 20070 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.year), 1) 20071 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20072 ]), 20073 _: 2 20074 }, [ 20075 _ctx.$slots["calendar-icon"] ? { 20076 name: "calendar-icon", 20077 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 20078 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "calendar-icon") 20079 ]) 20080 } : void 0, 20081 _ctx.$slots["year-overlay"] ? { 20082 name: "year-overlay", 20083 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(({ item }) => [ 20084 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "year-overlay", { 20085 text: item.text, 20086 value: item.value 20087 }) 20088 ]) 20089 } : void 0 20090 ]), 1040, ["aria-label", "modelValue"]), 20091 (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(showLeftIcon) && _ctx.vertical ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_sfc_main$4, { 20092 key: 1, 20093 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).prevMonth, 20094 onActivate: _cache[6] || (_cache[6] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(handleMonthYearChange)(false)) 20095 }, { 20096 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 20097 _ctx.$slots["arrow-up"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "arrow-up", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20098 !_ctx.$slots["arrow-up"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ChevronUpIcon), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20099 ]), 20100 _: 3 20101 }, 8, ["aria-label"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20102 (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(showRightIcon) ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_sfc_main$4, { 20103 key: 2, 20104 "arial-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).nextMonth, 20105 onActivate: _cache[7] || (_cache[7] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(handleMonthYearChange)(true)), 20106 ref: "rightIcon", 20107 onSetRef: _cache[8] || (_cache[8] = ($event) => setElRefs($event, 3)) 20108 }, { 20109 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 20110 _ctx.$slots[_ctx.vertical ? "arrow-down" : "arrow-right"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, _ctx.vertical ? "arrow-down" : "arrow-right", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20111 !_ctx.$slots[_ctx.vertical ? "arrow-down" : "arrow-right"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent)(_ctx.vertical ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ChevronDownIcon) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ChevronRightIcon)), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20112 ]), 20113 _: 3 20114 }, 8, ["arial-label"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20115 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20116 _ctx.monthPicker ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_sfc_main$7, (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(childProps)("month"), { 20117 "skip-active": props.range, 20118 year: _ctx.year, 20119 "multi-model-value": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(multiModelValue), 20120 "month-picker": "", 20121 modelValue: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(monthModelBind), 20122 "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.isRef)(monthModelBind) ? monthModelBind.value = $event : null), 20123 onToggle: toggleMonthPicker, 20124 onSelected: _cache[16] || (_cache[16] = ($event) => _ctx.$emit("overlay-closed")) 20125 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ 20126 header: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 20127 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_2$1, [ 20128 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 20129 class: "dp__month_year_col_nav", 20130 tabindex: "0", 20131 ref_key: "mpPrevIconRef", 20132 ref: mpPrevIconRef, 20133 onClick: _cache[9] || (_cache[9] = ($event) => handleYear(false)), 20134 onKeydown: _cache[10] || (_cache[10] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => handleYear(false), ["enter"])) 20135 }, [ 20136 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 20137 class: "dp__inner_nav", 20138 role: "button", 20139 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).prevMonth 20140 }, [ 20141 _ctx.$slots["arrow-left"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "arrow-left", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20142 !_ctx.$slots["arrow-left"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ChevronLeftIcon), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20143 ], 8, _hoisted_3$1) 20144 ], 544), 20145 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 20146 class: "dp__pointer", 20147 role: "button", 20148 ref_key: "mpYearButtonRef", 20149 ref: mpYearButtonRef, 20150 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).openYearsOverlay, 20151 tabindex: "0", 20152 onClick: toggleYearPicker, 20153 onKeydown: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(toggleYearPicker, ["enter"]) 20154 }, [ 20155 _ctx.$slots.year ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "year", { 20156 key: 0, 20157 year: _ctx.year 20158 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20159 !_ctx.$slots.year ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [ 20160 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.year), 1) 20161 ], 64)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20162 ], 40, _hoisted_4$1), 20163 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 20164 class: "dp__month_year_col_nav", 20165 tabindex: "0", 20166 ref_key: "mpNextIconRef", 20167 ref: mpNextIconRef, 20168 onClick: _cache[11] || (_cache[11] = ($event) => handleYear(true)), 20169 onKeydown: _cache[12] || (_cache[12] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(($event) => handleYear(true), ["enter"])) 20170 }, [ 20171 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 20172 class: "dp__inner_nav", 20173 role: "button", 20174 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).nextMonth 20175 }, [ 20176 _ctx.$slots["arrow-right"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "arrow-right", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20177 !_ctx.$slots["arrow-right"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ChevronRightIcon), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20178 ], 8, _hoisted_5) 20179 ], 544) 20180 ]), 20181 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_0__.Transition, { 20182 name: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(transitionName)(showYearPicker.value), 20183 css: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(showTransition) 20184 }, { 20185 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 20186 showYearPicker.value ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_sfc_main$7, (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(childProps)("year"), { 20187 modelValue: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(yearModelBind), 20188 "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.isRef)(yearModelBind) ? yearModelBind.value = $event : null), 20189 onToggle: toggleYearPicker, 20190 onSelected: _cache[14] || (_cache[14] = ($event) => _ctx.$emit("overlay-closed")) 20191 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ 20192 "button-icon": (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 20193 _ctx.$slots["calendar-icon"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "calendar-icon", { key: 0 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20194 !_ctx.$slots["calendar-icon"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(CalendarIcon), { key: 1 })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20195 ]), 20196 _: 2 20197 }, [ 20198 _ctx.$slots["year-overlay"] ? { 20199 name: "item", 20200 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(({ item }) => [ 20201 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "year-overlay", { 20202 text: item.text, 20203 value: item.value 20204 }) 20205 ]) 20206 } : void 0 20207 ]), 1040, ["modelValue"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20208 ]), 20209 _: 3 20210 }, 8, ["name", "css"]) 20211 ]), 20212 _: 2 20213 }, [ 20214 _ctx.$slots["month-overlay"] ? { 20215 name: "item", 20216 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(({ item }) => [ 20217 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "month-overlay", { 20218 text: item.text, 20219 value: item.value 20220 }) 20221 ]) 20222 } : void 0 20223 ]), 1040, ["skip-active", "year", "multi-model-value", "modelValue"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 20224 __props.yearPicker ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_sfc_main$7, (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ key: 2 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(childProps)("year"), { 20225 modelValue: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(yearModelBind), 20226 "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.isRef)(yearModelBind) ? yearModelBind.value = $event : null), 20227 "multi-model-value": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(multiModelValue), 20228 "skip-active": props.range, 20229 "skip-button-ref": "", 20230 "year-picker": "", 20231 onToggle: toggleYearPicker, 20232 onSelected: _cache[18] || (_cache[18] = ($event) => _ctx.$emit("overlay-closed")) 20233 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ _: 2 }, [ 20234 _ctx.$slots["year-overlay"] ? { 20235 name: "item", 20236 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(({ item }) => [ 20237 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "year-overlay", { 20238 text: item.text, 20239 value: item.value 20240 }) 20241 ]) 20242 } : void 0 20243 ]), 1040, ["modelValue", "multi-model-value", "skip-active"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 20244 ]); 20245 }; 20246 } 20247}); 20248const useCalendar = (props, emit, updateFlow, calendarRefs) => { 20249 const today = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(new Date()); 20250 const hoveredDate = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(); 20251 const calendars = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([{ month: (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(new Date()), year: (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(new Date()) }]); 20252 const hours = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(props.range ? [(0,date_fns__WEBPACK_IMPORTED_MODULE_13__["default"])(new Date()), (0,date_fns__WEBPACK_IMPORTED_MODULE_13__["default"])(new Date())] : (0,date_fns__WEBPACK_IMPORTED_MODULE_13__["default"])(new Date())); 20253 const minutes = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(props.range ? [(0,date_fns__WEBPACK_IMPORTED_MODULE_14__["default"])(new Date()), (0,date_fns__WEBPACK_IMPORTED_MODULE_14__["default"])(new Date())] : (0,date_fns__WEBPACK_IMPORTED_MODULE_14__["default"])(new Date())); 20254 const seconds = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(props.range ? [0, 0] : 0); 20255 (0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)(calendars, () => { 20256 setTimeout(() => { 20257 if (props.openOnTop) { 20258 emit("dpOpen"); 20259 } 20260 }, 0); 20261 }, { deep: true }); 20262 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => { 20263 mapInternalModuleValues(true); 20264 if (!modelValue.value) { 20265 if (props.startDate) { 20266 calendars.value[0].month = (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(new Date(props.startDate)); 20267 calendars.value[0].year = (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(new Date(props.startDate)); 20268 if (props.multiCalendars) { 20269 autoChangeMultiCalendars(0); 20270 } 20271 } 20272 if (props.startTime) { 20273 assignStartTime(); 20274 } 20275 } 20276 }); 20277 const month = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (instance) => calendars.value[instance] ? calendars.value[instance].month : 0); 20278 const year = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (instance) => calendars.value[instance] ? calendars.value[instance].year : 0); 20279 const setCalendarMonthYear = (instance, month2, year2) => { 20280 calendars.value[instance].month = month2; 20281 calendars.value[instance].year = year2; 20282 }; 20283 const setCalendarMonth = (instance, value) => calendars.value[instance].month = value; 20284 const setCalendarYear = (instance, value) => calendars.value[instance].year = value; 20285 const getSecondsValue = (getFirst = true) => { 20286 if (props.enableSeconds) { 20287 if (Array.isArray(seconds.value)) { 20288 return getFirst ? seconds.value[0] : seconds.value[1]; 20289 } 20290 return seconds.value; 20291 } 20292 return 0; 20293 }; 20294 const assignStartTime = () => { 20295 if (props.startTime) { 20296 if (isTimeArr(props.startTime)) { 20297 hours.value = [+props.startTime[0].hours, +props.startTime[1].hours]; 20298 minutes.value = [+props.startTime[0].minutes, +props.startTime[1].minutes]; 20299 if (props.enableSeconds) { 20300 seconds.value = [+props.startTime[0].seconds, +props.startTime[1].seconds]; 20301 } 20302 } else { 20303 hours.value = +props.startTime.hours; 20304 minutes.value = +props.startTime.minutes; 20305 if (props.enableSeconds) { 20306 seconds.value = +props.startTime.seconds; 20307 } 20308 } 20309 } 20310 }; 20311 const modelValue = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)({ 20312 get: () => { 20313 return props.internalModelValue; 20314 }, 20315 set: (value) => { 20316 if (!props.readonly && !props.disabled) { 20317 emit("update:internalModelValue", value); 20318 } 20319 } 20320 }); 20321 (0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)(modelValue, () => mapInternalModuleValues()); 20322 const isDisabled = (date) => { 20323 const { validate } = dateValidator(props.minDate, props.maxDate, props.disabledDates, props.allowedDates, props.filters, props.disabledWeekDays, props.yearRange); 20324 return !validate(date); 20325 }; 20326 const isActiveDate = (calendarDay) => { 20327 if (!modelValue.value) 20328 return false; 20329 if (props.hideOffsetDates && !calendarDay.current) 20330 return false; 20331 if (!props.range) { 20332 if (props.multiDates && Array.isArray(modelValue.value)) { 20333 return modelValue.value.some((dateVal) => isDateEqual(dateVal, calendarDay.value)); 20334 } 20335 return isDateEqual(calendarDay.value, modelValue.value ? modelValue.value : today.value); 20336 } 20337 if (props.modelAuto && Array.isArray(modelValue.value)) { 20338 return isDateEqual(calendarDay.value, modelValue.value[0] ? modelValue.value[0] : today.value); 20339 } 20340 return false; 20341 }; 20342 const rangeActive = (calendarDay) => { 20343 return isDateBetween(modelValue.value, hoveredDate.value, calendarDay.value); 20344 }; 20345 const assignMonthAndYear = (date, fromMount = false) => { 20346 if (!props.multiCalendars || !props.multiStatic || fromMount) { 20347 setCalendarMonth(0, (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(date)); 20348 setCalendarYear(0, (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(date)); 20349 } 20350 if (props.multiCalendars) { 20351 for (let i = 1; i <= props.multiCalendars; i++) { 20352 const prevDate = (0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(), { month: month.value(i - 1), year: year.value(i - 1) }); 20353 const nextMonth = (0,date_fns__WEBPACK_IMPORTED_MODULE_20__["default"])(prevDate, { months: 1 }); 20354 calendars.value[i] = { month: (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(nextMonth), year: (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(nextMonth) }; 20355 } 20356 } 20357 }; 20358 const handleNextMonthYear = () => { 20359 if (Array.isArray(modelValue.value) && modelValue.value.length === 2) { 20360 const date = new Date(modelValue.value[1] ? modelValue.value[1] : (0,date_fns__WEBPACK_IMPORTED_MODULE_8__["default"])(modelValue.value[0], 1)); 20361 const [firstMonth, firstYear] = [(0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(modelValue.value[0]), (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(modelValue.value[0])]; 20362 const [secondMonth, secondYear] = [(0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(modelValue.value[1]), (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(modelValue.value[1])]; 20363 if ((firstMonth !== secondMonth || firstMonth === secondMonth && firstYear !== secondYear) && props.multiCalendarsSolo) { 20364 setCalendarMonth(1, (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(date)); 20365 setCalendarYear(1, (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(date)); 20366 } 20367 } 20368 }; 20369 const assignMonthYearAndTime = (date) => { 20370 assignMonthAndYear(date); 20371 hours.value = (0,date_fns__WEBPACK_IMPORTED_MODULE_13__["default"])(date); 20372 minutes.value = (0,date_fns__WEBPACK_IMPORTED_MODULE_14__["default"])(date); 20373 seconds.value = (0,date_fns__WEBPACK_IMPORTED_MODULE_15__["default"])(date); 20374 }; 20375 const multiDatesLast = () => { 20376 if (Array.isArray(modelValue.value) && modelValue.value.length) { 20377 return modelValue.value[modelValue.value.length - 1]; 20378 } 20379 return null; 20380 }; 20381 const mapInternalModuleValues = (fromMount = false) => { 20382 if (modelValue.value) { 20383 if (isModelValueRange(modelValue.value)) { 20384 if (modelValue.value.length === 2 && !props.multiDates) { 20385 assignMonthAndYear(modelValue.value[0], fromMount); 20386 hours.value = [ 20387 (0,date_fns__WEBPACK_IMPORTED_MODULE_13__["default"])(modelValue.value[0]), 20388 modelValue.value[1] ? (0,date_fns__WEBPACK_IMPORTED_MODULE_13__["default"])(modelValue.value[1]) : (0,date_fns__WEBPACK_IMPORTED_MODULE_13__["default"])(new Date()) 20389 ]; 20390 minutes.value = [ 20391 (0,date_fns__WEBPACK_IMPORTED_MODULE_14__["default"])(modelValue.value[0]), 20392 modelValue.value[1] ? (0,date_fns__WEBPACK_IMPORTED_MODULE_14__["default"])(modelValue.value[1]) : (0,date_fns__WEBPACK_IMPORTED_MODULE_14__["default"])(new Date()) 20393 ]; 20394 seconds.value = [ 20395 (0,date_fns__WEBPACK_IMPORTED_MODULE_15__["default"])(modelValue.value[0]), 20396 modelValue.value[1] ? (0,date_fns__WEBPACK_IMPORTED_MODULE_15__["default"])(modelValue.value[1]) : (0,date_fns__WEBPACK_IMPORTED_MODULE_15__["default"])(new Date()) 20397 ]; 20398 } else if (isModelValueRange(modelValue.value) && props.multiDates) { 20399 const lastEntry = modelValue.value[modelValue.value.length - 1]; 20400 if (lastEntry) { 20401 assignMonthYearAndTime(lastEntry); 20402 } 20403 } 20404 if (props.multiCalendars && props.multiCalendarsSolo) { 20405 handleNextMonthYear(); 20406 } 20407 } else { 20408 assignMonthYearAndTime(modelValue.value); 20409 } 20410 } else { 20411 if (props.timePicker) { 20412 assignStartTime(); 20413 if (!props.range) { 20414 modelValue.value = setDateTime(new Date(), hours.value, minutes.value, getSecondsValue()); 20415 } else if (isNumberArray(hours.value) && isNumberArray(minutes.value)) { 20416 modelValue.value = [ 20417 setDateTime(new Date(), hours.value[0], minutes.value[0], getSecondsValue()), 20418 setDateTime(new Date(), hours.value[1], minutes.value[1], getSecondsValue(false)) 20419 ]; 20420 } 20421 } else if (props.monthPicker && !props.range) { 20422 modelValue.value = setDateMonthOrYear(new Date(), month.value(0), year.value(0)); 20423 } else if (props.multiCalendars) { 20424 assignMonthAndYear(new Date()); 20425 } else if (props.yearPicker && !props.range) { 20426 modelValue.value = new Date(); 20427 } 20428 } 20429 }; 20430 const handleNextCalendarAutoRange = (date) => { 20431 const monthValue = (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(new Date(date)); 20432 const yearValue = (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(new Date(date)); 20433 setCalendarMonth(0, monthValue); 20434 setCalendarYear(0, yearValue); 20435 if (props.multiCalendars > 0) { 20436 for (let i = 1; i < props.multiCalendars; i++) { 20437 const next = getNextMonthYear((0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(date), { year: month.value(i - 1), month: year.value(i - 1) })); 20438 setCalendarMonth(i, next.month); 20439 setCalendarYear(i, next.year); 20440 } 20441 } 20442 }; 20443 const handleMultiDateSelect = (date) => { 20444 if (modelValue.value && Array.isArray(modelValue.value)) { 20445 if (modelValue.value.some((dateVal) => isDateEqual(date, dateVal))) { 20446 const value = modelValue.value.filter((dateVal) => !isDateEqual(dateVal, date)); 20447 modelValue.value = !value.length ? null : value; 20448 } else { 20449 if (props.multiDatesLimit && +props.multiDatesLimit > modelValue.value.length || !props.multiDatesLimit) { 20450 modelValue.value.push(date); 20451 } 20452 } 20453 } else { 20454 modelValue.value = [date]; 20455 } 20456 }; 20457 const checkMinMaxRange = (secondDate) => { 20458 if (Array.isArray(modelValue.value) && modelValue.value[0]) { 20459 const absoluteDiff = (0,date_fns__WEBPACK_IMPORTED_MODULE_31__["default"])(secondDate, modelValue.value[0]); 20460 const start = isDateAfter(modelValue.value[0], secondDate) ? secondDate : modelValue.value[0]; 20461 const end = isDateAfter(secondDate, modelValue.value[0]) ? secondDate : modelValue.value[0]; 20462 const daysInBetween = (0,date_fns__WEBPACK_IMPORTED_MODULE_32__["default"])({ start, end }); 20463 const disabledDates = daysInBetween.filter((date) => isDisabled(date)).length; 20464 const diff = Math.abs(absoluteDiff < 0 ? absoluteDiff + 1 : absoluteDiff - 1) - disabledDates; 20465 if (props.minRange && props.maxRange) 20466 return diff >= +props.minRange && diff <= +props.maxRange; 20467 if (props.minRange) 20468 return diff >= +props.minRange; 20469 if (props.maxRange) 20470 return diff <= +props.maxRange; 20471 } 20472 return true; 20473 }; 20474 const getRangeWithFixedDate = (date) => { 20475 if (Array.isArray(modelValue.value) && modelValue.value.length === 2) { 20476 if (props.fixedStart && (isDateAfter(date, modelValue.value[0]) || isDateEqual(date, modelValue.value[0]))) { 20477 return [modelValue.value[0], date]; 20478 } 20479 if (props.fixedEnd && (isDateBefore(date, modelValue.value[1]) || isDateEqual(date, modelValue.value[1]))) { 20480 return [date, modelValue.value[1]]; 20481 } 20482 return modelValue.value; 20483 } 20484 return []; 20485 }; 20486 const autoApply = () => { 20487 if (props.autoApply) { 20488 emit("autoApply"); 20489 } 20490 }; 20491 const isDateRangeAllowed = (range) => { 20492 const datesInBetween = (0,date_fns__WEBPACK_IMPORTED_MODULE_32__["default"])({ start: range[0], end: range[1] }); 20493 return !datesInBetween.some((date) => isDisabled(date)); 20494 }; 20495 const selectDate = (day, isNext = false) => { 20496 if (isDisabled(day.value)) { 20497 return; 20498 } 20499 if (!day.current && props.hideOffsetDates) { 20500 return; 20501 } 20502 if (props.weekPicker) { 20503 modelValue.value = getWeekFromDate(new Date(day.value), +props.weekStart); 20504 return autoApply(); 20505 } 20506 if (!props.range && !isNumberArray(hours.value) && !isNumberArray(minutes.value)) { 20507 const date = setDateTime(new Date(day.value), hours.value, minutes.value, getSecondsValue()); 20508 if (props.multiDates) { 20509 handleMultiDateSelect(date); 20510 } else { 20511 modelValue.value = date; 20512 } 20513 updateFlow(); 20514 autoApply(); 20515 } else if (isNumberArray(hours.value) && isNumberArray(minutes.value) && !props.multiDates) { 20516 let rangeDate = modelValue.value ? modelValue.value.slice() : []; 20517 if (rangeDate.length === 2 && !(props.fixedStart || props.fixedEnd)) { 20518 rangeDate = []; 20519 } 20520 if (props.autoRange) { 20521 const autoRange = [new Date(day.value), (0,date_fns__WEBPACK_IMPORTED_MODULE_27__["default"])(new Date(day.value), +props.autoRange)]; 20522 if (isDateRangeAllowed(autoRange)) { 20523 if (isNext) { 20524 handleNextCalendarAutoRange(day.value); 20525 } 20526 rangeDate = autoRange; 20527 } 20528 } else if (props.fixedStart || props.fixedEnd) { 20529 rangeDate = getRangeWithFixedDate(new Date(day.value)); 20530 } else { 20531 if (!rangeDate[0]) { 20532 rangeDate[0] = new Date(day.value); 20533 } else if (checkMinMaxRange(new Date(day.value))) { 20534 if (isDateBefore(new Date(day.value), new Date(rangeDate[0]))) { 20535 rangeDate.unshift(new Date(day.value)); 20536 } else { 20537 rangeDate[1] = new Date(day.value); 20538 } 20539 } 20540 } 20541 if (rangeDate.length) { 20542 if (rangeDate[0] && !rangeDate[1]) { 20543 rangeDate[0] = setDateTime(rangeDate[0], hours.value[0], minutes.value[0], getSecondsValue()); 20544 } else { 20545 rangeDate[0] = setDateTime(rangeDate[0], hours.value[0], minutes.value[0], getSecondsValue()); 20546 rangeDate[1] = setDateTime(rangeDate[1], hours.value[1], minutes.value[1], getSecondsValue(false)); 20547 updateFlow(); 20548 } 20549 modelValue.value = rangeDate; 20550 if (rangeDate[0] && rangeDate[1] && props.autoApply) { 20551 emit("autoApply"); 20552 } 20553 } 20554 } 20555 }; 20556 const getWeekNum = (days) => { 20557 const firstCurrentData = days.find((day) => day.current); 20558 if (firstCurrentData) { 20559 return (0,date_fns__WEBPACK_IMPORTED_MODULE_33__["default"])(firstCurrentData.value); 20560 } 20561 return ""; 20562 }; 20563 const setHoverDate = (day) => { 20564 if (!day.current && props.hideOffsetDates) { 20565 return; 20566 } 20567 hoveredDate.value = day.value; 20568 }; 20569 const isHoverRangeEnd = (day) => { 20570 if (props.autoRange || props.weekPicker) { 20571 if (hoveredDate.value) { 20572 if (props.hideOffsetDates && !day.current) 20573 return false; 20574 const rangeEnd = (0,date_fns__WEBPACK_IMPORTED_MODULE_27__["default"])(hoveredDate.value, +props.autoRange); 20575 const range = getWeekFromDate(new Date(hoveredDate.value), +props.weekStart); 20576 return props.weekPicker ? isDateEqual(range[1], new Date(day.value)) : isDateEqual(rangeEnd, new Date(day.value)); 20577 } 20578 return false; 20579 } 20580 return false; 20581 }; 20582 const isAutoRangeInBetween = (day) => { 20583 if (props.autoRange || props.weekPicker) { 20584 if (hoveredDate.value) { 20585 const rangeEnd = (0,date_fns__WEBPACK_IMPORTED_MODULE_27__["default"])(hoveredDate.value, +props.autoRange); 20586 if (props.hideOffsetDates && !day.current) 20587 return false; 20588 const range = getWeekFromDate(new Date(hoveredDate.value), +props.weekStart); 20589 return props.weekPicker ? isDateAfter(day.value, range[0]) && isDateBefore(day.value, range[1]) : isDateAfter(day.value, hoveredDate.value) && isDateBefore(day.value, rangeEnd); 20590 } 20591 return false; 20592 } 20593 return false; 20594 }; 20595 const isAutoRangeStart = (day) => { 20596 if (props.autoRange || props.weekPicker) { 20597 if (hoveredDate.value) { 20598 if (props.hideOffsetDates && !day.current) 20599 return false; 20600 const range = getWeekFromDate(new Date(hoveredDate.value), +props.weekStart); 20601 return props.weekPicker ? isDateEqual(range[0], day.value) : isDateEqual(hoveredDate.value, day.value); 20602 } 20603 return false; 20604 } 20605 return false; 20606 }; 20607 const autoChangeMultiCalendars = (instance) => { 20608 for (let i = instance - 1; i >= 0; i--) { 20609 const date = (0,date_fns__WEBPACK_IMPORTED_MODULE_28__["default"])((0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(), { month: month.value(i + 1), year: year.value(i + 1) }), 1); 20610 setCalendarMonthYear(i, (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(date), (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(date)); 20611 } 20612 for (let i = instance + 1; i <= props.multiCalendars - 1; i++) { 20613 const date = (0,date_fns__WEBPACK_IMPORTED_MODULE_8__["default"])((0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(), { month: month.value(i - 1), year: year.value(i - 1) }), 1); 20614 setCalendarMonthYear(i, (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(date), (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(date)); 20615 } 20616 }; 20617 const getMonthYearValue = (instance) => { 20618 return setDateMonthOrYear(new Date(), month.value(instance), year.value(instance)); 20619 }; 20620 const updateMonthYear = (instance, val) => { 20621 const isValueChange = props.monthPicker ? month.value(instance) !== val.month : year.value(instance) !== val.year; 20622 setCalendarMonth(instance, val.month); 20623 setCalendarYear(instance, val.year); 20624 if (props.multiCalendars && !props.multiCalendarsSolo) { 20625 autoChangeMultiCalendars(instance); 20626 } 20627 if (props.monthPicker || props.yearPicker) { 20628 if (props.range) { 20629 if (isValueChange) { 20630 let rangeDate = modelValue.value ? modelValue.value.slice() : []; 20631 if (rangeDate.length === 2 && rangeDate[1] !== null) { 20632 rangeDate = []; 20633 } 20634 if (!rangeDate.length) { 20635 rangeDate = [getMonthYearValue(instance)]; 20636 } else { 20637 if (isDateBefore(getMonthYearValue(instance), rangeDate[0])) { 20638 rangeDate.unshift(getMonthYearValue(instance)); 20639 } else { 20640 rangeDate[1] = getMonthYearValue(instance); 20641 } 20642 } 20643 modelValue.value = rangeDate; 20644 } 20645 } else { 20646 modelValue.value = getMonthYearValue(instance); 20647 } 20648 } 20649 updateFlow(); 20650 emit("updateMonthYear", { instance, month: val.month, year: val.year }); 20651 triggerCalendarTransition(props.multiCalendarsSolo ? instance : void 0); 20652 }; 20653 const getSetDateTime = (dateValue) => { 20654 return setDateTime(dateValue, hours.value, minutes.value, getSecondsValue()); 20655 }; 20656 const handleTimeUpdate = (dateValue) => { 20657 if (isModelValueRange(dateValue) && isModelValueRange(modelValue.value) && isNumberArray(hours.value) && isNumberArray(minutes.value)) { 20658 if (dateValue[0] && modelValue.value[0]) { 20659 modelValue.value[0] = setDateTime(dateValue[0], hours.value[0], minutes.value[0], getSecondsValue()); 20660 } 20661 if (dateValue[1] && modelValue.value[1]) { 20662 modelValue.value[1] = setDateTime(dateValue[1], hours.value[1], minutes.value[1], getSecondsValue(false)); 20663 } 20664 } else if (props.multiDates && Array.isArray(modelValue.value)) { 20665 modelValue.value[modelValue.value.length - 1] = getSetDateTime(dateValue); 20666 } else if (!props.range && !isRange(dateValue)) { 20667 modelValue.value = getSetDateTime(dateValue); 20668 } 20669 emit("timeUpdate"); 20670 }; 20671 const updateTime = (value, isHours = true, isSeconds = false) => { 20672 const hoursCp = isHours ? value : hours.value; 20673 const minutesCp = !isHours && !isSeconds ? value : minutes.value; 20674 const secondsCp = isSeconds ? value : seconds.value; 20675 if (props.range && isRange(modelValue.value) && isNumberArray(hoursCp) && isNumberArray(minutesCp) && isNumberArray(secondsCp) && !props.disableTimeRangeValidation) { 20676 const setTime = (index) => setDateTime(modelValue.value[index], hoursCp[index], minutesCp[index], secondsCp[index]); 20677 const resetMilliseconds = (index) => (0,date_fns__WEBPACK_IMPORTED_MODULE_7__["default"])(modelValue.value[index], 0); 20678 if (isDateEqual(modelValue.value[0], modelValue.value[1]) && ((0,date_fns__WEBPACK_IMPORTED_MODULE_17__["default"])(setTime(0), resetMilliseconds(1)) || (0,date_fns__WEBPACK_IMPORTED_MODULE_18__["default"])(setTime(1), resetMilliseconds(0)))) { 20679 return; 20680 } 20681 } 20682 hours.value = hoursCp; 20683 minutes.value = minutesCp; 20684 seconds.value = secondsCp; 20685 if (modelValue.value) { 20686 if (props.multiDates) { 20687 const lastEntry = multiDatesLast(); 20688 if (lastEntry) { 20689 handleTimeUpdate(lastEntry); 20690 } 20691 } else { 20692 handleTimeUpdate(modelValue.value); 20693 } 20694 } else if (props.timePicker) { 20695 handleTimeUpdate(props.range ? [new Date(), new Date()] : new Date()); 20696 } 20697 updateFlow(); 20698 }; 20699 const clearHoverDate = () => { 20700 hoveredDate.value = null; 20701 }; 20702 const checkRangeDirection = (isStart) => { 20703 if (modelValueIsRange(modelValue.value, props.range) && modelValue.value[0] && hoveredDate.value) { 20704 return isStart ? isDateAfter(hoveredDate.value, modelValue.value[0]) : isDateBefore(hoveredDate.value, modelValue.value[0]); 20705 } 20706 return true; 20707 }; 20708 const rangeActiveStartEnd = (day, isStart = true) => { 20709 if ((props.range || props.weekPicker) && isRange(modelValue.value)) { 20710 if (props.hideOffsetDates && !day.current) 20711 return false; 20712 return isDateEqual(new Date(day.value), modelValue.value[isStart ? 0 : 1]); 20713 } else if (props.range) { 20714 return isDateEqual(new Date(day.value), modelValue.value && Array.isArray(modelValue.value) ? isStart ? modelValue.value[0] || null : modelValue.value[1] : null) && (isStart ? !isDateBefore(hoveredDate.value || null, Array.isArray(modelValue.value) ? modelValue.value[0] : null) : true) || isDateEqual(day.value, Array.isArray(modelValue.value) ? modelValue.value[0] : null) && checkRangeDirection(isStart); 20715 } 20716 return false; 20717 }; 20718 const isHoverDate = (disabled, calendarDay) => { 20719 return Array.isArray(props.internalModelValue) && props.internalModelValue.length || props.weekPicker ? false : !disabled && !isActiveDate(calendarDay) && !(!calendarDay.current && props.hideOffsetDates) && (props.range ? !rangeActiveStartEnd(calendarDay) && !rangeActiveStartEnd(calendarDay, false) : true); 20720 }; 20721 const isHoverDateStartEnd = (dateIsHovered, calendarDay, start) => { 20722 if (Array.isArray(props.internalModelValue) && props.internalModelValue[0] && props.internalModelValue.length === 1) { 20723 if (dateIsHovered) { 20724 return false; 20725 } 20726 return start ? isDateAfter(props.internalModelValue[0], calendarDay.value) : isDateBefore(props.internalModelValue[0], calendarDay.value); 20727 } 20728 return false; 20729 }; 20730 const monthYearSelect = (isYear = false) => { 20731 if (props.autoApply && (props.monthPicker || props.yearPicker)) { 20732 (0,vue__WEBPACK_IMPORTED_MODULE_0__.nextTick)().then(() => { 20733 if (props.range) { 20734 emit("autoApply", isYear || !modelValue.value || modelValue.value.length === 1); 20735 } else { 20736 emit("autoApply", isYear); 20737 } 20738 }); 20739 } 20740 }; 20741 const autoChangeMonth = (increment, instance) => { 20742 const initialDate = (0,date_fns__WEBPACK_IMPORTED_MODULE_21__["default"])(new Date(), { month: month.value(instance), year: year.value(instance) }); 20743 const date = increment < 0 ? (0,date_fns__WEBPACK_IMPORTED_MODULE_8__["default"])(initialDate, 1) : (0,date_fns__WEBPACK_IMPORTED_MODULE_28__["default"])(initialDate, 1); 20744 if (validateMonthYearInRange(props.minDate, props.maxDate, (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(date), (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(date), increment < 0, props.preventMinMaxNavigation)) { 20745 setCalendarMonthYear(instance, (0,date_fns__WEBPACK_IMPORTED_MODULE_9__["default"])(date), (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(date)); 20746 if (props.multiCalendars && !props.multiCalendarsSolo) { 20747 autoChangeMultiCalendars(instance); 20748 } 20749 triggerCalendarTransition(); 20750 } 20751 }; 20752 const handleScroll = (event, instance) => { 20753 if (props.monthChangeOnScroll) { 20754 autoChangeMonth(props.monthChangeOnScroll !== "inverse" ? -event.deltaY : event.deltaY, instance); 20755 } 20756 }; 20757 const handleArrow = (arrow, instance, vertical = false) => { 20758 if (props.monthChangeOnArrows && props.vertical === vertical) { 20759 handleSwipe(arrow, instance); 20760 } 20761 }; 20762 const handleSwipe = (direction, instance) => { 20763 autoChangeMonth(direction === "right" ? -1 : 1, instance); 20764 }; 20765 const getMarker = (date) => props.markers.find((marker) => isDateEqual(sanitizeDate(date.value), sanitizeDate(marker.date))); 20766 const selectCurrentDate = () => { 20767 if (!props.range) { 20768 emit("update:internalModelValue", new Date()); 20769 } else if (modelValueIsRange(modelValue.value, props.range)) { 20770 if (modelValue.value && modelValue.value[0]) { 20771 modelValue.value = isDateBefore(new Date(), modelValue.value[0]) ? [new Date(), modelValue.value[0]] : [modelValue.value[0], new Date()]; 20772 } else { 20773 modelValue.value = [new Date()]; 20774 } 20775 } 20776 if (props.autoApply) { 20777 emit("selectDate"); 20778 } 20779 }; 20780 const presetDateRange = (dates) => { 20781 if (dates.length && dates.length <= 2 && props.range) { 20782 modelValue.value = dates.map((date) => new Date(date)); 20783 if (props.autoApply) { 20784 emit("selectDate"); 20785 } 20786 } 20787 }; 20788 const triggerCalendarTransition = (instance) => { 20789 if (instance || instance === 0) { 20790 calendarRefs.value[instance].triggerTransition(month.value(instance), year.value(instance)); 20791 } else { 20792 calendarRefs.value.forEach((refVal, i) => refVal.triggerTransition(month.value(i), year.value(i))); 20793 } 20794 }; 20795 return { 20796 today, 20797 hours, 20798 minutes, 20799 seconds, 20800 month, 20801 year, 20802 monthYearSelect, 20803 isDisabled, 20804 updateTime, 20805 setHoverDate, 20806 getWeekNum, 20807 selectDate, 20808 rangeActive, 20809 isActiveDate, 20810 updateMonthYear, 20811 isHoverRangeEnd, 20812 isAutoRangeInBetween, 20813 isAutoRangeStart, 20814 clearHoverDate, 20815 rangeActiveStartEnd, 20816 handleScroll, 20817 getMarker, 20818 handleArrow, 20819 handleSwipe, 20820 selectCurrentDate, 20821 isHoverDate, 20822 isHoverDateStartEnd, 20823 presetDateRange 20824 }; 20825}; 20826const store = (0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)({ 20827 menuFocused: false, 20828 shiftKeyInMenu: false 20829}); 20830const useStore = () => { 20831 const setMenuFocused = (value) => { 20832 store.menuFocused = value; 20833 }; 20834 const setShiftKey = (value) => { 20835 if (store.shiftKeyInMenu === value) 20836 return; 20837 store.shiftKeyInMenu = value; 20838 }; 20839 const getStore = () => store; 20840 return { 20841 setMenuFocused, 20842 getStore, 20843 setShiftKey 20844 }; 20845}; 20846const _hoisted_1 = ["id", "aria-label", "onKeydown"]; 20847const _hoisted_2 = { 20848 key: 0, 20849 class: "dp__preset_ranges" 20850}; 20851const _hoisted_3 = ["onClick"]; 20852const _hoisted_4 = { 20853 key: 1, 20854 class: "dp__now_wrap" 20855}; 20856const _sfc_main$1 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 20857 __name: "DatepickerMenu", 20858 props: { 20859 ...MenuProps, 20860 ...SharedProps, 20861 ...ControlProps, 20862 internalModelValue: { type: [Date, Array], default: null }, 20863 multiCalendars: { type: Number, default: 0 }, 20864 openOnTop: { type: Boolean, default: false } 20865 }, 20866 emits: [ 20867 "update:internalModelValue", 20868 "closePicker", 20869 "selectDate", 20870 "dpOpen", 20871 "autoApply", 20872 "timeUpdate", 20873 "flow-step", 20874 "updateMonthYear" 20875 ], 20876 setup(__props, { emit }) { 20877 const props = __props; 20878 const slots2 = (0,vue__WEBPACK_IMPORTED_MODULE_0__.useSlots)(); 20879 const calendarWrapperRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 20880 const childrenMounted = (0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)({ 20881 timePicker: !!(!props.enableTimePicker || props.timePicker || props.monthPicker), 20882 monthYearInput: !!props.timePicker, 20883 calendar: false 20884 }); 20885 const monthYearPickerRefs = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([]); 20886 const calendarRefs = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([]); 20887 const timePickerRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 20888 const dpMenuRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 20889 const calendarWidth = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(0); 20890 const menuMount = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 20891 const flowStep = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(0); 20892 const transitions = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(transitionsKey); 20893 const ariaLabels = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(ariaLabelsKey); 20894 const arrowNavigation = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(arrowNavigationKey); 20895 const { setMenuFocused, setShiftKey, getStore } = useStore(); 20896 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => { 20897 var _a; 20898 menuMount.value = true; 20899 if (!((_a = props.presetRanges) == null ? void 0 : _a.length)) { 20900 getCalendarWidth(); 20901 } 20902 const menu = unrefElement(dpMenuRef); 20903 if (menu && !props.textInput && !props.inline) { 20904 setMenuFocused(true); 20905 focusMenu(); 20906 } 20907 if (menu) { 20908 const stopDefault = (event) => { 20909 event.stopImmediatePropagation(); 20910 event.stopPropagation(); 20911 }; 20912 menu.addEventListener("pointerdown", stopDefault); 20913 menu.addEventListener("mousedown", stopDefault); 20914 } 20915 document.addEventListener("resize", getCalendarWidth); 20916 }); 20917 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onUnmounted)(() => { 20918 document.removeEventListener("resize", getCalendarWidth); 20919 }); 20920 const { arrowRight, arrowLeft, arrowDown, arrowUp } = useArrowNavigation(); 20921 const focusMenu = () => { 20922 const menu = unrefElement(dpMenuRef); 20923 if (menu) { 20924 menu.focus({ preventScroll: true }); 20925 } 20926 }; 20927 const updateFlowStep = () => { 20928 var _a; 20929 if (((_a = props.flow) == null ? void 0 : _a.length) && flowStep.value !== -1) { 20930 flowStep.value += 1; 20931 emit("flow-step", flowStep.value); 20932 handleFlow(); 20933 } 20934 }; 20935 const resetFlow = () => { 20936 flowStep.value = -1; 20937 }; 20938 const { 20939 updateTime, 20940 updateMonthYear, 20941 today, 20942 month, 20943 year, 20944 hours, 20945 minutes, 20946 seconds, 20947 isDisabled, 20948 isActiveDate, 20949 selectDate, 20950 getWeekNum, 20951 setHoverDate, 20952 isHoverRangeEnd, 20953 isAutoRangeInBetween, 20954 isAutoRangeStart, 20955 rangeActive, 20956 clearHoverDate, 20957 rangeActiveStartEnd, 20958 monthYearSelect, 20959 handleScroll, 20960 handleArrow, 20961 handleSwipe, 20962 getMarker, 20963 selectCurrentDate, 20964 isHoverDateStartEnd, 20965 isHoverDate, 20966 presetDateRange 20967 } = useCalendar(props, emit, updateFlowStep, calendarRefs); 20968 const calendarSlots = mapSlots(slots2, "calendar"); 20969 const actionSlots = mapSlots(slots2, "action"); 20970 const timePickerSlots = mapSlots(slots2, "timePicker"); 20971 const monthYearSlots = mapSlots(slots2, "monthYear"); 20972 const arrowClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => !props.openOnTop ? "dp__arrow_top" : "dp__arrow_bottom"); 20973 const years = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 20974 return getYears(props.yearRange); 20975 }); 20976 const months = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 20977 return getMonths(props.locale, props.monthNameFormat); 20978 }); 20979 const getCalendarWidth = () => { 20980 const el = unrefElement(calendarWrapperRef); 20981 if (el) { 20982 calendarWidth.value = el.getBoundingClientRect().width; 20983 } 20984 }; 20985 const dates = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (instance) => getCalendarDays(month.value(instance), year.value(instance), +props.weekStart, props.hideOffsetDates)); 20986 const calendarAmm = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.multiCalendars > 0 && props.range ? [...Array(props.multiCalendars).keys()] : [0]); 20987 const isFirstInstance = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (instance) => instance === 1); 20988 const specificMode = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.monthPicker || props.timePicker || props.yearPicker); 20989 const menuCalendarClassWrapper = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 20990 dp__flex_display: props.multiCalendars > 0 20991 })); 20992 const calendarInstanceClassWrapper = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 20993 dp__instance_calendar: props.multiCalendars > 0 20994 })); 20995 const disabledReadonlyOverlay = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 20996 dp__menu_disabled: props.disabled, 20997 dp__menu_readonly: props.readonly 20998 })); 20999 const mappedDates = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => (instance) => mapDates(dates, instance)); 21000 const calendarProps = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 21001 locale: props.locale, 21002 weekNumName: props.weekNumName, 21003 weekStart: props.weekStart, 21004 weekNumbers: props.weekNumbers, 21005 customProps: props.customProps, 21006 calendarClassName: props.calendarClassName, 21007 specificMode: specificMode.value, 21008 getWeekNum, 21009 multiCalendars: props.multiCalendars, 21010 modeHeight: props.modeHeight, 21011 internalModelValue: props.internalModelValue, 21012 noSwipe: props.noSwipe, 21013 vertical: props.vertical, 21014 dayNames: props.dayNames, 21015 monthChangeOnScroll: props.monthChangeOnScroll 21016 })); 21017 const dpMenuClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 21018 dp__menu: true, 21019 dp__menu_index: !props.inline, 21020 dp__relative: props.inline, 21021 [props.menuClassName]: !!props.menuClassName 21022 })); 21023 const isSingleInModelAuto = () => { 21024 if (props.modelAuto && Array.isArray(props.internalModelValue)) { 21025 return !!props.internalModelValue[0]; 21026 } 21027 return false; 21028 }; 21029 const isModelAutoActive = () => { 21030 if (props.modelAuto) 21031 return isModelAuto(props.internalModelValue); 21032 return true; 21033 }; 21034 const mapDates = (dates2, instance) => { 21035 return dates2.value(instance).map((date) => { 21036 return { 21037 ...date, 21038 days: date.days.map((calendarDay) => { 21039 const disabled = isDisabled(calendarDay.value); 21040 const dateHover = isHoverDate(disabled, calendarDay); 21041 const isActive = props.range ? props.modelAuto ? isSingleInModelAuto() && isActiveDate(calendarDay) : false : isActiveDate(calendarDay); 21042 const isBetween = (props.range || props.weekPicker) && (props.multiCalendars > 0 ? calendarDay.current : true) && !disabled && isModelAutoActive() && !(!calendarDay.current && props.hideOffsetDates) && !isActiveDate(calendarDay) ? rangeActive(calendarDay) : false; 21043 calendarDay.marker = getMarker(calendarDay); 21044 calendarDay.classData = { 21045 dp__cell_offset: !calendarDay.current, 21046 dp__pointer: !disabled && !(!calendarDay.current && props.hideOffsetDates), 21047 dp__active_date: isActive, 21048 dp__date_hover: dateHover, 21049 dp__date_hover_start: isHoverDateStartEnd(dateHover, calendarDay, true), 21050 dp__date_hover_end: isHoverDateStartEnd(dateHover, calendarDay, false), 21051 dp__range_between: isBetween && !props.weekPicker, 21052 dp__range_between_week: isBetween && props.weekPicker, 21053 dp__today: !props.noToday && isDateEqual(calendarDay.value, today.value) && calendarDay.current, 21054 dp__cell_disabled: disabled, 21055 dp__cell_auto_range: isAutoRangeInBetween(calendarDay), 21056 dp__cell_auto_range_start: isAutoRangeStart(calendarDay), 21057 dp__cell_auto_range_end: isHoverRangeEnd(calendarDay), 21058 dp__range_start: props.multiCalendars > 0 ? calendarDay.current && rangeActiveStartEnd(calendarDay) && isModelAutoActive() : rangeActiveStartEnd(calendarDay) && isModelAutoActive(), 21059 dp__range_end: props.multiCalendars > 0 ? calendarDay.current && rangeActiveStartEnd(calendarDay, false) && isModelAutoActive() : rangeActiveStartEnd(calendarDay, false) && isModelAutoActive(), 21060 [props.calendarCellClassName]: !!props.calendarCellClassName, 21061 dp__cell_highlight: props.highlight ? matchDate(calendarDay.value, props.highlight) && !isActive : false 21062 }; 21063 return calendarDay; 21064 }) 21065 }; 21066 }); 21067 }; 21068 const handleDpMenuClick = (e) => { 21069 e.stopPropagation(); 21070 e.preventDefault(); 21071 e.stopImmediatePropagation(); 21072 }; 21073 const handleEsc = () => { 21074 if (props.escClose) { 21075 emit("closePicker"); 21076 } 21077 }; 21078 const handleSpace = (event) => { 21079 event.stopImmediatePropagation(); 21080 event.preventDefault(); 21081 if (props.spaceConfirm) { 21082 emit("selectDate"); 21083 } 21084 }; 21085 const childMount = (cmp) => { 21086 var _a; 21087 if ((_a = props.flow) == null ? void 0 : _a.length) { 21088 childrenMounted[cmp] = true; 21089 if (!Object.keys(childrenMounted).filter((key) => !childrenMounted[key]).length) { 21090 handleFlow(); 21091 } 21092 } 21093 }; 21094 const handleFlow = () => { 21095 if (props.flow[flowStep.value] === "month") { 21096 if (monthYearPickerRefs.value[0]) { 21097 monthYearPickerRefs.value[0].toggleMonthPicker(true); 21098 } 21099 } 21100 if (props.flow[flowStep.value] === "year") { 21101 if (monthYearPickerRefs.value) { 21102 monthYearPickerRefs.value[0].toggleYearPicker(true); 21103 } 21104 } 21105 if (props.flow[flowStep.value] === "calendar") { 21106 if (timePickerRef.value) { 21107 timePickerRef.value.toggleTimePicker(false, true); 21108 } 21109 } 21110 if (props.flow[flowStep.value] === "time") { 21111 if (timePickerRef.value) { 21112 timePickerRef.value.toggleTimePicker(true, true); 21113 } 21114 } 21115 const flowValue = props.flow[flowStep.value]; 21116 if (flowValue === "hours" || flowValue === "minutes" || flowValue === "seconds") { 21117 if (timePickerRef.value) { 21118 timePickerRef.value.toggleTimePicker(true, true, flowValue); 21119 } 21120 } 21121 }; 21122 const handleArrowKey = (arrow) => { 21123 if (arrowNavigation == null ? void 0 : arrowNavigation.value) { 21124 if (arrow === "up") 21125 return arrowUp(); 21126 if (arrow === "down") 21127 return arrowDown(); 21128 if (arrow === "left") 21129 return arrowLeft(); 21130 if (arrow === "right") 21131 return arrowRight(); 21132 } else { 21133 if (arrow === "left" || arrow === "up") { 21134 handleArrow("left", 0, arrow === "up"); 21135 } else { 21136 handleArrow("right", 0, arrow === "down"); 21137 } 21138 } 21139 }; 21140 const checkShiftKey = (ev) => { 21141 setShiftKey(ev.shiftKey); 21142 if (!props.disableMonthYearSelect && ev.code === "Tab") { 21143 if (ev.target.classList.contains("dp__menu") && getStore().shiftKeyInMenu) { 21144 ev.preventDefault(); 21145 ev.stopImmediatePropagation(); 21146 emit("closePicker"); 21147 } 21148 } 21149 }; 21150 return (_ctx, _cache) => { 21151 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Transition, { 21152 appear: "", 21153 name: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(transitions).menuAppear, 21154 mode: "out-in", 21155 css: !!(0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(transitions) 21156 }, { 21157 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 21158 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 21159 id: _ctx.uid ? `dp-menu-${_ctx.uid}` : void 0, 21160 tabindex: "0", 21161 ref_key: "dpMenuRef", 21162 ref: dpMenuRef, 21163 role: "dialog", 21164 "aria-label": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(ariaLabels).menu, 21165 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(dpMenuClass)), 21166 onMouseleave: _cache[11] || (_cache[11] = (...args) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(clearHoverDate) && (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(clearHoverDate)(...args)), 21167 onClick: handleDpMenuClick, 21168 onKeydown: [ 21169 (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(handleEsc, ["esc"]), 21170 (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(handleSpace, ["space"]), 21171 _cache[12] || (_cache[12] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(($event) => handleArrowKey("left"), ["prevent"]), ["left"])), 21172 _cache[13] || (_cache[13] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(($event) => handleArrowKey("up"), ["prevent"]), ["up"])), 21173 _cache[14] || (_cache[14] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(($event) => handleArrowKey("down"), ["prevent"]), ["down"])), 21174 _cache[15] || (_cache[15] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(($event) => handleArrowKey("right"), ["prevent"]), ["right"])), 21175 checkShiftKey 21176 ] 21177 }, [ 21178 (_ctx.disabled || _ctx.readonly) && _ctx.inline ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 21179 key: 0, 21180 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(disabledReadonlyOverlay)) 21181 }, null, 2)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 21182 !_ctx.inline ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 21183 key: 1, 21184 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(arrowClass)) 21185 }, null, 2)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 21186 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 21187 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.presetRanges.length ? "dp__menu_content_wrapper" : null) 21188 }, [ 21189 _ctx.presetRanges.length ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_2, [ 21190 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(_ctx.presetRanges, (preset, i) => { 21191 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 21192 key: i, 21193 style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)(preset.style || {}), 21194 class: "dp__preset_range", 21195 onClick: ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(presetDateRange)(preset.range) 21196 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(preset.label), 13, _hoisted_3); 21197 }), 128)) 21198 ])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 21199 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 21200 class: "dp__instance_calendar", 21201 ref_key: "calendarWrapperRef", 21202 ref: calendarWrapperRef, 21203 role: "document" 21204 }, [ 21205 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 21206 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(menuCalendarClassWrapper)) 21207 }, [ 21208 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(calendarAmm), (instance, i) => { 21209 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 21210 key: instance, 21211 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(calendarInstanceClassWrapper)) 21212 }, [ 21213 !_ctx.disableMonthYearSelect && !_ctx.timePicker ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent)(_ctx.monthYearComponent ? _ctx.monthYearComponent : _sfc_main$2), (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ 21214 key: 0, 21215 ref_for: true, 21216 ref: (el) => { 21217 if (el) 21218 monthYearPickerRefs.value[i] = el; 21219 } 21220 }, { 21221 months: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(months), 21222 years: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(years), 21223 filters: _ctx.filters, 21224 monthPicker: _ctx.monthPicker, 21225 month: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(month)(instance), 21226 year: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(year)(instance), 21227 customProps: _ctx.customProps, 21228 multiCalendars: __props.multiCalendars, 21229 multiCalendarsSolo: _ctx.multiCalendarsSolo, 21230 instance, 21231 minDate: _ctx.minDate, 21232 maxDate: _ctx.maxDate, 21233 preventMinMaxNavigation: _ctx.preventMinMaxNavigation, 21234 internalModelValue: __props.internalModelValue, 21235 range: _ctx.range, 21236 reverseYears: _ctx.reverseYears, 21237 vertical: _ctx.vertical, 21238 yearPicker: _ctx.yearPicker 21239 }, { 21240 onMount: _cache[0] || (_cache[0] = ($event) => childMount("monthYearInput")), 21241 onResetFlow: resetFlow, 21242 onUpdateMonthYear: ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(updateMonthYear)(instance, $event), 21243 onMonthYearSelect: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(monthYearSelect), 21244 onOverlayClosed: focusMenu 21245 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ _: 2 }, [ 21246 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(monthYearSlots), (slot, j) => { 21247 return { 21248 name: slot, 21249 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)((args) => [ 21250 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, slot, (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,vue__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps)(args))) 21251 ]) 21252 }; 21253 }) 21254 ]), 1040, ["onUpdateMonthYear", "onMonthYearSelect"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 21255 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_sfc_main$9, (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ 21256 ref_for: true, 21257 ref: (el) => { 21258 if (el) 21259 calendarRefs.value[i] = el; 21260 } 21261 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(calendarProps), { 21262 "flow-step": flowStep.value, 21263 "onUpdate:flow-step": _cache[1] || (_cache[1] = ($event) => flowStep.value = $event), 21264 instance, 21265 "mapped-dates": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(mappedDates)(instance), 21266 month: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(month)(instance), 21267 year: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(year)(instance), 21268 onSelectDate: ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(selectDate)($event, !(0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(isFirstInstance)(instance)), 21269 onSetHoverDate: _cache[2] || (_cache[2] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(setHoverDate)($event)), 21270 onHandleScroll: ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(handleScroll)($event, instance), 21271 onHandleSwipe: ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(handleSwipe)($event, instance), 21272 onMount: _cache[3] || (_cache[3] = ($event) => childMount("calendar")), 21273 onResetFlow: resetFlow 21274 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ _: 2 }, [ 21275 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(calendarSlots), (slot, j) => { 21276 return { 21277 name: slot, 21278 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)((args) => [ 21279 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, slot, (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,vue__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps)({ ...args }))) 21280 ]) 21281 }; 21282 }) 21283 ]), 1040, ["flow-step", "instance", "mapped-dates", "month", "year", "onSelectDate", "onHandleScroll", "onHandleSwipe"]) 21284 ], 2); 21285 }), 128)) 21286 ], 2), 21287 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, [ 21288 _ctx.enableTimePicker && !_ctx.monthPicker && !_ctx.weekPicker ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent)(_ctx.timePickerComponent ? _ctx.timePickerComponent : _sfc_main$5), (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ 21289 key: 0, 21290 ref_key: "timePickerRef", 21291 ref: timePickerRef 21292 }, { 21293 is24: _ctx.is24, 21294 hoursIncrement: _ctx.hoursIncrement, 21295 minutesIncrement: _ctx.minutesIncrement, 21296 hoursGridIncrement: _ctx.hoursGridIncrement, 21297 secondsIncrement: _ctx.secondsIncrement, 21298 minutesGridIncrement: _ctx.minutesGridIncrement, 21299 secondsGridIncrement: _ctx.secondsGridIncrement, 21300 noHoursOverlay: _ctx.noHoursOverlay, 21301 noMinutesOverlay: _ctx.noMinutesOverlay, 21302 noSecondsOverlay: _ctx.noSecondsOverlay, 21303 range: _ctx.range, 21304 filters: _ctx.filters, 21305 timePicker: _ctx.timePicker, 21306 hours: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(hours), 21307 minutes: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(minutes), 21308 seconds: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(seconds), 21309 customProps: _ctx.customProps, 21310 enableSeconds: _ctx.enableSeconds, 21311 fixedStart: _ctx.fixedStart, 21312 fixedEnd: _ctx.fixedEnd, 21313 modelAuto: _ctx.modelAuto, 21314 internalModelValue: __props.internalModelValue 21315 }, { 21316 onMount: _cache[4] || (_cache[4] = ($event) => childMount("timePicker")), 21317 "onUpdate:hours": _cache[5] || (_cache[5] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(updateTime)($event)), 21318 "onUpdate:minutes": _cache[6] || (_cache[6] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(updateTime)($event, false)), 21319 "onUpdate:seconds": _cache[7] || (_cache[7] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(updateTime)($event, false, true)), 21320 onResetFlow: resetFlow, 21321 onOverlayClosed: focusMenu 21322 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ _: 2 }, [ 21323 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(timePickerSlots), (slot, i) => { 21324 return { 21325 name: slot, 21326 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)((args) => [ 21327 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, slot, (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,vue__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps)(args))) 21328 ]) 21329 }; 21330 }) 21331 ]), 1040)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 21332 ]) 21333 ], 512), 21334 _ctx.showNowButton ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_4, [ 21335 _ctx.$slots["now-button"] ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "now-button", { 21336 key: 0, 21337 selectCurrentDate: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(selectCurrentDate) 21338 }) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true), 21339 !_ctx.$slots["now-button"] ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", { 21340 key: 1, 21341 type: "button", 21342 role: "button", 21343 class: "dp__now_button", 21344 onClick: _cache[8] || (_cache[8] = (...args) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(selectCurrentDate) && (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(selectCurrentDate)(...args)) 21345 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.nowButtonLabel), 1)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 21346 ])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 21347 ], 2), 21348 !_ctx.autoApply || _ctx.keepActionRow ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent)(_ctx.actionRowComponent ? _ctx.actionRowComponent : _sfc_main$8), (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ key: 2 }, { 21349 calendarWidth: calendarWidth.value, 21350 selectText: _ctx.selectText, 21351 cancelText: _ctx.cancelText, 21352 internalModelValue: __props.internalModelValue, 21353 range: _ctx.range, 21354 previewFormat: _ctx.previewFormat, 21355 inline: _ctx.inline, 21356 monthPicker: _ctx.monthPicker, 21357 timePicker: _ctx.timePicker, 21358 customProps: _ctx.customProps, 21359 multiCalendars: __props.multiCalendars, 21360 menuMount: menuMount.value, 21361 maxTime: _ctx.maxTime, 21362 minTime: _ctx.minTime, 21363 enableTimePicker: _ctx.enableTimePicker, 21364 minDate: _ctx.minDate, 21365 maxDate: _ctx.maxDate, 21366 multiDates: _ctx.multiDates, 21367 modelAuto: _ctx.modelAuto, 21368 partialRange: _ctx.partialRange 21369 }, { 21370 onClosePicker: _cache[9] || (_cache[9] = ($event) => _ctx.$emit("closePicker")), 21371 onSelectDate: _cache[10] || (_cache[10] = ($event) => _ctx.$emit("selectDate")) 21372 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ _: 2 }, [ 21373 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(actionSlots), (slot, i) => { 21374 return { 21375 name: slot, 21376 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)((args) => [ 21377 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, slot, (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,vue__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps)({ ...args }))) 21378 ]) 21379 }; 21380 }) 21381 ]), 1040)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 21382 ], 42, _hoisted_1) 21383 ]), 21384 _: 3 21385 }, 8, ["name", "css"]); 21386 }; 21387 } 21388}); 21389var OpenPosition = /* @__PURE__ */ ((OpenPosition2) => { 21390 OpenPosition2["center"] = "center"; 21391 OpenPosition2["left"] = "left"; 21392 OpenPosition2["right"] = "right"; 21393 return OpenPosition2; 21394})(OpenPosition || {}); 21395const usePosition = (openPosition, altPosition, autoPosition, menuRef, inputRef, inline, emit) => { 21396 const menuPosition = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)({ top: "0", left: "0", transform: "none" }); 21397 const openOnTop = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 21398 const diagonal = 10; 21399 const maxHeight = 390; 21400 const getOffset = (el) => { 21401 const rect = el.getBoundingClientRect(); 21402 return { 21403 left: rect.left + window.scrollX, 21404 top: rect.top + window.scrollY 21405 }; 21406 }; 21407 const getOffsetAlt = (el) => { 21408 const rect = el.getBoundingClientRect(); 21409 let x = 0; 21410 let y = 0; 21411 while (el && !isNaN(el.offsetLeft) && !isNaN(el.offsetTop)) { 21412 x += el.offsetLeft - el.scrollLeft; 21413 y = rect.top + el.scrollTop; 21414 el = el.offsetParent; 21415 } 21416 return { top: y, left: x }; 21417 }; 21418 const setPositionRight = (left, width) => { 21419 menuPosition.value.left = `${left + width}px`; 21420 menuPosition.value.transform = `translateX(-100%)`; 21421 }; 21422 const setPositionLeft = (left) => { 21423 menuPosition.value.left = `${left}px`; 21424 menuPosition.value.transform = `translateX(0)`; 21425 }; 21426 const setPositioning = (left, width) => { 21427 if (openPosition === OpenPosition.left) { 21428 setPositionLeft(left); 21429 } 21430 if (openPosition === OpenPosition.right) { 21431 setPositionRight(left, width); 21432 } 21433 if (openPosition === OpenPosition.center) { 21434 menuPosition.value.left = `${left + width / 2}px`; 21435 menuPosition.value.transform = `translateX(-50%)`; 21436 } 21437 }; 21438 const setInitialPosition = () => { 21439 const inputEl = unrefElement(inputRef); 21440 if (inputEl) { 21441 const fullHeight = window.innerHeight; 21442 const { top: offset } = altPosition ? getOffsetAlt(inputEl) : getOffset(inputEl); 21443 const { left, width, top, height } = inputEl.getBoundingClientRect(); 21444 const freeBottom = fullHeight - top - height; 21445 menuPosition.value.top = top > freeBottom ? `${offset - maxHeight}px` : `${offset}px`; 21446 setPositioning(left, width); 21447 } 21448 }; 21449 const setMenuPosition = (recalculate = true) => { 21450 if (!inline) { 21451 const el = unrefElement(inputRef); 21452 if (altPosition && typeof altPosition !== "boolean") { 21453 menuPosition.value = altPosition(el); 21454 } else if (el) { 21455 const { left, width, height } = el.getBoundingClientRect(); 21456 const { top: offset } = altPosition ? getOffsetAlt(el) : getOffset(el); 21457 menuPosition.value.top = `${height + offset + diagonal}px`; 21458 setPositioning(left, width); 21459 if (recalculate && autoPosition) { 21460 recalculatePosition(); 21461 } 21462 } 21463 } 21464 }; 21465 const recalculatePosition = () => { 21466 const el = unrefElement(inputRef); 21467 if (el && autoPosition && !inline) { 21468 const { height: inputHeight, top, left: inputLeft, width } = el.getBoundingClientRect(); 21469 const { top: offset } = altPosition ? getOffsetAlt(el) : getOffset(el); 21470 const fullHeight = window.innerHeight; 21471 const freeSpaceBottom = fullHeight - top - inputHeight; 21472 const menuEl = unrefElement(menuRef); 21473 if (menuEl) { 21474 const { height, left, right } = menuEl.getBoundingClientRect(); 21475 const menuHeight = height + inputHeight; 21476 if (menuHeight > top && menuHeight > freeSpaceBottom) { 21477 if (top < freeSpaceBottom) { 21478 setMenuPosition(false); 21479 openOnTop.value = false; 21480 } 21481 } else { 21482 if (menuHeight > freeSpaceBottom) { 21483 menuPosition.value.top = `${offset - height - diagonal}px`; 21484 openOnTop.value = true; 21485 } else { 21486 setMenuPosition(false); 21487 openOnTop.value = false; 21488 } 21489 } 21490 if (left < 0) { 21491 setPositionLeft(inputLeft); 21492 } else if (right > document.documentElement.clientWidth) { 21493 setPositionRight(inputLeft, width); 21494 } 21495 } 21496 } 21497 emit("recalculatePosition"); 21498 }; 21499 return { openOnTop, menuPosition, setMenuPosition, setInitialPosition, recalculatePosition }; 21500}; 21501const useExternalInternalMapper = (format2, timePicker, monthPicker, range, partialRange, is24, enableTimePicker, enableSeconds, formatLocale, multiDates, utc, weekPicker, yearPicker, textInputOptions, modelType, modelAuto, emit) => { 21502 const inputValue = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(""); 21503 const internalModelValue = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(); 21504 (0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)(internalModelValue, () => { 21505 emit("internalModelChange", internalModelValue.value); 21506 }); 21507 const mapArrayToValue = (value) => { 21508 return [parseModelType(value[0]), value[1] ? parseModelType(value[1]) : null]; 21509 }; 21510 const parseExternalModelValue = (value) => { 21511 let mappedDate = null; 21512 if (value) { 21513 if (timePicker) { 21514 if (isTimeArray(value) && "hours" in value[0] && "minutes" in value[0]) { 21515 mappedDate = [ 21516 setDateTime(null, +value[0].hours, +value[0].minutes, +value[0].seconds), 21517 setDateTime(null, +value[1].hours, +value[1].minutes, +value[1].seconds) 21518 ]; 21519 } else if (isTime(value)) { 21520 mappedDate = setDateTime(null, +value.hours, +value.minutes, +value.seconds); 21521 } 21522 } else if (monthPicker) { 21523 if (isMonthArray(value) && "month" in value[0] && "year" in value[0]) { 21524 mappedDate = [setDateMonthOrYear(null, +value[0].month, +value[0].year)]; 21525 if (value[1]) { 21526 mappedDate[1] = setDateMonthOrYear(null, +value[1].month, +value[1].year); 21527 } else if (!value[1] && partialRange) { 21528 mappedDate[1] = null; 21529 } 21530 } else if (isMonth(value) && "month" in value && "year" in value) { 21531 mappedDate = setDateMonthOrYear(null, +value.month, +value.year); 21532 } 21533 } else if (yearPicker) { 21534 if (Array.isArray(value)) { 21535 mappedDate = [ 21536 (0,date_fns__WEBPACK_IMPORTED_MODULE_12__["default"])(new Date(), value[0]), 21537 !value[1] && partialRange ? null : (0,date_fns__WEBPACK_IMPORTED_MODULE_12__["default"])(new Date(), value[1]) 21538 ]; 21539 } else { 21540 mappedDate = (0,date_fns__WEBPACK_IMPORTED_MODULE_12__["default"])(new Date(), value); 21541 } 21542 } else if (multiDates && Array.isArray(value)) { 21543 mappedDate = value.map((date) => parseModelType(date)); 21544 } else if (weekPicker && Array.isArray(value)) { 21545 mappedDate = [new Date(value[0]), new Date(value[1])]; 21546 } else if (range) { 21547 if (modelAuto) { 21548 if (Array.isArray(value)) { 21549 mappedDate = mapArrayToValue(value); 21550 } else { 21551 mappedDate = [parseModelType(value), null]; 21552 } 21553 } else if (isRangeArray(value, partialRange)) { 21554 mappedDate = mapArrayToValue(value); 21555 } 21556 } else if (isSingle(value)) { 21557 mappedDate = parseModelType(value); 21558 } 21559 } else { 21560 mappedDate = null; 21561 } 21562 if (isValidDate(mappedDate)) { 21563 internalModelValue.value = mappedDate; 21564 formatInputValue(); 21565 } else { 21566 internalModelValue.value = null; 21567 inputValue.value = ""; 21568 } 21569 }; 21570 const getPattern = () => { 21571 return getDefaultPattern(format2, is24, enableSeconds, monthPicker, timePicker, weekPicker, yearPicker, enableTimePicker); 21572 }; 21573 const formatInputValue = () => { 21574 if (!internalModelValue.value) { 21575 inputValue.value = ""; 21576 } else if (!format2 || typeof format2 === "string") { 21577 const pattern = getPattern(); 21578 if (Array.isArray(internalModelValue.value) && multiDates) { 21579 inputValue.value = internalModelValue.value.map((date) => formatDate(date, pattern, formatLocale == null ? void 0 : formatLocale.value)).join("; "); 21580 } else { 21581 inputValue.value = formatDate(internalModelValue.value, pattern, formatLocale == null ? void 0 : formatLocale.value, textInputOptions == null ? void 0 : textInputOptions.rangeSeparator, modelAuto); 21582 } 21583 } else if (timePicker) { 21584 inputValue.value = format2(getTImeForExternal(internalModelValue.value)); 21585 } else if (monthPicker) { 21586 inputValue.value = format2(getMonthValForExternal(internalModelValue.value)); 21587 } else { 21588 inputValue.value = format2(internalModelValue.value); 21589 } 21590 }; 21591 const checkBeforeEmit = () => { 21592 if (internalModelValue.value) { 21593 if (range) { 21594 if (partialRange) 21595 return internalModelValue.value.length >= 1; 21596 return internalModelValue.value.length === 2; 21597 } 21598 return !!internalModelValue.value; 21599 } 21600 return false; 21601 }; 21602 const parseModelType = (value) => { 21603 if (utc) { 21604 const toDate = new Date(value); 21605 return utc === "preserve" ? new Date(toDate.getTime() + toDate.getTimezoneOffset() * 6e4) : toDate; 21606 } 21607 if (modelType) { 21608 if (modelType === "date" || modelType === "timestamp") 21609 return new Date(value); 21610 if (modelType === "format" && (typeof format2 === "string" || !format2)) 21611 return (0,date_fns__WEBPACK_IMPORTED_MODULE_1__["default"])(value, getPattern(), new Date()); 21612 return (0,date_fns__WEBPACK_IMPORTED_MODULE_1__["default"])(value, modelType, new Date()); 21613 } 21614 return new Date(value); 21615 }; 21616 const getModelValueType = (val) => { 21617 if (modelType) { 21618 if (modelType === "timestamp") 21619 return +val; 21620 if (modelType === "format" && (typeof format2 === "string" || !format2)) 21621 return formatDate(val, getPattern(), formatLocale == null ? void 0 : formatLocale.value, textInputOptions == null ? void 0 : textInputOptions.rangeSeparator); 21622 return formatDate(val, modelType, formatLocale == null ? void 0 : formatLocale.value, textInputOptions == null ? void 0 : textInputOptions.rangeSeparator); 21623 } 21624 return val; 21625 }; 21626 const emitValue = (value) => { 21627 emit("update:modelValue", value); 21628 }; 21629 const getRangeEmitValue = () => { 21630 return [ 21631 getModelValueType(internalModelValue.value[0]), 21632 internalModelValue.value[1] ? getModelValueType(internalModelValue.value[1]) : null 21633 ]; 21634 }; 21635 const emitModelValue = () => { 21636 if (monthPicker) { 21637 emitValue(getMonthValForExternal(internalModelValue.value)); 21638 } else if (timePicker) { 21639 emitValue(getTImeForExternal(internalModelValue.value)); 21640 } else if (weekPicker) { 21641 emitValue(internalModelValue.value); 21642 } else if (yearPicker) { 21643 emitValue(Array.isArray(internalModelValue.value) ? [ 21644 (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(internalModelValue.value[0]), 21645 internalModelValue.value[1] ? (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(internalModelValue.value[1]) : null 21646 ] : (0,date_fns__WEBPACK_IMPORTED_MODULE_10__["default"])(internalModelValue.value)); 21647 } else { 21648 if (internalModelValue.value && range && partialRange && internalModelValue.value.length === 1) { 21649 internalModelValue.value.push(null); 21650 } 21651 if (utc) { 21652 let zonedDate; 21653 if (Array.isArray(internalModelValue.value)) { 21654 const mapDate = (date) => date ? dateToUtc(date, utc === "preserve") : date; 21655 if (modelAuto) { 21656 zonedDate = internalModelValue.value[1] ? internalModelValue.value.map(mapDate) : dateToUtc(internalModelValue.value[0], utc === "preserve"); 21657 } else { 21658 zonedDate = internalModelValue.value.map(mapDate); 21659 } 21660 } else { 21661 zonedDate = dateToUtc(internalModelValue.value, utc === "preserve"); 21662 } 21663 return emitValue(zonedDate); 21664 } 21665 if (Array.isArray(internalModelValue.value) && !multiDates) { 21666 if (modelAuto) { 21667 emitValue(internalModelValue.value[1] ? getRangeEmitValue() : getModelValueType(internalModelValue.value[0])); 21668 } else { 21669 emitValue(getRangeEmitValue()); 21670 } 21671 } else if (Array.isArray(internalModelValue.value) && multiDates) { 21672 emitValue(internalModelValue.value.map((date) => getModelValueType(date))); 21673 } else { 21674 emitValue(getModelValueType(internalModelValue.value)); 21675 } 21676 } 21677 formatInputValue(); 21678 }; 21679 return { 21680 parseExternalModelValue, 21681 formatInputValue, 21682 internalModelValue, 21683 inputValue, 21684 emitModelValue, 21685 checkBeforeEmit 21686 }; 21687}; 21688const defaultWindow = typeof window !== "undefined" ? window : void 0; 21689const noop = () => { 21690 return; 21691}; 21692const tryOnScopeDispose = (fn) => { 21693 if ((0,vue__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope)()) { 21694 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose)(fn); 21695 return true; 21696 } 21697 return false; 21698}; 21699const useEventListener = (target, event, listener, options) => { 21700 if (!target) 21701 return noop; 21702 let cleanup = noop; 21703 const stopWatch = (0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)(() => (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(target), (el) => { 21704 cleanup(); 21705 if (!el) 21706 return; 21707 el.addEventListener(event, listener, options); 21708 cleanup = () => { 21709 el.removeEventListener(event, listener, options); 21710 cleanup = noop; 21711 }; 21712 }, { immediate: true, flush: "post" }); 21713 const stop = () => { 21714 stopWatch(); 21715 cleanup(); 21716 }; 21717 tryOnScopeDispose(stop); 21718 return stop; 21719}; 21720const onClickOutside = (target, inputRef, handler, options = {}) => { 21721 const { window: window2 = defaultWindow, event = "pointerdown" } = options; 21722 if (!window2) 21723 return; 21724 const listener = (event2) => { 21725 const el = unrefElement(target); 21726 const inputEl = unrefElement(inputRef); 21727 if (!el || !inputEl) 21728 return; 21729 if (el === event2.target || event2.composedPath().includes(el) || event2.composedPath().includes(inputEl)) 21730 return; 21731 handler(event2); 21732 }; 21733 return useEventListener(window2, event, listener, { passive: true }); 21734}; 21735const _sfc_main = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 21736 __name: "VueDatePicker", 21737 props: { 21738 ...AllProps 21739 }, 21740 emits: [ 21741 "update:modelValue", 21742 "textSubmit", 21743 "closed", 21744 "cleared", 21745 "open", 21746 "focus", 21747 "blur", 21748 "internalModelChange", 21749 "recalculatePosition", 21750 "flow-step", 21751 "updateMonthYear", 21752 "invalid-select" 21753 ], 21754 setup(__props, { expose, emit }) { 21755 const props = __props; 21756 const slots2 = (0,vue__WEBPACK_IMPORTED_MODULE_0__.useSlots)(); 21757 const isOpen = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(false); 21758 const modelValueMap = (0,vue__WEBPACK_IMPORTED_MODULE_0__.toRef)(props, "modelValue"); 21759 const dpMenuRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 21760 const inputRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); 21761 (0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(autoApplyKey, props.autoApply); 21762 const formatLocaleRef = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.formatLocale); 21763 (0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(formatLocaleKey, formatLocaleRef); 21764 (0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(textInputKey, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toRef)(props, "textInput")); 21765 (0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(arrowNavigationKey, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toRef)(props, "arrowNavigation")); 21766 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => { 21767 parseExternalModelValue(props.modelValue); 21768 if (!props.inline) { 21769 window.addEventListener("scroll", onScroll); 21770 window.addEventListener("resize", onResize); 21771 } 21772 if (props.inline) { 21773 isOpen.value = true; 21774 } 21775 }); 21776 (0,vue__WEBPACK_IMPORTED_MODULE_0__.onUnmounted)(() => { 21777 if (!props.inline) { 21778 window.removeEventListener("scroll", onScroll); 21779 window.removeEventListener("resize", onResize); 21780 } 21781 }); 21782 const slotList = mapSlots(slots2, "all"); 21783 const inputSlots2 = mapSlots(slots2, "input"); 21784 (0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)(modelValueMap, () => { 21785 parseExternalModelValue(modelValueMap.value); 21786 }, { deep: true }); 21787 const { openOnTop, menuPosition, setMenuPosition, recalculatePosition, setInitialPosition } = usePosition(props.position, props.altPosition, props.autoPosition, dpMenuRef, inputRef, props.inline, emit); 21788 const { 21789 internalModelValue, 21790 inputValue, 21791 parseExternalModelValue, 21792 emitModelValue, 21793 checkBeforeEmit, 21794 formatInputValue 21795 } = useExternalInternalMapper(props.format, props.timePicker, props.monthPicker, props.range, props.partialRange, props.is24, props.enableTimePicker, props.enableSeconds, formatLocaleRef, props.multiDates, props.utc, props.weekPicker, props.yearPicker, props.textInputOptions, props.modelType, props.modelAuto, emit); 21796 const { clearArrowNav } = useArrowNavigation(); 21797 const { setMenuFocused, setShiftKey } = useStore(); 21798 const wrapperClass = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => ({ 21799 dp__main: true, 21800 dp__theme_dark: props.dark, 21801 dp__theme_light: !props.dark, 21802 dp__flex_display: props.inline, 21803 dp__flex_display_with_input: props.inlineWithInput 21804 })); 21805 const defaultPattern = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 21806 return isString(props.format) ? props.format : getDefaultPattern(null, props.is24, props.enableSeconds, props.monthPicker, props.timePicker, props.weekPicker, props.yearPicker, props.enableTimePicker); 21807 }); 21808 const previewFormatDefault = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 21809 if (!props.previewFormat) { 21810 return isString(defaultPattern.value) ? defaultPattern.value : props.format; 21811 } 21812 return props.previewFormat; 21813 }); 21814 const defaultTransitions = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 21815 if (typeof props.transitions === "boolean") { 21816 return props.transitions ? mergeDefaultTransitions({}) : false; 21817 } 21818 return mergeDefaultTransitions(props.transitions); 21819 }); 21820 (0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(transitionsKey, defaultTransitions); 21821 const theme = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => props.dark ? "dp__theme_dark" : "dp__theme_light"); 21822 const inputDefaultOptions = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 21823 return Object.assign(getDefaultTextInputOptions(), props.textInputOptions); 21824 }); 21825 const areaLabelsDefault = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => defaultAriaLabels(props.ariaLabels)); 21826 (0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(ariaLabelsKey, areaLabelsDefault); 21827 const defaultFilters = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => getDefaultFilters(props.filters)); 21828 const defaultStartTime = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 21829 const assignDefaultTime = (obj) => { 21830 const defaultTime = { 21831 hours: (0,date_fns__WEBPACK_IMPORTED_MODULE_13__["default"])(new Date()), 21832 minutes: (0,date_fns__WEBPACK_IMPORTED_MODULE_14__["default"])(new Date()), 21833 seconds: (0,date_fns__WEBPACK_IMPORTED_MODULE_15__["default"])(new Date()) 21834 }; 21835 return Object.assign(defaultTime, obj); 21836 }; 21837 if (props.range) { 21838 if (props.startTime && Array.isArray(props.startTime)) { 21839 return [assignDefaultTime(props.startTime[0]), assignDefaultTime(props.startTime[1])]; 21840 } 21841 return null; 21842 } 21843 return props.startTime && !Array.isArray(props.startTime) ? assignDefaultTime(props.startTime) : null; 21844 }); 21845 const multiCalendarDefault = (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)(() => { 21846 if (props.multiCalendars === null) 21847 return 0; 21848 if (typeof props.multiCalendars === "boolean") 21849 return props.multiCalendars ? 2 : 0; 21850 return +props.multiCalendars >= 2 ? +props.multiCalendars : 2; 21851 }); 21852 const onScroll = () => { 21853 if (isOpen.value) { 21854 if (props.closeOnScroll) { 21855 closeMenu(); 21856 } else if (props.autoPosition) { 21857 setMenuPosition(); 21858 } else { 21859 window.removeEventListener("scroll", onScroll); 21860 } 21861 } 21862 }; 21863 const onResize = () => { 21864 if (isOpen.value) { 21865 setMenuPosition(); 21866 } 21867 }; 21868 const openMenu = () => { 21869 if (!props.disabled && !props.readonly) { 21870 setInitialPosition(); 21871 isOpen.value = true; 21872 (0,vue__WEBPACK_IMPORTED_MODULE_0__.nextTick)().then(() => { 21873 setMenuPosition(); 21874 if (isOpen.value) { 21875 emit("open"); 21876 } 21877 }); 21878 if (!isOpen.value) { 21879 clearInternalValues(); 21880 } 21881 parseExternalModelValue(props.modelValue); 21882 } 21883 }; 21884 const clearValue = () => { 21885 inputValue.value = ""; 21886 clearInternalValues(); 21887 emit("update:modelValue", null); 21888 emit("cleared"); 21889 closeMenu(); 21890 }; 21891 const validateBeforeEmit = () => { 21892 const { validate } = dateValidator(props.minDate, props.maxDate, props.disabledDates, props.allowedDates, defaultFilters.value, props.disabledWeekDays, props.yearRange); 21893 const date = internalModelValue.value; 21894 if (!date) 21895 return true; 21896 if (!Array.isArray(date) && validate(date)) { 21897 return true; 21898 } 21899 if (Array.isArray(date)) { 21900 if (date.length === 2 && validate(date[0]) && validate(date[1])) { 21901 return true; 21902 } else if (validate(date[0])) { 21903 return true; 21904 } 21905 return false; 21906 } 21907 return false; 21908 }; 21909 const selectDate = () => { 21910 if (checkBeforeEmit() && validateBeforeEmit()) { 21911 emitModelValue(); 21912 closeMenu(); 21913 } else { 21914 emit("invalid-select", internalModelValue.value); 21915 } 21916 }; 21917 const emitOnAutoApply = (ignoreClose) => { 21918 emitModelValue(); 21919 if (props.closeOnAutoApply && !ignoreClose) { 21920 closeMenu(); 21921 } 21922 }; 21923 const autoApplyValue = (ignoreClose = false) => { 21924 if (props.autoApply) { 21925 const isTimeValid = !props.enableTimePicker || props.monthPicker || props.yearPicker ? true : isValidTime(internalModelValue.value, props.maxTime, props.minTime, props.maxDate, props.minDate); 21926 if (isTimeValid && validateBeforeEmit()) { 21927 if (props.range && Array.isArray(internalModelValue.value)) { 21928 if (props.partialRange) { 21929 emitOnAutoApply(ignoreClose); 21930 } else if (internalModelValue.value.length === 2) { 21931 emitOnAutoApply(ignoreClose); 21932 } 21933 } else { 21934 emitOnAutoApply(ignoreClose); 21935 } 21936 } 21937 } 21938 }; 21939 const clearInternalValues = () => { 21940 internalModelValue.value = null; 21941 }; 21942 const closeMenu = () => { 21943 if (!props.inline) { 21944 if (isOpen.value) { 21945 isOpen.value = false; 21946 setMenuFocused(false); 21947 setShiftKey(false); 21948 clearArrowNav(); 21949 emit("closed"); 21950 setInitialPosition(); 21951 if (inputValue.value) { 21952 parseExternalModelValue(modelValueMap.value); 21953 } 21954 } 21955 clearInternalValues(); 21956 if (inputRef.value) { 21957 inputRef.value.focusInput(); 21958 } 21959 } 21960 }; 21961 const setInputDate = (date, submit) => { 21962 if (!date) { 21963 internalModelValue.value = null; 21964 return; 21965 } 21966 internalModelValue.value = date; 21967 if (submit) { 21968 selectDate(); 21969 emit("textSubmit"); 21970 } 21971 }; 21972 const timeUpdate = () => { 21973 if (props.autoApply && isValidTime(internalModelValue.value, props.maxTime, props.minTime, props.maxDate, props.minDate)) { 21974 emitModelValue(); 21975 } 21976 }; 21977 const toggleMenu = () => { 21978 if (isOpen.value) 21979 return closeMenu(); 21980 return openMenu(); 21981 }; 21982 onClickOutside(dpMenuRef, inputRef, closeMenu); 21983 expose({ 21984 closeMenu, 21985 selectDate, 21986 clearValue, 21987 openMenu, 21988 onScroll, 21989 formatInputValue 21990 }); 21991 return (_ctx, _cache) => { 21992 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 21993 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(wrapperClass)) 21994 }, [ 21995 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_sfc_main$a, (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ 21996 ref_key: "inputRef", 21997 ref: inputRef 21998 }, { 21999 placeholder: _ctx.placeholder, 22000 hideInputIcon: _ctx.hideInputIcon, 22001 readonly: _ctx.readonly, 22002 disabled: _ctx.disabled, 22003 inputClassName: _ctx.inputClassName, 22004 clearable: _ctx.clearable, 22005 state: _ctx.state, 22006 inline: _ctx.inline, 22007 inlineWithInput: _ctx.inlineWithInput, 22008 textInput: _ctx.textInput, 22009 textInputOptions: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(inputDefaultOptions), 22010 range: _ctx.range, 22011 isMenuOpen: isOpen.value, 22012 pattern: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(defaultPattern), 22013 autoApply: _ctx.autoApply, 22014 uid: _ctx.uid, 22015 required: _ctx.required, 22016 name: _ctx.name, 22017 autocomplete: _ctx.autocomplete 22018 }, { 22019 "input-value": (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(inputValue), 22020 "onUpdate:input-value": _cache[0] || (_cache[0] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.isRef)(inputValue) ? inputValue.value = $event : null), 22021 onClear: clearValue, 22022 onOpen: openMenu, 22023 onSetInputDate: setInputDate, 22024 onSetEmptyDate: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(emitModelValue), 22025 onSelectDate: selectDate, 22026 onToggle: toggleMenu, 22027 onClose: closeMenu, 22028 onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("focus")), 22029 onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("blur")) 22030 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ _: 2 }, [ 22031 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(inputSlots2), (slot, i) => { 22032 return { 22033 name: slot, 22034 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)((args) => [ 22035 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, slot, (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,vue__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps)(args))) 22036 ]) 22037 }; 22038 }) 22039 ]), 1040, ["input-value", "onSetEmptyDate"]), 22040 isOpen.value ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Teleport, { 22041 key: 0, 22042 to: _ctx.teleport, 22043 disabled: _ctx.inline 22044 }, [ 22045 isOpen.value ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_sfc_main$1, (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ 22046 key: 0, 22047 ref_key: "dpMenuRef", 22048 ref: dpMenuRef, 22049 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(theme), 22050 style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(menuPosition) 22051 }, { 22052 weekNumbers: _ctx.weekNumbers, 22053 weekStart: _ctx.weekStart, 22054 disableMonthYearSelect: _ctx.disableMonthYearSelect, 22055 menuClassName: _ctx.menuClassName, 22056 calendarClassName: _ctx.calendarClassName, 22057 yearRange: _ctx.yearRange, 22058 range: _ctx.range, 22059 multiCalendars: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(multiCalendarDefault), 22060 multiCalendarsSolo: _ctx.multiCalendarsSolo, 22061 multiStatic: _ctx.multiStatic, 22062 calendarCellClassName: _ctx.calendarCellClassName, 22063 enableTimePicker: _ctx.enableTimePicker, 22064 is24: _ctx.is24, 22065 hoursIncrement: _ctx.hoursIncrement, 22066 minutesIncrement: _ctx.minutesIncrement, 22067 hoursGridIncrement: _ctx.hoursGridIncrement, 22068 minutesGridIncrement: _ctx.minutesGridIncrement, 22069 minDate: _ctx.minDate, 22070 maxDate: _ctx.maxDate, 22071 autoApply: _ctx.autoApply, 22072 selectText: _ctx.selectText, 22073 cancelText: _ctx.cancelText, 22074 previewFormat: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(previewFormatDefault), 22075 locale: _ctx.locale, 22076 weekNumName: _ctx.weekNumName, 22077 disabledDates: _ctx.disabledDates, 22078 filters: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(defaultFilters), 22079 minTime: _ctx.minTime, 22080 maxTime: _ctx.maxTime, 22081 inline: _ctx.inline, 22082 openOnTop: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(openOnTop), 22083 monthPicker: _ctx.monthPicker, 22084 timePicker: _ctx.timePicker, 22085 monthNameFormat: _ctx.monthNameFormat, 22086 startDate: _ctx.startDate, 22087 startTime: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(defaultStartTime), 22088 monthYearComponent: _ctx.monthYearComponent, 22089 timePickerComponent: _ctx.timePickerComponent, 22090 actionRowComponent: _ctx.actionRowComponent, 22091 customProps: _ctx.customProps, 22092 hideOffsetDates: _ctx.hideOffsetDates, 22093 autoRange: _ctx.autoRange, 22094 noToday: _ctx.noToday, 22095 noHoursOverlay: _ctx.noHoursOverlay, 22096 noMinutesOverlay: _ctx.noMinutesOverlay, 22097 disabledWeekDays: _ctx.disabledWeekDays, 22098 allowedDates: _ctx.allowedDates, 22099 showNowButton: _ctx.showNowButton, 22100 nowButtonLabel: _ctx.nowButtonLabel, 22101 monthChangeOnScroll: _ctx.monthChangeOnScroll, 22102 markers: _ctx.markers, 22103 uid: _ctx.uid, 22104 modeHeight: _ctx.modeHeight, 22105 enableSeconds: _ctx.enableSeconds, 22106 secondsIncrement: _ctx.secondsIncrement, 22107 secondsGridIncrement: _ctx.secondsGridIncrement, 22108 noSecondsOverlay: _ctx.noSecondsOverlay, 22109 escClose: _ctx.escClose, 22110 spaceConfirm: _ctx.spaceConfirm, 22111 monthChangeOnArrows: _ctx.monthChangeOnArrows, 22112 textInput: _ctx.textInput, 22113 disabled: _ctx.disabled, 22114 readonly: _ctx.readonly, 22115 multiDates: _ctx.multiDates, 22116 presetRanges: _ctx.presetRanges, 22117 flow: _ctx.flow, 22118 preventMinMaxNavigation: _ctx.preventMinMaxNavigation, 22119 minRange: _ctx.minRange, 22120 maxRange: _ctx.maxRange, 22121 fixedStart: _ctx.fixedStart, 22122 fixedEnd: _ctx.fixedEnd, 22123 multiDatesLimit: _ctx.multiDatesLimit, 22124 reverseYears: _ctx.reverseYears, 22125 keepActionRow: _ctx.keepActionRow, 22126 weekPicker: _ctx.weekPicker, 22127 noSwipe: _ctx.noSwipe, 22128 vertical: _ctx.vertical, 22129 arrowNavigation: _ctx.arrowNavigation, 22130 yearPicker: _ctx.yearPicker, 22131 disableTimeRangeValidation: _ctx.disableTimeRangeValidation, 22132 dayNames: _ctx.dayNames, 22133 modelAuto: _ctx.modelAuto, 22134 highlight: _ctx.highlight, 22135 partialRange: _ctx.partialRange 22136 }, { 22137 internalModelValue: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(internalModelValue), 22138 "onUpdate:internalModelValue": _cache[3] || (_cache[3] = ($event) => (0,vue__WEBPACK_IMPORTED_MODULE_0__.isRef)(internalModelValue) ? internalModelValue.value = $event : null), 22139 onClosePicker: closeMenu, 22140 onSelectDate: selectDate, 22141 onDpOpen: (0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(recalculatePosition), 22142 onAutoApply: autoApplyValue, 22143 onTimeUpdate: timeUpdate, 22144 onFlowStep: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("flow-step", $event)), 22145 onUpdateMonthYear: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("updateMonthYear", $event)) 22146 }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createSlots)({ _: 2 }, [ 22147 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(slotList), (slot, i) => { 22148 return { 22149 name: slot, 22150 fn: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)((args) => [ 22151 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, slot, (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeProps)((0,vue__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps)({ ...args }))) 22152 ]) 22153 }; 22154 }) 22155 ]), 1040, ["class", "style", "internalModelValue", "onDpOpen"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 22156 ], 8, ["to", "disabled"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true) 22157 ], 2); 22158 }; 22159 } 22160}); 22161const component = /* @__PURE__ */ (() => { 22162 const installable = _sfc_main; 22163 installable.install = (app) => { 22164 app.component("Vue3DatePicker", installable); 22165 }; 22166 return installable; 22167})(); 22168const namedExports = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ 22169 __proto__: null, 22170 default: component 22171}, Symbol.toStringTag, { value: "Module" })); 22172Object.entries(namedExports).forEach(([exportName, exported]) => { 22173 if (exportName !== "default") 22174 component[exportName] = exported; 22175}); 22176 22177 22178 22179/***/ }), 22180
vendor: 347 bytes, lines 22181-22190
22181/***/ "./node_modules/axios/index.js": 22182/*!*************************************!*\ 22183 !*** ./node_modules/axios/index.js ***! 22184 \*************************************/ 22185/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 22186 22187module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js"); 22188 22189/***/ }), 22190
vendor: 6,962 bytes, lines 22191-22390
22191/***/ "./node_modules/axios/lib/adapters/xhr.js": 22192/*!************************************************!*\ 22193 !*** ./node_modules/axios/lib/adapters/xhr.js ***! 22194 \************************************************/ 22195/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 22196 22197"use strict"; 22198 22199 22200var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 22201var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js"); 22202var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js"); 22203var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); 22204var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js"); 22205var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js"); 22206var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js"); 22207var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js"); 22208 22209module.exports = function xhrAdapter(config) { 22210 return new Promise(function dispatchXhrRequest(resolve, reject) { 22211 var requestData = config.data; 22212 var requestHeaders = config.headers; 22213 var responseType = config.responseType; 22214 22215 if (utils.isFormData(requestData)) { 22216 delete requestHeaders['Content-Type']; // Let the browser set it 22217 } 22218 22219 var request = new XMLHttpRequest(); 22220 22221 // HTTP basic authentication 22222 if (config.auth) { 22223 var username = config.auth.username || ''; 22224 var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; 22225 requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); 22226 } 22227 22228 var fullPath = buildFullPath(config.baseURL, config.url); 22229 request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); 22230 22231 // Set the request timeout in MS 22232 request.timeout = config.timeout; 22233 22234 function onloadend() { 22235 if (!request) { 22236 return; 22237 } 22238 // Prepare the response 22239 var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; 22240 var responseData = !responseType || responseType === 'text' || responseType === 'json' ? 22241 request.responseText : request.response; 22242 var response = { 22243 data: responseData, 22244 status: request.status, 22245 statusText: request.statusText, 22246 headers: responseHeaders, 22247 config: config, 22248 request: request 22249 }; 22250 22251 settle(resolve, reject, response); 22252 22253 // Clean up request 22254 request = null; 22255 } 22256 22257 if ('onloadend' in request) { 22258 // Use onloadend if available 22259 request.onloadend = onloadend; 22260 } else { 22261 // Listen for ready state to emulate onloadend 22262 request.onreadystatechange = function handleLoad() { 22263 if (!request || request.readyState !== 4) { 22264 return; 22265 } 22266 22267 // The request errored out and we didn't get a response, this will be 22268 // handled by onerror instead 22269 // With one exception: request that using file: protocol, most browsers 22270 // will return status as 0 even though it's a successful request 22271 if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { 22272 return; 22273 } 22274 // readystate handler is calling before onerror or ontimeout handlers, 22275 // so we should call onloadend on the next 'tick' 22276 setTimeout(onloadend); 22277 }; 22278 } 22279 22280 // Handle browser request cancellation (as opposed to a manual cancellation) 22281 request.onabort = function handleAbort() { 22282 if (!request) { 22283 return; 22284 } 22285 22286 reject(createError('Request aborted', config, 'ECONNABORTED', request)); 22287 22288 // Clean up request 22289 request = null; 22290 }; 22291 22292 // Handle low level network errors 22293 request.onerror = function handleError() { 22294 // Real errors are hidden from us by the browser 22295 // onerror should only fire if it's a network error 22296 reject(createError('Network Error', config, null, request)); 22297 22298 // Clean up request 22299 request = null; 22300 }; 22301 22302 // Handle timeout 22303 request.ontimeout = function handleTimeout() { 22304 var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; 22305 if (config.timeoutErrorMessage) { 22306 timeoutErrorMessage = config.timeoutErrorMessage; 22307 } 22308 reject(createError( 22309 timeoutErrorMessage, 22310 config, 22311 config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED', 22312 request)); 22313 22314 // Clean up request 22315 request = null; 22316 }; 22317 22318 // Add xsrf header 22319 // This is only done if running in a standard browser environment. 22320 // Specifically not if we're in a web worker, or react-native. 22321 if (utils.isStandardBrowserEnv()) { 22322 // Add xsrf header 22323 var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? 22324 cookies.read(config.xsrfCookieName) : 22325 undefined; 22326 22327 if (xsrfValue) { 22328 requestHeaders[config.xsrfHeaderName] = xsrfValue; 22329 } 22330 } 22331 22332 // Add headers to the request 22333 if ('setRequestHeader' in request) { 22334 utils.forEach(requestHeaders, function setRequestHeader(val, key) { 22335 if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { 22336 // Remove Content-Type if data is undefined 22337 delete requestHeaders[key]; 22338 } else { 22339 // Otherwise add header to the request 22340 request.setRequestHeader(key, val); 22341 } 22342 }); 22343 } 22344 22345 // Add withCredentials to request if needed 22346 if (!utils.isUndefined(config.withCredentials)) { 22347 request.withCredentials = !!config.withCredentials; 22348 } 22349 22350 // Add responseType to request if needed 22351 if (responseType && responseType !== 'json') { 22352 request.responseType = config.responseType; 22353 } 22354 22355 // Handle progress if needed 22356 if (typeof config.onDownloadProgress === 'function') { 22357 request.addEventListener('progress', config.onDownloadProgress); 22358 } 22359 22360 // Not all browsers support upload events 22361 if (typeof config.onUploadProgress === 'function' && request.upload) { 22362 request.upload.addEventListener('progress', config.onUploadProgress); 22363 } 22364 22365 if (config.cancelToken) { 22366 // Handle cancellation 22367 config.cancelToken.promise.then(function onCanceled(cancel) { 22368 if (!request) { 22369 return; 22370 } 22371 22372 request.abort(); 22373 reject(cancel); 22374 // Clean up request 22375 request = null; 22376 }); 22377 } 22378 22379 if (!requestData) { 22380 requestData = null; 22381 } 22382 22383 // Send the request 22384 request.send(requestData); 22385 }); 22386}; 22387 22388 22389/***/ }), 22390
vendor: 2,388 bytes, lines 22391-22457
22391/***/ "./node_modules/axios/lib/axios.js": 22392/*!*****************************************!*\ 22393 !*** ./node_modules/axios/lib/axios.js ***! 22394 \*****************************************/ 22395/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 22396 22397"use strict"; 22398 22399 22400var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); 22401var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); 22402var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js"); 22403var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); 22404var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js"); 22405 22406/** 22407 * Create an instance of Axios 22408 * 22409 * @param {Object} defaultConfig The default config for the instance 22410 * @return {Axios} A new instance of Axios 22411 */ 22412function createInstance(defaultConfig) { 22413 var context = new Axios(defaultConfig); 22414 var instance = bind(Axios.prototype.request, context); 22415 22416 // Copy axios.prototype to instance 22417 utils.extend(instance, Axios.prototype, context); 22418 22419 // Copy context to instance 22420 utils.extend(instance, context); 22421 22422 return instance; 22423} 22424 22425// Create the default instance to be exported 22426var axios = createInstance(defaults); 22427 22428// Expose Axios class to allow class inheritance 22429axios.Axios = Axios; 22430 22431// Factory for creating new instances 22432axios.create = function create(instanceConfig) { 22433 return createInstance(mergeConfig(axios.defaults, instanceConfig)); 22434}; 22435 22436// Expose Cancel & CancelToken 22437axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); 22438axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js"); 22439axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); 22440 22441// Expose all/spread 22442axios.all = function all(promises) { 22443 return Promise.all(promises); 22444}; 22445axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js"); 22446 22447// Expose isAxiosError 22448axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/axios/lib/helpers/isAxiosError.js"); 22449 22450module.exports = axios; 22451 22452// Allow use of default import syntax in TypeScript 22453module.exports["default"] = axios; 22454 22455 22456/***/ }), 22457
vendor: 641 bytes, lines 22458-22487
22458/***/ "./node_modules/axios/lib/cancel/Cancel.js": 22459/*!*************************************************!*\ 22460 !*** ./node_modules/axios/lib/cancel/Cancel.js ***! 22461 \*************************************************/ 22462/***/ (function(module) { 22463 22464"use strict"; 22465 22466 22467/** 22468 * A `Cancel` is an object that is thrown when an operation is canceled. 22469 * 22470 * @class 22471 * @param {string=} message The message. 22472 */ 22473function Cancel(message) { 22474 this.message = message; 22475} 22476 22477Cancel.prototype.toString = function toString() { 22478 return 'Cancel' + (this.message ? ': ' + this.message : ''); 22479}; 22480 22481Cancel.prototype.__CANCEL__ = true; 22482 22483module.exports = Cancel; 22484 22485 22486/***/ }), 22487
vendor: 1,624 bytes, lines 22488-22555
22488/***/ "./node_modules/axios/lib/cancel/CancelToken.js": 22489/*!******************************************************!*\ 22490 !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! 22491 \******************************************************/ 22492/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 22493 22494"use strict"; 22495 22496 22497var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); 22498 22499/** 22500 * A `CancelToken` is an object that can be used to request cancellation of an operation. 22501 * 22502 * @class 22503 * @param {Function} executor The executor function. 22504 */ 22505function CancelToken(executor) { 22506 if (typeof executor !== 'function') { 22507 throw new TypeError('executor must be a function.'); 22508 } 22509 22510 var resolvePromise; 22511 this.promise = new Promise(function promiseExecutor(resolve) { 22512 resolvePromise = resolve; 22513 }); 22514 22515 var token = this; 22516 executor(function cancel(message) { 22517 if (token.reason) { 22518 // Cancellation has already been requested 22519 return; 22520 } 22521 22522 token.reason = new Cancel(message); 22523 resolvePromise(token.reason); 22524 }); 22525} 22526 22527/** 22528 * Throws a `Cancel` if cancellation has been requested. 22529 */ 22530CancelToken.prototype.throwIfRequested = function throwIfRequested() { 22531 if (this.reason) { 22532 throw this.reason; 22533 } 22534}; 22535 22536/** 22537 * Returns an object that contains a new `CancelToken` and a function that, when called, 22538 * cancels the `CancelToken`. 22539 */ 22540CancelToken.source = function source() { 22541 var cancel; 22542 var token = new CancelToken(function executor(c) { 22543 cancel = c; 22544 }); 22545 return { 22546 token: token, 22547 cancel: cancel 22548 }; 22549}; 22550 22551module.exports = CancelToken; 22552 22553 22554/***/ }), 22555
vendor: 366 bytes, lines 22556-22571
22556/***/ "./node_modules/axios/lib/cancel/isCancel.js": 22557/*!***************************************************!*\ 22558 !*** ./node_modules/axios/lib/cancel/isCancel.js ***! 22559 \***************************************************/ 22560/***/ (function(module) { 22561 22562"use strict"; 22563 22564 22565module.exports = function isCancel(value) { 22566 return !!(value && value.__CANCEL__); 22567}; 22568 22569 22570/***/ }), 22571
vendor: 4,924 bytes, lines 22572-22730
22572/***/ "./node_modules/axios/lib/core/Axios.js": 22573/*!**********************************************!*\ 22574 !*** ./node_modules/axios/lib/core/Axios.js ***! 22575 \**********************************************/ 22576/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 22577 22578"use strict"; 22579 22580 22581var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 22582var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); 22583var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js"); 22584var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js"); 22585var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); 22586var validator = __webpack_require__(/*! ../helpers/validator */ "./node_modules/axios/lib/helpers/validator.js"); 22587 22588var validators = validator.validators; 22589/** 22590 * Create a new instance of Axios 22591 * 22592 * @param {Object} instanceConfig The default config for the instance 22593 */ 22594function Axios(instanceConfig) { 22595 this.defaults = instanceConfig; 22596 this.interceptors = { 22597 request: new InterceptorManager(), 22598 response: new InterceptorManager() 22599 }; 22600} 22601 22602/** 22603 * Dispatch a request 22604 * 22605 * @param {Object} config The config specific for this request (merged with this.defaults) 22606 */ 22607Axios.prototype.request = function request(config) { 22608 /*eslint no-param-reassign:0*/ 22609 // Allow for axios('example/url'[, config]) a la fetch API 22610 if (typeof config === 'string') { 22611 config = arguments[1] || {}; 22612 config.url = arguments[0]; 22613 } else { 22614 config = config || {}; 22615 } 22616 22617 config = mergeConfig(this.defaults, config); 22618 22619 // Set config.method 22620 if (config.method) { 22621 config.method = config.method.toLowerCase(); 22622 } else if (this.defaults.method) { 22623 config.method = this.defaults.method.toLowerCase(); 22624 } else { 22625 config.method = 'get'; 22626 } 22627 22628 var transitional = config.transitional; 22629 22630 if (transitional !== undefined) { 22631 validator.assertOptions(transitional, { 22632 silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'), 22633 forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'), 22634 clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0') 22635 }, false); 22636 } 22637 22638 // filter out skipped interceptors 22639 var requestInterceptorChain = []; 22640 var synchronousRequestInterceptors = true; 22641 this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { 22642 if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { 22643 return; 22644 } 22645 22646 synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; 22647 22648 requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); 22649 }); 22650 22651 var responseInterceptorChain = []; 22652 this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { 22653 responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); 22654 }); 22655 22656 var promise; 22657 22658 if (!synchronousRequestInterceptors) { 22659 var chain = [dispatchRequest, undefined]; 22660 22661 Array.prototype.unshift.apply(chain, requestInterceptorChain); 22662 chain = chain.concat(responseInterceptorChain); 22663 22664 promise = Promise.resolve(config); 22665 while (chain.length) { 22666 promise = promise.then(chain.shift(), chain.shift()); 22667 } 22668 22669 return promise; 22670 } 22671 22672 22673 var newConfig = config; 22674 while (requestInterceptorChain.length) { 22675 var onFulfilled = requestInterceptorChain.shift(); 22676 var onRejected = requestInterceptorChain.shift(); 22677 try { 22678 newConfig = onFulfilled(newConfig); 22679 } catch (error) { 22680 onRejected(error); 22681 break; 22682 } 22683 } 22684 22685 try { 22686 promise = dispatchRequest(newConfig); 22687 } catch (error) { 22688 return Promise.reject(error); 22689 } 22690 22691 while (responseInterceptorChain.length) { 22692 promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift()); 22693 } 22694 22695 return promise; 22696}; 22697 22698Axios.prototype.getUri = function getUri(config) { 22699 config = mergeConfig(this.defaults, config); 22700 return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); 22701}; 22702 22703// Provide aliases for supported request methods 22704utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { 22705 /*eslint func-names:0*/ 22706 Axios.prototype[method] = function(url, config) { 22707 return this.request(mergeConfig(config || {}, { 22708 method: method, 22709 url: url, 22710 data: (config || {}).data 22711 })); 22712 }; 22713}); 22714 22715utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { 22716 /*eslint func-names:0*/ 22717 Axios.prototype[method] = function(url, data, config) { 22718 return this.request(mergeConfig(config || {}, { 22719 method: method, 22720 url: url, 22721 data: data 22722 })); 22723 }; 22724}); 22725 22726module.exports = Axios; 22727 22728 22729/***/ }), 22730
vendor: 1,759 bytes, lines 22731-22795
22731/***/ "./node_modules/axios/lib/core/InterceptorManager.js": 22732/*!***********************************************************!*\ 22733 !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! 22734 \***********************************************************/ 22735/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 22736 22737"use strict"; 22738 22739 22740var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 22741 22742function InterceptorManager() { 22743 this.handlers = []; 22744} 22745 22746/** 22747 * Add a new interceptor to the stack 22748 * 22749 * @param {Function} fulfilled The function to handle `then` for a `Promise` 22750 * @param {Function} rejected The function to handle `reject` for a `Promise` 22751 * 22752 * @return {Number} An ID used to remove interceptor later 22753 */ 22754InterceptorManager.prototype.use = function use(fulfilled, rejected, options) { 22755 this.handlers.push({ 22756 fulfilled: fulfilled, 22757 rejected: rejected, 22758 synchronous: options ? options.synchronous : false, 22759 runWhen: options ? options.runWhen : null 22760 }); 22761 return this.handlers.length - 1; 22762}; 22763 22764/** 22765 * Remove an interceptor from the stack 22766 * 22767 * @param {Number} id The ID that was returned by `use` 22768 */ 22769InterceptorManager.prototype.eject = function eject(id) { 22770 if (this.handlers[id]) { 22771 this.handlers[id] = null; 22772 } 22773}; 22774 22775/** 22776 * Iterate over all the registered interceptors 22777 * 22778 * This method is particularly useful for skipping over any 22779 * interceptors that may have become `null` calling `eject`. 22780 * 22781 * @param {Function} fn The function to call for each interceptor 22782 */ 22783InterceptorManager.prototype.forEach = function forEach(fn) { 22784 utils.forEach(this.handlers, function forEachHandler(h) { 22785 if (h !== null) { 22786 fn(h); 22787 } 22788 }); 22789}; 22790 22791module.exports = InterceptorManager; 22792 22793 22794/***/ }), 22795
vendor: 1,154 bytes, lines 22796-22826
22796/***/ "./node_modules/axios/lib/core/buildFullPath.js": 22797/*!******************************************************!*\ 22798 !*** ./node_modules/axios/lib/core/buildFullPath.js ***! 22799 \******************************************************/ 22800/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 22801 22802"use strict"; 22803 22804 22805var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js"); 22806var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js"); 22807 22808/** 22809 * Creates a new URL by combining the baseURL with the requestedURL, 22810 * only when the requestedURL is not already an absolute URL. 22811 * If the requestURL is absolute, this function returns the requestedURL untouched. 22812 * 22813 * @param {string} baseURL The base URL 22814 * @param {string} requestedURL Absolute or relative URL to combine 22815 * @returns {string} The combined full path 22816 */ 22817module.exports = function buildFullPath(baseURL, requestedURL) { 22818 if (baseURL && !isAbsoluteURL(requestedURL)) { 22819 return combineURLs(baseURL, requestedURL); 22820 } 22821 return requestedURL; 22822}; 22823 22824 22825/***/ }), 22826
vendor: 1,005 bytes, lines 22827-22855
22827/***/ "./node_modules/axios/lib/core/createError.js": 22828/*!****************************************************!*\ 22829 !*** ./node_modules/axios/lib/core/createError.js ***! 22830 \****************************************************/ 22831/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 22832 22833"use strict"; 22834 22835 22836var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js"); 22837 22838/** 22839 * Create an Error with the specified message, config, error code, request and response. 22840 * 22841 * @param {string} message The error message. 22842 * @param {Object} config The config. 22843 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 22844 * @param {Object} [request] The request. 22845 * @param {Object} [response] The response. 22846 * @returns {Error} The created error. 22847 */ 22848module.exports = function createError(message, config, code, request, response) { 22849 var error = new Error(message); 22850 return enhanceError(error, config, code, request, response); 22851}; 22852 22853 22854/***/ }), 22855
vendor: 2,562 bytes, lines 22856-22948
22856/***/ "./node_modules/axios/lib/core/dispatchRequest.js": 22857/*!********************************************************!*\ 22858 !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! 22859 \********************************************************/ 22860/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 22861 22862"use strict"; 22863 22864 22865var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 22866var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js"); 22867var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); 22868var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js"); 22869 22870/** 22871 * Throws a `Cancel` if cancellation has been requested. 22872 */ 22873function throwIfCancellationRequested(config) { 22874 if (config.cancelToken) { 22875 config.cancelToken.throwIfRequested(); 22876 } 22877} 22878 22879/** 22880 * Dispatch a request to the server using the configured adapter. 22881 * 22882 * @param {object} config The config that is to be used for the request 22883 * @returns {Promise} The Promise to be fulfilled 22884 */ 22885module.exports = function dispatchRequest(config) { 22886 throwIfCancellationRequested(config); 22887 22888 // Ensure headers exist 22889 config.headers = config.headers || {}; 22890 22891 // Transform request data 22892 config.data = transformData.call( 22893 config, 22894 config.data, 22895 config.headers, 22896 config.transformRequest 22897 ); 22898 22899 // Flatten headers 22900 config.headers = utils.merge( 22901 config.headers.common || {}, 22902 config.headers[config.method] || {}, 22903 config.headers 22904 ); 22905 22906 utils.forEach( 22907 ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], 22908 function cleanHeaderConfig(method) { 22909 delete config.headers[method]; 22910 } 22911 ); 22912 22913 var adapter = config.adapter || defaults.adapter; 22914 22915 return adapter(config).then(function onAdapterResolution(response) { 22916 throwIfCancellationRequested(config); 22917 22918 // Transform response data 22919 response.data = transformData.call( 22920 config, 22921 response.data, 22922 response.headers, 22923 config.transformResponse 22924 ); 22925 22926 return response; 22927 }, function onAdapterRejection(reason) { 22928 if (!isCancel(reason)) { 22929 throwIfCancellationRequested(config); 22930 22931 // Transform response data 22932 if (reason && reason.response) { 22933 reason.response.data = transformData.call( 22934 config, 22935 reason.response.data, 22936 reason.response.headers, 22937 config.transformResponse 22938 ); 22939 } 22940 } 22941 22942 return Promise.reject(reason); 22943 }); 22944}; 22945 22946 22947/***/ }), 22948
vendor: 1,321 bytes, lines 22949-23001
22949/***/ "./node_modules/axios/lib/core/enhanceError.js": 22950/*!*****************************************************!*\ 22951 !*** ./node_modules/axios/lib/core/enhanceError.js ***! 22952 \*****************************************************/ 22953/***/ (function(module) { 22954 22955"use strict"; 22956 22957 22958/** 22959 * Update an Error with the specified config, error code, and response. 22960 * 22961 * @param {Error} error The error to update. 22962 * @param {Object} config The config. 22963 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 22964 * @param {Object} [request] The request. 22965 * @param {Object} [response] The response. 22966 * @returns {Error} The error. 22967 */ 22968module.exports = function enhanceError(error, config, code, request, response) { 22969 error.config = config; 22970 if (code) { 22971 error.code = code; 22972 } 22973 22974 error.request = request; 22975 error.response = response; 22976 error.isAxiosError = true; 22977 22978 error.toJSON = function toJSON() { 22979 return { 22980 // Standard 22981 message: this.message, 22982 name: this.name, 22983 // Microsoft 22984 description: this.description, 22985 number: this.number, 22986 // Mozilla 22987 fileName: this.fileName, 22988 lineNumber: this.lineNumber, 22989 columnNumber: this.columnNumber, 22990 stack: this.stack, 22991 // Axios 22992 config: this.config, 22993 code: this.code 22994 }; 22995 }; 22996 return error; 22997}; 22998 22999 23000/***/ }), 23001
vendor: 3,263 bytes, lines 23002-23099
23002/***/ "./node_modules/axios/lib/core/mergeConfig.js": 23003/*!****************************************************!*\ 23004 !*** ./node_modules/axios/lib/core/mergeConfig.js ***! 23005 \****************************************************/ 23006/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 23007 23008"use strict"; 23009 23010 23011var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); 23012 23013/** 23014 * Config-specific merge-function which creates a new config-object 23015 * by merging two configuration objects together. 23016 * 23017 * @param {Object} config1 23018 * @param {Object} config2 23019 * @returns {Object} New object resulting from merging config2 to config1 23020 */ 23021module.exports = function mergeConfig(config1, config2) { 23022 // eslint-disable-next-line no-param-reassign 23023 config2 = config2 || {}; 23024 var config = {}; 23025 23026 var valueFromConfig2Keys = ['url', 'method', 'data']; 23027 var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params']; 23028 var defaultToConfig2Keys = [ 23029 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', 23030 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 23031 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', 23032 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', 23033 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding' 23034 ]; 23035 var directMergeKeys = ['validateStatus']; 23036 23037 function getMergedValue(target, source) { 23038 if (utils.isPlainObject(target) && utils.isPlainObject(source)) { 23039 return utils.merge(target, source); 23040 } else if (utils.isPlainObject(source)) { 23041 return utils.merge({}, source); 23042 } else if (utils.isArray(source)) { 23043 return source.slice(); 23044 } 23045 return source; 23046 } 23047 23048 function mergeDeepProperties(prop) { 23049 if (!utils.isUndefined(config2[prop])) { 23050 config[prop] = getMergedValue(config1[prop], config2[prop]); 23051 } else if (!utils.isUndefined(config1[prop])) { 23052 config[prop] = getMergedValue(undefined, config1[prop]); 23053 } 23054 } 23055 23056 utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { 23057 if (!utils.isUndefined(config2[prop])) { 23058 config[prop] = getMergedValue(undefined, config2[prop]); 23059 } 23060 }); 23061 23062 utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties); 23063 23064 utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { 23065 if (!utils.isUndefined(config2[prop])) { 23066 config[prop] = getMergedValue(undefined, config2[prop]); 23067 } else if (!utils.isUndefined(config1[prop])) { 23068 config[prop] = getMergedValue(undefined, config1[prop]); 23069 } 23070 }); 23071 23072 utils.forEach(directMergeKeys, function merge(prop) { 23073 if (prop in config2) { 23074 config[prop] = getMergedValue(config1[prop], config2[prop]); 23075 } else if (prop in config1) { 23076 config[prop] = getMergedValue(undefined, config1[prop]); 23077 } 23078 }); 23079 23080 var axiosKeys = valueFromConfig2Keys 23081 .concat(mergeDeepPropertiesKeys) 23082 .concat(defaultToConfig2Keys) 23083 .concat(directMergeKeys); 23084 23085 var otherKeys = Object 23086 .keys(config1) 23087 .concat(Object.keys(config2)) 23088 .filter(function filterAxiosKeys(key) { 23089 return axiosKeys.indexOf(key) === -1; 23090 }); 23091 23092 utils.forEach(otherKeys, mergeDeepProperties); 23093 23094 return config; 23095}; 23096 23097 23098/***/ }), 23099
vendor: 1,065 bytes, lines 23100-23135
23100/***/ "./node_modules/axios/lib/core/settle.js": 23101/*!***********************************************!*\ 23102 !*** ./node_modules/axios/lib/core/settle.js ***! 23103 \***********************************************/ 23104/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 23105 23106"use strict"; 23107 23108 23109var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js"); 23110 23111/** 23112 * Resolve or reject a Promise based on response status. 23113 * 23114 * @param {Function} resolve A function that resolves the promise. 23115 * @param {Function} reject A function that rejects the promise. 23116 * @param {object} response The response. 23117 */ 23118module.exports = function settle(resolve, reject, response) { 23119 var validateStatus = response.config.validateStatus; 23120 if (!response.status || !validateStatus || validateStatus(response.status)) { 23121 resolve(response); 23122 } else { 23123 reject(createError( 23124 'Request failed with status code ' + response.status, 23125 response.config, 23126 null, 23127 response.request, 23128 response 23129 )); 23130 } 23131}; 23132 23133 23134/***/ }), 23135
vendor: 1,071 bytes, lines 23136-23168
23136/***/ "./node_modules/axios/lib/core/transformData.js": 23137/*!******************************************************!*\ 23138 !*** ./node_modules/axios/lib/core/transformData.js ***! 23139 \******************************************************/ 23140/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 23141 23142"use strict"; 23143 23144 23145var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 23146var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/axios/lib/defaults.js"); 23147 23148/** 23149 * Transform the data for a request or a response 23150 * 23151 * @param {Object|String} data The data to be transformed 23152 * @param {Array} headers The headers for the request or response 23153 * @param {Array|Function} fns A single function or Array of functions 23154 * @returns {*} The resulting transformed data 23155 */ 23156module.exports = function transformData(data, headers, fns) { 23157 var context = this || defaults; 23158 /*eslint no-param-reassign:0*/ 23159 utils.forEach(fns, function transform(fn) { 23160 data = fn.call(context, data, headers); 23161 }); 23162 23163 return data; 23164}; 23165 23166 23167/***/ }), 23168
vendor: 4,277 bytes, lines 23169-23314
23169/***/ "./node_modules/axios/lib/defaults.js": 23170/*!********************************************!*\ 23171 !*** ./node_modules/axios/lib/defaults.js ***! 23172 \********************************************/ 23173/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 23174 23175"use strict"; 23176/* provided dependency */ var process = __webpack_require__(/*! process/browser.js */ "./node_modules/process/browser.js"); 23177 23178 23179var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); 23180var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js"); 23181var enhanceError = __webpack_require__(/*! ./core/enhanceError */ "./node_modules/axios/lib/core/enhanceError.js"); 23182 23183var DEFAULT_CONTENT_TYPE = { 23184 'Content-Type': 'application/x-www-form-urlencoded' 23185}; 23186 23187function setContentTypeIfUnset(headers, value) { 23188 if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { 23189 headers['Content-Type'] = value; 23190 } 23191} 23192 23193function getDefaultAdapter() { 23194 var adapter; 23195 if (typeof XMLHttpRequest !== 'undefined') { 23196 // For browsers use XHR adapter 23197 adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js"); 23198 } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { 23199 // For node use HTTP adapter 23200 adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js"); 23201 } 23202 return adapter; 23203} 23204 23205function stringifySafely(rawValue, parser, encoder) { 23206 if (utils.isString(rawValue)) { 23207 try { 23208 (parser || JSON.parse)(rawValue); 23209 return utils.trim(rawValue); 23210 } catch (e) { 23211 if (e.name !== 'SyntaxError') { 23212 throw e; 23213 } 23214 } 23215 } 23216 23217 return (encoder || JSON.stringify)(rawValue); 23218} 23219 23220var defaults = { 23221 23222 transitional: { 23223 silentJSONParsing: true, 23224 forcedJSONParsing: true, 23225 clarifyTimeoutError: false 23226 }, 23227 23228 adapter: getDefaultAdapter(), 23229 23230 transformRequest: [function transformRequest(data, headers) { 23231 normalizeHeaderName(headers, 'Accept'); 23232 normalizeHeaderName(headers, 'Content-Type'); 23233 23234 if (utils.isFormData(data) || 23235 utils.isArrayBuffer(data) || 23236 utils.isBuffer(data) || 23237 utils.isStream(data) || 23238 utils.isFile(data) || 23239 utils.isBlob(data) 23240 ) { 23241 return data; 23242 } 23243 if (utils.isArrayBufferView(data)) { 23244 return data.buffer; 23245 } 23246 if (utils.isURLSearchParams(data)) { 23247 setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); 23248 return data.toString(); 23249 } 23250 if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) { 23251 setContentTypeIfUnset(headers, 'application/json'); 23252 return stringifySafely(data); 23253 } 23254 return data; 23255 }], 23256 23257 transformResponse: [function transformResponse(data) { 23258 var transitional = this.transitional; 23259 var silentJSONParsing = transitional && transitional.silentJSONParsing; 23260 var forcedJSONParsing = transitional && transitional.forcedJSONParsing; 23261 var strictJSONParsing = !silentJSONParsing && this.responseType === 'json'; 23262 23263 if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) { 23264 try { 23265 return JSON.parse(data); 23266 } catch (e) { 23267 if (strictJSONParsing) { 23268 if (e.name === 'SyntaxError') { 23269 throw enhanceError(e, this, 'E_JSON_PARSE'); 23270 } 23271 throw e; 23272 } 23273 } 23274 } 23275 23276 return data; 23277 }], 23278 23279 /** 23280 * A timeout in milliseconds to abort a request. If set to 0 (default) a 23281 * timeout is not created. 23282 */ 23283 timeout: 0, 23284 23285 xsrfCookieName: 'XSRF-TOKEN', 23286 xsrfHeaderName: 'X-XSRF-TOKEN', 23287 23288 maxContentLength: -1, 23289 maxBodyLength: -1, 23290 23291 validateStatus: function validateStatus(status) { 23292 return status >= 200 && status < 300; 23293 } 23294}; 23295 23296defaults.headers = { 23297 common: { 23298 'Accept': 'application/json, text/plain, */*' 23299 } 23300}; 23301 23302utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { 23303 defaults.headers[method] = {}; 23304}); 23305 23306utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { 23307 defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); 23308}); 23309 23310module.exports = defaults; 23311 23312 23313/***/ }), 23314
vendor: 508 bytes, lines 23315-23336
23315/***/ "./node_modules/axios/lib/helpers/bind.js": 23316/*!************************************************!*\ 23317 !*** ./node_modules/axios/lib/helpers/bind.js ***! 23318 \************************************************/ 23319/***/ (function(module) { 23320 23321"use strict"; 23322 23323 23324module.exports = function bind(fn, thisArg) { 23325 return function wrap() { 23326 var args = new Array(arguments.length); 23327 for (var i = 0; i < args.length; i++) { 23328 args[i] = arguments[i]; 23329 } 23330 return fn.apply(thisArg, args); 23331 }; 23332}; 23333 23334 23335/***/ }), 23336
vendor: 2,012 bytes, lines 23337-23417
23337/***/ "./node_modules/axios/lib/helpers/buildURL.js": 23338/*!****************************************************!*\ 23339 !*** ./node_modules/axios/lib/helpers/buildURL.js ***! 23340 \****************************************************/ 23341/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 23342 23343"use strict"; 23344 23345 23346var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 23347 23348function encode(val) { 23349 return encodeURIComponent(val). 23350 replace(/%3A/gi, ':'). 23351 replace(/%24/g, '$'). 23352 replace(/%2C/gi, ','). 23353 replace(/%20/g, '+'). 23354 replace(/%5B/gi, '['). 23355 replace(/%5D/gi, ']'); 23356} 23357 23358/** 23359 * Build a URL by appending params to the end 23360 * 23361 * @param {string} url The base of the url (e.g., http://www.google.com) 23362 * @param {object} [params] The params to be appended 23363 * @returns {string} The formatted url 23364 */ 23365module.exports = function buildURL(url, params, paramsSerializer) { 23366 /*eslint no-param-reassign:0*/ 23367 if (!params) { 23368 return url; 23369 } 23370 23371 var serializedParams; 23372 if (paramsSerializer) { 23373 serializedParams = paramsSerializer(params); 23374 } else if (utils.isURLSearchParams(params)) { 23375 serializedParams = params.toString(); 23376 } else { 23377 var parts = []; 23378 23379 utils.forEach(params, function serialize(val, key) { 23380 if (val === null || typeof val === 'undefined') { 23381 return; 23382 } 23383 23384 if (utils.isArray(val)) { 23385 key = key + '[]'; 23386 } else { 23387 val = [val]; 23388 } 23389 23390 utils.forEach(val, function parseValue(v) { 23391 if (utils.isDate(v)) { 23392 v = v.toISOString(); 23393 } else if (utils.isObject(v)) { 23394 v = JSON.stringify(v); 23395 } 23396 parts.push(encode(key) + '=' + encode(v)); 23397 }); 23398 }); 23399 23400 serializedParams = parts.join('&'); 23401 } 23402 23403 if (serializedParams) { 23404 var hashmarkIndex = url.indexOf('#'); 23405 if (hashmarkIndex !== -1) { 23406 url = url.slice(0, hashmarkIndex); 23407 } 23408 23409 url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; 23410 } 23411 23412 return url; 23413}; 23414 23415 23416/***/ }), 23417
vendor: 660 bytes, lines 23418-23442
23418/***/ "./node_modules/axios/lib/helpers/combineURLs.js": 23419/*!*******************************************************!*\ 23420 !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! 23421 \*******************************************************/ 23422/***/ (function(module) { 23423 23424"use strict"; 23425 23426 23427/** 23428 * Creates a new URL by combining the specified URLs 23429 * 23430 * @param {string} baseURL The base URL 23431 * @param {string} relativeURL The relative URL 23432 * @returns {string} The combined URL 23433 */ 23434module.exports = function combineURLs(baseURL, relativeURL) { 23435 return relativeURL 23436 ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') 23437 : baseURL; 23438}; 23439 23440 23441/***/ }), 23442
vendor: 1,799 bytes, lines 23443-23506
23443/***/ "./node_modules/axios/lib/helpers/cookies.js": 23444/*!***************************************************!*\ 23445 !*** ./node_modules/axios/lib/helpers/cookies.js ***! 23446 \***************************************************/ 23447/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 23448 23449"use strict"; 23450 23451 23452var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 23453 23454module.exports = ( 23455 utils.isStandardBrowserEnv() ? 23456 23457 // Standard browser envs support document.cookie 23458 (function standardBrowserEnv() { 23459 return { 23460 write: function write(name, value, expires, path, domain, secure) { 23461 var cookie = []; 23462 cookie.push(name + '=' + encodeURIComponent(value)); 23463 23464 if (utils.isNumber(expires)) { 23465 cookie.push('expires=' + new Date(expires).toGMTString()); 23466 } 23467 23468 if (utils.isString(path)) { 23469 cookie.push('path=' + path); 23470 } 23471 23472 if (utils.isString(domain)) { 23473 cookie.push('domain=' + domain); 23474 } 23475 23476 if (secure === true) { 23477 cookie.push('secure'); 23478 } 23479 23480 document.cookie = cookie.join('; '); 23481 }, 23482 23483 read: function read(name) { 23484 var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); 23485 return (match ? decodeURIComponent(match[3]) : null); 23486 }, 23487 23488 remove: function remove(name) { 23489 this.write(name, '', Date.now() - 86400000); 23490 } 23491 }; 23492 })() : 23493 23494 // Non standard browser env (web workers, react-native) lack needed support. 23495 (function nonStandardBrowserEnv() { 23496 return { 23497 write: function write() {}, 23498 read: function read() { return null; }, 23499 remove: function remove() {} 23500 }; 23501 })() 23502); 23503 23504 23505/***/ }), 23506
vendor: 851 bytes, lines 23507-23531
23507/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": 23508/*!*********************************************************!*\ 23509 !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! 23510 \*********************************************************/ 23511/***/ (function(module) { 23512 23513"use strict"; 23514 23515 23516/** 23517 * Determines whether the specified URL is absolute 23518 * 23519 * @param {string} url The URL to test 23520 * @returns {boolean} True if the specified URL is absolute, otherwise false 23521 */ 23522module.exports = function isAbsoluteURL(url) { 23523 // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL). 23524 // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed 23525 // by any combination of letters, digits, plus, period, or hyphen. 23526 return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); 23527}; 23528 23529 23530/***/ }), 23531
vendor: 627 bytes, lines 23532-23553
23532/***/ "./node_modules/axios/lib/helpers/isAxiosError.js": 23533/*!********************************************************!*\ 23534 !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***! 23535 \********************************************************/ 23536/***/ (function(module) { 23537 23538"use strict"; 23539 23540 23541/** 23542 * Determines whether the payload is an error thrown by Axios 23543 * 23544 * @param {*} payload The value to test 23545 * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false 23546 */ 23547module.exports = function isAxiosError(payload) { 23548 return (typeof payload === 'object') && (payload.isAxiosError === true); 23549}; 23550 23551 23552/***/ }), 23553
vendor: 2,701 bytes, lines 23554-23632
23554/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": 23555/*!***********************************************************!*\ 23556 !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! 23557 \***********************************************************/ 23558/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 23559 23560"use strict"; 23561 23562 23563var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 23564 23565module.exports = ( 23566 utils.isStandardBrowserEnv() ? 23567 23568 // Standard browser envs have full support of the APIs needed to test 23569 // whether the request URL is of the same origin as current location. 23570 (function standardBrowserEnv() { 23571 var msie = /(msie|trident)/i.test(navigator.userAgent); 23572 var urlParsingNode = document.createElement('a'); 23573 var originURL; 23574 23575 /** 23576 * Parse a URL to discover it's components 23577 * 23578 * @param {String} url The URL to be parsed 23579 * @returns {Object} 23580 */ 23581 function resolveURL(url) { 23582 var href = url; 23583 23584 if (msie) { 23585 // IE needs attribute set twice to normalize properties 23586 urlParsingNode.setAttribute('href', href); 23587 href = urlParsingNode.href; 23588 } 23589 23590 urlParsingNode.setAttribute('href', href); 23591 23592 // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils 23593 return { 23594 href: urlParsingNode.href, 23595 protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', 23596 host: urlParsingNode.host, 23597 search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', 23598 hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', 23599 hostname: urlParsingNode.hostname, 23600 port: urlParsingNode.port, 23601 pathname: (urlParsingNode.pathname.charAt(0) === '/') ? 23602 urlParsingNode.pathname : 23603 '/' + urlParsingNode.pathname 23604 }; 23605 } 23606 23607 originURL = resolveURL(window.location.href); 23608 23609 /** 23610 * Determine if a URL shares the same origin as the current location 23611 * 23612 * @param {String} requestURL The URL to test 23613 * @returns {boolean} True if URL shares the same origin, otherwise false 23614 */ 23615 return function isURLSameOrigin(requestURL) { 23616 var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; 23617 return (parsed.protocol === originURL.protocol && 23618 parsed.host === originURL.host); 23619 }; 23620 })() : 23621 23622 // Non standard browser envs (web workers, react-native) lack needed support. 23623 (function nonStandardBrowserEnv() { 23624 return function isURLSameOrigin() { 23625 return true; 23626 }; 23627 })() 23628); 23629 23630 23631/***/ }), 23632
vendor: 769 bytes, lines 23633-23655
23633/***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js": 23634/*!***************************************************************!*\ 23635 !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***! 23636 \***************************************************************/ 23637/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 23638 23639"use strict"; 23640 23641 23642var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); 23643 23644module.exports = function normalizeHeaderName(headers, normalizedName) { 23645 utils.forEach(headers, function processHeader(value, name) { 23646 if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { 23647 headers[normalizedName] = value; 23648 delete headers[name]; 23649 } 23650 }); 23651}; 23652 23653 23654/***/ }), 23655
vendor: 1,777 bytes, lines 23656-23719
23656/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": 23657/*!********************************************************!*\ 23658 !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! 23659 \********************************************************/ 23660/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 23661 23662"use strict"; 23663 23664 23665var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 23666 23667// Headers whose duplicates are ignored by node 23668// c.f. https://nodejs.org/api/http.html#http_message_headers 23669var ignoreDuplicateOf = [ 23670 'age', 'authorization', 'content-length', 'content-type', 'etag', 23671 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 23672 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 23673 'referer', 'retry-after', 'user-agent' 23674]; 23675 23676/** 23677 * Parse headers into an object 23678 * 23679 * ``` 23680 * Date: Wed, 27 Aug 2014 08:58:49 GMT 23681 * Content-Type: application/json 23682 * Connection: keep-alive 23683 * Transfer-Encoding: chunked 23684 * ``` 23685 * 23686 * @param {String} headers Headers needing to be parsed 23687 * @returns {Object} Headers parsed into an object 23688 */ 23689module.exports = function parseHeaders(headers) { 23690 var parsed = {}; 23691 var key; 23692 var val; 23693 var i; 23694 23695 if (!headers) { return parsed; } 23696 23697 utils.forEach(headers.split('\n'), function parser(line) { 23698 i = line.indexOf(':'); 23699 key = utils.trim(line.substr(0, i)).toLowerCase(); 23700 val = utils.trim(line.substr(i + 1)); 23701 23702 if (key) { 23703 if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { 23704 return; 23705 } 23706 if (key === 'set-cookie') { 23707 parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); 23708 } else { 23709 parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; 23710 } 23711 } 23712 }); 23713 23714 return parsed; 23715}; 23716 23717 23718/***/ }), 23719
vendor: 824 bytes, lines 23720-23757
23720/***/ "./node_modules/axios/lib/helpers/spread.js": 23721/*!**************************************************!*\ 23722 !*** ./node_modules/axios/lib/helpers/spread.js ***! 23723 \**************************************************/ 23724/***/ (function(module) { 23725 23726"use strict"; 23727 23728 23729/** 23730 * Syntactic sugar for invoking a function and expanding an array for arguments. 23731 * 23732 * Common use case would be to use `Function.prototype.apply`. 23733 * 23734 * ```js 23735 * function f(x, y, z) {} 23736 * var args = [1, 2, 3]; 23737 * f.apply(null, args); 23738 * ``` 23739 * 23740 * With `spread` this example can be re-written. 23741 * 23742 * ```js 23743 * spread(function(x, y, z) {})([1, 2, 3]); 23744 * ``` 23745 * 23746 * @param {Function} callback 23747 * @returns {Function} 23748 */ 23749module.exports = function spread(callback) { 23750 return function wrap(arr) { 23751 return callback.apply(null, arr); 23752 }; 23753}; 23754 23755 23756/***/ }), 23757
vendor: 3,164 bytes, lines 23758-23873
23758/***/ "./node_modules/axios/lib/helpers/validator.js": 23759/*!*****************************************************!*\ 23760 !*** ./node_modules/axios/lib/helpers/validator.js ***! 23761 \*****************************************************/ 23762/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 23763 23764"use strict"; 23765 23766 23767var pkg = __webpack_require__(/*! ./../../package.json */ "./node_modules/axios/package.json"); 23768 23769var validators = {}; 23770 23771// eslint-disable-next-line func-names 23772['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) { 23773 validators[type] = function validator(thing) { 23774 return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; 23775 }; 23776}); 23777 23778var deprecatedWarnings = {}; 23779var currentVerArr = pkg.version.split('.'); 23780 23781/** 23782 * Compare package versions 23783 * @param {string} version 23784 * @param {string?} thanVersion 23785 * @returns {boolean} 23786 */ 23787function isOlderVersion(version, thanVersion) { 23788 var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr; 23789 var destVer = version.split('.'); 23790 for (var i = 0; i < 3; i++) { 23791 if (pkgVersionArr[i] > destVer[i]) { 23792 return true; 23793 } else if (pkgVersionArr[i] < destVer[i]) { 23794 return false; 23795 } 23796 } 23797 return false; 23798} 23799 23800/** 23801 * Transitional option validator 23802 * @param {function|boolean?} validator 23803 * @param {string?} version 23804 * @param {string} message 23805 * @returns {function} 23806 */ 23807validators.transitional = function transitional(validator, version, message) { 23808 var isDeprecated = version && isOlderVersion(version); 23809 23810 function formatMessage(opt, desc) { 23811 return '[Axios v' + pkg.version + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); 23812 } 23813 23814 // eslint-disable-next-line func-names 23815 return function(value, opt, opts) { 23816 if (validator === false) { 23817 throw new Error(formatMessage(opt, ' has been removed in ' + version)); 23818 } 23819 23820 if (isDeprecated && !deprecatedWarnings[opt]) { 23821 deprecatedWarnings[opt] = true; 23822 // eslint-disable-next-line no-console 23823 console.warn( 23824 formatMessage( 23825 opt, 23826 ' has been deprecated since v' + version + ' and will be removed in the near future' 23827 ) 23828 ); 23829 } 23830 23831 return validator ? validator(value, opt, opts) : true; 23832 }; 23833}; 23834 23835/** 23836 * Assert object's properties type 23837 * @param {object} options 23838 * @param {object} schema 23839 * @param {boolean?} allowUnknown 23840 */ 23841 23842function assertOptions(options, schema, allowUnknown) { 23843 if (typeof options !== 'object') { 23844 throw new TypeError('options must be an object'); 23845 } 23846 var keys = Object.keys(options); 23847 var i = keys.length; 23848 while (i-- > 0) { 23849 var opt = keys[i]; 23850 var validator = schema[opt]; 23851 if (validator) { 23852 var value = options[opt]; 23853 var result = value === undefined || validator(value, opt, options); 23854 if (result !== true) { 23855 throw new TypeError('option ' + opt + ' must be ' + result); 23856 } 23857 continue; 23858 } 23859 if (allowUnknown !== true) { 23860 throw Error('Unknown option ' + opt); 23861 } 23862 } 23863} 23864 23865module.exports = { 23866 isOlderVersion: isOlderVersion, 23867 assertOptions: assertOptions, 23868 validators: validators 23869}; 23870 23871 23872/***/ }), 23873
vendor: 154,354 bytes, lines 23874-26874
23874/***/ "./node_modules/axios/lib/utils.js": 23875/*!*****************************************!*\ 23876 !*** ./node_modules/axios/lib/utils.js ***! 23877 \*****************************************/ 23878/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 23879 23880"use strict"; 23881 23882 23883var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); 23884 23885// utils is a library of generic helper functions non-specific to axios 23886 23887var toString = Object.prototype.toString; 23888 23889/** 23890 * Determine if a value is an Array 23891 * 23892 * @param {Object} val The value to test 23893 * @returns {boolean} True if value is an Array, otherwise false 23894 */ 23895function isArray(val) { 23896 return toString.call(val) === '[object Array]'; 23897} 23898 23899/** 23900 * Determine if a value is undefined 23901 * 23902 * @param {Object} val The value to test 23903 * @returns {boolean} True if the value is undefined, otherwise false 23904 */ 23905function isUndefined(val) { 23906 return typeof val === 'undefined'; 23907} 23908 23909/** 23910 * Determine if a value is a Buffer 23911 * 23912 * @param {Object} val The value to test 23913 * @returns {boolean} True if value is a Buffer, otherwise false 23914 */ 23915function isBuffer(val) { 23916 return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) 23917 && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); 23918} 23919 23920/** 23921 * Determine if a value is an ArrayBuffer 23922 * 23923 * @param {Object} val The value to test 23924 * @returns {boolean} True if value is an ArrayBuffer, otherwise false 23925 */ 23926function isArrayBuffer(val) { 23927 return toString.call(val) === '[object ArrayBuffer]'; 23928} 23929 23930/** 23931 * Determine if a value is a FormData 23932 * 23933 * @param {Object} val The value to test 23934 * @returns {boolean} True if value is an FormData, otherwise false 23935 */ 23936function isFormData(val) { 23937 return (typeof FormData !== 'undefined') && (val instanceof FormData); 23938} 23939 23940/** 23941 * Determine if a value is a view on an ArrayBuffer 23942 * 23943 * @param {Object} val The value to test 23944 * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false 23945 */ 23946function isArrayBufferView(val) { 23947 var result; 23948 if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { 23949 result = ArrayBuffer.isView(val); 23950 } else { 23951 result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); 23952 } 23953 return result; 23954} 23955 23956/** 23957 * Determine if a value is a String 23958 * 23959 * @param {Object} val The value to test 23960 * @returns {boolean} True if value is a String, otherwise false 23961 */ 23962function isString(val) { 23963 return typeof val === 'string'; 23964} 23965 23966/** 23967 * Determine if a value is a Number 23968 * 23969 * @param {Object} val The value to test 23970 * @returns {boolean} True if value is a Number, otherwise false 23971 */ 23972function isNumber(val) { 23973 return typeof val === 'number'; 23974} 23975 23976/** 23977 * Determine if a value is an Object 23978 * 23979 * @param {Object} val The value to test 23980 * @returns {boolean} True if value is an Object, otherwise false 23981 */ 23982function isObject(val) { 23983 return val !== null && typeof val === 'object'; 23984} 23985 23986/** 23987 * Determine if a value is a plain Object 23988 * 23989 * @param {Object} val The value to test 23990 * @return {boolean} True if value is a plain Object, otherwise false 23991 */ 23992function isPlainObject(val) { 23993 if (toString.call(val) !== '[object Object]') { 23994 return false; 23995 } 23996 23997 var prototype = Object.getPrototypeOf(val); 23998 return prototype === null || prototype === Object.prototype; 23999} 24000 24001/** 24002 * Determine if a value is a Date 24003 * 24004 * @param {Object} val The value to test 24005 * @returns {boolean} True if value is a Date, otherwise false 24006 */ 24007function isDate(val) { 24008 return toString.call(val) === '[object Date]'; 24009} 24010 24011/** 24012 * Determine if a value is a File 24013 * 24014 * @param {Object} val The value to test 24015 * @returns {boolean} True if value is a File, otherwise false 24016 */ 24017function isFile(val) { 24018 return toString.call(val) === '[object File]'; 24019} 24020 24021/** 24022 * Determine if a value is a Blob 24023 * 24024 * @param {Object} val The value to test 24025 * @returns {boolean} True if value is a Blob, otherwise false 24026 */ 24027function isBlob(val) { 24028 return toString.call(val) === '[object Blob]'; 24029} 24030 24031/** 24032 * Determine if a value is a Function 24033 * 24034 * @param {Object} val The value to test 24035 * @returns {boolean} True if value is a Function, otherwise false 24036 */ 24037function isFunction(val) { 24038 return toString.call(val) === '[object Function]'; 24039} 24040 24041/** 24042 * Determine if a value is a Stream 24043 * 24044 * @param {Object} val The value to test 24045 * @returns {boolean} True if value is a Stream, otherwise false 24046 */ 24047function isStream(val) { 24048 return isObject(val) && isFunction(val.pipe); 24049} 24050 24051/** 24052 * Determine if a value is a URLSearchParams object 24053 * 24054 * @param {Object} val The value to test 24055 * @returns {boolean} True if value is a URLSearchParams object, otherwise false 24056 */ 24057function isURLSearchParams(val) { 24058 return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; 24059} 24060 24061/** 24062 * Trim excess whitespace off the beginning and end of a string 24063 * 24064 * @param {String} str The String to trim 24065 * @returns {String} The String freed of excess whitespace 24066 */ 24067function trim(str) { 24068 return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, ''); 24069} 24070 24071/** 24072 * Determine if we're running in a standard browser environment 24073 * 24074 * This allows axios to run in a web worker, and react-native. 24075 * Both environments support XMLHttpRequest, but not fully standard globals. 24076 * 24077 * web workers: 24078 * typeof window -> undefined 24079 * typeof document -> undefined 24080 * 24081 * react-native: 24082 * navigator.product -> 'ReactNative' 24083 * nativescript 24084 * navigator.product -> 'NativeScript' or 'NS' 24085 */ 24086function isStandardBrowserEnv() { 24087 if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || 24088 navigator.product === 'NativeScript' || 24089 navigator.product === 'NS')) { 24090 return false; 24091 } 24092 return ( 24093 typeof window !== 'undefined' && 24094 typeof document !== 'undefined' 24095 ); 24096} 24097 24098/** 24099 * Iterate over an Array or an Object invoking a function for each item. 24100 * 24101 * If `obj` is an Array callback will be called passing 24102 * the value, index, and complete array for each item. 24103 * 24104 * If 'obj' is an Object callback will be called passing 24105 * the value, key, and complete object for each property. 24106 * 24107 * @param {Object|Array} obj The object to iterate 24108 * @param {Function} fn The callback to invoke for each item 24109 */ 24110function forEach(obj, fn) { 24111 // Don't bother if no value provided 24112 if (obj === null || typeof obj === 'undefined') { 24113 return; 24114 } 24115 24116 // Force an array if not already something iterable 24117 if (typeof obj !== 'object') { 24118 /*eslint no-param-reassign:0*/ 24119 obj = [obj]; 24120 } 24121 24122 if (isArray(obj)) { 24123 // Iterate over array values 24124 for (var i = 0, l = obj.length; i < l; i++) { 24125 fn.call(null, obj[i], i, obj); 24126 } 24127 } else { 24128 // Iterate over object keys 24129 for (var key in obj) { 24130 if (Object.prototype.hasOwnProperty.call(obj, key)) { 24131 fn.call(null, obj[key], key, obj); 24132 } 24133 } 24134 } 24135} 24136 24137/** 24138 * Accepts varargs expecting each argument to be an object, then 24139 * immutably merges the properties of each object and returns result. 24140 * 24141 * When multiple objects contain the same key the later object in 24142 * the arguments list will take precedence. 24143 * 24144 * Example: 24145 * 24146 * ```js 24147 * var result = merge({foo: 123}, {foo: 456}); 24148 * console.log(result.foo); // outputs 456 24149 * ``` 24150 * 24151 * @param {Object} obj1 Object to merge 24152 * @returns {Object} Result of all merge properties 24153 */ 24154function merge(/* obj1, obj2, obj3, ... */) { 24155 var result = {}; 24156 function assignValue(val, key) { 24157 if (isPlainObject(result[key]) && isPlainObject(val)) { 24158 result[key] = merge(result[key], val); 24159 } else if (isPlainObject(val)) { 24160 result[key] = merge({}, val); 24161 } else if (isArray(val)) { 24162 result[key] = val.slice(); 24163 } else { 24164 result[key] = val; 24165 } 24166 } 24167 24168 for (var i = 0, l = arguments.length; i < l; i++) { 24169 forEach(arguments[i], assignValue); 24170 } 24171 return result; 24172} 24173 24174/** 24175 * Extends object a by mutably adding to it the properties of object b. 24176 * 24177 * @param {Object} a The object to be extended 24178 * @param {Object} b The object to copy properties from 24179 * @param {Object} thisArg The object to bind function to 24180 * @return {Object} The resulting value of object a 24181 */ 24182function extend(a, b, thisArg) { 24183 forEach(b, function assignValue(val, key) { 24184 if (thisArg && typeof val === 'function') { 24185 a[key] = bind(val, thisArg); 24186 } else { 24187 a[key] = val; 24188 } 24189 }); 24190 return a; 24191} 24192 24193/** 24194 * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) 24195 * 24196 * @param {string} content with BOM 24197 * @return {string} content value without BOM 24198 */ 24199function stripBOM(content) { 24200 if (content.charCodeAt(0) === 0xFEFF) { 24201 content = content.slice(1); 24202 } 24203 return content; 24204} 24205 24206module.exports = { 24207 isArray: isArray, 24208 isArrayBuffer: isArrayBuffer, 24209 isBuffer: isBuffer, 24210 isFormData: isFormData, 24211 isArrayBufferView: isArrayBufferView, 24212 isString: isString, 24213 isNumber: isNumber, 24214 isObject: isObject, 24215 isPlainObject: isPlainObject, 24216 isUndefined: isUndefined, 24217 isDate: isDate, 24218 isFile: isFile, 24219 isBlob: isBlob, 24220 isFunction: isFunction, 24221 isStream: isStream, 24222 isURLSearchParams: isURLSearchParams, 24223 isStandardBrowserEnv: isStandardBrowserEnv, 24224 forEach: forEach, 24225 merge: merge, 24226 extend: extend, 24227 trim: trim, 24228 stripBOM: stripBOM 24229}; 24230 24231 24232/***/ }), 24233 24234/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=script&lang=js": 24235/*!**********************************************************************************************************************************************************************************************!*\ 24236 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=script&lang=js ***! 24237 \**********************************************************************************************************************************************************************************************/ 24238/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 24239 24240"use strict"; 24241__webpack_require__.r(__webpack_exports__); 24242/* harmony import */ var vue_next_select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-next-select */ "./node_modules/vue-next-select/dist/vue-next-select.es.prod.js"); 24243 24244/** 24245 * Select Wrapper-Kopmonente auf Basis von **vue-next-select** (https://iendeavor.github.io/vue-next-select/). 24246 * Die Originalkomponente hat zahlreiche Optionen, die bei Bedarf als Props 24247 * zur Wrapper-Komponente hinzugefügt werden können. 24248 * @displayName BaseSelect 24249 */ 24250 24251/* harmony default export */ __webpack_exports__["default"] = ({ 24252 name: 'BaseSelect', 24253 components: { 24254 VueNextSelect: vue_next_select__WEBPACK_IMPORTED_MODULE_0__["default"] 24255 }, 24256 props: { 24257 /** 24258 * Optionen die Angezeigt werden sollen 24259 */ 24260 options: { 24261 type: Array, 24262 required: true 24263 }, 24264 24265 /** 24266 * Das Array, zu dem das Element hinzugefügt werden soll, wenn die 24267 * Checkbox ausgewählt wurde 24268 */ 24269 modelValue: { 24270 type: [Array, String], 24271 required: true 24272 }, 24273 placeholder: { 24274 type: String, 24275 "default": '' 24276 }, 24277 label: { 24278 type: String, 24279 "default": '' 24280 }, 24281 multiple: { 24282 type: Boolean, 24283 "default": false 24284 }, 24285 requiredStar: { 24286 type: Boolean, 24287 "default": false 24288 }, 24289 readonly: { 24290 type: Boolean, 24291 "default": false 24292 }, 24293 additionalClass: { 24294 type: String, 24295 "default": '' 24296 } 24297 }, 24298 emits: ['update:modelValue'], 24299 computed: { 24300 model: { 24301 get: function get() { 24302 return this.modelValue; 24303 }, 24304 set: function set(value) { 24305 this.$emit('update:modelValue', value); 24306 } 24307 }, 24308 computedPlaceholder: function computedPlaceholder() { 24309 return this.placeholder; 24310 } 24311 } 24312}); 24313 24314/***/ }), 24315 24316/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=script&lang=js": 24317/*!***********************************************************************************************************************************************************************************************!*\ 24318 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=script&lang=js ***! 24319 \***********************************************************************************************************************************************************************************************/ 24320/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 24321 24322"use strict"; 24323__webpack_require__.r(__webpack_exports__); 24324/* harmony import */ var vue_toastification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-toastification */ "./node_modules/vue-toastification/dist/index.mjs"); 24325/* harmony import */ var _BaseSelect_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseSelect.vue */ "./src/js/components/BaseSelect.vue"); 24326function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } 24327 24328function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } 24329 24330function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } 24331 24332function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } 24333 24334function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } 24335 24336function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } 24337 24338 24339 24340/* harmony default export */ __webpack_exports__["default"] = ({ 24341 name: "CompanyData", 24342 components: { 24343 'base-select': _BaseSelect_vue__WEBPACK_IMPORTED_MODULE_1__["default"] 24344 }, 24345 props: { 24346 headline_company: { 24347 type: String, 24348 "default": 'Verwaltung der Veranstalter-Daten' 24349 }, 24350 headline_settings: { 24351 type: String, 24352 "default": 'Allgemeine Einstellungen' 24353 }, 24354 buttonValue: { 24355 type: String, 24356 "default": 'speichern' 24357 }, 24358 companyProp: Object, 24359 formProp: Object, 24360 eventsProp: Object, 24361 urlsResponse: Object 24362 }, 24363 data: function data() { 24364 return { 24365 form: JSON.parse(JSON.stringify(this.formProp)), 24366 company: JSON.parse(JSON.stringify(this.companyProp)), 24367 events: JSON.parse(JSON.stringify(this.eventsProp)) 24368 }; 24369 }, 24370 mounted: function mounted() { 24371 // replace null with an empty string 24372 for (var _i = 0, _Object$entries = Object.entries(this.form); _i < _Object$entries.length; _i++) { 24373 var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), 24374 key = _Object$entries$_i[0], 24375 value = _Object$entries$_i[1]; 24376 24377 if (value.type === 'text') { 24378 if (value.value === null) { 24379 value.value = ""; 24380 } 24381 } else if (value.type === 'select') { 24382 if (value.value === null) { 24383 value.value = 0; 24384 } 24385 } 24386 } 24387 }, 24388 methods: { 24389 companyUpdate: function companyUpdate(e, generalSettings) { 24390 var _this = this; 24391 24392 var formData = new FormData(); 24393 formData.append('form[name]', this.form.name.value); 24394 formData.append('form[contactName]', this.form.contactName.value); 24395 formData.append('form[contactPhone]', this.form.contactPhone.value); 24396 formData.append('form[contactEmail]', this.company.contactEmail); 24397 formData.append('form[contactWebsite]', this.form.contactWebsite.value); 24398 formData.append('form[disableInternShipType]', this.form.disableInternShipType.value); 24399 formData.append('form[reminderInterval]', this.form.reminderInterval.value); 24400 24401 if (generalSettings) { 24402 formData.append('form[general_settings]', 1); 24403 } 24404 24405 axios({ 24406 method: "post", 24407 url: this.urlsResponse.x12_process_company_update, 24408 data: formData, 24409 headers: { 24410 'Content-Type': 'multipart/form-data' 24411 } 24412 }).then(function (response) { 24413 if (!response.data.error) { 24414 _this.toast.success(response.data.message.text); 24415 24416 _this.company = JSON.parse(JSON.stringify(response.data.company)); 24417 _this.form = JSON.parse(JSON.stringify(response.data.company_form)); 24418 } else { 24419 _this.toast.error("Es sind Fehler aufgetreten. Bitte überprüfen Sie Ihre Eingaben."); 24420 24421 _this.form = JSON.parse(JSON.stringify(response.data)); 24422 } 24423 })["catch"](function (response) {}); 24424 e.preventDefault(); 24425 } 24426 }, 24427 setup: function setup() { 24428 var toast = (0,vue_toastification__WEBPACK_IMPORTED_MODULE_0__.useToast)(); 24429 return { 24430 toast: toast 24431 }; 24432 } 24433}); 24434 24435/***/ }), 24436 24437/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventData.vue?vue&type=script&lang=js": 24438/*!*********************************************************************************************************************************************************************************************!*\ 24439 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventData.vue?vue&type=script&lang=js ***! 24440 \*********************************************************************************************************************************************************************************************/ 24441/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 24442 24443"use strict"; 24444__webpack_require__.r(__webpack_exports__); 24445/* harmony import */ var _EventForm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventForm */ "./src/js/components/EventForm.vue"); 24446/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 24447/* harmony import */ var vue_toastification__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-toastification */ "./node_modules/vue-toastification/dist/index.mjs"); 24448 24449 24450 24451/* harmony default export */ __webpack_exports__["default"] = ({ 24452 name: "EventData", 24453 components: { 24454 EventForm: _EventForm__WEBPACK_IMPORTED_MODULE_0__["default"] 24455 }, 24456 props: { 24457 headline: { 24458 type: String, 24459 "default": 'Meine Veranstaltungen' 24460 }, 24461 eventProp: Object, 24462 urlAddEvent: String, 24463 urlsResponse: Object 24464 }, 24465 data: function data() { 24466 return { 24467 storeFormIsVisible: false, 24468 updateFormIsVisible: false, 24469 eventToBeEdited: null, 24470 events: this.eventProp, 24471 responseAction: null 24472 }; 24473 }, 24474 methods: { 24475 toggleStoreForm: function toggleStoreForm() { 24476 this.storeFormIsVisible = !this.storeFormIsVisible; 24477 }, 24478 toggleUpdateForm: function toggleUpdateForm(index) { 24479 this.updateFormIsVisible = !this.updateFormIsVisible; 24480 this.eventToBeEdited = index; 24481 }, 24482 formatDate: function formatDate(date) { 24483 var options = { 24484 year: 'numeric', 24485 month: '2-digit', 24486 day: '2-digit' 24487 }; 24488 return new Date(date).toLocaleDateString('de-DE', options); 24489 }, 24490 deleteEvent: function deleteEvent(index) { 24491 var _this = this; 24492 24493 axios({ 24494 method: "post", 24495 url: this.urlsResponse.x12_process_event_delete + index, 24496 data: "", 24497 headers: { 24498 'Content-Type': 'application/json' 24499 } 24500 }).then(function (response) { 24501 if (!response.data.error) _this.toast.success(response.data.message.text);else { 24502 _this.toast.error(response.data.message.text); 24503 } 24504 24505 _this.updateEventList(); 24506 })["catch"](function (response) {}); 24507 }, 24508 updateEventList: function updateEventList() { 24509 var _this2 = this; 24510 24511 axios({ 24512 method: "post", 24513 url: this.urlsResponse.x12_request_events, 24514 headers: { 24515 'Content-Type': 'multipart/form-data' 24516 } 24517 }).then(function (response) { 24518 _this2.events = JSON.parse(JSON.stringify(response.data.items)); 24519 })["catch"](function (response) {}); 24520 }, 24521 finishUpdateEvent: function finishUpdateEvent(message) { 24522 this.toggleUpdateForm(); 24523 this.updateEventList(); 24524 this.toast.success(message); 24525 }, 24526 finishStoreEvent: function finishStoreEvent(message) { 24527 this.toggleStoreForm(); 24528 this.updateEventList(); 24529 this.toast.success(message); 24530 } 24531 }, 24532 mounted: function mounted() {}, 24533 setup: function setup() { 24534 var date = (0,vue__WEBPACK_IMPORTED_MODULE_1__.ref)(new Date()); 24535 24536 var format = function format(date) { 24537 var day = date.getDate(); 24538 var month = date.getMonth() + 1; 24539 var year = date.getFullYear(); 24540 var hour = date.getHours(); 24541 var minutes = date.getMinutes(); 24542 return "".concat(day, ".").concat(month, ".").concat(year, " ").concat(hour, ":").concat(minutes); 24543 }; 24544 24545 var toast = (0,vue_toastification__WEBPACK_IMPORTED_MODULE_2__.useToast)(); 24546 return { 24547 date: date, 24548 format: format, 24549 toast: toast 24550 }; 24551 } 24552}); 24553 24554/***/ }), 24555 24556/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventForm.vue?vue&type=script&lang=js": 24557/*!*********************************************************************************************************************************************************************************************!*\ 24558 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventForm.vue?vue&type=script&lang=js ***! 24559 \*********************************************************************************************************************************************************************************************/ 24560/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 24561 24562"use strict"; 24563__webpack_require__.r(__webpack_exports__); 24564/* harmony import */ var _vuepic_vue_datepicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vuepic/vue-datepicker */ "./node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.es.js"); 24565/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 24566/* harmony import */ var _vuepic_vue_datepicker_dist_main_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @vuepic/vue-datepicker/dist/main.css */ "./node_modules/@vuepic/vue-datepicker/dist/main.css"); 24567/* harmony import */ var vue_toastification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-toastification */ "./node_modules/vue-toastification/dist/index.mjs"); 24568/* harmony import */ var _InputFileUpload_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./InputFileUpload.vue */ "./src/js/components/InputFileUpload.vue"); 24569function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } 24570 24571function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } 24572 24573function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } 24574 24575function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } 24576 24577function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } 24578 24579function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } 24580 24581function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } 24582 24583 24584 24585 24586 24587 24588/* harmony default export */ __webpack_exports__["default"] = ({ 24589 components: { 24590 InputFileUpload: _InputFileUpload_vue__WEBPACK_IMPORTED_MODULE_4__["default"], 24591 Datepicker: _vuepic_vue_datepicker__WEBPACK_IMPORTED_MODULE_0__["default"] 24592 }, 24593 name: "EventForm", 24594 props: { 24595 info: { 24596 type: String, 24597 "default": 'Hier steht eine Ãberschrift' 24598 }, 24599 eventProp: String, 24600 actionProp: String, 24601 urlsResponse: Object 24602 }, 24603 emits: ['event-updated', 'event-added'], 24604 data: function data() { 24605 return { 24606 form: { 24607 id: "", 24608 name: "", 24609 image: "", 24610 file: "", 24611 targetGroup: [], 24612 schoolType: [], 24613 street: "", 24614 postalCode: "", 24615 city: "", 24616 region: "", 24617 building: "", 24618 shortDescription: "", 24619 additionalInformation: "", 24620 datesAndOpeningTimes: "", 24621 startAt: "", 24622 eventDuration: "", 24623 website: "", 24624 lastYearWebsite: "" 24625 }, 24626 imageFile: null, 24627 pdfFile: null, 24628 deletePdf: false 24629 }; 24630 }, 24631 methods: { 24632 extraktFilename: function extraktFilename(filename) { 24633 if (!filename) { 24634 return ''; 24635 } 24636 24637 return filename.split('/').pop().split('_').slice(0, -1).join('_') + '.pdf'; 24638 }, 24639 load: function load() { 24640 var _this = this; 24641 24642 var $eventProp = typeof this.eventProp === 'undefined' ? '' : this.eventProp; 24643 axios({ 24644 method: "post", 24645 url: this.urlsResponse.x12_request_event_form + $eventProp, 24646 headers: { 24647 'Content-Type': 'multipart/form-data' 24648 } 24649 }).then(function (response) { 24650 var eventDuration = _this.form.eventDuration.value; 24651 _this.form = JSON.parse(JSON.stringify(response.data))['data']; 24652 24653 if (typeof _this.form.id !== "undefined" || _this.form.id) { 24654 _this.form.targetGroup.value = _this.form.targetGroup.value.split(','); 24655 _this.form.schoolType.value = _this.form.schoolType.value.split(','); // Calculate the duration in days 24656 24657 if (_this.form.eventDuration.value) { 24658 var durationInMilliseconds = new Date(_this.form.eventDuration.value) - new Date(_this.form.startAt.value); 24659 _this.form.eventDuration.value = Math.floor(durationInMilliseconds / (24 * 60 * 60 * 1000)); 24660 } 24661 24662 _this.form.startAt.value = _this.format(_this.form.startAt.value); 24663 } else { 24664 _this.form.targetGroup.value = []; 24665 _this.form.schoolType.value = []; 24666 _this.form.eventDuration.value = eventDuration; 24667 } 24668 })["catch"](function (response) {}); 24669 }, 24670 validate: function validate() { 24671 this.validationMessages = []; 24672 24673 if (this.form.file.error) { 24674 this.validationMessages.push(this.form.file.message); 24675 } 24676 24677 if (this.form.image.error) { 24678 this.validationMessages.push(this.form.image.message); 24679 } // Postal code must be exactly 4 digits 24680 24681 24682 if (this.form.postalCode.value.length !== 4) { 24683 this.validationMessages.push("Bitte geben Sie eine gültige Postleitzahl ein."); 24684 } 24685 24686 return this.validationMessages.length === 0; 24687 }, 24688 showValidationMessages: function showValidationMessages() { 24689 var _this2 = this; 24690 24691 this.validationMessages.forEach(function (message) { 24692 _this2.toast.error(message); 24693 }); 24694 }, 24695 storeEvent: function storeEvent() { 24696 var _this3 = this; 24697 24698 var formData = new FormData(); 24699 formData.append('form[name]', this.form.name.value); 24700 formData.append('form[file]', this.pdfFile); 24701 formData.append('form[image]', this.imageFile); 24702 formData.append('form[targetGroup]', this.form.targetGroup.value ? this.form.targetGroup.value.join(',') : ''); 24703 formData.append('form[schoolType]', this.form.schoolType.value ? this.form.schoolType.value.join(',') : ''); 24704 formData.append('form[street]', this.form.street.value); 24705 formData.append('form[postalCode]', this.form.postalCode.value); 24706 formData.append('form[city]', this.form.city.value); 24707 formData.append('form[region]', this.form.region.value); 24708 formData.append('form[building]', this.form.building.value); 24709 formData.append('form[shortDescription]', this.form.shortDescription.value); 24710 formData.append('form[additionalInformation]', this.form.additionalInformation.value); 24711 formData.append('form[datesAndOpeningTimes]', this.form.datesAndOpeningTimes.value); 24712 formData.append('form[startAt]', this.form.startAt.value); 24713 formData.append('form[eventDuration]', this.form.eventDuration.value); 24714 formData.append('form[website]', this.form.website.value); 24715 formData.append('form[lastYearWebsite]', this.form.lastYearWebsite.value); // replace null with an empty string 24716 24717 var _iterator = _createForOfIteratorHelper(formData.entries()), 24718 _step; 24719 24720 try { 24721 for (_iterator.s(); !(_step = _iterator.n()).done;) { 24722 var _step$value = _slicedToArray(_step.value, 2), 24723 key = _step$value[0], 24724 value = _step$value[1]; 24725 24726 if (value === "null") { 24727 formData.set(key, ""); 24728 } 24729 } 24730 } catch (err) { 24731 _iterator.e(err); 24732 } finally { 24733 _iterator.f(); 24734 } 24735 24736 if (!this.validate()) { 24737 this.showValidationMessages(); 24738 return; 24739 } 24740 24741 axios({ 24742 method: "post", 24743 url: this.urlsResponse.x12_process_event_store, 24744 data: formData, 24745 headers: { 24746 'Content-Type': 'multipart/form-data' 24747 } 24748 }).then(function (response) { 24749 if (!response.data.error) { 24750 _this3.$emit("event-added", response.data.message.text); 24751 } else { 24752 _this3.toast.error(response.data.message.text); 24753 24754 _this3.form = JSON.parse(JSON.stringify(response.data))['data']; 24755 _this3.form.targetGroup.value = _this3.form.targetGroup.value.split(','); 24756 _this3.form.schoolType.value = _this3.form.schoolType.value.split(','); 24757 } 24758 })["catch"](function (response) { 24759 this.toast.error("Fehler beim Speichern der Veranstaltung"); 24760 }); 24761 }, 24762 updateEvent: function updateEvent() { 24763 var _this4 = this; 24764 24765 var formData = new FormData(); 24766 formData.append('form[name]', this.form.name.value); 24767 formData.append('form[file]', this.pdfFile); 24768 24769 if (this.deletePdf) { 24770 formData.append('form[deleteFile]', this.deletePdf); 24771 } 24772 24773 formData.append('form[image]', this.imageFile); 24774 formData.append('form[targetGroup]', this.form.targetGroup.value ? this.form.targetGroup.value.join(',') : ''); 24775 formData.append('form[schoolType]', this.form.schoolType.value ? this.form.schoolType.value.join(',') : ''); 24776 formData.append('form[street]', this.form.street.value); 24777 formData.append('form[postalCode]', this.form.postalCode.value); 24778 formData.append('form[city]', this.form.city.value); 24779 formData.append('form[region]', this.form.region.value); 24780 formData.append('form[building]', this.form.building.value); 24781 formData.append('form[shortDescription]', this.form.shortDescription.value); 24782 formData.append('form[additionalInformation]', this.form.additionalInformation.value); 24783 formData.append('form[datesAndOpeningTimes]', this.form.datesAndOpeningTimes.value); 24784 formData.append('form[startAt]', this.form.startAt.value); 24785 formData.append('form[eventDuration]', this.form.eventDuration.value); 24786 formData.append('form[website]', this.form.website.value); 24787 formData.append('form[lastYearWebsite]', this.form.lastYearWebsite.value); // replace null with an empty string 24788 24789 var _iterator2 = _createForOfIteratorHelper(formData.entries()), 24790 _step2; 24791 24792 try { 24793 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { 24794 var _step2$value = _slicedToArray(_step2.value, 2), 24795 key = _step2$value[0], 24796 value = _step2$value[1]; 24797 24798 if (value === "null") { 24799 formData.set(key, ""); 24800 } 24801 } 24802 } catch (err) { 24803 _iterator2.e(err); 24804 } finally { 24805 _iterator2.f(); 24806 } 24807 24808 if (!this.validate()) { 24809 this.showValidationMessages(); 24810 return; 24811 } 24812 24813 axios({ 24814 method: "post", 24815 url: this.urlsResponse.x12_process_event_update + this.form.id.value, 24816 data: formData, 24817 headers: { 24818 'Content-Type': 'multipart/form-data' 24819 } 24820 }).then(function (response) { 24821 if (!response.data.error) { 24822 _this4.$emit("event-updated", response.data.message.text); 24823 } else { 24824 _this4.toast.error(response.data.message.text); 24825 24826 _this4.form = JSON.parse(JSON.stringify(response.data))['data']; 24827 _this4.form.targetGroup.value = _this4.form.targetGroup.value.split(','); 24828 _this4.form.schoolType.value = _this4.form.schoolType.value.split(','); 24829 } 24830 })["catch"](function (response) { 24831 this.toast.error("Fehler beim Speichern der Veranstaltung"); 24832 }); 24833 }, 24834 uploadFile: function uploadFile(file) { 24835 // check if file is an image 24836 if (!file.type.match('image.*')) { 24837 this.form.image.error = true; 24838 this.form.image.message = "Bitte wählen Sie ein Bild aus."; 24839 return; 24840 } 24841 24842 this.form.image.error = false; 24843 this.imageFile = file; 24844 }, 24845 uploadPdf: function uploadPdf(file) { 24846 // check if file is a pdf 24847 if (!file.type.match('application/pdf')) { 24848 this.form.file.error = true; 24849 this.form.file.message = "Bitte wählen Sie eine PDF-Datei aus."; 24850 return; 24851 } else if (file.size > 4194304) { 24852 this.form.file.error = true; 24853 this.form.file.message = "Die Datei ist zu groÃ. Bitte wählen Sie eine Datei kleiner als 4 MB."; 24854 return; 24855 } 24856 24857 this.form.file.error = false; 24858 this.form.file.value = '/files/' + file.name.split('.').slice(0, -1).join('') + '_' + new Date().getTime() + '.pdf'; 24859 this.pdfFile = file; 24860 }, 24861 deletePdfFile: function deletePdfFile() { 24862 this.form.file.value = ''; 24863 this.deletePdf = true; 24864 } 24865 }, 24866 mounted: function mounted() { 24867 this.load(); 24868 }, 24869 setup: function setup() { 24870 var date = (0,vue__WEBPACK_IMPORTED_MODULE_1__.ref)(new Date()); 24871 24872 var format = function format(date) { 24873 var day = date.getDate(); 24874 var month = date.getMonth() + 1; 24875 var year = date.getFullYear(); 24876 return "".concat(day, ".").concat(month, ".").concat(year); 24877 }; 24878 24879 var minDate = new Date(); 24880 var toast = (0,vue_toastification__WEBPACK_IMPORTED_MODULE_3__.useToast)(); 24881 return { 24882 date: date, 24883 format: format, 24884 toast: toast, 24885 minDate: minDate 24886 }; 24887 } 24888}); 24889 24890/***/ }), 24891 24892/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/InputFileUpload.vue?vue&type=script&lang=js": 24893/*!***************************************************************************************************************************************************************************************************!*\ 24894 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/InputFileUpload.vue?vue&type=script&lang=js ***! 24895 \***************************************************************************************************************************************************************************************************/ 24896/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 24897 24898"use strict"; 24899__webpack_require__.r(__webpack_exports__); 24900/* harmony default export */ __webpack_exports__["default"] = ({ 24901 name: "InputFileUpload", 24902 emits: ['upload'], 24903 methods: { 24904 onChangeFile: function onChangeFile(event) { 24905 this.$emit('upload', event.target.files[0]); //console.log(event.target.files[0]) 24906 } 24907 } 24908}); 24909 24910/***/ }), 24911 24912/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=script&lang=js": 24913/*!****************************************************************************************************************************************************************************************************!*\ 24914 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=script&lang=js ***! 24915 \****************************************************************************************************************************************************************************************************/ 24916/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 24917 24918"use strict"; 24919__webpack_require__.r(__webpack_exports__); 24920/* harmony import */ var vue_toastification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-toastification */ "./node_modules/vue-toastification/dist/index.mjs"); 24921/* harmony import */ var _InputFileUpload__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InputFileUpload */ "./src/js/components/InputFileUpload.vue"); 24922/* harmony import */ var _BaseSelect_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BaseSelect.vue */ "./src/js/components/BaseSelect.vue"); 24923function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } 24924 24925function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } 24926 24927function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } 24928 24929function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } 24930 24931function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } 24932 24933function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } 24934 24935 24936 24937 24938/* harmony default export */ __webpack_exports__["default"] = ({ 24939 name: "RegistrationData", 24940 components: { 24941 InputFileUpload: _InputFileUpload__WEBPACK_IMPORTED_MODULE_1__["default"], 24942 BaseSelect: _BaseSelect_vue__WEBPACK_IMPORTED_MODULE_2__["default"] 24943 }, 24944 props: { 24945 headline: { 24946 type: String, 24947 "default": 'Registrieren Sie sich als Veranstalter' 24948 }, 24949 buttonValue: { 24950 type: String, 24951 "default": 'Account anlegen' 24952 }, 24953 buttonGenerateCode: { 24954 type: String, 24955 "default": 'Verifizierungscode generieren' 24956 }, 24957 formProp: Object, 24958 urlVerify: String, 24959 urlProcess: String 24960 }, 24961 data: function data() { 24962 return { 24963 form: JSON.parse(JSON.stringify(this.formProp)), 24964 infoText: "Der Account kann erst angelegt werden, wenn erfolgreich ein Verifizierungscode generiert und eingegeben wurde.", 24965 infoTextVerification: "Ihr E-Mail mit dem Verifizierungscode wurde erfolgreich versendet. Sie können erst nach 5 Minuten erneut einen Verifizierungscode anfordern.", 24966 successfulValidation: false, 24967 showVerificationButton: true 24968 }; 24969 }, 24970 mounted: function mounted() { 24971 // URL parameter verification for disable/able Button "Account anlegen" 24972 var uri = window.location.search.substring(1); 24973 var params = new URLSearchParams(uri); 24974 24975 if (params.get("verification") === "1") { 24976 this.successfulValidation = true; 24977 } // replace null with an empty string 24978 24979 24980 for (var _i = 0, _Object$entries = Object.entries(this.form); _i < _Object$entries.length; _i++) { 24981 var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), 24982 key = _Object$entries$_i[0], 24983 value = _Object$entries$_i[1]; 24984 24985 if (value.type === 'text') { 24986 if (value.value === null) { 24987 value.value = ""; 24988 } 24989 } else if (value.type === 'select') { 24990 if (value.value === null) { 24991 value.value = 0; 24992 } 24993 } 24994 } 24995 }, 24996 methods: { 24997 processForm: function processForm() { 24998 var _this = this; 24999 25000 var formData = new FormData(); 25001 formData.append('form[name]', this.form.name.value); 25002 formData.append('form[contactName]', this.form.contactName.value); 25003 formData.append('form[contactEmail]', this.form.contactEmail.value); 25004 formData.append('form[contactPhone]', this.form.contactPhone.value); 25005 formData.append('form[contactWebsite]', this.form.contactWebsite.value); 25006 formData.append('form[verificationCode]', this.form.verificationCode.value); 25007 formData.append('form[status]', "active"); 25008 axios({ 25009 method: "post", 25010 url: this.urlProcess, 25011 data: formData, 25012 headers: { 25013 'Content-Type': 'multipart/form-data' 25014 } 25015 }).then(function (response) { 25016 if (!response.data.error) { 25017 _this.toast.success("Sie haben sich als Veranstalter erfolgreich registriert. Ein Link zur Bearbeitung Ihrer Daten wurde per E-Mail versandt."); 25018 25019 setTimeout(function () { 25020 location.reload(); 25021 }, 3000); 25022 } else { 25023 _this.toast.error("Es sind Fehler aufgetreten. Bitte überprüfen Sie Ihre Eingaben."); 25024 25025 _this.form = JSON.parse(JSON.stringify(response.data)); 25026 } 25027 })["catch"](function (response) { 25028 _this.toast.error("Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später nocheinmal oder kontaktieren Sie den Systemadministrator."); 25029 }); 25030 }, 25031 generateCode: function generateCode() { 25032 var _this2 = this; 25033 25034 var formData = new FormData(); 25035 formData.append('form[name]', this.form.name.value); 25036 formData.append('form[contactName]', this.form.contactName.value); 25037 formData.append('form[contactEmail]', this.form.contactEmail.value); 25038 formData.append('form[contactPhone]', this.form.contactPhone.value); 25039 formData.append('form[contactWebsite]', this.form.contactWebsite.value); 25040 formData.append('form[verificationCode]', this.form.verificationCode.value); 25041 axios({ 25042 method: "post", 25043 url: this.urlVerify, 25044 data: formData, 25045 headers: { 25046 'Content-Type': 'multipart/form-data' 25047 } 25048 }).then(function (response) { 25049 //console.log("then:"); 25050 //console.log(response); 25051 if (!response.data.error) { 25052 _this2.toast.success(response.data.message.text); 25053 25054 _this2.form = JSON.parse(JSON.stringify(response.data)); 25055 _this2.successfulValidation = true; 25056 _this2.showVerificationButton = false; 25057 setTimeout(function () { 25058 _this2.showVerificationButton = true; 25059 }, 50000); 25060 } else { 25061 _this2.toast.error("Es sind Fehler aufgetreten. Bitte überprüfen Sie Ihre Eingaben."); 25062 25063 _this2.form = JSON.parse(JSON.stringify(response.data)); 25064 } 25065 })["catch"](function (response) {}); 25066 }, 25067 showInfo: function showInfo() { 25068 this.toast.warning(this.infoText); 25069 }, 25070 showInfoVerification: function showInfoVerification() { 25071 this.toast.warning(this.infoTextVerification); 25072 } 25073 }, 25074 setup: function setup() { 25075 var toast = (0,vue_toastification__WEBPACK_IMPORTED_MODULE_0__.useToast)(); 25076 return { 25077 toast: toast 25078 }; 25079 } 25080}); 25081 25082/***/ }), 25083 25084/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=template&id=f1c5db0e": 25085/*!**************************************************************************************************************************************************************************************************************************************************************************!*\ 25086 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=template&id=f1c5db0e ***! 25087 \**************************************************************************************************************************************************************************************************************************************************************************/ 25088/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 25089 25090"use strict"; 25091__webpack_require__.r(__webpack_exports__); 25092/* harmony export */ __webpack_require__.d(__webpack_exports__, { 25093/* harmony export */ "render": function() { return /* binding */ render; } 25094/* harmony export */ }); 25095/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 25096 25097var _hoisted_1 = { 25098 key: 0, 25099 "class": "d-inline-block form-label" 25100}; 25101function render(_ctx, _cache, $props, $setup, $data, $options) { 25102 var _component_vue_next_select = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("vue-next-select"); 25103 25104 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, [$props.label ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_1, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.label) + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.requiredStar ? ' *' : ''), 1 25105 /* TEXT */ 25106 )) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_vue_next_select, { 25107 modelValue: $options.model, 25108 "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { 25109 return $options.model = $event; 25110 }), 25111 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)({ 25112 'vue-select--readonly': $props.readonly, 25113 additionalClass: $props.additionalClass 25114 }), 25115 "close-on-select": !$props.multiple, 25116 disabled: $props.readonly, 25117 "empty-model-value": '', 25118 "label-by": "label", 25119 min: 0, 25120 multiple: $props.multiple, 25121 options: $props.options, 25122 placeholder: $options.computedPlaceholder, 25123 "search-placeholder": "Suchen", 25124 searchable: true, 25125 taggable: $props.multiple, 25126 "value-by": "value" 25127 }, null, 8 25128 /* PROPS */ 25129 , ["modelValue", "class", "close-on-select", "disabled", "multiple", "options", "placeholder", "taggable"])], 64 25130 /* STABLE_FRAGMENT */ 25131 ); 25132} 25133 25134/***/ }), 25135 25136/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=template&id=457cc02b&scoped=true": 25137/*!***************************************************************************************************************************************************************************************************************************************************************************************!*\ 25138 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=template&id=457cc02b&scoped=true ***! 25139 \***************************************************************************************************************************************************************************************************************************************************************************************/ 25140/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 25141 25142"use strict"; 25143__webpack_require__.r(__webpack_exports__); 25144/* harmony export */ __webpack_require__.d(__webpack_exports__, { 25145/* harmony export */ "render": function() { return /* binding */ render; } 25146/* harmony export */ }); 25147/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 25148 25149 25150var _withScopeId = function _withScopeId(n) { 25151 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.pushScopeId)("data-v-457cc02b"), n = n(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.popScopeId)(), n; 25152}; 25153 25154var _hoisted_1 = { 25155 "class": "text-right form-info--border-bottom" 25156}; 25157var _hoisted_2 = { 25158 "class": "form-info__inner" 25159}; 25160 25161var _hoisted_3 = /*#__PURE__*/_withScopeId(function () { 25162 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("strong", null, "Login:", -1 25163 /* HOISTED */ 25164 ); 25165}); 25166 25167var _hoisted_4 = /*#__PURE__*/_withScopeId(function () { 25168 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("strong", null, "E-Mail: ", -1 25169 /* HOISTED */ 25170 ); 25171}); 25172 25173var _hoisted_5 = { 25174 "class": "form-step-container" 25175}; 25176var _hoisted_6 = { 25177 "data-toggle": "collapse", 25178 href: "#collapseExample", 25179 role: "button", 25180 "aria-expanded": "false", 25181 "aria-controls": "collapseExample", 25182 "class": "form-step-container__headline form-step-container__headline--collapsable collapsed" 25183}; 25184var _hoisted_7 = { 25185 "class": "form-step-container__inner collapse", 25186 id: "collapseExample" 25187}; 25188var _hoisted_8 = { 25189 "class": "card card-body" 25190}; 25191var _hoisted_9 = { 25192 key: 0 25193}; 25194var _hoisted_10 = { 25195 "class": "row" 25196}; 25197var _hoisted_11 = { 25198 "class": "col-lg-6" 25199}; 25200var _hoisted_12 = { 25201 "class": "form-element" 25202}; 25203var _hoisted_13 = ["for"]; 25204var _hoisted_14 = { 25205 key: 0, 25206 title: "Pflichtfeld" 25207}; 25208 25209var _hoisted_15 = /*#__PURE__*/_withScopeId(function () { 25210 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25211 /* HOISTED */ 25212 ); 25213}); 25214 25215var _hoisted_16 = ["required", "type", "id"]; 25216var _hoisted_17 = ["innerHTML"]; 25217 25218var _hoisted_18 = /*#__PURE__*/_withScopeId(function () { 25219 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 25220 "class": "row" 25221 }, [/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 25222 "class": "col-sm-12" 25223 }, [/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", { 25224 "class": "form-part-headline" 25225 }, "Ansprechpartner")])], -1 25226 /* HOISTED */ 25227 ); 25228}); 25229 25230var _hoisted_19 = { 25231 "class": "row" 25232}; 25233var _hoisted_20 = { 25234 "class": "col-lg-6" 25235}; 25236var _hoisted_21 = { 25237 "class": "form-element" 25238}; 25239var _hoisted_22 = ["for"]; 25240var _hoisted_23 = { 25241 key: 0, 25242 title: "Pflichtfeld" 25243}; 25244 25245var _hoisted_24 = /*#__PURE__*/_withScopeId(function () { 25246 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25247 /* HOISTED */ 25248 ); 25249}); 25250 25251var _hoisted_25 = ["required", "type", "id"]; 25252var _hoisted_26 = ["innerHTML"]; 25253var _hoisted_27 = { 25254 "class": "form-element" 25255}; 25256var _hoisted_28 = ["for"]; 25257var _hoisted_29 = { 25258 key: 0, 25259 title: "Pflichtfeld" 25260}; 25261 25262var _hoisted_30 = /*#__PURE__*/_withScopeId(function () { 25263 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25264 /* HOISTED */ 25265 ); 25266}); 25267 25268var _hoisted_31 = ["required", "type", "id"]; 25269var _hoisted_32 = ["innerHTML"]; 25270var _hoisted_33 = { 25271 "class": "form-element" 25272}; 25273var _hoisted_34 = ["for"]; 25274var _hoisted_35 = { 25275 key: 0, 25276 title: "Pflichtfeld" 25277}; 25278 25279var _hoisted_36 = /*#__PURE__*/_withScopeId(function () { 25280 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25281 /* HOISTED */ 25282 ); 25283}); 25284 25285var _hoisted_37 = ["required", "type", "id"]; 25286var _hoisted_38 = ["innerHTML"]; 25287var _hoisted_39 = { 25288 "class": "row" 25289}; 25290var _hoisted_40 = { 25291 "class": "col-lg-6 offset-lg-3 text-center" 25292}; 25293function render(_ctx, _cache, $props, $setup, $data, $options) { 25294 var _component_event_data = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("event-data"); 25295 25296 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_2, [_hoisted_3, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.company.name) + ", ", 1 25297 /* TEXT */ 25298 ), _hoisted_4, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.company.contactEmail), 1 25299 /* TEXT */ 25300 )])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_5, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("a", _hoisted_6, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.headline_company), 1 25301 /* TEXT */ 25302 ), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_7, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_8, [$data.form ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("form", _hoisted_9, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_10, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_11, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" name "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_12, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 25303 "class": "form-label", 25304 "for": $data.form.name.element_id 25305 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.name.label) + " ", 1 25306 /* TEXT */ 25307 ), $data.form.name.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_14, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 8 25308 /* PROPS */ 25309 , _hoisted_13), _hoisted_15, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 25310 "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { 25311 return $data.form.name.value = $event; 25312 }), 25313 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.name.error ? 'is-invalid' : '']), 25314 required: $data.form.name.required, 25315 type: $data.form.name.type, 25316 id: $data.form.name.element_id 25317 }, null, 10 25318 /* CLASS, PROPS */ 25319 , _hoisted_16), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.name.value]]), $data.form.name.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 25320 key: 0, 25321 "class": "invalid-feedback", 25322 innerHTML: $data.form.name.message 25323 }, null, 8 25324 /* PROPS */ 25325 , _hoisted_17)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])]), _hoisted_18, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_19, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_20, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" contactPhone "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_21, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 25326 "class": "form-label", 25327 "for": $data.form.contactPhone.element_id 25328 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.contactPhone.label) + " ", 1 25329 /* TEXT */ 25330 ), $data.form.contactPhone.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_23, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 8 25331 /* PROPS */ 25332 , _hoisted_22), _hoisted_24, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 25333 "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) { 25334 return $data.form.contactPhone.value = $event; 25335 }), 25336 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.contactPhone.error ? 'is-invalid' : '']), 25337 required: $data.form.contactPhone.required, 25338 type: $data.form.contactPhone.type, 25339 id: $data.form.contactPhone.element_id 25340 }, null, 10 25341 /* CLASS, PROPS */ 25342 , _hoisted_25), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.contactPhone.value]]), $data.form.contactPhone.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 25343 key: 0, 25344 "class": "invalid-feedback", 25345 innerHTML: $data.form.contactPhone.message 25346 }, null, 8 25347 /* PROPS */ 25348 , _hoisted_26)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" contactName "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_27, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 25349 "class": "form-label", 25350 "for": $data.form.contactName.element_id 25351 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.contactName.label) + " ", 1 25352 /* TEXT */ 25353 ), $data.form.contactName.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_29, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 8 25354 /* PROPS */ 25355 , _hoisted_28), _hoisted_30, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 25356 "onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) { 25357 return $data.form.contactName.value = $event; 25358 }), 25359 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.contactName.error ? 'is-invalid' : '']), 25360 required: $data.form.contactName.required, 25361 type: $data.form.contactName.type, 25362 id: $data.form.contactName.element_id 25363 }, null, 10 25364 /* CLASS, PROPS */ 25365 , _hoisted_31), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.contactName.value]]), $data.form.contactName.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 25366 key: 0, 25367 "class": "invalid-feedback", 25368 innerHTML: $data.form.contactName.message 25369 }, null, 8 25370 /* PROPS */ 25371 , _hoisted_32)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" contactWebsite "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_33, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 25372 "class": "form-label", 25373 "for": $data.form.contactWebsite.element_id 25374 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.contactWebsite.label) + " ", 1 25375 /* TEXT */ 25376 ), $data.form.contactWebsite.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_35, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 8 25377 /* PROPS */ 25378 , _hoisted_34), _hoisted_36, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 25379 "onUpdate:modelValue": _cache[3] || (_cache[3] = function ($event) { 25380 return $data.form.contactWebsite.value = $event; 25381 }), 25382 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.contactWebsite.error ? 'is-invalid' : '']), 25383 required: $data.form.contactWebsite.required, 25384 type: $data.form.contactWebsite.type, 25385 id: $data.form.contactWebsite.element_id 25386 }, null, 10 25387 /* CLASS, PROPS */ 25388 , _hoisted_37), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.contactWebsite.value]]), $data.form.contactWebsite.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 25389 key: 0, 25390 "class": "invalid-feedback", 25391 innerHTML: $data.form.contactWebsite.message 25392 }, null, 8 25393 /* PROPS */ 25394 , _hoisted_38)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_39, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_40, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { 25395 "class": "c-btn c-btn--yellow", 25396 onClick: _cache[4] || (_cache[4] = function ($event) { 25397 return $options.companyUpdate($event, false); 25398 }) 25399 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.buttonValue), 1 25400 /* TEXT */ 25401 )])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <pre>{{form}}</pre> "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("<pre>{{company}}</pre>")])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_event_data, { 25402 "event-prop": $data.events, 25403 "urls-Response": $props.urlsResponse 25404 }, null, 8 25405 /* PROPS */ 25406 , ["event-prop", "urls-Response"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"form-step-container\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <a data-toggle=\"collapse\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" href=\"#collapseSettings\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" role=\"button\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" aria-expanded=\"false\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" aria-controls=\"collapseExample\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" class=\"form-step-container__headline form-step-container__headline--collapsable collapsed\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" {{headline_settings}}"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </a>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"form-step-container__inner collapse\" id=\"collapseSettings\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"card card-body\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"row\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <!– disableInternShipType –>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"col-lg-6\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"form-element\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <fieldset>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <legend class=\"form-label\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" {{ form.disableInternShipType.label }} <abbr title=\"Pflichtfeld\" v-if=\"form.disableInternShipType.required\">* </abbr>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </legend>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div v-for=\"(label, name) in form.disableInternShipType.predefined\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <label class=\"form-input-label\" :for=\"'disableInternShipType_' + name\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <input class=\"form-input\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" :class=\"form.disableInternShipType.error ? 'is-invalid' : ''\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" type=\"radio\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" :id=\"'disableInternShipType_' + name\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" v-model=\"form.disableInternShipType.value\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" :name=\"form.disableInternShipType.name\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" :value=\"name\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" {{ label }}"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </label>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </fieldset>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"invalid-feedback\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" v-if=\"form.disableInternShipType.error\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" v-html=\"form.disableInternShipType.message\"></div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <!– reminderInterval –>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"col-lg-6\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"form-element\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <fieldset>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <legend class=\"form-label\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" {{ form.reminderInterval.label }} <abbr title=\"Pflichtfeld\" v-if=\"form.reminderInterval.required\">* </abbr>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </legend>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div v-for=\"(label, name) in form.reminderInterval.predefined\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <label class=\"form-input-label\" :for=\"'reminderInterval_' + name\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <input class=\"form-input\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" :class=\"form.reminderInterval.error ? 'is-invalid' : ''\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" type=\"radio\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" :id=\"'reminderInterval_' + name\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" v-model=\"form.reminderInterval.value\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" :name=\"form.reminderInterval.name\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" :value=\"name\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" {{ label }}"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </label>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </fieldset>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"invalid-feedback\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" v-if=\"form.reminderInterval.error\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" v-html=\"form.reminderInterval.message\"></div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <br>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"row\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"col-lg-6 offset-lg-3 text-center\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <button class=\"c-btn c-btn--yellow\" @click=\"companyUpdate($event, true)\">{{buttonValue}}</button>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>")], 64 25407 /* STABLE_FRAGMENT */ 25408 ); 25409} 25410 25411/***/ }), 25412 25413/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventData.vue?vue&type=template&id=8bbc2770": 25414/*!*************************************************************************************************************************************************************************************************************************************************************************!*\ 25415 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventData.vue?vue&type=template&id=8bbc2770 ***! 25416 \*************************************************************************************************************************************************************************************************************************************************************************/ 25417/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 25418 25419"use strict"; 25420__webpack_require__.r(__webpack_exports__); 25421/* harmony export */ __webpack_require__.d(__webpack_exports__, { 25422/* harmony export */ "render": function() { return /* binding */ render; } 25423/* harmony export */ }); 25424/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 25425 25426var _hoisted_1 = { 25427 "class": "form-step-container" 25428}; 25429var _hoisted_2 = { 25430 "data-toggle": "collapse", 25431 href: "#collapseEvent", 25432 role: "button", 25433 "aria-expanded": "false", 25434 "aria-controls": "collapseExample", 25435 "class": "form-step-container__headline form-step-container__headline--collapsable collapsed" 25436}; 25437var _hoisted_3 = { 25438 "class": "form-step-container__inner collapse", 25439 id: "collapseEvent" 25440}; 25441var _hoisted_4 = { 25442 "class": "card card-body" 25443}; 25444var _hoisted_5 = { 25445 key: 0 25446}; 25447var _hoisted_6 = { 25448 key: 1 25449}; 25450var _hoisted_7 = { 25451 key: 2 25452}; 25453 25454var _hoisted_8 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode)("<div class=\"table-list table-list--header hide-on-mobile\"><div class=\"table-list__row\"><div class=\"row\"><div class=\"table-list__cell table-list__cell--noborder col-lg-5\">Veranstaltung</div><div class=\"table-list__cell col-lg-2 hide-on-mobile\">Startdatum</div><div class=\"table-list__cell col-lg-2 hide-on-mobile\">Enddatum</div><!-- <div class="table-list__cell text-center col-lg-1">--><!-- Status--><!-- </div>--></div></div></div>", 1); 25455 25456var _hoisted_9 = { 25457 key: 0, 25458 "class": "text-center" 25459}; 25460 25461var _hoisted_10 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { 25462 "class": "form-info form-info--dark" 25463}, "Zurzeit sind noch keine Veranstaltung angelegt.", -1 25464/* HOISTED */ 25465); 25466 25467var _hoisted_11 = [_hoisted_10]; 25468var _hoisted_12 = { 25469 "class": "table-list" 25470}; 25471var _hoisted_13 = { 25472 "class": "row" 25473}; 25474var _hoisted_14 = { 25475 "class": "table-list__cell table-list__cell--noborder col-lg-5" 25476}; 25477 25478var _hoisted_15 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { 25479 "class": "accessible-hidden" 25480}, "Titel der Veranstaltung: ", -1 25481/* HOISTED */ 25482); 25483 25484var _hoisted_16 = { 25485 "class": "table-list__cell col-lg-2 hide-on-mobile" 25486}; 25487 25488var _hoisted_17 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { 25489 "class": "accessible-hidden" 25490}, "Startdatum: ", -1 25491/* HOISTED */ 25492); 25493 25494var _hoisted_18 = { 25495 "class": "table-list__cell col-lg-2 hide-on-mobile" 25496}; 25497 25498var _hoisted_19 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { 25499 "class": "accessible-hidden" 25500}, "Enddatum: ", -1 25501/* HOISTED */ 25502); 25503 25504var _hoisted_20 = { 25505 "class": "col-lg-3 text-right" 25506}; 25507var _hoisted_21 = ["onClick"]; 25508var _hoisted_22 = { 25509 "class": "accessible-hidden" 25510}; 25511var _hoisted_23 = ["onClick"]; 25512var _hoisted_24 = { 25513 "class": "accessible-hidden" 25514}; 25515function render(_ctx, _cache, $props, $setup, $data, $options) { 25516 var _component_event_form = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("event-form"); 25517 25518 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("a", _hoisted_2, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.headline), 1 25519 /* TEXT */ 25520 ), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_3, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_4, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <pre>{{events}}</pre>"), $data.storeFormIsVisible ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_5, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_event_form, { 25521 info: 'Veranstaltung anlegen', 25522 "action-prop": 'store', 25523 "urls-response": $props.urlsResponse, 25524 onEventAdded: $options.finishStoreEvent 25525 }, null, 8 25526 /* PROPS */ 25527 , ["urls-response", "onEventAdded"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { 25528 onClick: _cache[0] || (_cache[0] = function ($event) { 25529 return $options.toggleStoreForm(); 25530 }), 25531 "class": "c-btn c-btn--grey" 25532 }, "zurück")])) : $data.updateFormIsVisible && $data.eventToBeEdited !== null ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_6, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_event_form, { 25533 info: 'Veranstaltung bearbeiten', 25534 "event-prop": $data.eventToBeEdited, 25535 "action-prop": 'update', 25536 "urls-response": $props.urlsResponse, 25537 onEventUpdated: _cache[1] || (_cache[1] = function ($event) { 25538 return $options.finishUpdateEvent($event); 25539 }) 25540 }, null, 8 25541 /* PROPS */ 25542 , ["event-prop", "urls-response"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { 25543 onClick: _cache[2] || (_cache[2] = function ($event) { 25544 return $options.toggleUpdateForm(); 25545 }), 25546 "class": "c-btn c-btn--grey" 25547 }, "zurück")])) : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_7, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <pre>{{responseAction}}</pre>"), _hoisted_8, $data.events.length === 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_9, _hoisted_11)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_12, [((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($data.events, function (event, index) { 25548 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 25549 key: event.id + 'events', 25550 "class": "table-list__row" 25551 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_13, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_14, [_hoisted_15, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("strong", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(event.name), 1 25552 /* TEXT */ 25553 )]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_16, [_hoisted_17, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.formatDate(event.startAt)), 1 25554 /* TEXT */ 25555 )]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_18, [_hoisted_19, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.formatDate(event.eventDuration)), 1 25556 /* TEXT */ 25557 )]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <div class=\"table-list__cell text-center col-lg-1\">"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <span :class=\"event.disabled === '0' ? 'circle circle--green' : 'circle circle--red'\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" :title=\"event.disabled === '0' ? 'aktiv' : 'inaktiv'\""), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" >"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <span class=\"accessible-hidden\">{{event.disabled === '0' ? 'Status aktiv' : 'Status inaktiv'}}</span>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </span>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" </div>"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_20, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { 25558 "class": "c-btn c-btn--small c-btn--margin-right c-btn--delete c-btn--no-arrow", 25559 onClick: function onClick($event) { 25560 return $options.deleteEvent(event.id); 25561 } 25562 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_22, "Veranstaltung: " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(event.name) + " löschen", 1 25563 /* TEXT */ 25564 )], 8 25565 /* PROPS */ 25566 , _hoisted_21), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { 25567 onClick: function onClick($event) { 25568 return $options.toggleUpdateForm(event.id); 25569 }, 25570 "class": "c-btn c-btn--small c-btn--edit c-btn--no-arrow" 25571 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_24, "Veranstaltung: " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(event.name) + " bearbeiten", 1 25572 /* TEXT */ 25573 )], 8 25574 /* PROPS */ 25575 , _hoisted_23)])])]); 25576 }), 128 25577 /* KEYED_FRAGMENT */ 25578 ))]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { 25579 onClick: _cache[3] || (_cache[3] = function ($event) { 25580 return $options.toggleStoreForm(); 25581 }), 25582 "class": "c-btn c-btn--full-center c-btn--add c-btn--margin c-btn--no-arrow" 25583 }, "Veranstaltung anlegen")]))])])]); 25584} 25585 25586/***/ }), 25587 25588/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventForm.vue?vue&type=template&id=6bbaec62": 25589/*!*************************************************************************************************************************************************************************************************************************************************************************!*\ 25590 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventForm.vue?vue&type=template&id=6bbaec62 ***! 25591 \*************************************************************************************************************************************************************************************************************************************************************************/ 25592/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 25593 25594"use strict"; 25595__webpack_require__.r(__webpack_exports__); 25596/* harmony export */ __webpack_require__.d(__webpack_exports__, { 25597/* harmony export */ "render": function() { return /* binding */ render; } 25598/* harmony export */ }); 25599/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 25600 25601var _hoisted_1 = { 25602 "class": "row" 25603}; 25604var _hoisted_2 = { 25605 "class": "col-sm-12" 25606}; 25607var _hoisted_3 = { 25608 "class": "form-part-headline" 25609}; 25610var _hoisted_4 = { 25611 key: 0 25612}; 25613var _hoisted_5 = { 25614 "class": "row" 25615}; 25616var _hoisted_6 = { 25617 "class": "col-lg-6" 25618}; 25619var _hoisted_7 = { 25620 "class": "form-element" 25621}; 25622var _hoisted_8 = { 25623 key: 0, 25624 title: "Pflichtfeld" 25625}; 25626 25627var _hoisted_9 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25628/* HOISTED */ 25629); 25630 25631var _hoisted_10 = ["required"]; 25632var _hoisted_11 = ["innerHTML"]; 25633var _hoisted_12 = { 25634 "class": "col-lg-6" 25635}; 25636var _hoisted_13 = { 25637 "class": "form-element" 25638}; 25639var _hoisted_14 = ["for"]; 25640var _hoisted_15 = { 25641 key: 0 25642}; 25643 25644var _hoisted_16 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25645/* HOISTED */ 25646); 25647 25648var _hoisted_17 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { 25649 "class": "form-label--small", 25650 id: "image_info" 25651}, [/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" Mögliche Auflösung: 1200 x [900 bis 1800] Pixel"), /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br"), /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" Maximale DateigröÃe: 2MB ")], -1 25652/* HOISTED */ 25653); 25654 25655var _hoisted_18 = { 25656 key: 0 25657}; 25658var _hoisted_19 = { 25659 "class": "row" 25660}; 25661var _hoisted_20 = { 25662 "class": "col-lg-6" 25663}; 25664var _hoisted_21 = ["src"]; 25665var _hoisted_22 = ["innerHTML"]; 25666 25667var _hoisted_23 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25668/* HOISTED */ 25669); 25670 25671var _hoisted_24 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25672/* HOISTED */ 25673); 25674 25675var _hoisted_25 = { 25676 "class": "row" 25677}; 25678var _hoisted_26 = { 25679 "class": "col-lg-6" 25680}; 25681var _hoisted_27 = { 25682 "class": "form-element" 25683}; 25684var _hoisted_28 = { 25685 "aria-required": "true", 25686 role: "radiogroup" 25687}; 25688var _hoisted_29 = { 25689 key: 0, 25690 title: "Pflichtfeld" 25691}; 25692var _hoisted_30 = ["id", "value", "required"]; 25693var _hoisted_31 = ["for"]; 25694var _hoisted_32 = ["innerHTML"]; 25695var _hoisted_33 = { 25696 "class": "form-element" 25697}; 25698 25699var _hoisted_34 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 25700 "class": "form-label", 25701 "for": "upload-file" 25702}, " Anhang ", -1 25703/* HOISTED */ 25704); 25705 25706var _hoisted_35 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { 25707 "class": "fa fa-trash" 25708}, null, -1 25709/* HOISTED */ 25710); 25711 25712var _hoisted_36 = [_hoisted_35]; 25713var _hoisted_37 = { 25714 "class": "col-lg-6" 25715}; 25716var _hoisted_38 = { 25717 "class": "form-element" 25718}; 25719var _hoisted_39 = { 25720 "aria-required": "true", 25721 role: "radiogroup" 25722}; 25723var _hoisted_40 = { 25724 key: 0, 25725 title: "Pflichtfeld" 25726}; 25727var _hoisted_41 = ["id", "value", "required"]; 25728var _hoisted_42 = ["for"]; 25729var _hoisted_43 = ["innerHTML"]; 25730var _hoisted_44 = { 25731 "class": "row" 25732}; 25733 25734var _hoisted_45 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 25735 "class": "col-sm-12" 25736}, [/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", { 25737 "class": "form-part-headline" 25738}, "Adresse der Veranstaltung")], -1 25739/* HOISTED */ 25740); 25741 25742var _hoisted_46 = { 25743 "class": "col-lg-3" 25744}; 25745var _hoisted_47 = { 25746 "class": "form-element" 25747}; 25748var _hoisted_48 = ["for"]; 25749var _hoisted_49 = { 25750 key: 0, 25751 title: "Pflichtfeld" 25752}; 25753 25754var _hoisted_50 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25755/* HOISTED */ 25756); 25757 25758var _hoisted_51 = ["required", "type", "id"]; 25759var _hoisted_52 = ["innerHTML"]; 25760var _hoisted_53 = { 25761 "class": "col-lg-2" 25762}; 25763var _hoisted_54 = { 25764 "class": "form-element" 25765}; 25766var _hoisted_55 = ["for"]; 25767var _hoisted_56 = { 25768 key: 0, 25769 title: "Pflichtfeld" 25770}; 25771 25772var _hoisted_57 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25773/* HOISTED */ 25774); 25775 25776var _hoisted_58 = ["required", "type", "id"]; 25777var _hoisted_59 = ["innerHTML"]; 25778var _hoisted_60 = { 25779 "class": "col-lg-3" 25780}; 25781var _hoisted_61 = { 25782 "class": "form-element" 25783}; 25784var _hoisted_62 = ["for"]; 25785var _hoisted_63 = { 25786 key: 0, 25787 title: "Pflichtfeld" 25788}; 25789 25790var _hoisted_64 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25791/* HOISTED */ 25792); 25793 25794var _hoisted_65 = ["required", "type", "id"]; 25795var _hoisted_66 = ["innerHTML"]; 25796var _hoisted_67 = { 25797 "class": "col-lg-4" 25798}; 25799var _hoisted_68 = { 25800 "class": "form-element" 25801}; 25802var _hoisted_69 = ["for"]; 25803var _hoisted_70 = { 25804 key: 0, 25805 title: "Pflichtfeld" 25806}; 25807 25808var _hoisted_71 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25809/* HOISTED */ 25810); 25811 25812var _hoisted_72 = ["required", "id"]; 25813 25814var _hoisted_73 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("option", { 25815 value: null, 25816 disabled: "" 25817}, " Bitte auswählen", -1 25818/* HOISTED */ 25819); 25820 25821var _hoisted_74 = ["value"]; 25822var _hoisted_75 = ["innerHTML"]; 25823 25824var _hoisted_76 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25825/* HOISTED */ 25826); 25827 25828var _hoisted_77 = { 25829 "class": "row" 25830}; 25831 25832var _hoisted_78 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 25833 "class": "col-sm-12" 25834}, [/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", { 25835 "class": "form-part-headline" 25836}, "Details")], -1 25837/* HOISTED */ 25838); 25839 25840var _hoisted_79 = { 25841 "class": "col-lg-12" 25842}; 25843var _hoisted_80 = ["for"]; 25844var _hoisted_81 = { 25845 key: 0, 25846 title: "Pflichtfeld" 25847}; 25848 25849var _hoisted_82 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25850/* HOISTED */ 25851); 25852 25853var _hoisted_83 = ["id", "required"]; 25854var _hoisted_84 = ["innerHTML"]; 25855var _hoisted_85 = { 25856 "class": "col-lg-12" 25857}; 25858var _hoisted_86 = ["for"]; 25859var _hoisted_87 = { 25860 key: 0, 25861 title: "Pflichtfeld" 25862}; 25863 25864var _hoisted_88 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25865/* HOISTED */ 25866); 25867 25868var _hoisted_89 = ["id", "required"]; 25869var _hoisted_90 = ["innerHTML"]; 25870var _hoisted_91 = { 25871 "class": "col-lg-12" 25872}; 25873var _hoisted_92 = ["for"]; 25874var _hoisted_93 = { 25875 key: 0, 25876 title: "Pflichtfeld" 25877}; 25878 25879var _hoisted_94 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25880/* HOISTED */ 25881); 25882 25883var _hoisted_95 = ["id", "required"]; 25884var _hoisted_96 = ["innerHTML"]; 25885 25886var _hoisted_97 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25887/* HOISTED */ 25888); 25889 25890var _hoisted_98 = { 25891 "class": "row" 25892}; 25893var _hoisted_99 = { 25894 "class": "col-lg-6" 25895}; 25896var _hoisted_100 = ["for"]; 25897var _hoisted_101 = { 25898 key: 0, 25899 title: "Pflichtfeld" 25900}; 25901 25902var _hoisted_102 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25903/* HOISTED */ 25904); 25905 25906var _hoisted_103 = ["innerHTML"]; 25907var _hoisted_104 = { 25908 "class": "col-lg-6" 25909}; 25910var _hoisted_105 = { 25911 "class": "form-element" 25912}; 25913var _hoisted_106 = ["for"]; 25914var _hoisted_107 = { 25915 key: 0, 25916 title: "Pflichtfeld" 25917}; 25918 25919var _hoisted_108 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25920/* HOISTED */ 25921); 25922 25923var _hoisted_109 = ["required", "type", "id"]; 25924var _hoisted_110 = ["innerHTML"]; 25925 25926var _hoisted_111 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25927/* HOISTED */ 25928); 25929 25930var _hoisted_112 = { 25931 "class": "row" 25932}; 25933var _hoisted_113 = { 25934 "class": "col-lg-6" 25935}; 25936var _hoisted_114 = { 25937 "class": "form-element" 25938}; 25939var _hoisted_115 = ["for"]; 25940var _hoisted_116 = { 25941 key: 0, 25942 title: "Pflichtfeld" 25943}; 25944 25945var _hoisted_117 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25946/* HOISTED */ 25947); 25948 25949var _hoisted_118 = ["required", "type", "id"]; 25950var _hoisted_119 = ["innerHTML"]; 25951var _hoisted_120 = { 25952 "class": "col-lg-6" 25953}; 25954var _hoisted_121 = { 25955 "class": "form-element" 25956}; 25957var _hoisted_122 = ["for"]; 25958var _hoisted_123 = { 25959 key: 0, 25960 title: "Pflichtfeld" 25961}; 25962 25963var _hoisted_124 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25964/* HOISTED */ 25965); 25966 25967var _hoisted_125 = ["required", "type", "id"]; 25968var _hoisted_126 = ["innerHTML"]; 25969var _hoisted_127 = { 25970 "class": "row" 25971}; 25972var _hoisted_128 = { 25973 "class": "col-lg-6" 25974}; 25975var _hoisted_129 = { 25976 "class": "form-element" 25977}; 25978var _hoisted_130 = ["for"]; 25979var _hoisted_131 = { 25980 key: 0, 25981 title: "Pflichtfeld" 25982}; 25983 25984var _hoisted_132 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25985/* HOISTED */ 25986); 25987 25988var _hoisted_133 = ["required", "id"]; 25989var _hoisted_134 = ["innerHTML"]; 25990 25991var _hoisted_135 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25992/* HOISTED */ 25993); 25994 25995var _hoisted_136 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 25996/* HOISTED */ 25997); 25998 25999function render(_ctx, _cache, $props, $setup, $data, $options) { 26000 var _component_input_file_upload = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("input-file-upload"); 26001 26002 var _component_Datepicker = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("Datepicker"); 26003 26004 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_2, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", _hoisted_3, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.info), 1 26005 /* TEXT */ 26006 )])]), $data.form ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_4, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" name & image "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_5, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" name "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_6, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_7, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26007 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.name.error ? 'form-label--invalid' : '']), 26008 "for": "event-title" 26009 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.name.label) + " ", 1 26010 /* TEXT */ 26011 ), $data.form.name.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_8, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 2 26012 /* CLASS */ 26013 ), _hoisted_9, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26014 "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { 26015 return $data.form.name.value = $event; 26016 }), 26017 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.name.error ? 'is-invalid' : '']), 26018 required: $data.form.name.required, 26019 type: "text", 26020 id: "event-title" 26021 }, null, 10 26022 /* CLASS, PROPS */ 26023 , _hoisted_10), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.form.name.value]]), $data.form.name.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26024 key: 0, 26025 "class": "invalid-feedback", 26026 innerHTML: $data.form.name.message 26027 }, null, 8 26028 /* PROPS */ 26029 , _hoisted_11)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" image "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_12, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_13, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26030 "class": "form-label", 26031 "for": $data.form.image.element_id 26032 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.image.label) + " ", 1 26033 /* TEXT */ 26034 ), $data.form.image.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_15, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 8 26035 /* PROPS */ 26036 , _hoisted_14), _hoisted_16, _hoisted_17, $data.form.image.value != '' && $data.form.image.value != 'null' ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_18, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_19, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_20, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img", { 26037 src: $data.form.image.value 26038 }, null, 8 26039 /* PROPS */ 26040 , _hoisted_21)])])])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_input_file_upload, { 26041 onUpload: _cache[1] || (_cache[1] = function ($event) { 26042 return $options.uploadFile($event); 26043 }), 26044 id: "{{ form.image.label }}", 26045 "aria-describedby": "image_info", 26046 accept: "image/*" 26047 }), $data.form.image.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26048 key: 1, 26049 "class": "invalid-feedback", 26050 innerHTML: $data.form.image.message 26051 }, null, 8 26052 /* PROPS */ 26053 , _hoisted_22)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])]), _hoisted_23, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" targetGroup + FileUpload & schoolType "), _hoisted_24, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_25, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" targetGroup & File upload"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_26, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" targetGroup "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_27, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("fieldset", _hoisted_28, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("legend", { 26054 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.targetGroup.error ? 'form-label--invalid' : '']) 26055 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.targetGroup.label) + " ", 1 26056 /* TEXT */ 26057 ), $data.form.targetGroup.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_29, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 2 26058 /* CLASS */ 26059 ), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, [((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($data.form.targetGroup.predefined, function (option, index) { 26060 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26061 key: index 26062 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26063 "onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) { 26064 return $data.form.targetGroup.value = $event; 26065 }), 26066 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.targetGroup.error ? 'is-invalid' : '']), 26067 id: 'targetGroup_' + option.value, 26068 value: option.value, 26069 required: $data.form.targetGroup.required, 26070 type: "checkbox" 26071 }, null, 10 26072 /* CLASS, PROPS */ 26073 , _hoisted_30), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox, $data.form.targetGroup.value]]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26074 "class": "form-input-label", 26075 "for": 'targetGroup_' + option.value 26076 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(option.content), 9 26077 /* TEXT, PROPS */ 26078 , _hoisted_31)]); 26079 }), 128 26080 /* KEYED_FRAGMENT */ 26081 )), $data.form.targetGroup.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26082 key: 0, 26083 "class": "invalid-feedback", 26084 innerHTML: $data.form.targetGroup.message 26085 }, null, 8 26086 /* PROPS */ 26087 , _hoisted_32)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" Files (pdf) "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_33, [_hoisted_34, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.extraktFilename($data.form.file.value)), 1 26088 /* TEXT */ 26089 ), $data.form.file.value != '' && $data.form.file.value != 'null' ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", { 26090 key: 0, 26091 onClick: _cache[3] || (_cache[3] = function () { 26092 return $options.deletePdfFile && $options.deletePdfFile.apply($options, arguments); 26093 }), 26094 "data-toggle": "Delete PDF", 26095 "data-placement": "top", 26096 "class": "btn btn-danger", 26097 type: "button" 26098 }, _hoisted_36)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_input_file_upload, { 26099 type: "file", 26100 id: "upload-file", 26101 name: "upload-file", 26102 accept: "application/pdf", 26103 onUpload: _cache[4] || (_cache[4] = function ($event) { 26104 return $options.uploadPdf($event); 26105 }) 26106 })])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" schoolType "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_37, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_38, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("fieldset", _hoisted_39, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("legend", { 26107 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.schoolType.error ? 'form-label--invalid' : '']) 26108 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.schoolType.label) + " ", 1 26109 /* TEXT */ 26110 ), $data.form.schoolType.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_40, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 2 26111 /* CLASS */ 26112 ), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, [((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($data.form.schoolType.predefined, function (option) { 26113 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26114 key: _ctx.index 26115 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26116 "onUpdate:modelValue": _cache[5] || (_cache[5] = function ($event) { 26117 return $data.form.schoolType.value = $event; 26118 }), 26119 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.schoolType.error ? 'is-invalid' : '']), 26120 id: 'schoolType_' + option.value, 26121 value: option.value, 26122 required: $data.form.schoolType.required, 26123 type: "checkbox" 26124 }, null, 10 26125 /* CLASS, PROPS */ 26126 , _hoisted_41), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox, $data.form.schoolType.value]]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26127 "class": "form-input-label", 26128 "for": 'schoolType_' + option.value 26129 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(option.content), 9 26130 /* TEXT, PROPS */ 26131 , _hoisted_42)]); 26132 }), 128 26133 /* KEYED_FRAGMENT */ 26134 )), $data.form.schoolType.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26135 key: 0, 26136 "class": "invalid-feedback", 26137 innerHTML: $data.form.schoolType.message 26138 }, null, 8 26139 /* PROPS */ 26140 , _hoisted_43)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" street & postalCode & city & region "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_44, [_hoisted_45, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" street "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_46, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_47, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26141 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.street.error ? 'form-label--invalid' : '']), 26142 "for": $data.form.street.element_id 26143 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.street.label) + " ", 1 26144 /* TEXT */ 26145 ), $data.form.street.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_49, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26146 /* CLASS, PROPS */ 26147 , _hoisted_48), _hoisted_50, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26148 "onUpdate:modelValue": _cache[6] || (_cache[6] = function ($event) { 26149 return $data.form.street.value = $event; 26150 }), 26151 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.street.error ? 'is-invalid' : '']), 26152 required: $data.form.street.required, 26153 type: $data.form.street.type, 26154 id: $data.form.street.element_id 26155 }, null, 10 26156 /* CLASS, PROPS */ 26157 , _hoisted_51), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.street.value]]), $data.form.street.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26158 key: 0, 26159 "class": "invalid-feedback", 26160 innerHTML: $data.form.street.message 26161 }, null, 8 26162 /* PROPS */ 26163 , _hoisted_52)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" postalCode "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_53, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_54, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26164 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.postalCode.error ? 'form-label--invalid' : '']), 26165 "for": $data.form.postalCode.element_id 26166 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.postalCode.label) + " ", 1 26167 /* TEXT */ 26168 ), $data.form.postalCode.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_56, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26169 /* CLASS, PROPS */ 26170 , _hoisted_55), _hoisted_57, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26171 "onUpdate:modelValue": _cache[7] || (_cache[7] = function ($event) { 26172 return $data.form.postalCode.value = $event; 26173 }), 26174 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.postalCode.error ? 'is-invalid' : '']), 26175 required: $data.form.postalCode.required, 26176 type: $data.form.postalCode.type, 26177 id: $data.form.postalCode.element_id 26178 }, null, 10 26179 /* CLASS, PROPS */ 26180 , _hoisted_58), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.postalCode.value]]), $data.form.postalCode.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26181 key: 0, 26182 "class": "invalid-feedback", 26183 innerHTML: $data.form.postalCode.message 26184 }, null, 8 26185 /* PROPS */ 26186 , _hoisted_59)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" city "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_60, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_61, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26187 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.city.error ? 'form-label--invalid' : '']), 26188 "for": $data.form.city.element_id 26189 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.city.label) + " ", 1 26190 /* TEXT */ 26191 ), $data.form.city.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_63, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26192 /* CLASS, PROPS */ 26193 , _hoisted_62), _hoisted_64, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26194 "onUpdate:modelValue": _cache[8] || (_cache[8] = function ($event) { 26195 return $data.form.city.value = $event; 26196 }), 26197 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.city.error ? 'is-invalid' : '']), 26198 required: $data.form.city.required, 26199 type: $data.form.city.type, 26200 id: $data.form.city.element_id 26201 }, null, 10 26202 /* CLASS, PROPS */ 26203 , _hoisted_65), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.city.value]]), $data.form.city.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26204 key: 0, 26205 "class": "invalid-feedback", 26206 innerHTML: $data.form.city.message 26207 }, null, 8 26208 /* PROPS */ 26209 , _hoisted_66)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" region "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_67, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_68, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26210 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.region.error ? 'form-label--invalid' : '']), 26211 "for": $data.form.region.element_id 26212 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.region.label) + " ", 1 26213 /* TEXT */ 26214 ), $data.form.region.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_70, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26215 /* CLASS, PROPS */ 26216 , _hoisted_69), _hoisted_71, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("select", { 26217 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-select", $data.form.region.error ? 'is-invalid' : '']), 26218 "onUpdate:modelValue": _cache[9] || (_cache[9] = function ($event) { 26219 return $data.form.region.value = $event; 26220 }), 26221 required: $data.form.region.required, 26222 id: $data.form.region.element_id 26223 }, [_hoisted_73, ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($data.form.region.predefined, function (label, value) { 26224 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("option", { 26225 value: value 26226 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(label.content), 9 26227 /* TEXT, PROPS */ 26228 , _hoisted_74); 26229 }), 256 26230 /* UNKEYED_FRAGMENT */ 26231 ))], 10 26232 /* CLASS, PROPS */ 26233 , _hoisted_72), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelSelect, $data.form.region.value]]), $data.form.region.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26234 key: 0, 26235 "class": "invalid-feedback", 26236 innerHTML: $data.form.region.message 26237 }, null, 8 26238 /* PROPS */ 26239 , _hoisted_75)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])]), _hoisted_76, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" shortDescription & additionalInformation & datesAndOpeningTimes "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_77, [_hoisted_78, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" shortDescription "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_79, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26240 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.shortDescription.error ? 'form-label--invalid' : '']), 26241 "for": $data.form.shortDescription.element_id 26242 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.shortDescription.label) + " ", 1 26243 /* TEXT */ 26244 ), $data.form.shortDescription.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_81, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26245 /* CLASS, PROPS */ 26246 , _hoisted_80), _hoisted_82, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("textarea", { 26247 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-textarea", $data.form.shortDescription.error ? 'is-invalid' : '']), 26248 "onUpdate:modelValue": _cache[10] || (_cache[10] = function ($event) { 26249 return $data.form.shortDescription.value = $event; 26250 }), 26251 id: $data.form.shortDescription.element_id, 26252 required: $data.form.shortDescription.required 26253 }, null, 10 26254 /* CLASS, PROPS */ 26255 , _hoisted_83), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.form.shortDescription.value]]), $data.form.shortDescription.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26256 key: 0, 26257 "class": "invalid-feedback", 26258 innerHTML: $data.form.shortDescription.message 26259 }, null, 8 26260 /* PROPS */ 26261 , _hoisted_84)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" additionalInformation "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_85, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26262 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.additionalInformation.error ? 'form-label--invalid' : '']), 26263 "for": $data.form.additionalInformation.element_id 26264 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.additionalInformation.label) + " ", 1 26265 /* TEXT */ 26266 ), $data.form.additionalInformation.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_87, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26267 /* CLASS, PROPS */ 26268 , _hoisted_86), _hoisted_88, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("textarea", { 26269 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-textarea", $data.form.additionalInformation.error ? 'is-invalid' : '']), 26270 "onUpdate:modelValue": _cache[11] || (_cache[11] = function ($event) { 26271 return $data.form.additionalInformation.value = $event; 26272 }), 26273 id: $data.form.additionalInformation.element_id, 26274 required: $data.form.additionalInformation.required 26275 }, null, 10 26276 /* CLASS, PROPS */ 26277 , _hoisted_89), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.form.additionalInformation.value]]), $data.form.additionalInformation.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26278 key: 0, 26279 "class": "invalid-feedback", 26280 innerHTML: $data.form.additionalInformation.message 26281 }, null, 8 26282 /* PROPS */ 26283 , _hoisted_90)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" datesAndOpeningTimes "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_91, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26284 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.datesAndOpeningTimes.error ? 'form-label--invalid' : '']), 26285 "for": $data.form.datesAndOpeningTimes.element_id 26286 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.datesAndOpeningTimes.label) + " ", 1 26287 /* TEXT */ 26288 ), $data.form.datesAndOpeningTimes.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_93, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26289 /* CLASS, PROPS */ 26290 , _hoisted_92), _hoisted_94, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("textarea", { 26291 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-textarea", $data.form.datesAndOpeningTimes.error ? 'is-invalid' : '']), 26292 "onUpdate:modelValue": _cache[12] || (_cache[12] = function ($event) { 26293 return $data.form.datesAndOpeningTimes.value = $event; 26294 }), 26295 id: $data.form.datesAndOpeningTimes.element_id, 26296 required: $data.form.datesAndOpeningTimes.required 26297 }, null, 10 26298 /* CLASS, PROPS */ 26299 , _hoisted_95), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.form.datesAndOpeningTimes.value]]), $data.form.datesAndOpeningTimes.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26300 key: 0, 26301 "class": "invalid-feedback", 26302 innerHTML: $data.form.datesAndOpeningTimes.message 26303 }, null, 8 26304 /* PROPS */ 26305 , _hoisted_96)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), _hoisted_97, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" startAt & eventDuration "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_98, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_99, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" startAt "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26306 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.startAt.error ? 'form-label--invalid' : '']), 26307 "for": $data.form.startAt.element_id 26308 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.startAt.label) + " ", 1 26309 /* TEXT */ 26310 ), $data.form.startAt.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_101, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26311 /* CLASS, PROPS */ 26312 , _hoisted_100), _hoisted_102, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Datepicker, { 26313 modelValue: $data.form.startAt.value, 26314 "onUpdate:modelValue": _cache[13] || (_cache[13] = function ($event) { 26315 return $data.form.startAt.value = $event; 26316 }), 26317 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-datepicker", $data.form.startAt.error ? 'is-invalid' : '']), 26318 format: $setup.format, 26319 modelType: "yyyy-MM-dd hh:mm:ss", 26320 enableTimePicker: false, 26321 locale: "de", 26322 cancelText: "Abbrechen", 26323 nowButtonLabel: "Jetzt", 26324 selectText: "Auswählen", 26325 placeholder: "Datum auswählen", 26326 minDate: $setup.minDate, 26327 id: $data.form.startAt.element_id 26328 }, null, 8 26329 /* PROPS */ 26330 , ["modelValue", "class", "format", "minDate", "id"]), $data.form.startAt.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26331 key: 0, 26332 "class": "invalid-feedback", 26333 innerHTML: $data.form.startAt.message 26334 }, null, 8 26335 /* PROPS */ 26336 , _hoisted_103)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_104, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" eventDuration "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_105, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26337 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.eventDuration.error ? 'form-label--invalid' : '']), 26338 "for": $data.form.eventDuration.element_id 26339 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.eventDuration.label) + " ", 1 26340 /* TEXT */ 26341 ), $data.form.eventDuration.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_107, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26342 /* CLASS, PROPS */ 26343 , _hoisted_106), _hoisted_108, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26344 "onUpdate:modelValue": _cache[14] || (_cache[14] = function ($event) { 26345 return $data.form.eventDuration.value = $event; 26346 }), 26347 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.eventDuration.error ? 'is-invalid' : '']), 26348 required: $data.form.eventDuration.required, 26349 type: $data.form.eventDuration.type, 26350 id: $data.form.eventDuration.element_id 26351 }, null, 10 26352 /* CLASS, PROPS */ 26353 , _hoisted_109), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.eventDuration.value]]), $data.form.eventDuration.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26354 key: 0, 26355 "class": "invalid-feedback", 26356 innerHTML: $data.form.eventDuration.message 26357 }, null, 8 26358 /* PROPS */ 26359 , _hoisted_110)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])]), _hoisted_111, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" website && lastYearWebsite "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_112, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_113, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" website "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_114, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26360 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.website.error ? 'form-label--invalid' : '']), 26361 "for": $data.form.website.element_id 26362 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.website.label) + " ", 1 26363 /* TEXT */ 26364 ), $data.form.website.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_116, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26365 /* CLASS, PROPS */ 26366 , _hoisted_115), _hoisted_117, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26367 "onUpdate:modelValue": _cache[15] || (_cache[15] = function ($event) { 26368 return $data.form.website.value = $event; 26369 }), 26370 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.website.error ? 'is-invalid' : '']), 26371 required: $data.form.website.required, 26372 type: $data.form.website.type, 26373 id: $data.form.website.element_id 26374 }, null, 10 26375 /* CLASS, PROPS */ 26376 , _hoisted_118), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.website.value]]), $data.form.website.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26377 key: 0, 26378 "class": "invalid-feedback", 26379 innerHTML: $data.form.website.message 26380 }, null, 8 26381 /* PROPS */ 26382 , _hoisted_119)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_120, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" lastYearWebsite "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_121, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26383 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.lastYearWebsite.error ? 'form-label--invalid' : '']), 26384 "for": $data.form.lastYearWebsite.element_id 26385 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.lastYearWebsite.label) + " ", 1 26386 /* TEXT */ 26387 ), $data.form.lastYearWebsite.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_123, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26388 /* CLASS, PROPS */ 26389 , _hoisted_122), _hoisted_124, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26390 "onUpdate:modelValue": _cache[16] || (_cache[16] = function ($event) { 26391 return $data.form.lastYearWebsite.value = $event; 26392 }), 26393 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.lastYearWebsite.error ? 'is-invalid' : '']), 26394 required: $data.form.lastYearWebsite.required, 26395 type: $data.form.lastYearWebsite.type, 26396 id: $data.form.lastYearWebsite.element_id 26397 }, null, 10 26398 /* CLASS, PROPS */ 26399 , _hoisted_125), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.lastYearWebsite.value]]), $data.form.lastYearWebsite.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26400 key: 0, 26401 "class": "invalid-feedback", 26402 innerHTML: $data.form.lastYearWebsite.message 26403 }, null, 8 26404 /* PROPS */ 26405 , _hoisted_126)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" building "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_127, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" building "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_128, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_129, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26406 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-label", $data.form.building.error ? 'form-label--invalid' : '']), 26407 "for": $data.form.building.element_id 26408 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.building.label) + " ", 1 26409 /* TEXT */ 26410 ), $data.form.building.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("abbr", _hoisted_131, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 10 26411 /* CLASS, PROPS */ 26412 , _hoisted_130), _hoisted_132, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26413 "onUpdate:modelValue": _cache[17] || (_cache[17] = function ($event) { 26414 return $data.form.building.value = $event; 26415 }), 26416 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.building.error ? 'is-invalid' : '']), 26417 required: $data.form.building.required, 26418 type: "text", 26419 id: $data.form.building.element_id 26420 }, null, 10 26421 /* CLASS, PROPS */ 26422 , _hoisted_133), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.form.building.value]]), $data.form.building.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26423 key: 0, 26424 "class": "invalid-feedback", 26425 innerHTML: $data.form.building.message 26426 }, null, 8 26427 /* PROPS */ 26428 , _hoisted_134)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])])])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), _hoisted_135, _hoisted_136, $props.actionProp === 'store' ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", { 26429 key: 1, 26430 onClick: _cache[18] || (_cache[18] = function ($event) { 26431 return $options.storeEvent(); 26432 }), 26433 "class": "c-btn c-btn--margin-right c-btn--yellow" 26434 }, " Veranstaltung anlegen ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), $props.actionProp === 'update' ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", { 26435 key: 2, 26436 onClick: _cache[19] || (_cache[19] = function ($event) { 26437 return $options.updateEvent(); 26438 }), 26439 "class": "c-btn c-btn--margin-right c-btn--yellow" 26440 }, " Veranstaltung speichern ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 64 26441 /* STABLE_FRAGMENT */ 26442 ); 26443} 26444 26445/***/ }), 26446 26447/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/InputFileUpload.vue?vue&type=template&id=5c733b2a": 26448/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\ 26449 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/InputFileUpload.vue?vue&type=template&id=5c733b2a ***! 26450 \*******************************************************************************************************************************************************************************************************************************************************************************/ 26451/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 26452 26453"use strict"; 26454__webpack_require__.r(__webpack_exports__); 26455/* harmony export */ __webpack_require__.d(__webpack_exports__, { 26456/* harmony export */ "render": function() { return /* binding */ render; } 26457/* harmony export */ }); 26458/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 26459 26460function render(_ctx, _cache, $props, $setup, $data, $options) { 26461 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("input", { 26462 type: "file", 26463 onChange: _cache[0] || (_cache[0] = function ($event) { 26464 return $options.onChangeFile($event); 26465 }) 26466 }, null, 32 26467 /* HYDRATE_EVENTS */ 26468 ); 26469} 26470 26471/***/ }), 26472 26473/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=template&id=ed527d62&scoped=true": 26474/*!********************************************************************************************************************************************************************************************************************************************************************************************!*\ 26475 !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=template&id=ed527d62&scoped=true ***! 26476 \********************************************************************************************************************************************************************************************************************************************************************************************/ 26477/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 26478 26479"use strict"; 26480__webpack_require__.r(__webpack_exports__); 26481/* harmony export */ __webpack_require__.d(__webpack_exports__, { 26482/* harmony export */ "render": function() { return /* binding */ render; } 26483/* harmony export */ }); 26484/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 26485 26486 26487var _withScopeId = function _withScopeId(n) { 26488 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.pushScopeId)("data-v-ed527d62"), n = n(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.popScopeId)(), n; 26489}; 26490 26491var _hoisted_1 = { 26492 "class": "form-step-container" 26493}; 26494var _hoisted_2 = { 26495 "class": "form-step-container__headline headline--2" 26496}; 26497var _hoisted_3 = { 26498 key: 0, 26499 "class": "form-step-container__inner" 26500}; 26501var _hoisted_4 = { 26502 "class": "row" 26503}; 26504var _hoisted_5 = { 26505 "class": "col-lg-6" 26506}; 26507var _hoisted_6 = { 26508 "class": "form-element" 26509}; 26510var _hoisted_7 = ["for"]; 26511var _hoisted_8 = { 26512 key: 0 26513}; 26514 26515var _hoisted_9 = /*#__PURE__*/_withScopeId(function () { 26516 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 26517 /* HOISTED */ 26518 ); 26519}); 26520 26521var _hoisted_10 = ["required", "type", "id"]; 26522var _hoisted_11 = ["innerHTML"]; 26523 26524var _hoisted_12 = /*#__PURE__*/_withScopeId(function () { 26525 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 26526 "class": "row" 26527 }, [/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 26528 "class": "col-sm-12" 26529 }, [/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", { 26530 "class": "form-part-headline" 26531 }, "Ansprechpartner")])], -1 26532 /* HOISTED */ 26533 ); 26534}); 26535 26536var _hoisted_13 = { 26537 "class": "row" 26538}; 26539var _hoisted_14 = { 26540 "class": "col-lg-6" 26541}; 26542var _hoisted_15 = { 26543 "class": "form-element" 26544}; 26545var _hoisted_16 = ["for"]; 26546var _hoisted_17 = { 26547 key: 0 26548}; 26549 26550var _hoisted_18 = /*#__PURE__*/_withScopeId(function () { 26551 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 26552 /* HOISTED */ 26553 ); 26554}); 26555 26556var _hoisted_19 = ["required", "type", "id"]; 26557var _hoisted_20 = ["innerHTML"]; 26558var _hoisted_21 = { 26559 "class": "col-lg-6" 26560}; 26561var _hoisted_22 = { 26562 "class": "form-element" 26563}; 26564var _hoisted_23 = ["for"]; 26565var _hoisted_24 = { 26566 key: 0 26567}; 26568 26569var _hoisted_25 = /*#__PURE__*/_withScopeId(function () { 26570 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 26571 /* HOISTED */ 26572 ); 26573}); 26574 26575var _hoisted_26 = ["required", "type", "id"]; 26576var _hoisted_27 = ["innerHTML"]; 26577 26578var _hoisted_28 = /*#__PURE__*/_withScopeId(function () { 26579 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { 26580 "class": "form-info form-info--warning" 26581 }, [/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { 26582 id: "form-extra-info-email", 26583 "class": "form-info__inner" 26584 }, "Hinweis: Die E-Mail-Adresse kann später nicht mehr geändert werden.")], -1 26585 /* HOISTED */ 26586 ); 26587}); 26588 26589var _hoisted_29 = { 26590 "class": "row" 26591}; 26592var _hoisted_30 = { 26593 "class": "col-lg-6" 26594}; 26595var _hoisted_31 = { 26596 "class": "form-element" 26597}; 26598var _hoisted_32 = ["for"]; 26599var _hoisted_33 = { 26600 key: 0 26601}; 26602 26603var _hoisted_34 = /*#__PURE__*/_withScopeId(function () { 26604 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 26605 /* HOISTED */ 26606 ); 26607}); 26608 26609var _hoisted_35 = ["required", "type", "id"]; 26610var _hoisted_36 = ["innerHTML"]; 26611var _hoisted_37 = { 26612 "class": "row" 26613}; 26614var _hoisted_38 = { 26615 "class": "col-lg-6" 26616}; 26617var _hoisted_39 = { 26618 "class": "form-element" 26619}; 26620var _hoisted_40 = ["for"]; 26621var _hoisted_41 = { 26622 key: 0 26623}; 26624 26625var _hoisted_42 = /*#__PURE__*/_withScopeId(function () { 26626 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 26627 /* HOISTED */ 26628 ); 26629}); 26630 26631var _hoisted_43 = ["required", "type", "id"]; 26632var _hoisted_44 = ["innerHTML"]; 26633var _hoisted_45 = { 26634 "class": "row" 26635}; 26636var _hoisted_46 = { 26637 "class": "col-sm-12" 26638}; 26639var _hoisted_47 = { 26640 "class": "c-verification-code" 26641}; 26642var _hoisted_48 = { 26643 "class": "form-element" 26644}; 26645 26646var _hoisted_49 = /*#__PURE__*/_withScopeId(function () { 26647 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { 26648 "class": "form-label--small", 26649 id: "logo_info" 26650 }, " Der Verifizierungscode wird durch Klick auf den Button \"Verifizierungscode generieren\" per Mail an die oben angegebene E-Mail Adresse versendet. ", -1 26651 /* HOISTED */ 26652 ); 26653}); 26654 26655var _hoisted_50 = /*#__PURE__*/_withScopeId(function () { 26656 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 26657 /* HOISTED */ 26658 ); 26659}); 26660 26661var _hoisted_51 = /*#__PURE__*/_withScopeId(function () { 26662 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 26663 /* HOISTED */ 26664 ); 26665}); 26666 26667var _hoisted_52 = { 26668 key: 0 26669}; 26670var _hoisted_53 = { 26671 key: 1 26672}; 26673 26674var _hoisted_54 = /*#__PURE__*/_withScopeId(function () { 26675 return /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("br", null, null, -1 26676 /* HOISTED */ 26677 ); 26678}); 26679 26680var _hoisted_55 = ["for"]; 26681var _hoisted_56 = { 26682 key: 0 26683}; 26684var _hoisted_57 = ["type", "id"]; 26685var _hoisted_58 = ["innerHTML"]; 26686var _hoisted_59 = { 26687 "class": "row" 26688}; 26689var _hoisted_60 = { 26690 "class": "col-lg-12 text-center" 26691}; 26692var _hoisted_61 = { 26693 key: 0 26694}; 26695var _hoisted_62 = { 26696 key: 1 26697}; 26698function render(_ctx, _cache, $props, $setup, $data, $options) { 26699 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", _hoisted_2, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.headline), 1 26700 /* TEXT */ 26701 ), $data.form ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_3, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_4, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" name "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_5, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_6, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26702 "class": "form-label", 26703 "for": $data.form.name.element_id 26704 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.name.label) + " ", 1 26705 /* TEXT */ 26706 ), $data.form.name.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_8, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 8 26707 /* PROPS */ 26708 , _hoisted_7), _hoisted_9, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26709 "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { 26710 return $data.form.name.value = $event; 26711 }), 26712 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.name.error ? 'is-invalid' : '']), 26713 required: $data.form.name.required, 26714 type: $data.form.name.type, 26715 id: $data.form.name.element_id 26716 }, null, 10 26717 /* CLASS, PROPS */ 26718 , _hoisted_10), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.name.value]]), $data.form.name.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26719 key: 0, 26720 "class": "invalid-feedback", 26721 innerHTML: $data.form.name.message 26722 }, null, 8 26723 /* PROPS */ 26724 , _hoisted_11)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])]), _hoisted_12, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_13, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_14, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" contactName "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_15, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26725 "class": "form-label", 26726 "for": $data.form.contactName.element_id 26727 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.contactName.label) + " ", 1 26728 /* TEXT */ 26729 ), $data.form.contactName.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_17, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 8 26730 /* PROPS */ 26731 , _hoisted_16), _hoisted_18, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26732 "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) { 26733 return $data.form.contactName.value = $event; 26734 }), 26735 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.contactName.error ? 'is-invalid' : '']), 26736 required: $data.form.contactName.required, 26737 type: $data.form.contactName.type, 26738 id: $data.form.contactName.element_id 26739 }, null, 10 26740 /* CLASS, PROPS */ 26741 , _hoisted_19), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.contactName.value]]), $data.form.contactName.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26742 key: 0, 26743 "class": "invalid-feedback", 26744 innerHTML: $data.form.contactName.message 26745 }, null, 8 26746 /* PROPS */ 26747 , _hoisted_20)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_21, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" contactEmail "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_22, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26748 "class": "form-label", 26749 "for": $data.form.contactEmail.element_id 26750 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.contactEmail.label) + " ", 1 26751 /* TEXT */ 26752 ), $data.form.contactEmail.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_24, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 8 26753 /* PROPS */ 26754 , _hoisted_23), _hoisted_25, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26755 "onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) { 26756 return $data.form.contactEmail.value = $event; 26757 }), 26758 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.contactEmail.error ? 'is-invalid' : '']), 26759 required: $data.form.contactEmail.required, 26760 type: $data.form.contactEmail.type, 26761 id: $data.form.contactEmail.element_id, 26762 "aria-describedby": "form-extra-info-email" 26763 }, null, 10 26764 /* CLASS, PROPS */ 26765 , _hoisted_26), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.contactEmail.value]]), $data.form.contactEmail.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26766 key: 0, 26767 "class": "invalid-feedback", 26768 innerHTML: $data.form.contactEmail.message 26769 }, null, 8 26770 /* PROPS */ 26771 , _hoisted_27)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), _hoisted_28])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_29, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_30, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" contactPhone "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_31, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26772 "class": "form-label", 26773 "for": $data.form.contactPhone.element_id 26774 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.contactPhone.label) + " ", 1 26775 /* TEXT */ 26776 ), $data.form.contactPhone.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_33, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 8 26777 /* PROPS */ 26778 , _hoisted_32), _hoisted_34, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26779 "onUpdate:modelValue": _cache[3] || (_cache[3] = function ($event) { 26780 return $data.form.contactPhone.value = $event; 26781 }), 26782 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.contactPhone.error ? 'is-invalid' : '']), 26783 required: $data.form.contactPhone.required, 26784 type: $data.form.contactPhone.type, 26785 id: $data.form.contactPhone.element_id 26786 }, null, 10 26787 /* CLASS, PROPS */ 26788 , _hoisted_35), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.contactPhone.value]]), $data.form.contactPhone.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26789 key: 0, 26790 "class": "invalid-feedback", 26791 innerHTML: $data.form.contactPhone.message 26792 }, null, 8 26793 /* PROPS */ 26794 , _hoisted_36)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_37, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_38, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" contactWebsite "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_39, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26795 "class": "form-label", 26796 "for": $data.form.contactWebsite.element_id 26797 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.contactWebsite.label) + " ", 1 26798 /* TEXT */ 26799 ), $data.form.contactWebsite.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_41, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 8 26800 /* PROPS */ 26801 , _hoisted_40), _hoisted_42, (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26802 "onUpdate:modelValue": _cache[4] || (_cache[4] = function ($event) { 26803 return $data.form.contactWebsite.value = $event; 26804 }), 26805 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.contactWebsite.error ? 'is-invalid' : '']), 26806 required: $data.form.contactWebsite.required, 26807 type: $data.form.contactWebsite.type, 26808 id: $data.form.contactWebsite.element_id 26809 }, null, 10 26810 /* CLASS, PROPS */ 26811 , _hoisted_43), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.contactWebsite.value]]), $data.form.contactWebsite.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26812 key: 0, 26813 "class": "invalid-feedback", 26814 innerHTML: $data.form.contactWebsite.message 26815 }, null, 8 26816 /* PROPS */ 26817 , _hoisted_44)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_45, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" verificationCode "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_46, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_47, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_48, [_hoisted_49, _hoisted_50, _hoisted_51, $data.showVerificationButton ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_52, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { 26818 "class": "c-btn c-btn--yellow", 26819 onClick: _cache[5] || (_cache[5] = function () { 26820 return $options.generateCode && $options.generateCode.apply($options, arguments); 26821 }) 26822 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.buttonGenerateCode), 1 26823 /* TEXT */ 26824 )])) : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_53, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { 26825 "class": "c-btn c-btn--grey c-btn--disabled", 26826 onClick: _cache[6] || (_cache[6] = function () { 26827 return $options.showInfoVerification && $options.showInfoVerification.apply($options, arguments); 26828 }) 26829 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.buttonGenerateCode), 1 26830 /* TEXT */ 26831 )])), _hoisted_54, (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", { 26832 "class": "form-label", 26833 "for": $data.form.verificationCode.element_id 26834 }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.form.verificationCode.label) + " ", 1 26835 /* TEXT */ 26836 ), $data.form.verificationCode.required ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("span", _hoisted_56, "* ")) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 8 26837 /* PROPS */ 26838 , _hoisted_55), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { 26839 "onUpdate:modelValue": _cache[7] || (_cache[7] = function ($event) { 26840 return $data.form.verificationCode.value = $event; 26841 }), 26842 "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-input", $data.form.verificationCode.error ? 'is-invalid' : '']), 26843 type: $data.form.verificationCode.type, 26844 id: $data.form.verificationCode.element_id 26845 }, null, 10 26846 /* CLASS, PROPS */ 26847 , _hoisted_57), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic, $data.form.verificationCode.value]]), $data.form.verificationCode.error ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 26848 key: 2, 26849 "class": "invalid-feedback", 26850 innerHTML: $data.form.verificationCode.message 26851 }, null, 8 26852 /* PROPS */ 26853 , _hoisted_58)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_59, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_60, [$data.successfulValidation ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_61, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { 26854 "class": "c-btn c-btn--yellow", 26855 onClick: _cache[8] || (_cache[8] = function () { 26856 return $options.processForm && $options.processForm.apply($options, arguments); 26857 }) 26858 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.buttonValue), 1 26859 /* TEXT */ 26860 )])) : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_62, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { 26861 "class": "c-btn c-btn--grey c-btn--disabled", 26862 disabled: "", 26863 onClick: _cache[9] || (_cache[9] = function () { 26864 return $options.showInfo && $options.showInfo.apply($options, arguments); 26865 }) 26866 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.buttonValue), 1 26867 /* TEXT */ 26868 )]))])])])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("<pre>{{form}}</pre>")], 2112 26869 /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */ 26870 ); 26871} 26872 26873/***/ }), 26874
26875/***/ "./src/js/bootstrap.js": 26876/*!*****************************!*\ 26877 !*** ./src/js/bootstrap.js ***! 26878 \*****************************/ 26879/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { 26880 26881/** 26882 * We'll load the axios HTTP library which allows us to easily issue requests 26883 * to our back-end. This library automatically handles sending the 26884 * CSRF token as a header based on the value of the "XSRF" token cookie. 26885 */ 26886window.axios = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); 26887window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 26888 26889/***/ }), 26890 26891/***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss": 26892/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ 26893 !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss ***! 26894 \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ 26895/***/ (function(module, __webpack_exports__, __webpack_require__) { 26896 26897"use strict"; 26898__webpack_require__.r(__webpack_exports__); 26899/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 26900/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__); 26901/* harmony import */ var _node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_vue_next_select_dist_index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! -!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!../../../node_modules/vue-next-select/dist/index.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/vue-next-select/dist/index.css"); 26902// Imports 26903 26904 26905var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
26906___CSS_LOADER_EXPORT___.i(_node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_vue_next_select_dist_index_css__WEBPACK_IMPORTED_MODULE_1__["default"]); 26907// Module 26908___CSS_LOADER_EXPORT___.push([module.id, "@charset \"UTF-8\";\n.vue-select {\n min-height: 38px;\n width: auto;\n justify-content: center;\n border-color: #707070;\n border-radius: 0;\n}\n.vue-select--readonly {\n opacity: 0.6;\n pointer-events: none;\n}\n.vue-select--higher {\n min-height: 150px;\n}\n.vue-select .vue-input {\n padding: 0;\n}\n.vue-select[aria-expanded=false]:not([data-multiple=true]) .vue-input input {\n font-size: 1rem;\n}\n.vue-select[data-is-focusing=false] .vue-dropdown {\n display: none;\n}\n.vue-select[aria-expanded=true]:not([data-multiple=true]) .vue-input input, .vue-select[data-multiple=true] .vue-select-input-wrapper .vue-input input {\n border: 1px solid #ced4da;\n padding: 3px 5px;\n}\n.vue-select .vue-tag, .vue-select .vue-tag.selected {\n font-size: 0.9rem;\n background-color: #e5e5e5;\n}\n.vue-dropdown {\n z-index: 2;\n}\n.vue-dropdown-item {\n padding: 0.375rem 0.75rem;\n position: relative;\n}\n.vue-dropdown-item.highlighted {\n background-color: #ffd800;\n color: #000;\n}\n.vue-dropdown-item.selected {\n background-color: #e5e5e5;\n}\n.vue-dropdown-item.selected:after {\n bottom: 0;\n content: \"ï\";\n font-family: \"FontAwesome\";\n padding: 0.375rem 0.75rem;\n position: absolute;\n right: 0;\n top: 0;\n}\n.vue-dropdown-item.selected.highlighted {\n background-color: #e5e5e5;\n color: #000;\n}", ""]); 26909// Exports 26910/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___); 26911 26912 26913/***/ }), 26914 26915/***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/vue-next-select/dist/index.css": 26916/*!********************************************************************************************************************!*\ 26917 !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/vue-next-select/dist/index.css ***! 26918 \********************************************************************************************************************/ 26919/***/ (function(module, __webpack_exports__, __webpack_require__) { 26920 26921"use strict"; 26922__webpack_require__.r(__webpack_exports__); 26923/* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 26924/* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__); 26925// Imports 26926 26927var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]}); 26928// Module 26929___CSS_LOADER_EXPORT___.push([module.id, ".icon.delete {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0;\n margin: 0;\n border: none;\n background: none;\n height: 8px;\n width: 8px;\n min-height: 8px;\n min-width: 8px;\n max-height: 8px;\n max-width: 8px;\n cursor: pointer;\n}\n\n.icon.arrow-downward {\n color: #999;\n border-style: solid;\n border-width: 4px 4px 0;\n border-color: #999 transparent transparent;\n content: '';\n transition: transform 0.2s linear;\n cursor: pointer;\n}\n\n.icon.arrow-downward.active {\n transform: rotate(180deg);\n}\n\n.vue-select {\n position: relative;\n display: flex;\n align-items: flex-start;\n justify-content: flex-start;\n flex-direction: column;\n width: 150px;\n border-radius: 4px;\n border: 1px solid #999;\n box-sizing: border-box;\n outline: none;\n}\n\n.vue-select[aria-disabled='true'] {\n background-color: rgba(239, 239, 239);\n}\n\n.vue-select[aria-disabled='true'] * {\n cursor: not-allowed;\n}\n\n.vue-select[aria-disabled='true'] input {\n cursor: not-allowed;\n}\n\n.vue-select-header {\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n}\n\n.vue-select-header .icon.loading,\n.vue-select-header .icon.arrow-downward {\n margin-right: 4px;\n}\n\n.vue-tags {\n display: flex;\n flex-wrap: wrap;\n margin: 0;\n padding: 2px;\n min-height: calc(1rem + 4px);\n user-select: none;\n}\n\n.vue-tags.collapsed {\n flex-wrap: nowrap;\n overflow: auto;\n}\n\n.vue-tag {\n display: none;\n align-items: center;\n justify-content: center;\n list-style-type: none;\n border-radius: 4px;\n background-color: #999;\n padding: 0 4px;\n margin: 2px;\n min-height: 1rem;\n font-size: 0.8rem;\n}\n\n.vue-tag span {\n margin-right: 4px;\n}\n\n.vue-tag.selected {\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #999;\n border-radius: 4px;\n padding: 0 4px;\n font-size: 0.8rem;\n}\n\n.vue-tags[data-removable='false'] .vue-tag.selected img:hover {\n
26929cursor: not-allowed;\n}\n\n.vue-select-input-wrapper {\n position: relative;\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n}\n\n.vue-select-input-wrapper .icon.loading {\n margin-right: 4px;\n}\n\n.vue-input {\n display: inline-flex;\n align-items: center;\n border-radius: 4px;\n border: none;\n outline: none;\n max-width: 100%;\n min-width: 0;\n width: 100%;\n box-sizing: border-box;\n padding: 4px;\n}\n\n.vue-select[data-is-focusing='false'][aria-disabled='false'] .vue-input input,\ninput[readonly] {\n cursor: default;\n}\n\n.vue-input input {\n border: none;\n outline: none;\n width: 100%;\n min-width: 0;\n font-size: 0.8rem;\n padding: 0;\n}\n\n.vue-input input[disabled] {\n background-color: rgba(239, 239, 239);\n}\n\n.vue-input input[readonly] {\n background-color: unset;\n}\n\n.vue-select-header .vue-input input[disabled] {\n background-color: unset;\n}\n\n.vue-dropdown {\n display: none;\n position: absolute;\n background-color: white;\n z-index: 1;\n overflow-y: auto;\n width: 100%;\n min-width: 0;\n margin: 0;\n padding: 0;\n left: -1px;\n box-sizing: content-box;\n border: 1px solid #999;\n list-style-type: none;\n}\n\n.vue-select[aria-expanded='true'] .vue-dropdown {\n display: unset;\n}\n\n.vue-dropdown[data-visible-length='0'] {\n border: none;\n}\n\n.vue-dropdown-item {\n list-style-type: none;\n padding: 4px;\n cursor: pointer;\n min-height: 1rem;\n}\n\n.vue-dropdown-item.highlighted {\n background-color: #41b883;\n}\n\n.vue-dropdown-item.disabled {\n background-color: rgba(239, 239, 239);\n cursor: not-allowed;\n}\n\n.vue-dropdown-item.selected {\n background-color: #f3f3f3;\n}\n\n.vue-dropdown-item.selected.highlighted {\n background-color: #ff6a6a;\n}\n\n.vue-dropdown[data-removable='false'] .vue-dropdown-item.selected:hover {\n cursor: not-allowed;\n}\n\n.vue-dropdown[data-addable='false'][data-multiple='true'] .vue-dropdown-item:not(.selected):hover {\n cursor: not-allowed;\n}\n\n.icon.loading {\n display: inline-block;\n position: relative;\n width: 8px;\n min-width: 8px;\n height: 8px;\n min-height: 8px;\n}\n\n.icon.loading div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n border: 1px solid #999;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n animation: loading 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: #999 transparent transparent transparent;\n}\n\n.icon.loading div:nth-child(1) {\n animation-delay: -0.08s;\n}\n.icon.loading div:nth-child(2) {\n animation-delay: -0.16s;\n}\n\n@keyframes loading {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.vue-select[aria-expanded='true'].direction-bottom {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.vue-select[aria-expanded='true'].direction-top {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n.vue-select.direction-top .vue-dropdown {\n bottom: 100%;\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n}\n\n.vue-select.direction-bottom .vue-dropdown {\n top: 100%;\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n}\n", ""]); 26930// Exports 26931/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___); 26932 26933 26934/***/ }), 26935 26936/***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/@vuepic/vue-datepicker/dist/main.css": 26937/*!*******************************************************************************************************************************************************************************************!*\ 26938 !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/@vuepic/vue-datepicker/dist/main.css ***! 26939 \*******************************************************************************************************************************************************************************************/ 26940/***/ (function(module, __webpack_exports__, __webpack_require__) { 26941 26942"use strict"; 26943__webpack_require__.r(__webpack_exports__); 26944/* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 26945/* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__); 26946// Imports 26947 26948var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]}); 26949// Module
26950___CSS_LOADER_EXPORT___.push([module.id, ".dp__input_wrap{position:relative;width:100%;box-sizing:unset}.dp__input_wrap:focus{border-color:var(--dp-border-color-hover);outline:none}.dp__input{background-color:var(--dp-background-color);border-radius:4px;font-family:-apple-system,blinkmacsystemfont,\"Segoe UI\",roboto,oxygen,ubuntu,cantarell,\"Open Sans\",\"Helvetica Neue\",sans-serif;border:1px solid var(--dp-border-color);outline:none;transition:border-color .2s cubic-bezier(0.645, 0.045, 0.355, 1);width:100%;font-size:1rem;line-height:1.5rem;padding:6px 12px;color:var(--dp-text-color);box-sizing:border-box}.dp__input::-moz-placeholder{opacity:.7}.dp__input::placeholder{opacity:.7}.dp__input:hover{border-color:var(--dp-border-color-hover)}.dp__input_reg{caret-color:rgba(0,0,0,0)}.dp__input_focus{border-color:var(--dp-border-color-hover)}.dp__disabled{background:var(--dp-disabled-color)}.dp__disabled::-moz-placeholder{color:var(--dp-disabled-color-text)}.dp__disabled::placeholder{color:var(--dp-disabled-color-text)}.dp__input_icons{display:inline-block;width:1rem;height:1rem;stroke-width:0;font-size:1rem;line-height:1.5rem;padding:6px 12px;color:var(--dp-icon-color);box-sizing:content-box}.dp__input_icon{cursor:pointer;position:absolute;top:50%;left:0;transform:translateY(-50%);color:var(--dp-icon-color)}.dp__clear_icon{position:absolute;top:50%;right:0;transform:translateY(-50%);cursor:pointer;color:var(--dp-icon-color)}.dp__input_icon_pad{padding-left:35px}.dp__input_valid{box-shadow:0 0 4px var(--dp-success-color);border-color:var(--dp-success-color)}.dp__input_valid:hover{border-color:var(--dp-success-color)}.dp__input_invalid{box-shadow:0 0 4px var(--dp-danger-color);border-color:var(--dp-danger-color)}.dp__input_invalid:hover{border-color:var(--dp-danger-color)}.dp__menu{position:absolute;background:var(--dp-background-color);border-radius:4px;min-width:260px;font-family:-apple-system,blinkmacsystemfont,\"Segoe UI\",roboto,oxygen,ubuntu,cantarell,\"Open Sans\",\"Helvetica Neue\",sans-serif;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:1px solid var(--dp-menu-border-color);box-sizing:border-box}.dp__menu::after{box-sizing:border-box}.dp__menu::before{box-sizing:border-box}.dp__menu:focus{border:1px solid var(--dp-menu-border-color);outline:none}.dp__menu_index{z-index:99999}.dp__menu_readonly,.dp__menu_disabled{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1}.dp__menu_disabled{background:rgba(255,255,255,.5);cursor:not-allowed}.dp__menu_readonly{background:rgba(0,0,0,0);cursor:default}.dp__arrow_top{left:50%;top:-1px;height:12px;width:12px;background-color:var(--dp-background-color);position:absolute;border-left:1px solid var(--dp-menu-border-color);border-top:1px solid var(--dp-menu-border-color);transform:translate(-50%, -50%) rotate(45deg)}.dp__arrow_bottom{left:50%;bottom:-1px;height:12px;width:12px;background-color:var(--dp-background-color);position:absolute;border-right:1px solid var(--dp-menu-border-color);border-bottom:1px solid var(--dp-menu-border-color);transform:translate(-50%, 50%) rotate(45deg)}.dp__now_wrap{text-align:center;padding:2px 0}.dp__now_button{border:1px solid var(--dp-primary-color);color:var(--dp-primary-color);padding:0 4px;font-weight:bold;border-radius:4px;font-size:1rem;cursor:pointer;background:rgba(0,0,0,0)}.dp__preset_ranges{padding:5px;border-right:1px solid var(--dp-border-color)}.dp__preset_range{padding:5px}.dp__preset_range:hover{background-color:var(--dp-hover-color);cursor:pointer}.dp__menu_content_wrapper{display:flex}.dp__calendar_wrap{display:flex;justify-content:center;align-items:center;flex-direction:column;font-family:-apple-system,blinkmacsystemfont,\"Segoe UI\",roboto,oxygen,ubuntu,cantarell,\"Open Sans\",\"Helvetica Neue\",sans-serif;flex:0}.dp__calendar_header{position:relative;display:flex;justify-content:center;align-items:center;color:var(--dp-text-color);white-space:nowrap;font-weight:bold}.dp__calendar_header_item{text-align:center;flex-grow:1;height:35px;padding:5px;width:35px;box-sizing:border-box}.dp__calendar_row{display:flex;justify-content:center;align-items:center;margin:5px 0}.dp__calendar_item{text-align:center;flex-grow:1;box-sizing:border-box;color:var(--dp-text-color)}.dp__calendar{position:relative}.dp__calendar_header_cell{border-bottom:thin solid var(--dp-border-color);padding:.5rem}.dp__cell_inner{display:flex;align-items:center;text-align:center;justify-content:center;border-radius:4px;
26950height:35px;padding:5px;width:35px;border:1px solid rgba(0,0,0,0);box-sizing:border-box;position:relative}.dp__cell_auto_range_start,.dp__date_hover_start:hover,.dp__range_start{border-bottom-right-radius:0;border-top-right-radius:0}.dp__cell_auto_range_end,.dp__date_hover_end:hover,.dp__range_end{border-bottom-left-radius:0;border-top-left-radius:0}.dp__range_end,.dp__range_start,.dp__active_date{background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__cell_auto_range_end,.dp__cell_auto_range_start{border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color)}.dp__date_hover_end:hover,.dp__date_hover_start:hover,.dp__date_hover:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__cell_offset{color:var(--dp-secondary-color)}.dp__cell_disabled{color:var(--dp-secondary-color);cursor:not-allowed}.dp__range_between{background:var(--dp-hover-color);border-radius:0;border-top:1px solid var(--dp-hover-color);border-bottom:1px solid var(--dp-hover-color)}.dp__range_between_week{background:var(--dp-primary-color);color:var(--dp-primary-text-color);border-radius:0;border-top:1px solid var(--dp-primary-color);border-bottom:1px solid var(--dp-primary-color)}.dp__today{border:1px solid var(--dp-primary-color)}.dp__week_num{color:var(--dp-secondary-color);text-align:center}.dp__cell_auto_range{border-radius:0;border-top:1px dashed var(--dp-primary-color);border-bottom:1px dashed var(--dp-primary-color)}.dp__cell_auto_range_start{border-left:1px dashed var(--dp-primary-color)}.dp__cell_auto_range_end{border-right:1px dashed var(--dp-primary-color)}.dp__calendar_header_separator{width:100%;height:1px;background:var(--dp-border-color)}.dp__calendar_next{margin-left:10px}.dp__marker_line,.dp__marker_dot{height:5px;background-color:var(--dp-marker-color);position:absolute;bottom:0}.dp__marker_dot{width:5px;border-radius:50%;left:50%;transform:translateX(-50%)}.dp__marker_line{width:100%;left:0}.dp__marker_tooltip{position:absolute;border-radius:4px;background-color:var(--dp-tooltip-color);padding:5px;border:1px solid var(--dp-border-color);z-index:99999;box-sizing:border-box;cursor:default}.dp__tooltip_content{white-space:nowrap}.dp__tooltip_text{display:flex;align-items:center;flex-flow:row nowrap;color:var(--dp-text-color)}.dp__tooltip_mark{height:5px;width:5px;border-radius:50%;background-color:var(--dp-text-color);color:var(--dp-text-color);margin-right:5px}.dp__arrow_bottom_tp{left:50%;bottom:0;height:8px;width:8px;background-color:var(--dp-tooltip-color);position:absolute;border-right:1px solid var(--dp-border-color);border-bottom:1px solid var(--dp-border-color);transform:translate(-50%, 50%) rotate(45deg)}.dp__instance_calendar{position:relative}@media only screen and (max-width: 600px){.dp__flex_display{flex-direction:column}}.dp__cell_highlight{background-color:var(--dp-highlight-color)}.dp__month_year_row{display:flex;align-items:center;height:35px;color:var(--dp-text-color);box-sizing:border-box}.dp__inner_nav{display:flex;align-items:center;justify-content:center;cursor:pointer;height:25px;width:25px;color:var(--dp-icon-color);text-align:center;border-radius:50%}.dp__inner_nav svg{height:20px;width:20px}.dp__inner_nav:hover{background:var(--dp-hover-color);color:var(--dp-hover-icon-color)}.dp__month_year_select{width:50%;text-align:center;cursor:pointer;height:35px;display:flex;align-items:center;justify-content:center;border-radius:4px;box-sizing:border-box}.dp__month_year_select:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__overlay{position:absolute;overflow-y:auto;width:100%;height:100%;background:var(--dp-background-color);top:0;left:0;transition:opacity 1s ease-out;z-index:99999;font-family:-apple-system,blinkmacsystemfont,\"Segoe UI\",roboto,oxygen,ubuntu,cantarell,\"Open Sans\",\"Helvetica Neue\",sans-serif;color:var(--dp-text-color);box-sizing:border-box}.dp__overlay::-webkit-scrollbar-track{box-shadow:var(--dp-scroll-bar-background);background-color:var(--dp-scroll-bar-background)}.dp__overlay::-webkit-scrollbar{width:5px;background-color:var(--dp-scroll-bar-background)}.dp__overlay::-webkit-scrollbar-thumb{background-color:var(--dp-scroll-bar-color);border-radius:10px}.dp__overlay:focus{border:none;outline:none}
26950.dp__container_flex{display:flex}.dp__container_block{display:block}.dp__overlay_container{height:100%;flex-direction:column}.dp__overlay_row{padding:0;box-sizing:border-box;display:flex;margin-left:auto;margin-right:auto;flex-wrap:wrap;max-width:100%;width:100%;align-items:center}.dp__overlay_container>.dp__overlay_row{flex:1}.dp__overlay_col{box-sizing:border-box;width:33%;padding:3px;white-space:nowrap}.dp__overlay_cell_pad{padding:10px 0}.dp__overlay_cell_active{cursor:pointer;border-radius:4px;text-align:center;background:var(--dp-primary-color);color:var(--dp-primary-text-color)}.dp__overlay_cell{cursor:pointer;border-radius:4px;text-align:center}.dp__overlay_cell:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__cell_in_between{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__overlay_action{position:sticky;bottom:0;background:#fff}.dp__over_action_scroll{right:5px;box-sizing:border-box}.dp__overlay_cell_disabled{cursor:not-allowed;background:var(--dp-disabled-color)}.dp__overlay_cell_disabled:hover{background:var(--dp-disabled-color)}.dp__overlay_cell_active_disabled{cursor:not-allowed;background:var(--dp-primary-disabled-color)}.dp__overlay_cell_active_disabled:hover{background:var(--dp-primary-disabled-color)}.dp__month_picker_header{display:flex;width:100%;align-items:center;justify-content:space-between;height:35px}.dp__time_input{width:100%;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:-apple-system,blinkmacsystemfont,\"Segoe UI\",roboto,oxygen,ubuntu,cantarell,\"Open Sans\",\"Helvetica Neue\",sans-serif;color:var(--dp-text-color)}.dp__time_col_reg{padding:0 20px}.dp__time_col_reg_with_button{padding:0 15px}.dp__time_col_sec{padding:0 10px}.dp__time_col_sec_with_button{padding:0 5px}.dp__time_col{font-size:2rem;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}.dp__time_display{cursor:pointer;color:var(--dp-text-color);border-radius:4px;display:flex;align-items:center;justify-content:center;padding:0 3px}.dp__time_display:hover{background:var(--dp-hover-color);color:var(--dp-hover-text-color)}.dp__inc_dec_button{padding:5px;margin:0;height:32px;width:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;color:var(--dp-icon-color);box-sizing:border-box}.dp__inc_dec_button svg{height:32px;width:32px}.dp__inc_dec_button:hover{background:var(--dp-hover-color);color:var(--dp-primary-color)}.dp__pm_am_button{background:var(--dp-primary-color);color:var(--dp-primary-text-color);border:none;padding:10px;border-radius:4px;cursor:pointer}.dp__action_row{display:flex;align-items:center;width:100%;padding:10px;box-sizing:border-box;color:var(--dp-text-color);background:var(--dp-background-color)}.dp__action_row svg{height:20px;width:auto}.dp__selection_preview{width:50%;color:var(--dp-text-color);font-size:.8rem}.dp__action_buttons{width:50%;text-align:right}.dp__action{font-weight:bold;cursor:pointer;padding:2px 5px;border-radius:4px;display:inline-flex;align-items:center}.dp__select{color:var(--dp-success-color)}.dp__action_disabled{color:var(--dp-success-color-disabled);cursor:not-allowed}.dp__cancel{color:var(--dp-secondary-color)}.dp__theme_dark{--dp-background-color: #212121;--dp-text-color: #fff;--dp-hover-color: #484848;--dp-hover-text-color: #fff;--dp-hover-icon-color: #959595;--dp-primary-color: #005cb2;--dp-primary-disabled-color: #61a8ea;--dp-primary-text-color: #fff;--dp-secondary-color: #a9a9a9;--dp-border-color: #2d2d2d;--dp-menu-border-color: #2d2d2d;--dp-border-color-hover: #aaaeb7;--dp-disabled-color: #737373;--dp-disabled-color-text: #d0d0d0;--dp-scroll-bar-background: #212121;--dp-scroll-bar-color: #484848;--dp-success-color: #00701a;--dp-success-color-disabled: #428f59;--dp-icon-color: #959595;--dp-danger-color: #e53935;--dp-marker-color: #e53935;--dp-tooltip-color: #3e3e3e;--dp-highlight-color: rgb(0 92 178 / 20%)}.dp__theme_light{--dp-background-color: #fff;--dp-text-color: #212121;--dp-hover-color: #f3f3f3;--dp-hover-text-color: #212121;--dp-hover-icon-color: #959595;--dp-primary-color: #1976d2;--dp-primary-disabled-color: #6bacea;--dp-primary-text-color: #f8f5f5;--dp-secondary-color: #c0c4cc;--dp-border-color: #ddd;
26950--dp-menu-border-color: #ddd;--dp-border-color-hover: #aaaeb7;--dp-disabled-color: #f6f6f6;--dp-scroll-bar-background: #f3f3f3;--dp-scroll-bar-color: #959595;--dp-success-color: #76d275;--dp-success-color-disabled: #a3d9b1;--dp-icon-color: #959595;--dp-danger-color: #ff6f60;--dp-marker-color: #ff6f60;--dp-tooltip-color: #fafafa;--dp-disabled-color-text: #8e8e8e;--dp-highlight-color: rgb(25 118 210 / 10%)}.dp__main{font-family:-apple-system,blinkmacsystemfont,\"Segoe UI\",roboto,oxygen,ubuntu,cantarell,\"Open Sans\",\"Helvetica Neue\",sans-serif;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box}.dp__pointer{cursor:pointer}.dp__icon{stroke:currentcolor;fill:currentcolor}.dp__button{width:100%;text-align:center;color:var(--dp-icon-color);background:var(--dp-background-color);cursor:pointer;display:flex;align-items:center;align-content:center;justify-content:center;padding:10px;box-sizing:border-box;height:35px}.dp__button:hover{background:var(--dp-hover-color);color:var(--dp-hover-icon-color)}.dp__button svg{height:20px;width:auto}.dp__button_bottom{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.dp__flex_display{display:flex}.dp__flex_display_with_input{flex-direction:column;align-items:start}.dp__relative{position:relative}.calendar-next-enter-active,.calendar-next-leave-active,.calendar-prev-enter-active,.calendar-prev-leave-active{transition:all .1s ease-out}.calendar-next-enter-from{opacity:0;transform:translateX(22px)}.calendar-next-leave-to{opacity:0;transform:translateX(-22px)}.calendar-prev-enter-from{opacity:0;transform:translateX(-22px)}.calendar-prev-leave-to{opacity:0;transform:translateX(22px)}.dp-menu-appear-enter-active,.dp-menu-appear-leave-active,.dp-slide-up-enter-active,.dp-slide-up-leave-active,.dp-slide-down-enter-active,.dp-slide-down-leave-active{transition:all .1s ease-out}.dp-slide-down-leave-to,.dp-slide-up-enter-from{opacity:0;transform:translateY(22px)}.dp-slide-down-enter-from,.dp-slide-up-leave-to{opacity:0;transform:translateY(-22px)}.dp-menu-appear-enter-from{opacity:0}.dp-menu-appear-leave-to{opacity:1}\n", ""]); 26951// Exports 26952/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___); 26953 26954 26955/***/ }), 26956 26957/***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-toastification/dist/index.css": 26958/*!****************************************************************************************************************************************************************************************!*\ 26959 !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-toastification/dist/index.css ***! 26960 \****************************************************************************************************************************************************************************************/ 26961/***/ (function(module, __webpack_exports__, __webpack_require__) { 26962 26963"use strict"; 26964__webpack_require__.r(__webpack_exports__); 26965/* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 26966/* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__); 26967// Imports 26968 26969var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]}); 26970// Module 26971___CSS_LOADER_EXPORT___.push([module.id, "/* sass-plugin-1:/Users/maronato/Developer/vue-toastification/src/scss/index.scss */\n.Vue-Toastification__container {\n z-index: 9999;\n position: fixed;\n padding: 4px;\n width: 600px;\n box-sizing: border-box;\n display: flex;\n min-height: 100%;\n color: #fff;\n flex-direction: column;\n pointer-events: none;\n}\n@media only screen and (min-width : 600px) {\n .Vue-Toastification__container.top-left,\n .Vue-Toastification__container.top-right,\n .Vue-Toastification__container.top-center {\n top: 1em;\n }\n .Vue-Toastification__container.bottom-left,\n .Vue-Toastification__container.bottom-right,\n .Vue-Toastification__container.bottom-center {\n bottom: 1em;\n flex-direction: column-reverse;\n }\n .Vue-Toastification__container.top-left,\n .Vue-Toastification__container.bottom-left {\n left: 1em;\n }\n .Vue-Toastification__container.top-left .Vue-Toastification__toast,\n .Vue-Toastification__container.bottom-left .Vue-Toastification__toast {\n margin-right: auto;\n }\n @supports not (-moz-appearance: none) {\n .Vue-Toastification__container.top-left .Vue-Toastification__toast--rtl,\n .Vue-Toastification__container.bottom-left .Vue-Toastification__toast--rtl {\n margin-right: unset;\n margin-left: auto;\n }\n }\n .Vue-Toastification__container.top-right,\n .Vue-Toastification__container.bottom-right {\n right: 1em;\n }\n .Vue-Toastification__container.top-right .Vue-Toastification__toast,\n .Vue-Toastification__container.bottom-right .Vue-Toastification__toast {\n margin-left: auto;\n }\n @supports not (-moz-appearance: none) {\n .Vue-Toastification__container.top-right .Vue-Toastification__toast--rtl,\n .Vue-Toastification__container.bottom-right .Vue-Toastification__toast--rtl {\n margin-left: unset;\n margin-right: auto;\n }\n }\n .Vue-Toastification__container.top-center,\n .Vue-Toastification__container.bottom-center {\n left: 50%;\n margin-left: -300px;\n }\n .Vue-Toastification__container.top-center .Vue-Toastification__toast,\n .Vue-Toastification__container.bottom-center .Vue-Toastification__toast {\n margin-left: auto;\n margin-right: auto;\n }\n}\n@media only screen and (max-width : 600px) {\n .Vue-Toastification__container {\n width: 100vw;\n padding: 0;\n left: 0;\n margin: 0;\n }\n .Vue-Toastification__container .Vue-Toastification__toast {\n width: 100%;\n }\n .Vue-Toastification__container.top-left,\n .Vue-Toastification__container.top-right,\n .Vue-Toastification__container.top-center {\n top: 0;\n }\n .Vue-Toastification__container.bottom-left,\n .Vue-Toastification__container.bottom-right,\n .Vue-Toastification__container.bottom-center {\n bottom: 0;\n flex-direction: column-reverse;\n }\n}\n.Vue-Toastification__toast {\n display: inline-flex;\n position: relative;\n max-height: 800px;\n min-height: 64px;\n box-sizing: border-box;\n margin-bottom: 1rem;\n padding: 22px 24px;\n border-radius: 8px;\n box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1), 0 2px 15px 0 rgba(0, 0, 0, 0.05);\n justify-content: space-between;\n font-family:\n \"Lato\",\n Helvetica,\n \"Roboto\",\n Arial,\n sans-serif;\n max-width: 600px;\n min-width: 326px;\n pointer-events: auto;\n overflow: hidden;\n transform: translateZ(0);\n direction: ltr;\n}\n.Vue-Toastification__toast--rtl {\n direction: rtl;\n}\n.Vue-Toastification__toast--default {\n background-color: #1976d2;\n color: #fff;\n}\n.Vue-Toastification__toast--info {\n background-color: #2196f3;\n color: #fff;\n}\n.Vue-Toastification__toast--success {\n background-color: #4caf50;\n color: #fff;\n}\n.Vue-Toastification__toast--error {\n background-color: #ff5252;\n color: #fff;\n}\n.Vue-Toastification__toast--warning {\n background-color: #ffc107;\n color: #fff;\n}\n@media only screen and (max-width : 600px) {\n .Vue-Toastification__toast {\n border-radius: 0px;\n margin-bottom: 0.5rem;\n }\n}\n.Vue-Toastification__toast-body {\n flex: 1;\n line-height: 24px;\n font-size: 16px;\n word-break: break-word;\n white-space: pre-wrap;\n}\n.Vue-Toastification__toast-component-body {\n flex: 1;\n}\n.Vue-Toastification__toast.disable-transition {\n -webkit-animation: none !important;\n animation: none !important;\n}\n.Vue-Toastification__close-button {\n font-weight: bold;\n font-size: 24px;\n line-height: 24px;\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n padding-left: 10px;\n cursor: pointer;\n transition: 0.3s ease;\n align-items: center;
26971\n color: #fff;\n opacity: 0.3;\n transition: visibility 0s, opacity 0.2s linear;\n}\n.Vue-Toastification__close-button:hover,\n.Vue-Toastification__close-button:focus {\n opacity: 1;\n}\n.Vue-Toastification__toast:not(:hover) .Vue-Toastification__close-button.show-on-hover {\n opacity: 0;\n}\n.Vue-Toastification__toast--rtl .Vue-Toastification__close-button {\n padding-left: unset;\n padding-right: 10px;\n}\n@-webkit-keyframes scale-x-frames {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n}\n@keyframes scale-x-frames {\n 0% {\n transform: scaleX(1);\n }\n 100% {\n transform: scaleX(0);\n }\n}\n.Vue-Toastification__progress-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 5px;\n z-index: 10000;\n background-color: rgba(255, 255, 255, 0.7);\n transform-origin: left;\n -webkit-animation: scale-x-frames linear 1 forwards;\n animation: scale-x-frames linear 1 forwards;\n}\n.Vue-Toastification__toast--rtl .Vue-Toastification__progress-bar {\n right: 0;\n left: unset;\n transform-origin: right;\n}\n.Vue-Toastification__icon {\n margin: auto 18px auto 0px;\n background: transparent;\n outline: none;\n border: none;\n padding: 0;\n transition: 0.3s ease;\n align-items: center;\n width: 20px;\n height: 100%;\n}\n.Vue-Toastification__toast--rtl .Vue-Toastification__icon {\n margin: auto 0px auto 18px;\n}\n@-webkit-keyframes bounceInRight {\n from, 60%, 75%, 90%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n@keyframes bounceInRight {\n from, 60%, 75%, 90%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(-25px, 0, 0);\n }\n 75% {\n transform: translate3d(10px, 0, 0);\n }\n 90% {\n transform: translate3d(-5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n@-webkit-keyframes bounceOutRight {\n 40% {\n opacity: 1;\n transform: translate3d(-20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(1000px, 0, 0);\n }\n}\n@keyframes bounceOutRight {\n 40% {\n opacity: 1;\n transform: translate3d(-20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(1000px, 0, 0);\n }\n}\n@-webkit-keyframes bounceInLeft {\n from, 60%, 75%, 90%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n@keyframes bounceInLeft {\n from, 60%, 75%, 90%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(-3000px, 0, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(25px, 0, 0);\n }\n 75% {\n transform: translate3d(-10px, 0, 0);\n }\n 90% {\n transform: translate3d(5px, 0, 0);\n }\n to {\n transform: none;\n }\n}\n@-webkit-keyframes bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, 0, 0);\n }\n}\n@keyframes bounceOutLeft {\n 20% {\n opacity: 1;\n transform: translate3d(20px, 0, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(-2000px, 0, 0);\n }\n}\n@-webkit-keyframes bounceInUp {\n from, 60%, 75%, 90%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;
26971\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes bounceInUp {\n from, 60%, 75%, 90%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n from {\n opacity: 0;\n transform: translate3d(0, 3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n 75% {\n transform: translate3d(0, 10px, 0);\n }\n 90% {\n transform: translate3d(0, -5px, 0);\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n@-webkit-keyframes bounceOutUp {\n 20% {\n transform: translate3d(0, -10px, 0);\n }\n 40%, 45% {\n opacity: 1;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n}\n@keyframes bounceOutUp {\n 20% {\n transform: translate3d(0, -10px, 0);\n }\n 40%, 45% {\n opacity: 1;\n transform: translate3d(0, 20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, -2000px, 0);\n }\n}\n@-webkit-keyframes bounceInDown {\n from, 60%, 75%, 90%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n}\n@keyframes bounceInDown {\n from, 60%, 75%, 90%, to {\n -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n 0% {\n opacity: 0;\n transform: translate3d(0, -3000px, 0);\n }\n 60% {\n opacity: 1;\n transform: translate3d(0, 25px, 0);\n }\n 75% {\n transform: translate3d(0, -10px, 0);\n }\n 90% {\n transform: translate3d(0, 5px, 0);\n }\n to {\n transform: none;\n }\n}\n@-webkit-keyframes bounceOutDown {\n 20% {\n transform: translate3d(0, 10px, 0);\n }\n 40%, 45% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n}\n@keyframes bounceOutDown {\n 20% {\n transform: translate3d(0, 10px, 0);\n }\n 40%, 45% {\n opacity: 1;\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 0;\n transform: translate3d(0, 2000px, 0);\n }\n}\n.Vue-Toastification__bounce-enter-active.top-left,\n.Vue-Toastification__bounce-enter-active.bottom-left {\n -webkit-animation-name: bounceInLeft;\n animation-name: bounceInLeft;\n}\n.Vue-Toastification__bounce-enter-active.top-right,\n.Vue-Toastification__bounce-enter-active.bottom-right {\n -webkit-animation-name: bounceInRight;\n animation-name: bounceInRight;\n}\n.Vue-Toastification__bounce-enter-active.top-center {\n -webkit-animation-name: bounceInDown;\n animation-name: bounceInDown;\n}\n.Vue-Toastification__bounce-enter-active.bottom-center {\n -webkit-animation-name: bounceInUp;\n animation-name: bounceInUp;\n}\n.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-left,\n.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-left {\n -webkit-animation-name: bounceOutLeft;\n animation-name: bounceOutLeft;\n}\n.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-right,\n.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-right {\n -webkit-animation-name: bounceOutRight;\n animation-name: bounceOutRight;\n}\n.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-center {\n -webkit-animation-name: bounceOutUp;\n animation-name: bounceOutUp;\n}\n.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-center {\n -webkit-animation-name: bounceOutDown;\n animation-name: bounceOutDown;\n}\n.Vue-Toastification__bounce-leave-active,\n.Vue-Toastification__bounce-enter-active {\n -webkit-animation-duration: 750ms;\n animation-duration: 750ms;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n.Vue-Toastification__bounce-move {\n transition-timing-function: ease-in-out;\n transition-property: all;\n transition-duration: 400ms;\n}\n@-webkit-keyframes fadeOutTop {\n 0% {\n transform: translateY(0);\n opacity: 1;\n }\n 100% {\n transform: translateY(-50px);\n opacity: 0;\n }\n}\n@keyframes fadeOutTop {\n 0% {\n transform: translateY(0);\n opacity: 1;\n }\n 100% {\n transform: translateY(-50px);\n opacity: 0;\n }\n}\n@-webkit-keyframes fadeOutLeft {\n 0% {\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n transform: translateX(-50px);\n opacity: 0;\n }\n}\n@keyframes fadeOutLeft {\n 0% {\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n transform: translateX(-50px);\n opacity: 0;\n }\n}\n@-webkit-keyframes fadeOutBottom {\n 0% {\n transform: translateY(0);\n opacity: 1;\n }\n 100% {\n transform: translateY(50px);\n opacity: 0;\n }\n}\n@keyframes fadeOutBottom {\n 0% {\n transform: translateY(0);\n opacity: 1;\n }\n 100% {\n transform: translateY(50px);\n opacity: 0;\n }\n}\n@-webkit-keyframes fadeOutRight {\n 0% {\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n transform: translateX(50px);\n opacity: 0;\n }\n}\n@keyframes fadeOutRight {\n 0% {\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n transform: translateX(50px);\n opacity: 0;\n }\n}\n@-webkit-keyframes fadeInLeft {\n 0% {\n transform: translateX(-50px);\n opacity: 0;\n }\n 100% {\n transform: translateX(0);\n opacity: 1;\n }\n}\n@keyframes fadeInLeft {\n 0% {\n transform: translateX(-50px);\n opacity: 0;\n }\n 100% {\n transform: translateX(0);\n opacity: 1;\n }\n}\n@-webkit-keyframes fadeInRight {\n 0% {\n transform: translateX(50px);\n opacity: 0;\n }\n 100% {\n transform: translateX(0);\n opacity: 1;\n }\n}\n@keyframes fadeInRight {\n 0% {\n transform: translateX(50px);\n opacity: 0;\n }\n 100% {\n transform: translateX(0);\n opacity: 1;\n }\n}\n@-webkit-keyframes fadeInTop {\n 0% {\n transform: translateY(-50px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n@keyframes fadeInTop {\n 0% {\n transform: translateY(-50px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n@-webkit-keyframes fadeInBottom {\n 0% {\n transform: translateY(50px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n@keyframes fadeInBottom {\n 0% {\n transform: translateY(50px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n.Vue-Toastification__fade-enter-active.top-left,\n.Vue-Toastification__fade-enter-active.bottom-left {\n -webkit-animation-name: fadeInLeft;\n animation-name: fadeInLeft;\n}\n.Vue-Toastification__fade-enter-active.top-right,\n.Vue-Toastification__fade-enter-active.bottom-right {\n -webkit-animation-name: fadeInRight;\n animation-name: fadeInRight;\n}\n.Vue-Toastification__fade-enter-active.top-center {\n -webkit-animation-name: fadeInTop;\n animation-name: fadeInTop;\n}\n.Vue-Toastification__fade-enter-active.bottom-center {\n -webkit-animation-name: fadeInBottom;\n animation-name: fadeInBottom;\n}\n.Vue-Toastification__fade-leave-active:not(.disable-transition).top-left,\n.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-left {\n -webkit-animation-name: fadeOutLeft;\n animation-name: fadeOutLeft;\n}\n.Vue-Toastification__fade-leave-active:not(.disable-transition).top-right,\n.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-right {\n -webkit-animation-name: fadeOutRight;\n animation-name: fadeOutRight;\n}\n.Vue-Toastification__fade-leave-active:not(.disable-transition).top-center {\n -webkit-animation-name: fadeOutTop;\n animation-name: fadeOutTop;\n}\n.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-center {\n -webkit-animation-name: fadeOutBottom;\n animation-name: fadeOutBottom;\n}\n.Vue-Toastification__fade-leave-active,\n.Vue-Toastification__fade-enter-active {\n -webkit-animation-duration: 750ms;\n animation-duration: 750ms;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n.Vue-Toastification__fade-move {\n transition-timing-function: ease-in-out;\n transition-property: all;\n transition-duration: 400ms;\n}\n@-webkit-keyframes slideInBlurredLeft {\n 0% {\n transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);\n transform-origin: 100% 50%;\n filter: blur(40px);\n opacity: 0;\n }\n 100% {\n transform: translateX(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n}\n@keyframes slideInBlurredLeft {\n 0% {\n transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);\n transform-origin: 100% 50%;\n filter: blur(40px);\n opacity: 0;\n }\n 100% {\n transform: translateX(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n}\n@-webkit-keyframes slideInBlurredTop {\n 0% {\n transform: translateY(-1000px) scaleY(2.5) scaleX(0.2);\n transform-origin: 50% 0%;\n filter: blur(240px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n}\n@keyframes slideInBlurredTop {\n 0% {\n transform: translateY(-1000px) scaleY(2.5) scaleX(0.2);\n transform-origin: 50% 0%;\n filter: blur(240px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n}\n@-webkit-keyframes slideInBlurredRight {\n 0% {\n transform: translateX(1000px) scaleX(2.5) scaleY(0.2);\n transform-origin: 0% 50%;\n filter: blur(40px);\n opacity: 0;\n }\n 100% {\n transform: translateX(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n}\n@keyframes slideInBlurredRight {\n 0% {\n transform: translateX(1000px) scaleX(2.5) scaleY(0.2);\n transform-origin: 0% 50%;\n filter: blur(40px);\n opacity: 0;\n }\n 100% {\n transform: translateX(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n}\n@-webkit-keyframes slideInBlurredBottom {\n 0% {\n transform: translateY(1000px) scaleY(2.5) scaleX(0.2);\n transform-origin: 50% 100%;\n filter: blur(240px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n}\n@keyframes slideInBlurredBottom {\n 0% {\n transform: translateY(1000px) scaleY(2.5) scaleX(0.2);\n transform-origin: 50% 100%;\n filter: blur(240px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n}\n@-webkit-keyframes slideOutBlurredTop {\n 0% {\n transform: translateY(0) scaleY(1) scaleX(1);\n transform-origin: 50% 0%;\n filter: blur(0);\n opacity: 1;\n }\n 100% {\n transform: translateY(-1000px) scaleY(2) scaleX(0.2);\n transform-origin: 50% 0%;\n filter: blur(240px);\n opacity: 0;\n }\n}\n@keyframes slideOutBlurredTop {\n 0% {\n transform: translateY(0) scaleY(1) scaleX(1);\n transform-origin: 50% 0%;\n filter: blur(0);\n opacity: 1;\n }\n 100% {\n transform: translateY(-1000px) scaleY(2) scaleX(0.2);\n transform-origin: 50% 0%;\n filter: blur(240px);\n opacity: 0;\n }\n}\n@-webkit-keyframes slideOutBlurredBottom {\n 0% {\n transform: translateY(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n 100% {\n transform: translateY(1000px) scaleY(2) scaleX(0.2);\n transform-origin: 50% 100%;\n filter: blur(240px);\n opacity: 0;\n }\n}\n@keyframes slideOutBlurredBottom {\n 0% {\n transform: translateY(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n 100% {\n transform: translateY(1000px) scaleY(2) scaleX(0.2);\n transform-origin: 50% 100%;\n filter: blur(240px);\n opacity: 0;\n }\n}\n@-webkit-keyframes slideOutBlurredLeft {\n 0% {\n transform: translateX(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n 100% {\n transform: translateX(-1000px) scaleX(2) scaleY(0.2);\n transform-origin: 100% 50%;\n filter: blur(40px);\n opacity: 0;\n }\n}\n@keyframes slideOutBlurredLeft {\n 0% {\n transform: translateX(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n 100% {\n transform: translateX(-1000px) scaleX(2) scaleY(0.2);\n transform-origin: 100% 50%;\n filter: blur(40px);\n opacity: 0;\n }\n}\n@-webkit-keyframes slideOutBlurredRight {\n 0% {\n transform: translateX(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n 100% {\n transform: translateX(1000px) scaleX(2) scaleY(0.2);\n transform-origin: 0% 50%;\n filter: blur(40px);\n opacity: 0;\n }\n}\n@keyframes slideOutBlurredRight {\n 0% {\n transform: translateX(0) scaleY(1) scaleX(1);\n transform-origin: 50% 50%;\n filter: blur(0);\n opacity: 1;\n }\n 100% {\n transform: translateX(1000px) scaleX(2) scaleY(0.2);\n transform-origin: 0% 50%;\n filter: blur(40px);\n opacity: 0;\n }\n}\n.Vue-Toastification__slideBlurred-enter-active.top-left,\n.Vue-Toastification__slideBlurred-enter-active.bottom-left {\n -webkit-animation-name: slideInBlurredLeft;\n animation-name: slideInBlurredLeft;\n}\n.Vue-Toastification__slideBlurred-enter-active.top-right,\n.Vue-Toastification__slideBlurred-enter-active.bottom-right {\n -webkit-animation-name: slideInBlurredRight;\n animation-name: slideInBlurredRight;\n}\n.Vue-Toastification__slideBlurred-enter-active.top-center {\n -webkit-animation-name: slideInBlurredTop;\n animation-name: slideInBlurredTop;\n}\n.Vue-Toastification__slideBlurred-enter-active.bottom-center {\n -webkit-animation-name: slideInBlurredBottom;\n animation-name: slideInBlurredBottom;\n}\n.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-left,\n.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-left {\n -webkit-animation-name: slideOutBlurredLeft;\n animation-name: slideOutBlurredLeft;\n}\n.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-right,\n.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-right {\n -webkit-animation-name: slideOutBlurredRight;\n animation-name: slideOutBlurredRight;\n}\n.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-center {\n -webkit-animation-name: slideOutBlurredTop;\n animation-name: slideOutBlurredTop;\n}\n.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-center {\n -webkit-animation-name: slideOutBlurredBottom;\n animation-name: slideOutBlurredBottom;\n}\n.Vue-Toastification__slideBlurred-leave-active,\n.Vue-Toastification__slideBlurred-enter-active {\n -webkit-animation-duration: 750ms;\n animation-duration: 750ms;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n.Vue-Toastification__slideBlurred-move {\n transition-timing-function: ease-in-out;\n transition-property: all;\n transition-duration: 400ms;\n}\n", ""]); 26972// Exports 26973/* harmony default export */ __webpack_exports__["default"] = (___CSS_
26973LOADER_EXPORT___); 26974 26975 26976/***/ }), 26977 26978/***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css": 26979/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ 26980 !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css ***! 26981 \************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ 26982/***/ (function(module, __webpack_exports__, __webpack_require__) { 26983 26984"use strict"; 26985__webpack_require__.r(__webpack_exports__); 26986/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 26987/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__); 26988// Imports 26989 26990var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]}); 26991// Module 26992___CSS_LOADER_EXPORT___.push([module.id, "\n.select-container-multi .select-choices[data-v-457cc02b] {\r\n height: auto !important;\r\n height: 1%;\r\n margin: 0;\r\n padding: 0 5px 0 0;\r\n position: relative;\r\n border: 1px solid #aaa;\r\n cursor: text;\r\n overflow: hidden;\r\n background-color: #fff;\r\n background-image: linear-gradient(to bottom,#eee 1%,#fff 15%);\n}\n.select-container-multi .select-choices .select-search-choice[data-v-457cc02b] {\r\n padding: 3px 5px 3px 18px;\r\n margin: 3px 0 3px 5px;\r\n position: relative;\r\n line-height: 13px;\r\n color: #333;\r\n cursor: default;\r\n border: 1px solid #aaa;\r\n border-radius: 3px;\r\n box-shadow: 0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);\r\n background-clip: padding-box;\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\r\n background-color: #e4e4e4;\r\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee',endColorstr='#f4f4f4',GradientType=0);\r\n background-image: linear-gradient(to bottom,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);\n}\n.select-container-multi .select-choices li[data-v-457cc02b] {\r\n float: left;\r\n list-style: none;\n}\n.select-container-multi .select-choices .select-search-field input[data-v-457cc02b] {\r\n padding: 5px;\r\n margin: 1px 0;\r\n font-family: sans-serif;\r\n font-size: 100%;\r\n color: #666;\r\n outline: 0;\r\n border: 0;\r\n box-shadow: none;\r\n background: transparent !important;\n}\n.form-control.select-container[data-v-457cc02b] {\r\n height: auto !important;\r\n padding: 0;\n}\r\n", ""]); 26993// Exports 26994/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___); 26995 26996 26997/***/ }), 26998 26999/***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css": 27000/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ 27001 !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLo
27001ader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css ***! 27002 \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ 27003/***/ (function(module, __webpack_exports__, __webpack_require__) { 27004 27005"use strict"; 27006__webpack_require__.r(__webpack_exports__); 27007/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); 27008/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__); 27009// Imports 27010 27011var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]}); 27012// Module 27013___CSS_LOADER_EXPORT___.push([module.id, "\n.select-container-multi .select-choices[data-v-ed527d62] {\r\n height: auto !important;\r\n height: 1%;\r\n margin: 0;\r\n padding: 0 5px 0 0;\r\n position: relative;\r\n border: 1px solid #aaa;\r\n cursor: text;\r\n overflow: hidden;\r\n background-color: #fff;\r\n background-image: linear-gradient(to bottom,#eee 1%,#fff 15%);\n}\n.select-container-multi .select-choices .select-search-choice[data-v-ed527d62] {\r\n padding: 3px 5px 3px 18px;\r\n margin: 3px 0 3px 5px;\r\n position: relative;\r\n line-height: 13px;\r\n color: #333;\r\n cursor: default;\r\n border: 1px solid #aaa;\r\n border-radius: 3px;\r\n box-shadow: 0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);\r\n background-clip: padding-box;\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\r\n background-color: #e4e4e4;\r\n filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee',endColorstr='#f4f4f4',GradientType=0);\r\n background-image: linear-gradient(to bottom,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);\n}\n.select-container-multi .select-choices li[data-v-ed527d62] {\r\n float: left;\r\n list-style: none;\n}\n.select-container-multi .select-choices .select-search-field input[data-v-ed527d62] {\r\n padding: 5px;\r\n margin: 1px 0;\r\n font-family: sans-serif;\r\n font-size: 100%;\r\n color: #666;\r\n outline: 0;\r\n border: 0;\r\n box-shadow: none;\r\n background: transparent !important;\n}\n.form-control.select-container[data-v-ed527d62] {\r\n height: auto !important;\r\n padding: 0;\n}\r\n", ""]); 27014// Exports 27015/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___); 27016 27017 27018/***/ }), 27019
vendor: 1,877 bytes, lines 27020-27095
27020/***/ "./node_modules/css-loader/dist/runtime/api.js": 27021/*!*****************************************************!*\ 27022 !*** ./node_modules/css-loader/dist/runtime/api.js ***! 27023 \*****************************************************/ 27024/***/ (function(module) { 27025 27026"use strict"; 27027 27028 27029/* 27030 MIT License http://www.opensource.org/licenses/mit-license.php 27031 Author Tobias Koppers @sokra 27032*/ 27033// css base code, injected by the css-loader 27034// eslint-disable-next-line func-names 27035module.exports = function (cssWithMappingToString) { 27036 var list = []; // return the list of modules as css string 27037 27038 list.toString = function toString() { 27039 return this.map(function (item) { 27040 var content = cssWithMappingToString(item); 27041 27042 if (item[2]) { 27043 return "@media ".concat(item[2], " {").concat(content, "}"); 27044 } 27045 27046 return content; 27047 }).join(""); 27048 }; // import a list of modules into the list 27049 // eslint-disable-next-line func-names 27050 27051 27052 list.i = function (modules, mediaQuery, dedupe) { 27053 if (typeof modules === "string") { 27054 // eslint-disable-next-line no-param-reassign 27055 modules = [[null, modules, ""]]; 27056 } 27057 27058 var alreadyImportedModules = {}; 27059 27060 if (dedupe) { 27061 for (var i = 0; i < this.length; i++) { 27062 // eslint-disable-next-line prefer-destructuring 27063 var id = this[i][0]; 27064 27065 if (id != null) { 27066 alreadyImportedModules[id] = true; 27067 } 27068 } 27069 } 27070 27071 for (var _i = 0; _i < modules.length; _i++) { 27072 var item = [].concat(modules[_i]); 27073 27074 if (dedupe && alreadyImportedModules[item[0]]) { 27075 // eslint-disable-next-line no-continue 27076 continue; 27077 } 27078 27079 if (mediaQuery) { 27080 if (!item[2]) { 27081 item[2] = mediaQuery; 27082 } else { 27083 item[2] = "".concat(mediaQuery, " and ").concat(item[2]); 27084 } 27085 } 27086 27087 list.push(item); 27088 } 27089 }; 27090 27091 return list; 27092}; 27093 27094/***/ }), 27095
vendor: 842 bytes, lines 27096-27119
27096/***/ "./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js": 27097/*!*****************************************************************!*\ 27098 !*** ./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js ***! 27099 \*****************************************************************/ 27100/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 27101 27102"use strict"; 27103__webpack_require__.r(__webpack_exports__); 27104/* harmony export */ __webpack_require__.d(__webpack_exports__, { 27105/* harmony export */ "default": function() { return /* binding */ addLeadingZeros; } 27106/* harmony export */ }); 27107function addLeadingZeros(number, targetLength) { 27108 var sign = number < 0 ? '-' : ''; 27109 var output = Math.abs(number).toString(); 27110 27111 while (output.length < targetLength) { 27112 output = '0' + output; 27113 } 27114 27115 return sign + output; 27116} 27117 27118/***/ }), 27119
vendor: 901 bytes, lines 27120-27147
27120/***/ "./node_modules/date-fns/esm/_lib/assign/index.js": 27121/*!********************************************************!*\ 27122 !*** ./node_modules/date-fns/esm/_lib/assign/index.js ***! 27123 \********************************************************/ 27124/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 27125 27126"use strict"; 27127__webpack_require__.r(__webpack_exports__); 27128/* harmony export */ __webpack_require__.d(__webpack_exports__, { 27129/* harmony export */ "default": function() { return /* binding */ assign; } 27130/* harmony export */ }); 27131function assign(target, object) { 27132 if (target == null) { 27133 throw new TypeError('assign requires that input parameter not be null or undefined'); 27134 } 27135 27136 for (var property in object) { 27137 if (Object.prototype.hasOwnProperty.call(object, property)) { 27138 ; 27139 target[property] = object[property]; 27140 } 27141 } 27142 27143 return target; 27144} 27145 27146/***/ }), 27147
vendor: 744 bytes, lines 27148-27161
27148/***/ "./node_modules/date-fns/esm/_lib/defaultLocale/index.js": 27149/*!***************************************************************!*\ 27150 !*** ./node_modules/date-fns/esm/_lib/defaultLocale/index.js ***! 27151 \***************************************************************/ 27152/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 27153 27154"use strict"; 27155__webpack_require__.r(__webpack_exports__); 27156/* harmony import */ var _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../locale/en-US/index.js */ "./node_modules/date-fns/esm/locale/en-US/index.js"); 27157 27158/* harmony default export */ __webpack_exports__["default"] = (_locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 27159 27160/***/ }), 27161
vendor: 878 bytes, lines 27162-27183
27162/***/ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js": 27163/*!****************************************************************!*\ 27164 !*** ./node_modules/date-fns/esm/_lib/defaultOptions/index.js ***! 27165 \****************************************************************/ 27166/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 27167 27168"use strict"; 27169__webpack_require__.r(__webpack_exports__); 27170/* harmony export */ __webpack_require__.d(__webpack_exports__, { 27171/* harmony export */ "getDefaultOptions": function() { return /* binding */ getDefaultOptions; }, 27172/* harmony export */ "setDefaultOptions": function() { return /* binding */ setDefaultOptions; } 27173/* harmony export */ }); 27174var defaultOptions = {}; 27175function getDefaultOptions() { 27176 return defaultOptions; 27177} 27178function setDefaultOptions(newOptions) { 27179 defaultOptions = newOptions; 27180} 27181 27182/***/ }), 27183
vendor: 27,451 bytes, lines 27184-28067
27184/***/ "./node_modules/date-fns/esm/_lib/format/formatters/index.js": 27185/*!*******************************************************************!*\ 27186 !*** ./node_modules/date-fns/esm/_lib/format/formatters/index.js ***! 27187 \*******************************************************************/ 27188/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 27189 27190"use strict"; 27191__webpack_require__.r(__webpack_exports__); 27192/* harmony import */ var _lib_getUTCDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_lib/getUTCDayOfYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js"); 27193/* harmony import */ var _lib_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../_lib/getUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js"); 27194/* harmony import */ var _lib_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_lib/getUTCISOWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js"); 27195/* harmony import */ var _lib_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_lib/getUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeek/index.js"); 27196/* harmony import */ var _lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_lib/getUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js"); 27197/* harmony import */ var _addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../addLeadingZeros/index.js */ "./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js"); 27198/* harmony import */ var _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../lightFormatters/index.js */ "./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js"); 27199 27200 27201 27202 27203 27204 27205 27206var dayPeriodEnum = { 27207 am: 'am', 27208 pm: 'pm', 27209 midnight: 'midnight', 27210 noon: 'noon', 27211 morning: 'morning', 27212 afternoon: 'afternoon', 27213 evening: 'evening', 27214 night: 'night' 27215}; 27216 27217/* 27218 * | | Unit | | Unit | 27219 * |-----|--------------------------------|-----|--------------------------------| 27220 * | a | AM, PM | A* | Milliseconds in day | 27221 * | b | AM, PM, noon, midnight | B | Flexible day period | 27222 * | c | Stand-alone local day of week | C* | Localized hour w/ day period | 27223 * | d | Day of month | D | Day of year | 27224 * | e | Local day of week | E | Day of week | 27225 * | f | | F* | Day of week in month | 27226 * | g* | Modified Julian day | G | Era | 27227 * | h | Hour [1-12] | H | Hour [0-23] | 27228 * | i! | ISO day of week | I! | ISO week of year | 27229 * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | 27230 * | k | Hour [1-24] | K | Hour [0-11] | 27231 * | l* | (deprecated) | L | Stand-alone month | 27232 * | m | Minute | M | Month | 27233 * | n | | N | | 27234 * | o! | Ordinal number modifier | O | Timezone (GMT) | 27235 * | p! | Long localized time | P! | Long localized date | 27236 * | q | Stand-alone quarter | Q | Quarter | 27237 * | r* | Related Gregorian year | R! | ISO week-numbering year | 27238 * | s | Second | S | Fraction of second | 27239 * | t! | Seconds timestamp | T! | Milliseconds timestamp | 27240 * | u | Extended year | U* | Cyclic year | 27241 * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | 27242 * | w | Local week of year | W* | Week of month | 27243 * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | 27244 * | y | Year (abs) | Y | Local week-numbering year | 27245 * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) | 27246 * 27247 * Letters marked by * are not implemented but reserved by Unicode standard. 27248 * 27249 * Letters marked by ! are non-standard, but implemented by date-fns: 27250 * - `o` modifies the previous token to turn it into an ordinal (see `format` docs) 27251 * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, 27252 * i.e. 7 for Sunday, 1 for Monday, etc. 27253 * - `I` is ISO week of year, as opposed to `w` which is local week of year. 27254 * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. 27255 * `R` is supposed to be used in conjunction with `I` and `i` 27256 * for universal ISO week-numbering date, whereas 27257 * `Y` is supposed to be used in conjunction with `w` and `e` 27258 * for week-numbering date specific to the locale. 27259 * - `P` is long localized date format 27260 * - `p` is long localized time format 27261 */ 27262var formatters = { 27263 // Era 27264 G: function (date, token, localize) { 27265 var era = date.getUTCFullYear() > 0 ? 1 : 0; 27266 27267 switch (token) { 27268 // AD, BC 27269 case 'G': 27270 case 'GG': 27271 case 'GGG': 27272 return localize.era(era, { 27273 width: 'abbreviated' 27274 }); 27275 // A, B 27276 27277 case 'GGGGG': 27278 return localize.era(era, { 27279 width: 'narrow' 27280 }); 27281 // Anno Domini, Before Christ 27282 27283 case 'GGGG': 27284 default: 27285 return localize.era(era, { 27286 width: 'wide' 27287 }); 27288 } 27289 }, 27290 // Year 27291 y: function (date, token, localize) { 27292 // Ordinal number 27293 if (token === 'yo') { 27294 var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) 27295 27296 var year = signedYear > 0 ? signedYear : 1 - signedYear; 27297 return localize.ordinalNumber(year, { 27298 unit: 'year' 27299 }); 27300 } 27301 27302 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].y(date, token); 27303 }, 27304 // Local week-numbering year 27305 Y: function (date, token, localize, options) { 27306 var signedWeekYear = (0,_lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript) 27307 27308 var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year 27309 27310 if (token === 'YY') { 27311 var twoDigitYear = weekYear % 100; 27312 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(twoDigitYear, 2); 27313 } // Ordinal number 27314 27315 27316 if (token === 'Yo') { 27317 return localize.ordinalNumber(weekYear, { 27318 unit: 'year' 27319 }); 27320 } // Padding 27321 27322 27323 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(weekYear, token.length); 27324 }, 27325 // ISO week-numbering year 27326 R: function (date, token) { 27327 var isoWeekYear = (0,_lib_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date); // Padding 27328 27329 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(isoWeekYear, token.length); 27330 }, 27331 // Extended year. This is a single number designating the year of this calendar system. 27332 // The main difference between `y` and `u` localizers are B.C. years: 27333 // | Year | `y` | `u` | 27334 // |------|-----|-----| 27335 // | AC 1 | 1 | 1 | 27336 // | BC 1 | 1 | 0 | 27337 // | BC 2 | 2 | -1 | 27338 // Also `yy` always returns the last two digits of a year, 27339 // while `uu` pads single digit years to 2 characters and returns other years unchanged. 27340 u: function (date, token) { 27341 var year = date.getUTCFullYear(); 27342 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(year, token.length); 27343 }, 27344 // Quarter 27345 Q: function (date, token, localize) { 27346 var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); 27347 27348 switch (token) { 27349 // 1, 2, 3, 4 27350 case 'Q': 27351 return String(quarter); 27352 // 01, 02, 03, 04 27353 27354 case 'QQ': 27355 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(quarter, 2); 27356 // 1st, 2nd, 3rd, 4th 27357 27358 case 'Qo': 27359 return localize.ordinalNumber(quarter, { 27360 unit: 'quarter' 27361 }); 27362 // Q1, Q2, Q3, Q4 27363 27364 case 'QQQ': 27365 return localize.quarter(quarter, { 27366 width: 'abbreviated', 27367 context: 'formatting' 27368 }); 27369 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 27370 27371 case 'QQQQQ': 27372 return localize.quarter(quarter, { 27373 width: 'narrow', 27374 context: 'formatting' 27375 }); 27376 // 1st quarter, 2nd quarter, ... 27377 27378 case 'QQQQ': 27379 default: 27380 return localize.quarter(quarter, { 27381 width: 'wide', 27382 context: 'formatting' 27383 }); 27384 } 27385 }, 27386 // Stand-alone quarter 27387 q: function (date, token, localize) { 27388 var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); 27389 27390 switch (token) { 27391 // 1, 2, 3, 4 27392 case 'q': 27393 return String(quarter); 27394 // 01, 02, 03, 04 27395 27396 case 'qq': 27397 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(quarter, 2); 27398 // 1st, 2nd, 3rd, 4th 27399 27400 case 'qo': 27401 return localize.ordinalNumber(quarter, { 27402 unit: 'quarter' 27403 }); 27404 // Q1, Q2, Q3, Q4 27405 27406 case 'qqq': 27407 return localize.quarter(quarter, { 27408 width: 'abbreviated', 27409 context: 'standalone' 27410 }); 27411 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 27412 27413 case 'qqqqq': 27414 return localize.quarter(quarter, { 27415 width: 'narrow', 27416 context: 'standalone' 27417 }); 27418 // 1st quarter, 2nd quarter, ... 27419 27420 case 'qqqq': 27421 default: 27422 return localize.quarter(quarter, { 27423 width: 'wide', 27424 context: 'standalone' 27425 }); 27426 } 27427 }, 27428 // Month 27429 M: function (date, token, localize) { 27430 var month = date.getUTCMonth(); 27431 27432 switch (token) { 27433 case 'M': 27434 case 'MM': 27435 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].M(date, token); 27436 // 1st, 2nd, ..., 12th 27437 27438 case 'Mo': 27439 return localize.ordinalNumber(month + 1, { 27440 unit: 'month' 27441 }); 27442 // Jan, Feb, ..., Dec 27443 27444 case 'MMM': 27445 return localize.month(month, { 27446 width: 'abbreviated', 27447 context: 'formatting' 27448 }); 27449 // J, F, ..., D 27450 27451 case 'MMMMM': 27452 return localize.month(month, { 27453 width: 'narrow', 27454 context: 'formatting' 27455 }); 27456 // January, February, ..., December 27457 27458 case 'MMMM': 27459 default: 27460 return localize.month(month, { 27461 width: 'wide', 27462 context: 'formatting' 27463 }); 27464 } 27465 }, 27466 // Stand-alone month 27467 L: function (date, token, localize) { 27468 var month = date.getUTCMonth(); 27469 27470 switch (token) { 27471 // 1, 2, ..., 12 27472 case 'L': 27473 return String(month + 1); 27474 // 01, 02, ..., 12 27475 27476 case 'LL': 27477 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(month + 1, 2); 27478 // 1st, 2nd, ..., 12th 27479 27480 case 'Lo': 27481 return localize.ordinalNumber(month + 1, { 27482 unit: 'month' 27483 }); 27484 // Jan, Feb, ..., Dec 27485 27486 case 'LLL': 27487 return localize.month(month, { 27488 width: 'abbreviated', 27489 context: 'standalone' 27490 }); 27491 // J, F, ..., D 27492 27493 case 'LLLLL': 27494 return localize.month(month, { 27495 width: 'narrow', 27496 context: 'standalone' 27497 }); 27498 // January, February, ..., December 27499 27500 case 'LLLL': 27501 default: 27502 return localize.month(month, { 27503 width: 'wide', 27504 context: 'standalone' 27505 }); 27506 } 27507 }, 27508 // Local week of year 27509 w: function (date, token, localize, options) { 27510 var week = (0,_lib_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(date, options); 27511 27512 if (token === 'wo') { 27513 return localize.ordinalNumber(week, { 27514 unit: 'week' 27515 }); 27516 } 27517 27518 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(week, token.length); 27519 }, 27520 // ISO week of year 27521 I: function (date, token, localize) { 27522 var isoWeek = (0,_lib_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(date); 27523 27524 if (token === 'Io') { 27525 return localize.ordinalNumber(isoWeek, { 27526 unit: 'week' 27527 }); 27528 } 27529 27530 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(isoWeek, token.length); 27531 }, 27532 // Day of the month 27533 d: function (date, token, localize) { 27534 if (token === 'do') { 27535 return localize.ordinalNumber(date.getUTCDate(), { 27536 unit: 'date' 27537 }); 27538 } 27539 27540 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].d(date, token); 27541 }, 27542 // Day of year 27543 D: function (date, token, localize) { 27544 var dayOfYear = (0,_lib_getUTCDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(date); 27545 27546 if (token === 'Do') { 27547 return localize.ordinalNumber(dayOfYear, { 27548 unit: 'dayOfYear' 27549 }); 27550 } 27551 27552 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dayOfYear, token.length); 27553 }, 27554 // Day of week 27555 E: function (date, token, localize) { 27556 var dayOfWeek = date.getUTCDay(); 27557 27558 switch (token) { 27559 // Tue 27560 case 'E': 27561 case 'EE': 27562 case 'EEE': 27563 return localize.day(dayOfWeek, { 27564 width: 'abbreviated', 27565 context: 'formatting' 27566 }); 27567 // T 27568 27569 case 'EEEEE': 27570 return localize.day(dayOfWeek, { 27571 width: 'narrow', 27572 context: 'formatting' 27573 }); 27574 // Tu 27575 27576 case 'EEEEEE': 27577 return localize.day(dayOfWeek, { 27578 width: 'short', 27579 context: 'formatting' 27580 }); 27581 // Tuesday 27582 27583 case 'EEEE': 27584 default: 27585 return localize.day(dayOfWeek, { 27586 width: 'wide', 27587 context: 'formatting' 27588 }); 27589 } 27590 }, 27591 // Local day of week 27592 e: function (date, token, localize, options) { 27593 var dayOfWeek = date.getUTCDay(); 27594 var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; 27595 27596 switch (token) { 27597 // Numerical value (Nth day of week with current locale or weekStartsOn) 27598 case 'e': 27599 return String(localDayOfWeek); 27600 // Padded numerical value 27601 27602 case 'ee': 27603 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(localDayOfWeek, 2); 27604 // 1st, 2nd, ..., 7th 27605 27606 case 'eo': 27607 return localize.ordinalNumber(localDayOfWeek, { 27608 unit: 'day' 27609 }); 27610 27611 case 'eee': 27612 return localize.day(dayOfWeek, { 27613 width: 'abbreviated', 27614 context: 'formatting' 27615 }); 27616 // T 27617 27618 case 'eeeee': 27619 return localize.day(dayOfWeek, { 27620 width: 'narrow', 27621 context: 'formatting' 27622 }); 27623 // Tu 27624 27625 case 'eeeeee': 27626 return localize.day(dayOfWeek, { 27627 width: 'short', 27628 context: 'formatting' 27629 }); 27630 // Tuesday 27631 27632 case 'eeee': 27633 default: 27634 return localize.day(dayOfWeek, { 27635 width: 'wide', 27636 context: 'formatting' 27637 }); 27638 } 27639 }, 27640 // Stand-alone local day of week 27641 c: function (date, token, localize, options) { 27642 var dayOfWeek = date.getUTCDay(); 27643 var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; 27644 27645 switch (token) { 27646 // Numerical value (same as in `e`) 27647 case 'c': 27648 return String(localDayOfWeek); 27649 // Padded numerical value 27650 27651 case 'cc': 27652 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(localDayOfWeek, token.length); 27653 // 1st, 2nd, ..., 7th 27654 27655 case 'co': 27656 return localize.ordinalNumber(localDayOfWeek, { 27657 unit: 'day' 27658 }); 27659 27660 case 'ccc': 27661 return localize.day(dayOfWeek, { 27662 width: 'abbreviated', 27663 context: 'standalone' 27664 }); 27665 // T 27666 27667 case 'ccccc': 27668 return localize.day(dayOfWeek, { 27669 width: 'narrow', 27670 context: 'standalone' 27671 }); 27672 // Tu 27673 27674 case 'cccccc': 27675 return localize.day(dayOfWeek, { 27676 width: 'short', 27677 context: 'standalone' 27678 }); 27679 // Tuesday 27680 27681 case 'cccc': 27682 default: 27683 return localize.day(dayOfWeek, { 27684 width: 'wide', 27685 context: 'standalone' 27686 }); 27687 } 27688 }, 27689 // ISO day of week 27690 i: function (date, token, localize) { 27691 var dayOfWeek = date.getUTCDay(); 27692 var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; 27693 27694 switch (token) { 27695 // 2 27696 case 'i': 27697 return String(isoDayOfWeek); 27698 // 02 27699 27700 case 'ii': 27701 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(isoDayOfWeek, token.length); 27702 // 2nd 27703 27704 case 'io': 27705 return localize.ordinalNumber(isoDayOfWeek, { 27706 unit: 'day' 27707 }); 27708 // Tue 27709 27710 case 'iii': 27711 return localize.day(dayOfWeek, { 27712 width: 'abbreviated', 27713 context: 'formatting' 27714 }); 27715 // T 27716 27717 case 'iiiii': 27718 return localize.day(dayOfWeek, { 27719 width: 'narrow', 27720 context: 'formatting' 27721 }); 27722 // Tu 27723 27724 case 'iiiiii': 27725 return localize.day(dayOfWeek, { 27726 width: 'short', 27727 context: 'formatting' 27728 }); 27729 // Tuesday 27730 27731 case 'iiii': 27732 default: 27733 return localize.day(dayOfWeek, { 27734 width: 'wide', 27735 context: 'formatting' 27736 }); 27737 } 27738 }, 27739 // AM or PM 27740 a: function (date, token, localize) { 27741 var hours = date.getUTCHours(); 27742 var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; 27743 27744 switch (token) { 27745 case 'a': 27746 case 'aa': 27747 return localize.dayPeriod(dayPeriodEnumValue, { 27748 width: 'abbreviated', 27749 context: 'formatting' 27750 }); 27751 27752 case 'aaa': 27753 return localize.dayPeriod(dayPeriodEnumValue, { 27754 width: 'abbreviated', 27755 context: 'formatting' 27756 }).toLowerCase(); 27757 27758 case 'aaaaa': 27759 return localize.dayPeriod(dayPeriodEnumValue, { 27760 width: 'narrow', 27761 context: 'formatting' 27762 }); 27763 27764 case 'aaaa': 27765 default: 27766 return localize.dayPeriod(dayPeriodEnumValue, { 27767 width: 'wide', 27768 context: 'formatting' 27769 }); 27770 } 27771 }, 27772 // AM, PM, midnight, noon 27773 b: function (date, token, localize) { 27774 var hours = date.getUTCHours(); 27775 var dayPeriodEnumValue; 27776 27777 if (hours === 12) { 27778 dayPeriodEnumValue = dayPeriodEnum.noon; 27779 } else if (hours === 0) { 27780 dayPeriodEnumValue = dayPeriodEnum.midnight; 27781 } else { 27782 dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; 27783 } 27784 27785 switch (token) { 27786 case 'b': 27787 case 'bb': 27788 return localize.dayPeriod(dayPeriodEnumValue, { 27789 width: 'abbreviated', 27790 context: 'formatting' 27791 }); 27792 27793 case 'bbb': 27794 return localize.dayPeriod(dayPeriodEnumValue, { 27795 width: 'abbreviated', 27796 context: 'formatting' 27797 }).toLowerCase(); 27798 27799 case 'bbbbb': 27800 return localize.dayPeriod(dayPeriodEnumValue, { 27801 width: 'narrow', 27802 context: 'formatting' 27803 }); 27804 27805 case 'bbbb': 27806 default: 27807 return localize.dayPeriod(dayPeriodEnumValue, { 27808 width: 'wide', 27809 context: 'formatting' 27810 }); 27811 } 27812 }, 27813 // in the morning, in the afternoon, in the evening, at night 27814 B: function (date, token, localize) { 27815 var hours = date.getUTCHours(); 27816 var dayPeriodEnumValue; 27817 27818 if (hours >= 17) { 27819 dayPeriodEnumValue = dayPeriodEnum.evening; 27820 } else if (hours >= 12) { 27821 dayPeriodEnumValue = dayPeriodEnum.afternoon; 27822 } else if (hours >= 4) { 27823 dayPeriodEnumValue = dayPeriodEnum.morning; 27824 } else { 27825 dayPeriodEnumValue = dayPeriodEnum.night; 27826 } 27827 27828 switch (token) { 27829 case 'B': 27830 case 'BB': 27831 case 'BBB': 27832 return localize.dayPeriod(dayPeriodEnumValue, { 27833 width: 'abbreviated', 27834 context: 'formatting' 27835 }); 27836 27837 case 'BBBBB': 27838 return localize.dayPeriod(dayPeriodEnumValue, { 27839 width: 'narrow', 27840 context: 'formatting' 27841 }); 27842 27843 case 'BBBB': 27844 default: 27845 return localize.dayPeriod(dayPeriodEnumValue, { 27846 width: 'wide', 27847 context: 'formatting' 27848 }); 27849 } 27850 }, 27851 // Hour [1-12] 27852 h: function (date, token, localize) { 27853 if (token === 'ho') { 27854 var hours = date.getUTCHours() % 12; 27855 if (hours === 0) hours = 12; 27856 return localize.ordinalNumber(hours, { 27857 unit: 'hour' 27858 }); 27859 } 27860 27861 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].h(date, token); 27862 }, 27863 // Hour [0-23] 27864 H: function (date, token, localize) { 27865 if (token === 'Ho') { 27866 return localize.ordinalNumber(date.getUTCHours(), { 27867 unit: 'hour' 27868 }); 27869 } 27870 27871 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].H(date, token); 27872 }, 27873 // Hour [0-11] 27874 K: function (date, token, localize) { 27875 var hours = date.getUTCHours() % 12; 27876 27877 if (token === 'Ko') { 27878 return localize.ordinalNumber(hours, { 27879 unit: 'hour' 27880 }); 27881 } 27882 27883 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(hours, token.length); 27884 }, 27885 // Hour [1-24] 27886 k: function (date, token, localize) { 27887 var hours = date.getUTCHours(); 27888 if (hours === 0) hours = 24; 27889 27890 if (token === 'ko') { 27891 return localize.ordinalNumber(hours, { 27892 unit: 'hour' 27893 }); 27894 } 27895 27896 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(hours, token.length); 27897 }, 27898 // Minute 27899 m: function (date, token, localize) { 27900 if (token === 'mo') { 27901 return localize.ordinalNumber(date.getUTCMinutes(), { 27902 unit: 'minute' 27903 }); 27904 } 27905 27906 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].m(date, token); 27907 }, 27908 // Second 27909 s: function (date, token, localize) { 27910 if (token === 'so') { 27911 return localize.ordinalNumber(date.getUTCSeconds(), { 27912 unit: 'second' 27913 }); 27914 } 27915 27916 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].s(date, token); 27917 }, 27918 // Fraction of second 27919 S: function (date, token) { 27920 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].S(date, token); 27921 }, 27922 // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) 27923 X: function (date, token, _localize, options) { 27924 var originalDate = options._originalDate || date; 27925 var timezoneOffset = originalDate.getTimezoneOffset(); 27926 27927 if (timezoneOffset === 0) { 27928 return 'Z'; 27929 } 27930 27931 switch (token) { 27932 // Hours and optional minutes 27933 case 'X': 27934 return formatTimezoneWithOptionalMinutes(timezoneOffset); 27935 // Hours, minutes and optional seconds without `:` delimiter 27936 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 27937 // so this token always has the same output as `XX` 27938 27939 case 'XXXX': 27940 case 'XX': 27941 // Hours and minutes without `:` delimiter 27942 return formatTimezone(timezoneOffset); 27943 // Hours, minutes and optional seconds with `:` delimiter 27944 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 27945 // so this token always has the same output as `XXX` 27946 27947 case 'XXXXX': 27948 case 'XXX': // Hours and minutes with `:` delimiter 27949 27950 default: 27951 return formatTimezone(timezoneOffset, ':'); 27952 } 27953 }, 27954 // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) 27955 x: function (date, token, _localize, options) { 27956 var originalDate = options._originalDate || date; 27957 var timezoneOffset = originalDate.getTimezoneOffset(); 27958 27959 switch (token) { 27960 // Hours and optional minutes 27961 case 'x': 27962 return formatTimezoneWithOptionalMinutes(timezoneOffset); 27963 // Hours, minutes and optional seconds without `:` delimiter 27964 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 27965 // so this token always has the same output as `xx` 27966 27967 case 'xxxx': 27968 case 'xx': 27969 // Hours and minutes without `:` delimiter 27970 return formatTimezone(timezoneOffset); 27971 // Hours, minutes and optional seconds with `:` delimiter 27972 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 27973 // so this token always has the same output as `xxx` 27974 27975 case 'xxxxx': 27976 case 'xxx': // Hours and minutes with `:` delimiter 27977 27978 default: 27979 return formatTimezone(timezoneOffset, ':'); 27980 } 27981 }, 27982 // Timezone (GMT) 27983 O: function (date, token, _localize, options) { 27984 var originalDate = options._originalDate || date; 27985 var timezoneOffset = originalDate.getTimezoneOffset(); 27986 27987 switch (token) { 27988 // Short 27989 case 'O': 27990 case 'OO': 27991 case 'OOO': 27992 return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); 27993 // Long 27994 27995 case 'OOOO': 27996 default: 27997 return 'GMT' + formatTimezone(timezoneOffset, ':'); 27998 } 27999 }, 28000 // Timezone (specific non-location) 28001 z: function (date, token, _localize, options) { 28002 var originalDate = options._originalDate || date; 28003 var timezoneOffset = originalDate.getTimezoneOffset(); 28004 28005 switch (token) { 28006 // Short 28007 case 'z': 28008 case 'zz': 28009 case 'zzz': 28010 return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); 28011 // Long 28012 28013 case 'zzzz': 28014 default: 28015 return 'GMT' + formatTimezone(timezoneOffset, ':'); 28016 } 28017 }, 28018 // Seconds timestamp 28019 t: function (date, token, _localize, options) { 28020 var originalDate = options._originalDate || date; 28021 var timestamp = Math.floor(originalDate.getTime() / 1000); 28022 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(timestamp, token.length); 28023 }, 28024 // Milliseconds timestamp 28025 T: function (date, token, _localize, options) { 28026 var originalDate = options._originalDate || date; 28027 var timestamp = originalDate.getTime(); 28028 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(timestamp, token.length); 28029 } 28030}; 28031 28032function formatTimezoneShort(offset, dirtyDelimiter) { 28033 var sign = offset > 0 ? '-' : '+'; 28034 var absOffset = Math.abs(offset); 28035 var hours = Math.floor(absOffset / 60); 28036 var minutes = absOffset % 60; 28037 28038 if (minutes === 0) { 28039 return sign + String(hours); 28040 } 28041 28042 var delimiter = dirtyDelimiter || ''; 28043 return sign + String(hours) + delimiter + (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(minutes, 2); 28044} 28045 28046function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) { 28047 if (offset % 60 === 0) { 28048 var sign = offset > 0 ? '-' : '+'; 28049 return sign + (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(Math.abs(offset) / 60, 2); 28050 } 28051 28052 return formatTimezone(offset, dirtyDelimiter); 28053} 28054 28055function formatTimezone(offset, dirtyDelimiter) { 28056 var delimiter = dirtyDelimiter || ''; 28057 var sign = offset > 0 ? '-' : '+'; 28058 var absOffset = Math.abs(offset); 28059 var hours = (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(Math.floor(absOffset / 60), 2); 28060 var minutes = (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(absOffset % 60, 2); 28061 return sign + hours + delimiter + minutes; 28062} 28063 28064/* harmony default export */ __webpack_exports__["default"] = (formatters); 28065 28066/***/ }), 28067
vendor: 4,199 bytes, lines 28068-28163
28068/***/ "./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js": 28069/*!************************************************************************!*\ 28070 !*** ./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js ***! 28071 \************************************************************************/ 28072/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28073 28074"use strict"; 28075__webpack_require__.r(__webpack_exports__); 28076/* harmony import */ var _addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../addLeadingZeros/index.js */ "./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js"); 28077 28078/* 28079 * | | Unit | | Unit | 28080 * |-----|--------------------------------|-----|--------------------------------| 28081 * | a | AM, PM | A* | | 28082 * | d | Day of month | D | | 28083 * | h | Hour [1-12] | H | Hour [0-23] | 28084 * | m | Minute | M | Month | 28085 * | s | Second | S | Fraction of second | 28086 * | y | Year (abs) | Y | | 28087 * 28088 * Letters marked by * are not implemented but reserved by Unicode standard. 28089 */ 28090 28091var formatters = { 28092 // Year 28093 y: function (date, token) { 28094 // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens 28095 // | Year | y | yy | yyy | yyyy | yyyyy | 28096 // |----------|-------|----|-------|-------|-------| 28097 // | AD 1 | 1 | 01 | 001 | 0001 | 00001 | 28098 // | AD 12 | 12 | 12 | 012 | 0012 | 00012 | 28099 // | AD 123 | 123 | 23 | 123 | 0123 | 00123 | 28100 // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | 28101 // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | 28102 var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) 28103 28104 var year = signedYear > 0 ? signedYear : 1 - signedYear; 28105 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(token === 'yy' ? year % 100 : year, token.length); 28106 }, 28107 // Month 28108 M: function (date, token) { 28109 var month = date.getUTCMonth(); 28110 return token === 'M' ? String(month + 1) : (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(month + 1, 2); 28111 }, 28112 // Day of the month 28113 d: function (date, token) { 28114 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCDate(), token.length); 28115 }, 28116 // AM or PM 28117 a: function (date, token) { 28118 var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am'; 28119 28120 switch (token) { 28121 case 'a': 28122 case 'aa': 28123 return dayPeriodEnumValue.toUpperCase(); 28124 28125 case 'aaa': 28126 return dayPeriodEnumValue; 28127 28128 case 'aaaaa': 28129 return dayPeriodEnumValue[0]; 28130 28131 case 'aaaa': 28132 default: 28133 return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.'; 28134 } 28135 }, 28136 // Hour [1-12] 28137 h: function (date, token) { 28138 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCHours() % 12 || 12, token.length); 28139 }, 28140 // Hour [0-23] 28141 H: function (date, token) { 28142 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCHours(), token.length); 28143 }, 28144 // Minute 28145 m: function (date, token) { 28146 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCMinutes(), token.length); 28147 }, 28148 // Second 28149 s: function (date, token) { 28150 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCSeconds(), token.length); 28151 }, 28152 // Fraction of second 28153 S: function (date, token) { 28154 var numberOfDigits = token.length; 28155 var milliseconds = date.getUTCMilliseconds(); 28156 var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3)); 28157 return (0,_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(fractionalSeconds, token.length); 28158 } 28159}; 28160/* harmony default export */ __webpack_exports__["default"] = (formatters); 28161 28162/***/ }), 28163
vendor: 2,371 bytes, lines 28164-28270
28164/***/ "./node_modules/date-fns/esm/_lib/format/longFormatters/index.js": 28165/*!***********************************************************************!*\ 28166 !*** ./node_modules/date-fns/esm/_lib/format/longFormatters/index.js ***! 28167 \***********************************************************************/ 28168/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28169 28170"use strict"; 28171__webpack_require__.r(__webpack_exports__); 28172var dateLongFormatter = function (pattern, formatLong) { 28173 switch (pattern) { 28174 case 'P': 28175 return formatLong.date({ 28176 width: 'short' 28177 }); 28178 28179 case 'PP': 28180 return formatLong.date({ 28181 width: 'medium' 28182 }); 28183 28184 case 'PPP': 28185 return formatLong.date({ 28186 width: 'long' 28187 }); 28188 28189 case 'PPPP': 28190 default: 28191 return formatLong.date({ 28192 width: 'full' 28193 }); 28194 } 28195}; 28196 28197var timeLongFormatter = function (pattern, formatLong) { 28198 switch (pattern) { 28199 case 'p': 28200 return formatLong.time({ 28201 width: 'short' 28202 }); 28203 28204 case 'pp': 28205 return formatLong.time({ 28206 width: 'medium' 28207 }); 28208 28209 case 'ppp': 28210 return formatLong.time({ 28211 width: 'long' 28212 }); 28213 28214 case 'pppp': 28215 default: 28216 return formatLong.time({ 28217 width: 'full' 28218 }); 28219 } 28220}; 28221 28222var dateTimeLongFormatter = function (pattern, formatLong) { 28223 var matchResult = pattern.match(/(P+)(p+)?/) || []; 28224 var datePattern = matchResult[1]; 28225 var timePattern = matchResult[2]; 28226 28227 if (!timePattern) { 28228 return dateLongFormatter(pattern, formatLong); 28229 } 28230 28231 var dateTimeFormat; 28232 28233 switch (datePattern) { 28234 case 'P': 28235 dateTimeFormat = formatLong.dateTime({ 28236 width: 'short' 28237 }); 28238 break; 28239 28240 case 'PP': 28241 dateTimeFormat = formatLong.dateTime({ 28242 width: 'medium' 28243 }); 28244 break; 28245 28246 case 'PPP': 28247 dateTimeFormat = formatLong.dateTime({ 28248 width: 'long' 28249 }); 28250 break; 28251 28252 case 'PPPP': 28253 default: 28254 dateTimeFormat = formatLong.dateTime({ 28255 width: 'full' 28256 }); 28257 break; 28258 } 28259 28260 return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong)); 28261}; 28262 28263var longFormatters = { 28264 p: timeLongFormatter, 28265 P: dateTimeLongFormatter 28266}; 28267/* harmony default export */ __webpack_exports__["default"] = (longFormatters); 28268 28269/***/ }), 28270
vendor: 1,558 bytes, lines 28271-28300
28271/***/ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js": 28272/*!*********************************************************************************!*\ 28273 !*** ./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js ***! 28274 \*********************************************************************************/ 28275/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28276 28277"use strict"; 28278__webpack_require__.r(__webpack_exports__); 28279/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28280/* harmony export */ "default": function() { return /* binding */ getTimezoneOffsetInMilliseconds; } 28281/* harmony export */ }); 28282/** 28283 * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. 28284 * They usually appear for dates that denote time before the timezones were introduced 28285 * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 28286 * and GMT+01:00:00 after that date) 28287 * 28288 * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, 28289 * which would lead to incorrect calculations. 28290 * 28291 * This function returns the timezone offset in milliseconds that takes seconds in account. 28292 */ 28293function getTimezoneOffsetInMilliseconds(date) { 28294 var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds())); 28295 utcDate.setUTCFullYear(date.getFullYear()); 28296 return date.getTime() - utcDate.getTime(); 28297} 28298 28299/***/ }), 28300
vendor: 1,470 bytes, lines 28301-28329
28301/***/ "./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js": 28302/*!*****************************************************************!*\ 28303 !*** ./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js ***! 28304 \*****************************************************************/ 28305/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28306 28307"use strict"; 28308__webpack_require__.r(__webpack_exports__); 28309/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28310/* harmony export */ "default": function() { return /* binding */ getUTCDayOfYear; } 28311/* harmony export */ }); 28312/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28313/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28314 28315 28316var MILLISECONDS_IN_DAY = 86400000; 28317function getUTCDayOfYear(dirtyDate) { 28318 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 28319 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 28320 var timestamp = date.getTime(); 28321 date.setUTCMonth(0, 1); 28322 date.setUTCHours(0, 0, 0, 0); 28323 var startOfYearTimestamp = date.getTime(); 28324 var difference = timestamp - startOfYearTimestamp; 28325 return Math.floor(difference / MILLISECONDS_IN_DAY) + 1; 28326} 28327 28328/***/ }), 28329
vendor: 2,191 bytes, lines 28330-28370
28330/***/ "./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js": 28331/*!*******************************************************************!*\ 28332 !*** ./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js ***! 28333 \*******************************************************************/ 28334/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28335 28336"use strict"; 28337__webpack_require__.r(__webpack_exports__); 28338/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28339/* harmony export */ "default": function() { return /* binding */ getUTCISOWeekYear; } 28340/* harmony export */ }); 28341/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28342/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28343/* harmony import */ var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); 28344 28345 28346 28347function getUTCISOWeekYear(dirtyDate) { 28348 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 28349 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 28350 var year = date.getUTCFullYear(); 28351 var fourthOfJanuaryOfNextYear = new Date(0); 28352 fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4); 28353 fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0); 28354 var startOfNextYear = (0,_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(fourthOfJanuaryOfNextYear); 28355 var fourthOfJanuaryOfThisYear = new Date(0); 28356 fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4); 28357 fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0); 28358 var startOfThisYear = (0,_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(fourthOfJanuaryOfThisYear); 28359 28360 if (date.getTime() >= startOfNextYear.getTime()) { 28361 return year + 1; 28362 } else if (date.getTime() >= startOfThisYear.getTime()) { 28363 return year; 28364 } else { 28365 return year - 1; 28366 } 28367} 28368 28369/***/ }), 28370
vendor: 2,082 bytes, lines 28371-28402
28371/***/ "./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js": 28372/*!***************************************************************!*\ 28373 !*** ./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js ***! 28374 \***************************************************************/ 28375/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28376 28377"use strict"; 28378__webpack_require__.r(__webpack_exports__); 28379/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28380/* harmony export */ "default": function() { return /* binding */ getUTCISOWeek; } 28381/* harmony export */ }); 28382/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28383/* harmony import */ var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); 28384/* harmony import */ var _startOfUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../startOfUTCISOWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js"); 28385/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28386 28387 28388 28389 28390var MILLISECONDS_IN_WEEK = 604800000; 28391function getUTCISOWeek(dirtyDate) { 28392 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 28393 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 28394 var diff = (0,_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date).getTime() - (0,_startOfUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date).getTime(); // Round the number of days to the nearest integer 28395 // because the number of milliseconds in a week is not constant 28396 // (e.g. it's different in the week of the daylight saving time clock shift) 28397 28398 return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; 28399} 28400 28401/***/ }), 28402
vendor: 4,021 bytes, lines 28403-28456
28403/***/ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js": 28404/*!****************************************************************!*\ 28405 !*** ./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js ***! 28406 \****************************************************************/ 28407/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28408 28409"use strict"; 28410__webpack_require__.r(__webpack_exports__); 28411/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28412/* harmony export */ "default": function() { return /* binding */ getUTCWeekYear; } 28413/* harmony export */ }); 28414/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28415/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28416/* harmony import */ var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); 28417/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 28418/* harmony import */ var _defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 28419 28420 28421 28422 28423 28424function getUTCWeekYear(dirtyDate, options) { 28425 var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 28426 28427 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 28428 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 28429 var year = date.getUTCFullYear(); 28430 var defaultOptions = (0,_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_2__.getDefaultOptions)(); 28431 var firstWeekContainsDate = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN 28432 28433 if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { 28434 throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); 28435 } 28436 28437 var firstWeekOfNextYear = new Date(0); 28438 firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate); 28439 firstWeekOfNextYear.setUTCHours(0, 0, 0, 0); 28440 var startOfNextYear = (0,_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(firstWeekOfNextYear, options); 28441 var firstWeekOfThisYear = new Date(0); 28442 firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate); 28443 firstWeekOfThisYear.setUTCHours(0, 0, 0, 0); 28444 var startOfThisYear = (0,_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(firstWeekOfThisYear, options); 28445 28446 if (date.getTime() >= startOfNextYear.getTime()) { 28447 return year + 1; 28448 } else if (date.getTime() >= startOfThisYear.getTime()) { 28449 return year; 28450 } else { 28451 return year - 1; 28452 } 28453} 28454 28455/***/ }), 28456
vendor: 2,067 bytes, lines 28457-28488
28457/***/ "./node_modules/date-fns/esm/_lib/getUTCWeek/index.js": 28458/*!************************************************************!*\ 28459 !*** ./node_modules/date-fns/esm/_lib/getUTCWeek/index.js ***! 28460 \************************************************************/ 28461/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28462 28463"use strict"; 28464__webpack_require__.r(__webpack_exports__); 28465/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28466/* harmony export */ "default": function() { return /* binding */ getUTCWeek; } 28467/* harmony export */ }); 28468/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28469/* harmony import */ var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); 28470/* harmony import */ var _startOfUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../startOfUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js"); 28471/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28472 28473 28474 28475 28476var MILLISECONDS_IN_WEEK = 604800000; 28477function getUTCWeek(dirtyDate, options) { 28478 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 28479 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 28480 var diff = (0,_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, options).getTime() - (0,_startOfUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, options).getTime(); // Round the number of days to the nearest integer 28481 // because the number of milliseconds in a week is not constant 28482 // (e.g. it's different in the week of the daylight saving time clock shift) 28483 28484 return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; 28485} 28486 28487/***/ }), 28488
vendor: 2,208 bytes, lines 28489-28523
28489/***/ "./node_modules/date-fns/esm/_lib/protectedTokens/index.js": 28490/*!*****************************************************************!*\ 28491 !*** ./node_modules/date-fns/esm/_lib/protectedTokens/index.js ***! 28492 \*****************************************************************/ 28493/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28494 28495"use strict"; 28496__webpack_require__.r(__webpack_exports__); 28497/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28498/* harmony export */ "isProtectedDayOfYearToken": function() { return /* binding */ isProtectedDayOfYearToken; }, 28499/* harmony export */ "isProtectedWeekYearToken": function() { return /* binding */ isProtectedWeekYearToken; }, 28500/* harmony export */ "throwProtectedError": function() { return /* binding */ throwProtectedError; } 28501/* harmony export */ }); 28502var protectedDayOfYearTokens = ['D', 'DD']; 28503var protectedWeekYearTokens = ['YY', 'YYYY']; 28504function isProtectedDayOfYearToken(token) { 28505 return protectedDayOfYearTokens.indexOf(token) !== -1; 28506} 28507function isProtectedWeekYearToken(token) { 28508 return protectedWeekYearTokens.indexOf(token) !== -1; 28509} 28510function throwProtectedError(token, format, input) { 28511 if (token === 'YYYY') { 28512 throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); 28513 } else if (token === 'YY') { 28514 throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); 28515 } else if (token === 'D') { 28516 throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); 28517 } else if (token === 'DD') { 28518 throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); 28519 } 28520} 28521 28522/***/ }), 28523
vendor: 805 bytes, lines 28524-28542
28524/***/ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js": 28525/*!**************************************************************!*\ 28526 !*** ./node_modules/date-fns/esm/_lib/requiredArgs/index.js ***! 28527 \**************************************************************/ 28528/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28529 28530"use strict"; 28531__webpack_require__.r(__webpack_exports__); 28532/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28533/* harmony export */ "default": function() { return /* binding */ requiredArgs; } 28534/* harmony export */ }); 28535function requiredArgs(required, args) { 28536 if (args.length < required) { 28537 throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present'); 28538 } 28539} 28540 28541/***/ }), 28542
vendor: 3,256 bytes, lines 28543-28584
28543/***/ "./node_modules/date-fns/esm/_lib/setUTCDay/index.js": 28544/*!***********************************************************!*\ 28545 !*** ./node_modules/date-fns/esm/_lib/setUTCDay/index.js ***! 28546 \***********************************************************/ 28547/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28548 28549"use strict"; 28550__webpack_require__.r(__webpack_exports__); 28551/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28552/* harmony export */ "default": function() { return /* binding */ setUTCDay; } 28553/* harmony export */ }); 28554/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28555/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28556/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 28557/* harmony import */ var _defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 28558 28559 28560 28561 28562function setUTCDay(dirtyDate, dirtyDay, options) { 28563 var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 28564 28565 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 28566 var defaultOptions = (0,_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__.getDefaultOptions)(); 28567 var weekStartsOn = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 28568 28569 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 28570 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 28571 } 28572 28573 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dirtyDate); 28574 var day = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDay); 28575 var currentDay = date.getUTCDay(); 28576 var remainder = day % 7; 28577 var dayIndex = (remainder + 7) % 7; 28578 var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; 28579 date.setUTCDate(date.getUTCDate() + diff); 28580 return date; 28581} 28582 28583/***/ }), 28584
vendor: 1,747 bytes, lines 28585-28621
28585/***/ "./node_modules/date-fns/esm/_lib/setUTCISODay/index.js": 28586/*!**************************************************************!*\ 28587 !*** ./node_modules/date-fns/esm/_lib/setUTCISODay/index.js ***! 28588 \**************************************************************/ 28589/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28590 28591"use strict"; 28592__webpack_require__.r(__webpack_exports__); 28593/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28594/* harmony export */ "default": function() { return /* binding */ setUTCISODay; } 28595/* harmony export */ }); 28596/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28597/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28598/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 28599 28600 28601 28602function setUTCISODay(dirtyDate, dirtyDay) { 28603 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 28604 var day = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDay); 28605 28606 if (day % 7 === 0) { 28607 day = day - 7; 28608 } 28609 28610 var weekStartsOn = 1; 28611 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate); 28612 var currentDay = date.getUTCDay(); 28613 var remainder = day % 7; 28614 var dayIndex = (remainder + 7) % 7; 28615 var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; 28616 date.setUTCDate(date.getUTCDate() + diff); 28617 return date; 28618} 28619 28620/***/ }), 28621
vendor: 1,820 bytes, lines 28622-28651
28622/***/ "./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js": 28623/*!***************************************************************!*\ 28624 !*** ./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js ***! 28625 \***************************************************************/ 28626/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28627 28628"use strict"; 28629__webpack_require__.r(__webpack_exports__); 28630/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28631/* harmony export */ "default": function() { return /* binding */ setUTCISOWeek; } 28632/* harmony export */ }); 28633/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 28634/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28635/* harmony import */ var _getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../getUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js"); 28636/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28637 28638 28639 28640 28641function setUTCISOWeek(dirtyDate, dirtyISOWeek) { 28642 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 28643 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 28644 var isoWeek = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyISOWeek); 28645 var diff = (0,_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date) - isoWeek; 28646 date.setUTCDate(date.getUTCDate() - diff * 7); 28647 return date; 28648} 28649 28650/***/ }), 28651
vendor: 1,796 bytes, lines 28652-28681
28652/***/ "./node_modules/date-fns/esm/_lib/setUTCWeek/index.js": 28653/*!************************************************************!*\ 28654 !*** ./node_modules/date-fns/esm/_lib/setUTCWeek/index.js ***! 28655 \************************************************************/ 28656/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28657 28658"use strict"; 28659__webpack_require__.r(__webpack_exports__); 28660/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28661/* harmony export */ "default": function() { return /* binding */ setUTCWeek; } 28662/* harmony export */ }); 28663/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 28664/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28665/* harmony import */ var _getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../getUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeek/index.js"); 28666/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28667 28668 28669 28670 28671function setUTCWeek(dirtyDate, dirtyWeek, options) { 28672 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 28673 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 28674 var week = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyWeek); 28675 var diff = (0,_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, options) - week; 28676 date.setUTCDate(date.getUTCDate() - diff * 7); 28677 return date; 28678} 28679 28680/***/ }), 28681
vendor: 1,717 bytes, lines 28682-28710
28682/***/ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js": 28683/*!***********************************************************************!*\ 28684 !*** ./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js ***! 28685 \***********************************************************************/ 28686/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28687 28688"use strict"; 28689__webpack_require__.r(__webpack_exports__); 28690/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28691/* harmony export */ "default": function() { return /* binding */ startOfUTCISOWeekYear; } 28692/* harmony export */ }); 28693/* harmony import */ var _getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../getUTCISOWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js"); 28694/* harmony import */ var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); 28695/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28696 28697 28698 28699function startOfUTCISOWeekYear(dirtyDate) { 28700 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 28701 var year = (0,_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 28702 var fourthOfJanuary = new Date(0); 28703 fourthOfJanuary.setUTCFullYear(year, 0, 4); 28704 fourthOfJanuary.setUTCHours(0, 0, 0, 0); 28705 var date = (0,_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(fourthOfJanuary); 28706 return date; 28707} 28708 28709/***/ }), 28710
vendor: 1,407 bytes, lines 28711-28738
28711/***/ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js": 28712/*!*******************************************************************!*\ 28713 !*** ./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js ***! 28714 \*******************************************************************/ 28715/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28716 28717"use strict"; 28718__webpack_require__.r(__webpack_exports__); 28719/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28720/* harmony export */ "default": function() { return /* binding */ startOfUTCISOWeek; } 28721/* harmony export */ }); 28722/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28723/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28724 28725 28726function startOfUTCISOWeek(dirtyDate) { 28727 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 28728 var weekStartsOn = 1; 28729 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 28730 var day = date.getUTCDay(); 28731 var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; 28732 date.setUTCDate(date.getUTCDate() - diff); 28733 date.setUTCHours(0, 0, 0, 0); 28734 return date; 28735} 28736 28737/***/ }), 28738
vendor: 3,320 bytes, lines 28739-28775
28739/***/ "./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js": 28740/*!********************************************************************!*\ 28741 !*** ./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js ***! 28742 \********************************************************************/ 28743/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28744 28745"use strict"; 28746__webpack_require__.r(__webpack_exports__); 28747/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28748/* harmony export */ "default": function() { return /* binding */ startOfUTCWeekYear; } 28749/* harmony export */ }); 28750/* harmony import */ var _getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../getUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js"); 28751/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28752/* harmony import */ var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); 28753/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 28754/* harmony import */ var _defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 28755 28756 28757 28758 28759 28760function startOfUTCWeekYear(dirtyDate, options) { 28761 var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 28762 28763 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 28764 var defaultOptions = (0,_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__.getDefaultOptions)(); 28765 var firstWeekContainsDate = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); 28766 var year = (0,_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dirtyDate, options); 28767 var firstWeek = new Date(0); 28768 firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate); 28769 firstWeek.setUTCHours(0, 0, 0, 0); 28770 var date = (0,_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(firstWeek, options); 28771 return date; 28772} 28773 28774/***/ }), 28775
vendor: 3,146 bytes, lines 28776-28815
28776/***/ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js": 28777/*!****************************************************************!*\ 28778 !*** ./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js ***! 28779 \****************************************************************/ 28780/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28781 28782"use strict"; 28783__webpack_require__.r(__webpack_exports__); 28784/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28785/* harmony export */ "default": function() { return /* binding */ startOfUTCWeek; } 28786/* harmony export */ }); 28787/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28788/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28789/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 28790/* harmony import */ var _defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 28791 28792 28793 28794 28795function startOfUTCWeek(dirtyDate, options) { 28796 var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 28797 28798 (0,_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 28799 var defaultOptions = (0,_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__.getDefaultOptions)(); 28800 var weekStartsOn = (0,_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 28801 28802 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 28803 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 28804 } 28805 28806 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dirtyDate); 28807 var day = date.getUTCDay(); 28808 var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; 28809 date.setUTCDate(date.getUTCDate() - diff); 28810 date.setUTCHours(0, 0, 0, 0); 28811 return date; 28812} 28813 28814/***/ }), 28815
vendor: 865 bytes, lines 28816-28842
28816/***/ "./node_modules/date-fns/esm/_lib/toInteger/index.js": 28817/*!***********************************************************!*\ 28818 !*** ./node_modules/date-fns/esm/_lib/toInteger/index.js ***! 28819 \***********************************************************/ 28820/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28821 28822"use strict"; 28823__webpack_require__.r(__webpack_exports__); 28824/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28825/* harmony export */ "default": function() { return /* binding */ toInteger; } 28826/* harmony export */ }); 28827function toInteger(dirtyNumber) { 28828 if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) { 28829 return NaN; 28830 } 28831 28832 var number = Number(dirtyNumber); 28833 28834 if (isNaN(number)) { 28835 return number; 28836 } 28837 28838 return number < 0 ? Math.ceil(number) : Math.floor(number); 28839} 28840 28841/***/ }), 28842
vendor: 2,314 bytes, lines 28843-28898
28843/***/ "./node_modules/date-fns/esm/addDays/index.js": 28844/*!****************************************************!*\ 28845 !*** ./node_modules/date-fns/esm/addDays/index.js ***! 28846 \****************************************************/ 28847/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28848 28849"use strict"; 28850__webpack_require__.r(__webpack_exports__); 28851/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28852/* harmony export */ "default": function() { return /* binding */ addDays; } 28853/* harmony export */ }); 28854/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 28855/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28856/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28857 28858 28859 28860/** 28861 * @name addDays 28862 * @category Day Helpers 28863 * @summary Add the specified number of days to the given date. 28864 * 28865 * @description 28866 * Add the specified number of days to the given date. 28867 * 28868 * @param {Date|Number} date - the date to be changed 28869 * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 28870 * @returns {Date} - the new date with the days added 28871 * @throws {TypeError} - 2 arguments required 28872 * 28873 * @example 28874 * // Add 10 days to 1 September 2014: 28875 * const result = addDays(new Date(2014, 8, 1), 10) 28876 * //=> Thu Sep 11 2014 00:00:00 28877 */ 28878 28879function addDays(dirtyDate, dirtyAmount) { 28880 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 28881 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 28882 var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyAmount); 28883 28884 if (isNaN(amount)) { 28885 return new Date(NaN); 28886 } 28887 28888 if (!amount) { 28889 // If 0 days, no-op to avoid changing times in the hour before end of DST 28890 return date; 28891 } 28892 28893 date.setDate(date.getDate() + amount); 28894 return date; 28895} 28896 28897/***/ }), 28898
vendor: 2,279 bytes, lines 28899-28943
28899/***/ "./node_modules/date-fns/esm/addMilliseconds/index.js": 28900/*!************************************************************!*\ 28901 !*** ./node_modules/date-fns/esm/addMilliseconds/index.js ***! 28902 \************************************************************/ 28903/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28904 28905"use strict"; 28906__webpack_require__.r(__webpack_exports__); 28907/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28908/* harmony export */ "default": function() { return /* binding */ addMilliseconds; } 28909/* harmony export */ }); 28910/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 28911/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28912/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28913 28914 28915 28916/** 28917 * @name addMilliseconds 28918 * @category Millisecond Helpers 28919 * @summary Add the specified number of milliseconds to the given date. 28920 * 28921 * @description 28922 * Add the specified number of milliseconds to the given date. 28923 * 28924 * @param {Date|Number} date - the date to be changed 28925 * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 28926 * @returns {Date} the new date with the milliseconds added 28927 * @throws {TypeError} 2 arguments required 28928 * 28929 * @example 28930 * // Add 750 milliseconds to 10 July 2014 12:45:30.000: 28931 * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) 28932 * //=> Thu Jul 10 2014 12:45:30.750 28933 */ 28934 28935function addMilliseconds(dirtyDate, dirtyAmount) { 28936 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 28937 var timestamp = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate).getTime(); 28938 var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyAmount); 28939 return new Date(timestamp + amount); 28940} 28941 28942/***/ }), 28943
vendor: 3,874 bytes, lines 28944-29025
28944/***/ "./node_modules/date-fns/esm/addMonths/index.js": 28945/*!******************************************************!*\ 28946 !*** ./node_modules/date-fns/esm/addMonths/index.js ***! 28947 \******************************************************/ 28948/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 28949 28950"use strict"; 28951__webpack_require__.r(__webpack_exports__); 28952/* harmony export */ __webpack_require__.d(__webpack_exports__, { 28953/* harmony export */ "default": function() { return /* binding */ addMonths; } 28954/* harmony export */ }); 28955/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 28956/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 28957/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 28958 28959 28960 28961/** 28962 * @name addMonths 28963 * @category Month Helpers 28964 * @summary Add the specified number of months to the given date. 28965 * 28966 * @description 28967 * Add the specified number of months to the given date. 28968 * 28969 * @param {Date|Number} date - the date to be changed 28970 * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 28971 * @returns {Date} the new date with the months added 28972 * @throws {TypeError} 2 arguments required 28973 * 28974 * @example 28975 * // Add 5 months to 1 September 2014: 28976 * const result = addMonths(new Date(2014, 8, 1), 5) 28977 * //=> Sun Feb 01 2015 00:00:00 28978 */ 28979 28980function addMonths(dirtyDate, dirtyAmount) { 28981 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 28982 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 28983 var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyAmount); 28984 28985 if (isNaN(amount)) { 28986 return new Date(NaN); 28987 } 28988 28989 if (!amount) { 28990 // If 0 months, no-op to avoid changing times in the hour before end of DST 28991 return date; 28992 } 28993 28994 var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for 28995 // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and 28996 // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we 28997 // want except that dates will wrap around the end of a month, meaning that 28998 // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So 28999 // we'll default to the end of the desired month by adding 1 to the desired 29000 // month and using a date of 0 to back up one day to the end of the desired 29001 // month. 29002 29003 var endOfDesiredMonth = new Date(date.getTime()); 29004 endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0); 29005 var daysInMonth = endOfDesiredMonth.getDate(); 29006 29007 if (dayOfMonth >= daysInMonth) { 29008 // If we're already at the end of the month, then this is the correct date 29009 // and we're done. 29010 return endOfDesiredMonth; 29011 } else { 29012 // Otherwise, we now know that setting the original day-of-month value won't 29013 // cause an overflow, so set the desired day-of-month. Note that we can't 29014 // just set the date of `endOfDesiredMonth` because that object may have had 29015 // its time changed in the unusual case where where a DST transition was on 29016 // the last day of the month and its local time was in the hour skipped or 29017 // repeated next to a DST transition. So we use `date` instead which is 29018 // guaranteed to still have the original time. 29019 date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth); 29020 return date; 29021 } 29022} 29023 29024/***/ }), 29025
vendor: 2,115 bytes, lines 29026-29069
29026/***/ "./node_modules/date-fns/esm/addYears/index.js": 29027/*!*****************************************************!*\ 29028 !*** ./node_modules/date-fns/esm/addYears/index.js ***! 29029 \*****************************************************/ 29030/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 29031 29032"use strict"; 29033__webpack_require__.r(__webpack_exports__); 29034/* harmony export */ __webpack_require__.d(__webpack_exports__, { 29035/* harmony export */ "default": function() { return /* binding */ addYears; } 29036/* harmony export */ }); 29037/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 29038/* harmony import */ var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../addMonths/index.js */ "./node_modules/date-fns/esm/addMonths/index.js"); 29039/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 29040 29041 29042 29043/** 29044 * @name addYears 29045 * @category Year Helpers 29046 * @summary Add the specified number of years to the given date. 29047 * 29048 * @description 29049 * Add the specified number of years to the given date. 29050 * 29051 * @param {Date|Number} date - the date to be changed 29052 * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 29053 * @returns {Date} the new date with the years added 29054 * @throws {TypeError} 2 arguments required 29055 * 29056 * @example 29057 * // Add 5 years to 1 September 2014: 29058 * const result = addYears(new Date(2014, 8, 1), 5) 29059 * //=> Sun Sep 01 2019 00:00:00 29060 */ 29061 29062function addYears(dirtyDate, dirtyAmount) { 29063 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 29064 var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyAmount); 29065 return (0,_addMonths_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate, amount * 12); 29066} 29067 29068/***/ }), 29069
vendor: 4,672 bytes, lines 29070-29155
29070/***/ "./node_modules/date-fns/esm/add/index.js": 29071/*!************************************************!*\ 29072 !*** ./node_modules/date-fns/esm/add/index.js ***! 29073 \************************************************/ 29074/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 29075 29076"use strict"; 29077__webpack_require__.r(__webpack_exports__); 29078/* harmony export */ __webpack_require__.d(__webpack_exports__, { 29079/* harmony export */ "default": function() { return /* binding */ add; } 29080/* harmony export */ }); 29081/* harmony import */ var _addDays_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../addDays/index.js */ "./node_modules/date-fns/esm/addDays/index.js"); 29082/* harmony import */ var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../addMonths/index.js */ "./node_modules/date-fns/esm/addMonths/index.js"); 29083/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 29084/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 29085/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 29086 29087 29088 29089 29090 29091 29092/** 29093 * @name add 29094 * @category Common Helpers 29095 * @summary Add the specified years, months, weeks, days, hours, minutes and seconds to the given date. 29096 * 29097 * @description 29098 * Add the specified years, months, weeks, days, hours, minutes and seconds to the given date. 29099 * 29100 * @param {Date|Number} date - the date to be changed 29101 * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 29102 * 29103 * | Key | Description | 29104 * |----------------|------------------------------------| 29105 * | years | Amount of years to be added | 29106 * | months | Amount of months to be added | 29107 * | weeks | Amount of weeks to be added | 29108 * | days | Amount of days to be added | 29109 * | hours | Amount of hours to be added | 29110 * | minutes | Amount of minutes to be added | 29111 * | seconds | Amount of seconds to be added | 29112 * 29113 * All values default to 0 29114 * 29115 * @returns {Date} the new date with the seconds added 29116 * @throws {TypeError} 2 arguments required 29117 * 29118 * @example 29119 * // Add the following duration to 1 September 2014, 10:19:50 29120 * const result = add(new Date(2014, 8, 1, 10, 19, 50), { 29121 * years: 2, 29122 * months: 9, 29123 * weeks: 1, 29124 * days: 7, 29125 * hours: 5, 29126 * minutes: 9, 29127 * seconds: 30, 29128 * }) 29129 * //=> Thu Jun 15 2017 15:29:20 29130 */ 29131function add(dirtyDate, duration) { 29132 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 29133 if (!duration || typeof duration !== 'object') return new Date(NaN); 29134 var years = duration.years ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.years) : 0; 29135 var months = duration.months ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.months) : 0; 29136 var weeks = duration.weeks ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.weeks) : 0; 29137 var days = duration.days ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.days) : 0; 29138 var hours = duration.hours ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.hours) : 0; 29139 var minutes = duration.minutes ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.minutes) : 0; 29140 var seconds = duration.seconds ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.seconds) : 0; // Add years and months 29141 29142 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate); 29143 var dateWithMonths = months || years ? (0,_addMonths_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, months + years * 12) : date; // Add weeks and days 29144 29145 var dateWithDays = days || weeks ? (0,_addDays_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dateWithMonths, days + weeks * 7) : dateWithMonths; // Add days, hours, minutes and seconds 29146 29147 var minutesToAdd = minutes + hours * 60; 29148 var secondsToAdd = seconds + minutesToAdd * 60; 29149 var msToAdd = secondsToAdd * 1000; 29150 var finalDate = new Date(dateWithDays.getTime() + msToAdd); 29151 return finalDate; 29152} 29153 29154/***/ }), 29155
vendor: 4,784 bytes, lines 29156-29369
29156/***/ "./node_modules/date-fns/esm/constants/index.js": 29157/*!******************************************************!*\ 29158 !*** ./node_modules/date-fns/esm/constants/index.js ***! 29159 \******************************************************/ 29160/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 29161 29162"use strict"; 29163__webpack_require__.r(__webpack_exports__); 29164/* harmony export */ __webpack_require__.d(__webpack_exports__, { 29165/* harmony export */ "daysInWeek": function() { return /* binding */ daysInWeek; }, 29166/* harmony export */ "daysInYear": function() { return /* binding */ daysInYear; }, 29167/* harmony export */ "maxTime": function() { return /* binding */ maxTime; }, 29168/* harmony export */ "millisecondsInHour": function() { return /* binding */ millisecondsInHour; }, 29169/* harmony export */ "millisecondsInMinute": function() { return /* binding */ millisecondsInMinute; }, 29170/* harmony export */ "millisecondsInSecond": function() { return /* binding */ millisecondsInSecond; }, 29171/* harmony export */ "minTime": function() { return /* binding */ minTime; }, 29172/* harmony export */ "minutesInHour": function() { return /* binding */ minutesInHour; }, 29173/* harmony export */ "monthsInQuarter": function() { return /* binding */ monthsInQuarter; }, 29174/* harmony export */ "monthsInYear": function() { return /* binding */ monthsInYear; }, 29175/* harmony export */ "quartersInYear": function() { return /* binding */ quartersInYear; }, 29176/* harmony export */ "secondsInDay": function() { return /* binding */ secondsInDay; }, 29177/* harmony export */ "secondsInHour": function() { return /* binding */ secondsInHour; }, 29178/* harmony export */ "secondsInMinute": function() { return /* binding */ secondsInMinute; }, 29179/* harmony export */ "secondsInMonth": function() { return /* binding */ secondsInMonth; }, 29180/* harmony export */ "secondsInQuarter": function() { return /* binding */ secondsInQuarter; }, 29181/* harmony export */ "secondsInWeek": function() { return /* binding */ secondsInWeek; }, 29182/* harmony export */ "secondsInYear": function() { return /* binding */ secondsInYear; } 29183/* harmony export */ }); 29184/** 29185 * Days in 1 week. 29186 * 29187 * @name daysInWeek 29188 * @constant 29189 * @type {number} 29190 * @default 29191 */ 29192var daysInWeek = 7; 29193/** 29194 * Days in 1 year 29195 * One years equals 365.2425 days according to the formula: 29196 * 29197 * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400. 29198 * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days 29199 * 29200 * @name daysInYear 29201 * @constant 29202 * @type {number} 29203 * @default 29204 */ 29205 29206var daysInYear = 365.2425; 29207/** 29208 * Maximum allowed time. 29209 * 29210 * @name maxTime 29211 * @constant 29212 * @type {number} 29213 * @default 29214 */ 29215 29216var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000; 29217/** 29218 * Milliseconds in 1 minute 29219 * 29220 * @name millisecondsInMinute 29221 * @constant 29222 * @type {number} 29223 * @default 29224 */ 29225 29226var millisecondsInMinute = 60000; 29227/** 29228 * Milliseconds in 1 hour 29229 * 29230 * @name millisecondsInHour 29231 * @constant 29232 * @type {number} 29233 * @default 29234 */ 29235 29236var millisecondsInHour = 3600000; 29237/** 29238 * Milliseconds in 1 second 29239 * 29240 * @name millisecondsInSecond 29241 * @constant 29242 * @type {number} 29243 * @default 29244 */ 29245 29246var millisecondsInSecond = 1000; 29247/** 29248 * Minimum allowed time. 29249 * 29250 * @name minTime 29251 * @constant 29252 * @type {number} 29253 * @default 29254 */ 29255 29256var minTime = -maxTime; 29257/** 29258 * Minutes in 1 hour 29259 * 29260 * @name minutesInHour 29261 * @constant 29262 * @type {number} 29263 * @default 29264 */ 29265 29266var minutesInHour = 60; 29267/** 29268 * Months in 1 quarter 29269 * 29270 * @name monthsInQuarter 29271 * @constant 29272 * @type {number} 29273 * @default 29274 */ 29275 29276var monthsInQuarter = 3; 29277/** 29278 * Months in 1 year 29279 * 29280 * @name monthsInYear 29281 * @constant 29282 * @type {number} 29283 * @default 29284 */ 29285 29286var monthsInYear = 12; 29287/** 29288 * Quarters in 1 year 29289 * 29290 * @name quartersInYear 29291 * @constant 29292 * @type {number} 29293 * @default 29294 */ 29295 29296var quartersInYear = 4; 29297/** 29298 * Seconds in 1 hour 29299 * 29300 * @name secondsInHour 29301 * @constant 29302 * @type {number} 29303 * @default 29304 */ 29305 29306var secondsInHour = 3600; 29307/** 29308 * Seconds in 1 minute 29309 * 29310 * @name secondsInMinute 29311 * @constant 29312 * @type {number} 29313 * @default 29314 */ 29315 29316var secondsInMinute = 60; 29317/** 29318 * Seconds in 1 day 29319 * 29320 * @name secondsInDay 29321 * @constant 29322 * @type {number} 29323 * @default 29324 */ 29325 29326var secondsInDay = secondsInHour * 24; 29327/** 29328 * Seconds in 1 week 29329 * 29330 * @name secondsInWeek 29331 * @constant 29332 * @type {number} 29333 * @default 29334 */ 29335 29336var secondsInWeek = secondsInDay * 7; 29337/** 29338 * Seconds in 1 year 29339 * 29340 * @name secondsInYear 29341 * @constant 29342 * @type {number} 29343 * @default 29344 */ 29345 29346var secondsInYear = secondsInDay * daysInYear; 29347/** 29348 * Seconds in 1 month 29349 * 29350 * @name secondsInMonth 29351 * @constant 29352 * @type {number} 29353 * @default 29354 */ 29355 29356var secondsInMonth = secondsInYear / 12; 29357/** 29358 * Seconds in 1 quarter 29359 * 29360 * @name secondsInQuarter 29361 * @constant 29362 * @type {number} 29363 * @default 29364 */ 29365 29366var secondsInQuarter = secondsInMonth * 3; 29367 29368/***/ }), 29369
vendor: 3,239 bytes, lines 29370-29432
29370/***/ "./node_modules/date-fns/esm/differenceInCalendarDays/index.js": 29371/*!*********************************************************************!*\ 29372 !*** ./node_modules/date-fns/esm/differenceInCalendarDays/index.js ***! 29373 \*********************************************************************/ 29374/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 29375 29376"use strict"; 29377__webpack_require__.r(__webpack_exports__); 29378/* harmony export */ __webpack_require__.d(__webpack_exports__, { 29379/* harmony export */ "default": function() { return /* binding */ differenceInCalendarDays; } 29380/* harmony export */ }); 29381/* harmony import */ var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js"); 29382/* harmony import */ var _startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../startOfDay/index.js */ "./node_modules/date-fns/esm/startOfDay/index.js"); 29383/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 29384 29385 29386 29387var MILLISECONDS_IN_DAY = 86400000; 29388/** 29389 * @name differenceInCalendarDays 29390 * @category Day Helpers 29391 * @summary Get the number of calendar days between the given dates. 29392 * 29393 * @description 29394 * Get the number of calendar days between the given dates. This means that the times are removed 29395 * from the dates and then the difference in days is calculated. 29396 * 29397 * @param {Date|Number} dateLeft - the later date 29398 * @param {Date|Number} dateRight - the earlier date 29399 * @returns {Number} the number of calendar days 29400 * @throws {TypeError} 2 arguments required 29401 * 29402 * @example 29403 * // How many calendar days are between 29404 * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? 29405 * const result = differenceInCalendarDays( 29406 * new Date(2012, 6, 2, 0, 0), 29407 * new Date(2011, 6, 2, 23, 0) 29408 * ) 29409 * //=> 366 29410 * // How many calendar days are between 29411 * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? 29412 * const result = differenceInCalendarDays( 29413 * new Date(2011, 6, 3, 0, 1), 29414 * new Date(2011, 6, 2, 23, 59) 29415 * ) 29416 * //=> 1 29417 */ 29418 29419function differenceInCalendarDays(dirtyDateLeft, dirtyDateRight) { 29420 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 29421 var startOfDayLeft = (0,_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateLeft); 29422 var startOfDayRight = (0,_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateRight); 29423 var timestampLeft = startOfDayLeft.getTime() - (0,_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(startOfDayLeft); 29424 var timestampRight = startOfDayRight.getTime() - (0,_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(startOfDayRight); // Round the number of days to the nearest integer 29425 // because the number of milliseconds in a day is not constant 29426 // (e.g. it's different in the day of the daylight saving time clock shift) 29427 29428 return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY); 29429} 29430 29431/***/ }), 29432
vendor: 3,401 bytes, lines 29433-29509
29433/***/ "./node_modules/date-fns/esm/eachDayOfInterval/index.js": 29434/*!**************************************************************!*\ 29435 !*** ./node_modules/date-fns/esm/eachDayOfInterval/index.js ***! 29436 \**************************************************************/ 29437/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 29438 29439"use strict"; 29440__webpack_require__.r(__webpack_exports__); 29441/* harmony export */ __webpack_require__.d(__webpack_exports__, { 29442/* harmony export */ "default": function() { return /* binding */ eachDayOfInterval; } 29443/* harmony export */ }); 29444/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 29445/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 29446 29447 29448/** 29449 * @name eachDayOfInterval 29450 * @category Interval Helpers 29451 * @summary Return the array of dates within the specified time interval. 29452 * 29453 * @description 29454 * Return the array of dates within the specified time interval. 29455 * 29456 * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} 29457 * @param {Object} [options] - an object with options. 29458 * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1. 29459 * @returns {Date[]} the array with starts of days from the day of the interval start to the day of the interval end 29460 * @throws {TypeError} 1 argument required 29461 * @throws {RangeError} `options.step` must be a number greater than 1 29462 * @throws {RangeError} The start of an interval cannot be after its end 29463 * @throws {RangeError} Date in interval cannot be `Invalid Date` 29464 * 29465 * @example 29466 * // Each day between 6 October 2014 and 10 October 2014: 29467 * const result = eachDayOfInterval({ 29468 * start: new Date(2014, 9, 6), 29469 * end: new Date(2014, 9, 10) 29470 * }) 29471 * //=> [ 29472 * // Mon Oct 06 2014 00:00:00, 29473 * // Tue Oct 07 2014 00:00:00, 29474 * // Wed Oct 08 2014 00:00:00, 29475 * // Thu Oct 09 2014 00:00:00, 29476 * // Fri Oct 10 2014 00:00:00 29477 * // ] 29478 */ 29479 29480function eachDayOfInterval(dirtyInterval, options) { 29481 var _options$step; 29482 29483 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 29484 var interval = dirtyInterval || {}; 29485 var startDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(interval.start); 29486 var endDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(interval.end); 29487 var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` 29488 29489 if (!(startDate.getTime() <= endTime)) { 29490 throw new RangeError('Invalid interval'); 29491 } 29492 29493 var dates = []; 29494 var currentDate = startDate; 29495 currentDate.setHours(0, 0, 0, 0); 29496 var step = Number((_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1); 29497 if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1'); 29498 29499 while (currentDate.getTime() <= endTime) { 29500 dates.push((0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(currentDate)); 29501 currentDate.setDate(currentDate.getDate() + step); 29502 currentDate.setHours(0, 0, 0, 0); 29503 } 29504 29505 return dates; 29506} 29507 29508/***/ }), 29509
vendor: 4,231 bytes, lines 29510-29577
29510/***/ "./node_modules/date-fns/esm/endOfWeek/index.js": 29511/*!******************************************************!*\ 29512 !*** ./node_modules/date-fns/esm/endOfWeek/index.js ***! 29513 \******************************************************/ 29514/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 29515 29516"use strict"; 29517__webpack_require__.r(__webpack_exports__); 29518/* harmony export */ __webpack_require__.d(__webpack_exports__, { 29519/* harmony export */ "default": function() { return /* binding */ endOfWeek; } 29520/* harmony export */ }); 29521/* harmony import */ var _lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 29522/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 29523/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 29524/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 29525 29526 29527 29528 29529 29530/** 29531 * @name endOfWeek 29532 * @category Week Helpers 29533 * @summary Return the end of a week for the given date. 29534 * 29535 * @description 29536 * Return the end of a week for the given date. 29537 * The result will be in the local timezone. 29538 * 29539 * @param {Date|Number} date - the original date 29540 * @param {Object} [options] - an object with options. 29541 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 29542 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 29543 * @returns {Date} the end of a week 29544 * @throws {TypeError} 1 argument required 29545 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 29546 * 29547 * @example 29548 * // The end of a week for 2 September 2014 11:55:00: 29549 * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) 29550 * //=> Sat Sep 06 2014 23:59:59.999 29551 * 29552 * @example 29553 * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: 29554 * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) 29555 * //=> Sun Sep 07 2014 23:59:59.999 29556 */ 29557function endOfWeek(dirtyDate, options) { 29558 var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 29559 29560 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 29561 var defaultOptions = (0,_lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__.getDefaultOptions)(); 29562 var weekStartsOn = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 29563 29564 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 29565 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 29566 } 29567 29568 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dirtyDate); 29569 var day = date.getDay(); 29570 var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); 29571 date.setDate(date.getDate() + diff); 29572 date.setHours(23, 59, 59, 999); 29573 return date; 29574} 29575 29576/***/ }), 29577
vendor: 31,650 bytes, lines 29578-30020
29578/***/ "./node_modules/date-fns/esm/format/index.js": 29579/*!***************************************************!*\ 29580 !*** ./node_modules/date-fns/esm/format/index.js ***! 29581 \***************************************************/ 29582/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 29583 29584"use strict"; 29585__webpack_require__.r(__webpack_exports__); 29586/* harmony export */ __webpack_require__.d(__webpack_exports__, { 29587/* harmony export */ "default": function() { return /* binding */ format; } 29588/* harmony export */ }); 29589/* harmony import */ var _isValid_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../isValid/index.js */ "./node_modules/date-fns/esm/isValid/index.js"); 29590/* harmony import */ var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../subMilliseconds/index.js */ "./node_modules/date-fns/esm/subMilliseconds/index.js"); 29591/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 29592/* harmony import */ var _lib_format_formatters_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_lib/format/formatters/index.js */ "./node_modules/date-fns/esm/_lib/format/formatters/index.js"); 29593/* harmony import */ var _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_lib/format/longFormatters/index.js */ "./node_modules/date-fns/esm/_lib/format/longFormatters/index.js"); 29594/* harmony import */ var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js"); 29595/* harmony import */ var _lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_lib/protectedTokens/index.js */ "./node_modules/date-fns/esm/_lib/protectedTokens/index.js"); 29596/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 29597/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 29598/* harmony import */ var _lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 29599/* harmony import */ var _lib_defaultLocale_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/defaultLocale/index.js */ "./node_modules/date-fns/esm/_lib/defaultLocale/index.js"); 29600 29601 29602 29603 29604 29605 29606 29607 29608 29609 29610 // This RegExp consists of three parts separated by `|`: 29611// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token 29612// (one of the certain letters followed by `o`) 29613// - (\w)\1* matches any sequences of the same letter 29614// - '' matches two quote characters in a row 29615// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), 29616// except a single quote symbol, which ends the sequence. 29617// Two quote characters do not end the sequence. 29618// If there is no matching single quote 29619// then the sequence will continue until the end of the string. 29620// - . matches any single character unmatched by previous parts of the RegExps 29621 29622var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also 29623// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` 29624 29625var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; 29626var escapedStringRegExp = /^'([^]*?)'?$/; 29627var doubleQuoteRegExp = /''/g; 29628var unescapedLatinCharacterRegExp = /[a-zA-Z]/; 29629/** 29630 * @name format 29631 * @category Common Helpers 29632 * @summary Format the date. 29633 * 29634 * @description 29635 * Return the formatted date string in the given format. The result may vary by locale. 29636 * 29637 * > â ï¸ Please note that the `format` tokens differ from Moment.js and other libraries. 29638 * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 29639 * 29640 * The characters wrapped between two single quotes characters (') are escaped. 29641 * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. 29642 * (see the last example) 29643 * 29644 * Format of the string is based on Unicode Technical Standard #35: 29645 * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table 29646 * with a few additions (see note 7 below the table). 29647 * 29648 * Accepted patterns: 29649 * | Unit | Pattern | Result examples | Notes | 29650 * |---------------------------------|---------|-----------------------------------|-------| 29651 * | Era | G..GGG | AD, BC | | 29652 * | | GGGG | Anno Domini, Before Christ | 2 | 29653 * | | GGGGG | A, B | | 29654 * | Calendar year | y | 44, 1, 1900, 2017 | 5 | 29655 * | | yo | 44th, 1st, 0th, 17th | 5,7 | 29656 * | | yy | 44, 01, 00, 17 | 5 | 29657 * | | yyy | 044, 001, 1900, 2017 | 5 | 29658 * | | yyyy | 0044, 0001, 1900, 2017 | 5 | 29659 * | | yyyyy | ... | 3,5 | 29660 * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | 29661 * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | 29662 * | | YY | 44, 01, 00, 17 | 5,8 | 29663 * | | YYY | 044, 001, 1900, 2017 | 5 | 29664 * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | 29665 * | | YYYYY | ... | 3,5 | 29666 * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | 29667 * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | 29668 * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | 29669 * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | 29670 * | | RRRRR | ... | 3,5,7 | 29671 * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | 29672 * | | uu | -43, 01, 1900, 2017 | 5 | 29673 * | | uuu | -043, 001, 1900, 2017 | 5 | 29674 * | | uuuu | -0043, 0001, 1900, 2017 | 5 | 29675 * | | uuuuu | ... | 3,5 | 29676 * | Quarter (formatting) | Q | 1, 2, 3, 4 | | 29677 * | | Qo | 1st, 2nd, 3rd, 4th | 7 | 29678 * | | QQ | 01, 02, 03, 04 | | 29679 * | | QQQ | Q1, Q2, Q3, Q4 | | 29680 * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | 29681 * | | QQQQQ | 1, 2, 3, 4 | 4 | 29682 * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | 29683 * | | qo | 1st, 2nd, 3rd, 4th | 7 | 29684 * | | qq | 01, 02, 03, 04 | | 29685 * | | qqq | Q1, Q2, Q3, Q4 | | 29686 * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | 29687 * | | qqqqq | 1, 2, 3, 4 | 4 | 29688 * | Month (formatting) | M | 1, 2, ..., 12 | | 29689 * | | Mo | 1st, 2nd, ..., 12th | 7 | 29690 * | | MM | 01, 02, ..., 12 | | 29691 * | | MMM | Jan, Feb, ..., Dec | | 29692 * | | MMMM | January, February, ..., December | 2 | 29693 * | | MMMMM | J, F, ..., D | | 29694 * | Month (stand-alone) | L | 1, 2, ..., 12 | | 29695 * | | Lo | 1st, 2nd, ..., 12th | 7 | 29696 * | | LL | 01, 02, ..., 12 | | 29697 * | | LLL | Jan, Feb, ..., Dec | | 29698 * | | LLLL | January, February, ..., December | 2 | 29699 * | | LLLLL | J, F, ..., D | | 29700 * | Local week of year | w | 1, 2, ..., 53 | | 29701 * | | wo | 1st, 2nd, ..., 53th | 7 | 29702 * | | ww | 01, 02, ..., 53 | | 29703 * | ISO week of year | I | 1, 2, ..., 53 | 7 | 29704 * | | Io | 1st, 2nd, ..., 53th | 7 | 29705 * | | II | 01, 02, ..., 53 | 7 | 29706 * | Day of month | d | 1, 2, ..., 31 | | 29707 * | | do | 1st, 2nd, ..., 31st | 7 | 29708 * | | dd | 01, 02, ..., 31 | | 29709 * | Day of year | D | 1, 2, ..., 365, 366 | 9 | 29710 * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | 29711 * | | DD | 01, 02, ..., 365, 366 | 9 | 29712 * | | DDD | 001, 002, ..., 365, 366 | | 29713 * | | DDDD | ... | 3 | 29714 * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | 29715 * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | 29716 * | | EEEEE | M, T, W, T, F, S, S | | 29717 * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | 29718 * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | 29719 * | | io | 1st, 2nd, ..., 7th | 7 | 29720 * | | ii | 01, 02, ..., 07 | 7 | 29721 * | | iii | Mon, Tue, Wed, ..., Sun | 7 | 29722 * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | 29723 * | | iiiii | M, T, W, T, F, S, S | 7 | 29724 * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | 29725 * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | 29726 * | | eo | 2nd, 3rd, ..., 1st | 7 | 29727 * | | ee | 02, 03, ..., 01 | | 29728 * | | eee | Mon, Tue, Wed, ..., Sun | | 29729 * | | eeee | Monday, Tuesday, ..., Sunday | 2 | 29730 * | | eeeee | M, T, W, T, F, S, S | | 29731 * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | 29732 * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | 29733 * | | co | 2nd, 3rd, ..., 1st | 7 | 29734 * | | cc | 02, 03, ..., 01 | | 29735 * | | ccc | Mon, Tue, Wed, ..., Sun | | 29736 * | | cccc | Monday, Tuesday, ..., Sunday | 2 | 29737 * | | ccccc | M, T, W, T, F, S, S | | 29738 * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | 29739 * | AM, PM | a..aa | AM, PM | | 29740 * | | aaa | am, pm | | 29741 * | | aaaa | a.m., p.m. | 2 | 29742 * | | aaaaa | a, p | | 29743 * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | 29744 * | | bbb | am, pm, noon, midnight | | 29745 * | | bbbb | a.m., p.m., noon, midnight | 2 | 29746 * | | bbbbb | a, p, n, mi | | 29747 * | Flexible day period | B..BBB | at night, in the morning, ... | | 29748 * | | BBBB | at night, in the morning, ... | 2 | 29749 * | | BBBBB | at night, in the morning, ... | | 29750 * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | 29751 * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | 29752 * | | hh | 01, 02, ..., 11, 12 | | 29753 * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | 29754 * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | 29755 * | | HH | 00, 01, 02, ..., 23 | | 29756 * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | 29757 * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | 29758 * | | KK | 01, 02, ..., 11, 00 | | 29759 * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | 29760 * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | 29761 * | | kk | 24, 01, 02, ..., 23 | | 29762 * | Minute | m | 0, 1, ..., 59 | | 29763 * | | mo | 0th, 1st, ..., 59th | 7 | 29764 * | | mm | 00, 01, ..., 59 | | 29765 * | Second | s | 0, 1, ..., 59 | | 29766 * | | so | 0th, 1st, ..., 59th | 7 | 29767 * | | ss | 00, 01, ..., 59 | | 29768 * | Fraction of second | S | 0, 1, ..., 9 | | 29769 * | | SS | 00, 01, ..., 99 | | 29770 * | | SSS | 000, 001, ..., 999 | | 29771 * | | SSSS | ... | 3 | 29772 * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | 29773 * | | XX | -0800, +0530, Z | | 29774 * | | XXX | -08:00, +05:30, Z | | 29775 * | | XXXX | -0800, +0530, Z, +123456 | 2 | 29776 * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | 29777 * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | 29778 * | | xx | -0800, +0530, +0000 | | 29779 * | | xxx | -08:00, +05:30, +00:00 | 2 | 29780 * | | xxxx | -0800, +0530, +0000, +123456 | | 29781 * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | 29782 * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | 29783 * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | 29784 * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | 29785 * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | 29786 * | Seconds timestamp | t | 512969520 | 7 | 29787 * | | tt | ... | 3,7 | 29788 * | Milliseconds timestamp | T | 512969520900 | 7 | 29789 * | | TT | ... | 3,7 | 29790 * | Long localized date | P | 04/29/1453 | 7 | 29791 * | | PP | Apr 29, 1453 | 7 | 29792 * | | PPP | April 29th, 1453 | 7 | 29793 * | | PPPP | Friday, April 29th, 1453 | 2,7 | 29794 * | Long localized time | p | 12:00 AM | 7 | 29795 * | | pp | 12:00:00 AM | 7 | 29796 * | | ppp | 12:00:00 AM GMT+2 | 7 | 29797 * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | 29798 * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | 29799 * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | 29800 * | | PPPppp | April 29th, 1453 at ... | 7 | 29801 * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | 29802 * Notes: 29803 * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale 29804 * are the same as "stand-alone" units, but are different in some languages. 29805 * "Formatting" units are declined according to the rules of the language 29806 * in the context of a date. "Stand-alone" units are always nominative singular: 29807 * 29808 * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` 29809 * 29810 * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` 29811 * 29812 * 2. Any sequence of the identical letters is a pattern, unless it is escaped by 29813 * the single quote characters (see below). 29814 * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) 29815 * the output will be the same as default pattern for this unit, usually 29816 * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units 29817 * are marked with "2" in the last column of the table. 29818 * 29819 * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` 29820 * 29821 * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` 29822 * 29823 * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` 29824 * 29825 * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` 29826 * 29827 * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` 29828 * 29829 * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). 29830 * The output will be padded with zeros to match the length of the pattern. 29831 * 29832 * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` 29833 * 29834 * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. 29835 * These tokens represent the shortest form of the quarter. 29836 * 29837 * 5. The main difference between `y` and `u` patterns are B.C. years: 29838 * 29839 * | Year | `y` | `u` | 29840 * |------|-----|-----| 29841 * | AC 1 | 1 | 1 | 29842 * | BC 1 | 1 | 0 | 29843 * | BC 2 | 2 | -1 | 29844 * 29845 * Also `yy` always returns the last two digits of a year, 29846 * while `uu` pads single digit years to 2 characters and returns other years unchanged: 29847 * 29848 * | Year | `yy` | `uu` | 29849 * |------|------|------| 29850 * | 1 | 01 | 01 | 29851 * | 14 | 14 | 14 | 29852 * | 376 | 76 | 376 | 29853 * | 1453 | 53 | 1453 | 29854 * 29855 * The same difference is true for local and ISO week-numbering years (`Y` and `R`), 29856 * except local week-numbering years are dependent on `options.weekStartsOn` 29857 * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear} 29858 * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}). 29859 * 29860 * 6. Specific non-location timezones are currently unavailable in `date-fns`, 29861 * so right now these tokens fall back to GMT timezones. 29862 * 29863 * 7. These patterns are not in the Unicode Technical Standard #35: 29864 * - `i`: ISO day of week 29865 * - `I`: ISO week of year 29866 * - `R`: ISO week-numbering year 29867 * - `t`: seconds timestamp 29868 * - `T`: milliseconds timestamp 29869 * - `o`: ordinal number modifier 29870 * - `P`: long localized date 29871 * - `p`: long localized time 29872 * 29873 * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. 29874 * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 29875 * 29876 * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. 29877 * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 29878 * 29879 * @param {Date|Number} date - the original date 29880 * @param {String} format - the string of tokens 29881 * @param {Object} [options] - an object with options. 29882 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 29883 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 29884 * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is 29885 * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; 29886 * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 29887 * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; 29888 * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 29889 * @returns {String} the formatted date string 29890 * @throws {TypeError} 2 arguments required 29891 * @throws {RangeError} `date` must not be Invalid Date 29892 * @throws {RangeError} `options.locale` must contain `localize` property 29893 * @throws {RangeError} `options.locale` must contain `formatLong` property 29894 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 29895 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 29896 * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 29897 * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 29898 * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 29899 * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 29900 * @throws {RangeError} format string contains an unescaped latin alphabet character 29901 * 29902 * @example 29903 * // Represent 11 February 2014 in middle-endian format: 29904 * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') 29905 * //=> '02/11/2014' 29906 * 29907 * @example 29908 * // Represent 2 July 2014 in Esperanto: 29909 * import { eoLocale } from 'date-fns/locale/eo' 29910 * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { 29911 * locale: eoLocale 29912 * }) 29913 * //=> '2-a de julio 2014' 29914 * 29915 * @example 29916 * // Escape string by single quote characters: 29917 * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") 29918 * //=> "3 o'clock" 29919 */ 29920 29921function format(dirtyDate, dirtyFormatStr, options) { 29922 var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4; 29923 29924 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 29925 var formatStr = String(dirtyFormatStr); 29926 var defaultOptions = (0,_lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__.getDefaultOptions)(); 29927 var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _lib_defaultLocale_index_js__WEBPACK_IMPORTED_MODULE_2__["default"]; 29928 var firstWeekContainsDate = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN 29929 29930 if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { 29931 throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); 29932 } 29933 29934 var weekStartsOn = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 29935 29936 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 29937 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 29938 } 29939 29940 if (!locale.localize) { 29941 throw new RangeError('locale must contain localize property'); 29942 } 29943 29944 if (!locale.formatLong) { 29945 throw new RangeError('locale must contain formatLong property'); 29946 } 29947 29948 var originalDate = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dirtyDate); 29949 29950 if (!(0,_isValid_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(originalDate)) { 29951 throw new RangeError('Invalid time value'); 29952 } // Convert the date in system timezone to the same date in UTC+00:00 timezone. 29953 // This ensures that when UTC functions will be implemented, locales will be compatible with them. 29954 // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376 29955 29956 29957 var timezoneOffset = (0,_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(originalDate); 29958 var utcDate = (0,_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])(originalDate, timezoneOffset); 29959 var formatterOptions = { 29960 firstWeekContainsDate: firstWeekContainsDate, 29961 weekStartsOn: weekStartsOn, 29962 locale: locale, 29963 _originalDate: originalDate 29964 }; 29965 var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) { 29966 var firstCharacter = substring[0]; 29967 29968 if (firstCharacter === 'p' || firstCharacter === 'P') { 29969 var longFormatter = _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_8__["default"][firstCharacter]; 29970 return longFormatter(substring, locale.formatLong); 29971 } 29972 29973 return substring; 29974 }).join('').match(formattingTokensRegExp).map(function (substring) { 29975 // Replace two single quote characters with one single quote character 29976 if (substring === "''") { 29977 return "'"; 29978 } 29979 29980 var firstCharacter = substring[0]; 29981 29982 if (firstCharacter === "'") { 29983 return cleanEscapedString(substring); 29984 } 29985 29986 var formatter = _lib_format_formatters_index_js__WEBPACK_IMPORTED_MODULE_9__["default"][firstCharacter]; 29987 29988 if (formatter) { 29989 if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_10__.isProtectedWeekYearToken)(substring)) { 29990 (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_10__.throwProtectedError)(substring, dirtyFormatStr, String(dirtyDate)); 29991 } 29992 29993 if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_10__.isProtectedDayOfYearToken)(substring)) { 29994 (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_10__.throwProtectedError)(substring, dirtyFormatStr, String(dirtyDate)); 29995 } 29996 29997 return formatter(utcDate, substring, locale.localize, formatterOptions); 29998 } 29999 30000 if (firstCharacter.match(unescapedLatinCharacterRegExp)) { 30001 throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); 30002 } 30003 30004 return substring; 30005 }).join(''); 30006 return result; 30007} 30008 30009function cleanEscapedString(input) { 30010 var matched = input.match(escapedStringRegExp); 30011 30012 if (!matched) { 30013 return input; 30014 } 30015 30016 return matched[1].replace(doubleQuoteRegExp, "'"); 30017} 30018 30019/***/ }), 30020
vendor: 1,615 bytes, lines 30021-30062
30021/***/ "./node_modules/date-fns/esm/getDay/index.js": 30022/*!***************************************************!*\ 30023 !*** ./node_modules/date-fns/esm/getDay/index.js ***! 30024 \***************************************************/ 30025/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30026 30027"use strict"; 30028__webpack_require__.r(__webpack_exports__); 30029/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30030/* harmony export */ "default": function() { return /* binding */ getDay; } 30031/* harmony export */ }); 30032/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30033/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30034 30035 30036/** 30037 * @name getDay 30038 * @category Weekday Helpers 30039 * @summary Get the day of the week of the given date. 30040 * 30041 * @description 30042 * Get the day of the week of the given date. 30043 * 30044 * @param {Date|Number} date - the given date 30045 * @returns {0|1|2|3|4|5|6} the day of week, 0 represents Sunday 30046 * @throws {TypeError} 1 argument required 30047 * 30048 * @example 30049 * // Which day of the week is 29 February 2012? 30050 * const result = getDay(new Date(2012, 1, 29)) 30051 * //=> 3 30052 */ 30053 30054function getDay(dirtyDate) { 30055 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 30056 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 30057 var day = date.getDay(); 30058 return day; 30059} 30060 30061/***/ }), 30062
vendor: 1,866 bytes, lines 30063-30108
30063/***/ "./node_modules/date-fns/esm/getDaysInMonth/index.js": 30064/*!***********************************************************!*\ 30065 !*** ./node_modules/date-fns/esm/getDaysInMonth/index.js ***! 30066 \***********************************************************/ 30067/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30068 30069"use strict"; 30070__webpack_require__.r(__webpack_exports__); 30071/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30072/* harmony export */ "default": function() { return /* binding */ getDaysInMonth; } 30073/* harmony export */ }); 30074/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30075/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30076 30077 30078/** 30079 * @name getDaysInMonth 30080 * @category Month Helpers 30081 * @summary Get the number of days in a month of the given date. 30082 * 30083 * @description 30084 * Get the number of days in a month of the given date. 30085 * 30086 * @param {Date|Number} date - the given date 30087 * @returns {Number} the number of days in a month 30088 * @throws {TypeError} 1 argument required 30089 * 30090 * @example 30091 * // How many days are in February 2000? 30092 * const result = getDaysInMonth(new Date(2000, 1)) 30093 * //=> 29 30094 */ 30095 30096function getDaysInMonth(dirtyDate) { 30097 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 30098 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 30099 var year = date.getFullYear(); 30100 var monthIndex = date.getMonth(); 30101 var lastDayOfMonth = new Date(0); 30102 lastDayOfMonth.setFullYear(year, monthIndex + 1, 0); 30103 lastDayOfMonth.setHours(0, 0, 0, 0); 30104 return lastDayOfMonth.getDate(); 30105} 30106 30107/***/ }), 30108
vendor: 1,590 bytes, lines 30109-30150
30109/***/ "./node_modules/date-fns/esm/getHours/index.js": 30110/*!*****************************************************!*\ 30111 !*** ./node_modules/date-fns/esm/getHours/index.js ***! 30112 \*****************************************************/ 30113/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30114 30115"use strict"; 30116__webpack_require__.r(__webpack_exports__); 30117/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30118/* harmony export */ "default": function() { return /* binding */ getHours; } 30119/* harmony export */ }); 30120/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30121/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30122 30123 30124/** 30125 * @name getHours 30126 * @category Hour Helpers 30127 * @summary Get the hours of the given date. 30128 * 30129 * @description 30130 * Get the hours of the given date. 30131 * 30132 * @param {Date|Number} date - the given date 30133 * @returns {Number} the hours 30134 * @throws {TypeError} 1 argument required 30135 * 30136 * @example 30137 * // Get the hours of 29 February 2012 11:45:00: 30138 * const result = getHours(new Date(2012, 1, 29, 11, 45)) 30139 * //=> 11 30140 */ 30141 30142function getHours(dirtyDate) { 30143 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 30144 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 30145 var hours = date.getHours(); 30146 return hours; 30147} 30148 30149/***/ }), 30150
vendor: 2,759 bytes, lines 30151-30212
30151/***/ "./node_modules/date-fns/esm/getISOWeekYear/index.js": 30152/*!***********************************************************!*\ 30153 !*** ./node_modules/date-fns/esm/getISOWeekYear/index.js ***! 30154 \***********************************************************/ 30155/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30156 30157"use strict"; 30158__webpack_require__.r(__webpack_exports__); 30159/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30160/* harmony export */ "default": function() { return /* binding */ getISOWeekYear; } 30161/* harmony export */ }); 30162/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30163/* harmony import */ var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfISOWeek/index.js */ "./node_modules/date-fns/esm/startOfISOWeek/index.js"); 30164/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30165 30166 30167 30168/** 30169 * @name getISOWeekYear 30170 * @category ISO Week-Numbering Year Helpers 30171 * @summary Get the ISO week-numbering year of the given date. 30172 * 30173 * @description 30174 * Get the ISO week-numbering year of the given date, 30175 * which always starts 3 days before the year's first Thursday. 30176 * 30177 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 30178 * 30179 * @param {Date|Number} date - the given date 30180 * @returns {Number} the ISO week-numbering year 30181 * @throws {TypeError} 1 argument required 30182 * 30183 * @example 30184 * // Which ISO-week numbering year is 2 January 2005? 30185 * const result = getISOWeekYear(new Date(2005, 0, 2)) 30186 * //=> 2004 30187 */ 30188 30189function getISOWeekYear(dirtyDate) { 30190 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 30191 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 30192 var year = date.getFullYear(); 30193 var fourthOfJanuaryOfNextYear = new Date(0); 30194 fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); 30195 fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); 30196 var startOfNextYear = (0,_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(fourthOfJanuaryOfNextYear); 30197 var fourthOfJanuaryOfThisYear = new Date(0); 30198 fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); 30199 fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); 30200 var startOfThisYear = (0,_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(fourthOfJanuaryOfThisYear); 30201 30202 if (date.getTime() >= startOfNextYear.getTime()) { 30203 return year + 1; 30204 } else if (date.getTime() >= startOfThisYear.getTime()) { 30205 return year; 30206 } else { 30207 return year - 1; 30208 } 30209} 30210 30211/***/ }), 30212
vendor: 2,529 bytes, lines 30213-30264
30213/***/ "./node_modules/date-fns/esm/getISOWeek/index.js": 30214/*!*******************************************************!*\ 30215 !*** ./node_modules/date-fns/esm/getISOWeek/index.js ***! 30216 \*******************************************************/ 30217/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30218 30219"use strict"; 30220__webpack_require__.r(__webpack_exports__); 30221/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30222/* harmony export */ "default": function() { return /* binding */ getISOWeek; } 30223/* harmony export */ }); 30224/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30225/* harmony import */ var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfISOWeek/index.js */ "./node_modules/date-fns/esm/startOfISOWeek/index.js"); 30226/* harmony import */ var _startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../startOfISOWeekYear/index.js */ "./node_modules/date-fns/esm/startOfISOWeekYear/index.js"); 30227/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30228 30229 30230 30231 30232var MILLISECONDS_IN_WEEK = 604800000; 30233/** 30234 * @name getISOWeek 30235 * @category ISO Week Helpers 30236 * @summary Get the ISO week of the given date. 30237 * 30238 * @description 30239 * Get the ISO week of the given date. 30240 * 30241 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 30242 * 30243 * @param {Date|Number} date - the given date 30244 * @returns {Number} the ISO week 30245 * @throws {TypeError} 1 argument required 30246 * 30247 * @example 30248 * // Which week of the ISO-week numbering year is 2 January 2005? 30249 * const result = getISOWeek(new Date(2005, 0, 2)) 30250 * //=> 53 30251 */ 30252 30253function getISOWeek(dirtyDate) { 30254 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 30255 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 30256 var diff = (0,_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date).getTime() - (0,_startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date).getTime(); // Round the number of days to the nearest integer 30257 // because the number of milliseconds in a week is not constant 30258 // (e.g. it's different in the week of the daylight saving time clock shift) 30259 30260 return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; 30261} 30262 30263/***/ }), 30264
vendor: 1,625 bytes, lines 30265-30306
30265/***/ "./node_modules/date-fns/esm/getMinutes/index.js": 30266/*!*******************************************************!*\ 30267 !*** ./node_modules/date-fns/esm/getMinutes/index.js ***! 30268 \*******************************************************/ 30269/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30270 30271"use strict"; 30272__webpack_require__.r(__webpack_exports__); 30273/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30274/* harmony export */ "default": function() { return /* binding */ getMinutes; } 30275/* harmony export */ }); 30276/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30277/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30278 30279 30280/** 30281 * @name getMinutes 30282 * @category Minute Helpers 30283 * @summary Get the minutes of the given date. 30284 * 30285 * @description 30286 * Get the minutes of the given date. 30287 * 30288 * @param {Date|Number} date - the given date 30289 * @returns {Number} the minutes 30290 * @throws {TypeError} 1 argument required 30291 * 30292 * @example 30293 * // Get the minutes of 29 February 2012 11:45:05: 30294 * const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) 30295 * //=> 45 30296 */ 30297 30298function getMinutes(dirtyDate) { 30299 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 30300 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 30301 var minutes = date.getMinutes(); 30302 return minutes; 30303} 30304 30305/***/ }), 30306
vendor: 1,571 bytes, lines 30307-30348
30307/***/ "./node_modules/date-fns/esm/getMonth/index.js": 30308/*!*****************************************************!*\ 30309 !*** ./node_modules/date-fns/esm/getMonth/index.js ***! 30310 \*****************************************************/ 30311/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30312 30313"use strict"; 30314__webpack_require__.r(__webpack_exports__); 30315/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30316/* harmony export */ "default": function() { return /* binding */ getMonth; } 30317/* harmony export */ }); 30318/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30319/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30320 30321 30322/** 30323 * @name getMonth 30324 * @category Month Helpers 30325 * @summary Get the month of the given date. 30326 * 30327 * @description 30328 * Get the month of the given date. 30329 * 30330 * @param {Date|Number} date - the given date 30331 * @returns {Number} the month 30332 * @throws {TypeError} 1 argument required 30333 * 30334 * @example 30335 * // Which month is 29 February 2012? 30336 * const result = getMonth(new Date(2012, 1, 29)) 30337 * //=> 1 30338 */ 30339 30340function getMonth(dirtyDate) { 30341 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 30342 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 30343 var month = date.getMonth(); 30344 return month; 30345} 30346 30347/***/ }), 30348
vendor: 1,633 bytes, lines 30349-30390
30349/***/ "./node_modules/date-fns/esm/getSeconds/index.js": 30350/*!*******************************************************!*\ 30351 !*** ./node_modules/date-fns/esm/getSeconds/index.js ***! 30352 \*******************************************************/ 30353/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30354 30355"use strict"; 30356__webpack_require__.r(__webpack_exports__); 30357/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30358/* harmony export */ "default": function() { return /* binding */ getSeconds; } 30359/* harmony export */ }); 30360/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30361/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30362 30363 30364/** 30365 * @name getSeconds 30366 * @category Second Helpers 30367 * @summary Get the seconds of the given date. 30368 * 30369 * @description 30370 * Get the seconds of the given date. 30371 * 30372 * @param {Date|Number} date - the given date 30373 * @returns {Number} the seconds 30374 * @throws {TypeError} 1 argument required 30375 * 30376 * @example 30377 * // Get the seconds of 29 February 2012 11:45:05.123: 30378 * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) 30379 * //=> 5 30380 */ 30381 30382function getSeconds(dirtyDate) { 30383 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 30384 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 30385 var seconds = date.getSeconds(); 30386 return seconds; 30387} 30388 30389/***/ }), 30390
vendor: 1,518 bytes, lines 30391-30430
30391/***/ "./node_modules/date-fns/esm/getYear/index.js": 30392/*!****************************************************!*\ 30393 !*** ./node_modules/date-fns/esm/getYear/index.js ***! 30394 \****************************************************/ 30395/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30396 30397"use strict"; 30398__webpack_require__.r(__webpack_exports__); 30399/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30400/* harmony export */ "default": function() { return /* binding */ getYear; } 30401/* harmony export */ }); 30402/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30403/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30404 30405 30406/** 30407 * @name getYear 30408 * @category Year Helpers 30409 * @summary Get the year of the given date. 30410 * 30411 * @description 30412 * Get the year of the given date. 30413 * 30414 * @param {Date|Number} date - the given date 30415 * @returns {Number} the year 30416 * @throws {TypeError} 1 argument required 30417 * 30418 * @example 30419 * // Which year is 2 July 2014? 30420 * const result = getYear(new Date(2014, 6, 2)) 30421 * //=> 2014 30422 */ 30423 30424function getYear(dirtyDate) { 30425 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 30426 return (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate).getFullYear(); 30427} 30428 30429/***/ }), 30430
vendor: 1,880 bytes, lines 30431-30473
30431/***/ "./node_modules/date-fns/esm/isAfter/index.js": 30432/*!****************************************************!*\ 30433 !*** ./node_modules/date-fns/esm/isAfter/index.js ***! 30434 \****************************************************/ 30435/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30436 30437"use strict"; 30438__webpack_require__.r(__webpack_exports__); 30439/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30440/* harmony export */ "default": function() { return /* binding */ isAfter; } 30441/* harmony export */ }); 30442/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30443/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30444 30445 30446/** 30447 * @name isAfter 30448 * @category Common Helpers 30449 * @summary Is the first date after the second one? 30450 * 30451 * @description 30452 * Is the first date after the second one? 30453 * 30454 * @param {Date|Number} date - the date that should be after the other one to return true 30455 * @param {Date|Number} dateToCompare - the date to compare with 30456 * @returns {Boolean} the first date is after the second date 30457 * @throws {TypeError} 2 arguments required 30458 * 30459 * @example 30460 * // Is 10 July 1989 after 11 February 1987? 30461 * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) 30462 * //=> true 30463 */ 30464 30465function isAfter(dirtyDate, dirtyDateToCompare) { 30466 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 30467 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 30468 var dateToCompare = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateToCompare); 30469 return date.getTime() > dateToCompare.getTime(); 30470} 30471 30472/***/ }), 30473
vendor: 1,894 bytes, lines 30474-30516
30474/***/ "./node_modules/date-fns/esm/isBefore/index.js": 30475/*!*****************************************************!*\ 30476 !*** ./node_modules/date-fns/esm/isBefore/index.js ***! 30477 \*****************************************************/ 30478/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30479 30480"use strict"; 30481__webpack_require__.r(__webpack_exports__); 30482/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30483/* harmony export */ "default": function() { return /* binding */ isBefore; } 30484/* harmony export */ }); 30485/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30486/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30487 30488 30489/** 30490 * @name isBefore 30491 * @category Common Helpers 30492 * @summary Is the first date before the second one? 30493 * 30494 * @description 30495 * Is the first date before the second one? 30496 * 30497 * @param {Date|Number} date - the date that should be before the other one to return true 30498 * @param {Date|Number} dateToCompare - the date to compare with 30499 * @returns {Boolean} the first date is before the second date 30500 * @throws {TypeError} 2 arguments required 30501 * 30502 * @example 30503 * // Is 10 July 1989 before 11 February 1987? 30504 * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) 30505 * //=> false 30506 */ 30507 30508function isBefore(dirtyDate, dirtyDateToCompare) { 30509 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 30510 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 30511 var dateToCompare = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateToCompare); 30512 return date.getTime() < dateToCompare.getTime(); 30513} 30514 30515/***/ }), 30516
vendor: 1,709 bytes, lines 30517-30569
30517/***/ "./node_modules/date-fns/esm/isDate/index.js": 30518/*!***************************************************!*\ 30519 !*** ./node_modules/date-fns/esm/isDate/index.js ***! 30520 \***************************************************/ 30521/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30522 30523"use strict"; 30524__webpack_require__.r(__webpack_exports__); 30525/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30526/* harmony export */ "default": function() { return /* binding */ isDate; } 30527/* harmony export */ }); 30528/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30529 30530/** 30531 * @name isDate 30532 * @category Common Helpers 30533 * @summary Is the given value a date? 30534 * 30535 * @description 30536 * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. 30537 * 30538 * @param {*} value - the value to check 30539 * @returns {boolean} true if the given value is a date 30540 * @throws {TypeError} 1 arguments required 30541 * 30542 * @example 30543 * // For a valid date: 30544 * const result = isDate(new Date()) 30545 * //=> true 30546 * 30547 * @example 30548 * // For an invalid date: 30549 * const result = isDate(new Date(NaN)) 30550 * //=> true 30551 * 30552 * @example 30553 * // For some value: 30554 * const result = isDate('2014-02-31') 30555 * //=> false 30556 * 30557 * @example 30558 * // For an object: 30559 * const result = isDate({}) 30560 * //=> false 30561 */ 30562 30563function isDate(value) { 30564 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 30565 return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]'; 30566} 30567 30568/***/ }), 30569
vendor: 1,874 bytes, lines 30570-30615
30570/***/ "./node_modules/date-fns/esm/isEqual/index.js": 30571/*!****************************************************!*\ 30572 !*** ./node_modules/date-fns/esm/isEqual/index.js ***! 30573 \****************************************************/ 30574/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30575 30576"use strict"; 30577__webpack_require__.r(__webpack_exports__); 30578/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30579/* harmony export */ "default": function() { return /* binding */ isEqual; } 30580/* harmony export */ }); 30581/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30582/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30583 30584 30585/** 30586 * @name isEqual 30587 * @category Common Helpers 30588 * @summary Are the given dates equal? 30589 * 30590 * @description 30591 * Are the given dates equal? 30592 * 30593 * @param {Date|Number} dateLeft - the first date to compare 30594 * @param {Date|Number} dateRight - the second date to compare 30595 * @returns {Boolean} the dates are equal 30596 * @throws {TypeError} 2 arguments required 30597 * 30598 * @example 30599 * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? 30600 * const result = isEqual( 30601 * new Date(2014, 6, 2, 6, 30, 45, 0), 30602 * new Date(2014, 6, 2, 6, 30, 45, 500) 30603 * ) 30604 * //=> false 30605 */ 30606 30607function isEqual(dirtyLeftDate, dirtyRightDate) { 30608 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 30609 var dateLeft = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyLeftDate); 30610 var dateRight = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyRightDate); 30611 return dateLeft.getTime() === dateRight.getTime(); 30612} 30613 30614/***/ }), 30615
vendor: 2,292 bytes, lines 30616-30677
30616/***/ "./node_modules/date-fns/esm/isValid/index.js": 30617/*!****************************************************!*\ 30618 !*** ./node_modules/date-fns/esm/isValid/index.js ***! 30619 \****************************************************/ 30620/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30621 30622"use strict"; 30623__webpack_require__.r(__webpack_exports__); 30624/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30625/* harmony export */ "default": function() { return /* binding */ isValid; } 30626/* harmony export */ }); 30627/* harmony import */ var _isDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../isDate/index.js */ "./node_modules/date-fns/esm/isDate/index.js"); 30628/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 30629/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 30630 30631 30632 30633/** 30634 * @name isValid 30635 * @category Common Helpers 30636 * @summary Is the given date valid? 30637 * 30638 * @description 30639 * Returns false if argument is Invalid Date and true otherwise. 30640 * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} 30641 * Invalid Date is a Date, whose time value is NaN. 30642 * 30643 * Time value of Date: http://es5.github.io/#x15.9.1.1 30644 * 30645 * @param {*} date - the date to check 30646 * @returns {Boolean} the date is valid 30647 * @throws {TypeError} 1 argument required 30648 * 30649 * @example 30650 * // For the valid date: 30651 * const result = isValid(new Date(2014, 1, 31)) 30652 * //=> true 30653 * 30654 * @example 30655 * // For the value, convertable into a date: 30656 * const result = isValid(1393804800000) 30657 * //=> true 30658 * 30659 * @example 30660 * // For the invalid date: 30661 * const result = isValid(new Date('')) 30662 * //=> false 30663 */ 30664 30665function isValid(dirtyDate) { 30666 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 30667 30668 if (!(0,_isDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate) && typeof dirtyDate !== 'number') { 30669 return false; 30670 } 30671 30672 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate); 30673 return !isNaN(Number(date)); 30674} 30675 30676/***/ }), 30677
vendor: 1,002 bytes, lines 30678-30700
30678/***/ "./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js": 30679/*!**************************************************************************!*\ 30680 !*** ./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js ***! 30681 \**************************************************************************/ 30682/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30683 30684"use strict"; 30685__webpack_require__.r(__webpack_exports__); 30686/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30687/* harmony export */ "default": function() { return /* binding */ buildFormatLongFn; } 30688/* harmony export */ }); 30689function buildFormatLongFn(args) { 30690 return function () { 30691 var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; 30692 // TODO: Remove String() 30693 var width = options.width ? String(options.width) : args.defaultWidth; 30694 var format = args.formats[width] || args.formats[args.defaultWidth]; 30695 return format; 30696 }; 30697} 30698 30699/***/ }), 30700
vendor: 1,715 bytes, lines 30701-30736
30701/***/ "./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js": 30702/*!************************************************************************!*\ 30703 !*** ./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js ***! 30704 \************************************************************************/ 30705/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30706 30707"use strict"; 30708__webpack_require__.r(__webpack_exports__); 30709/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30710/* harmony export */ "default": function() { return /* binding */ buildLocalizeFn; } 30711/* harmony export */ }); 30712function buildLocalizeFn(args) { 30713 return function (dirtyIndex, options) { 30714 var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone'; 30715 var valuesArray; 30716 30717 if (context === 'formatting' && args.formattingValues) { 30718 var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; 30719 var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; 30720 valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; 30721 } else { 30722 var _defaultWidth = args.defaultWidth; 30723 30724 var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; 30725 30726 valuesArray = args.values[_width] || args.values[_defaultWidth]; 30727 } 30728 30729 var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it! 30730 30731 return valuesArray[index]; 30732 }; 30733} 30734 30735/***/ }), 30736
vendor: 2,017 bytes, lines 30737-30798
30737/***/ "./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js": 30738/*!*********************************************************************!*\ 30739 !*** ./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js ***! 30740 \*********************************************************************/ 30741/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30742 30743"use strict"; 30744__webpack_require__.r(__webpack_exports__); 30745/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30746/* harmony export */ "default": function() { return /* binding */ buildMatchFn; } 30747/* harmony export */ }); 30748function buildMatchFn(args) { 30749 return function (string) { 30750 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 30751 var width = options.width; 30752 var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; 30753 var matchResult = string.match(matchPattern); 30754 30755 if (!matchResult) { 30756 return null; 30757 } 30758 30759 var matchedString = matchResult[0]; 30760 var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; 30761 var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) { 30762 return pattern.test(matchedString); 30763 }) : findKey(parsePatterns, function (pattern) { 30764 return pattern.test(matchedString); 30765 }); 30766 var value; 30767 value = args.valueCallback ? args.valueCallback(key) : key; 30768 value = options.valueCallback ? options.valueCallback(value) : value; 30769 var rest = string.slice(matchedString.length); 30770 return { 30771 value: value, 30772 rest: rest 30773 }; 30774 }; 30775} 30776 30777function findKey(object, predicate) { 30778 for (var key in object) { 30779 if (object.hasOwnProperty(key) && predicate(object[key])) { 30780 return key; 30781 } 30782 } 30783 30784 return undefined; 30785} 30786 30787function findIndex(array, predicate) { 30788 for (var key = 0; key < array.length; key++) { 30789 if (predicate(array[key])) { 30790 return key; 30791 } 30792 } 30793 30794 return undefined; 30795} 30796 30797/***/ }), 30798
vendor: 1,316 bytes, lines 30799-30829
30799/***/ "./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js": 30800/*!****************************************************************************!*\ 30801 !*** ./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js ***! 30802 \****************************************************************************/ 30803/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30804 30805"use strict"; 30806__webpack_require__.r(__webpack_exports__); 30807/* harmony export */ __webpack_require__.d(__webpack_exports__, { 30808/* harmony export */ "default": function() { return /* binding */ buildMatchPatternFn; } 30809/* harmony export */ }); 30810function buildMatchPatternFn(args) { 30811 return function (string) { 30812 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 30813 var matchResult = string.match(args.matchPattern); 30814 if (!matchResult) return null; 30815 var matchedString = matchResult[0]; 30816 var parseResult = string.match(args.parsePattern); 30817 if (!parseResult) return null; 30818 var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; 30819 value = options.valueCallback ? options.valueCallback(value) : value; 30820 var rest = string.slice(matchedString.length); 30821 return { 30822 value: value, 30823 rest: rest 30824 }; 30825 }; 30826} 30827 30828/***/ }), 30829
vendor: 2,343 bytes, lines 30830-30928
30830/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js": 30831/*!*****************************************************************************!*\ 30832 !*** ./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js ***! 30833 \*****************************************************************************/ 30834/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30835 30836"use strict"; 30837__webpack_require__.r(__webpack_exports__); 30838var formatDistanceLocale = { 30839 lessThanXSeconds: { 30840 one: 'less than a second', 30841 other: 'less than {{count}} seconds' 30842 }, 30843 xSeconds: { 30844 one: '1 second', 30845 other: '{{count}} seconds' 30846 }, 30847 halfAMinute: 'half a minute', 30848 lessThanXMinutes: { 30849 one: 'less than a minute', 30850 other: 'less than {{count}} minutes' 30851 }, 30852 xMinutes: { 30853 one: '1 minute', 30854 other: '{{count}} minutes' 30855 }, 30856 aboutXHours: { 30857 one: 'about 1 hour', 30858 other: 'about {{count}} hours' 30859 }, 30860 xHours: { 30861 one: '1 hour', 30862 other: '{{count}} hours' 30863 }, 30864 xDays: { 30865 one: '1 day', 30866 other: '{{count}} days' 30867 }, 30868 aboutXWeeks: { 30869 one: 'about 1 week', 30870 other: 'about {{count}} weeks' 30871 }, 30872 xWeeks: { 30873 one: '1 week', 30874 other: '{{count}} weeks' 30875 }, 30876 aboutXMonths: { 30877 one: 'about 1 month', 30878 other: 'about {{count}} months' 30879 }, 30880 xMonths: { 30881 one: '1 month', 30882 other: '{{count}} months' 30883 }, 30884 aboutXYears: { 30885 one: 'about 1 year', 30886 other: 'about {{count}} years' 30887 }, 30888 xYears: { 30889 one: '1 year', 30890 other: '{{count}} years' 30891 }, 30892 overXYears: { 30893 one: 'over 1 year', 30894 other: 'over {{count}} years' 30895 }, 30896 almostXYears: { 30897 one: 'almost 1 year', 30898 other: 'almost {{count}} years' 30899 } 30900}; 30901 30902var formatDistance = function (token, count, options) { 30903 var result; 30904 var tokenValue = formatDistanceLocale[token]; 30905 30906 if (typeof tokenValue === 'string') { 30907 result = tokenValue; 30908 } else if (count === 1) { 30909 result = tokenValue.one; 30910 } else { 30911 result = tokenValue.other.replace('{{count}}', count.toString()); 30912 } 30913 30914 if (options !== null && options !== void 0 && options.addSuffix) { 30915 if (options.comparison && options.comparison > 0) { 30916 return 'in ' + result; 30917 } else { 30918 return result + ' ago'; 30919 } 30920 } 30921 30922 return result; 30923}; 30924 30925/* harmony default export */ __webpack_exports__["default"] = (formatDistance); 30926 30927/***/ }), 30928
vendor: 1,616 bytes, lines 30929-30974
30929/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js": 30930/*!*************************************************************************!*\ 30931 !*** ./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js ***! 30932 \*************************************************************************/ 30933/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30934 30935"use strict"; 30936__webpack_require__.r(__webpack_exports__); 30937/* harmony import */ var _lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_lib/buildFormatLongFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js"); 30938 30939var dateFormats = { 30940 full: 'EEEE, MMMM do, y', 30941 long: 'MMMM do, y', 30942 medium: 'MMM d, y', 30943 short: 'MM/dd/yyyy' 30944}; 30945var timeFormats = { 30946 full: 'h:mm:ss a zzzz', 30947 long: 'h:mm:ss a z', 30948 medium: 'h:mm:ss a', 30949 short: 'h:mm a' 30950}; 30951var dateTimeFormats = { 30952 full: "{{date}} 'at' {{time}}", 30953 long: "{{date}} 'at' {{time}}", 30954 medium: '{{date}}, {{time}}', 30955 short: '{{date}}, {{time}}' 30956}; 30957var formatLong = { 30958 date: (0,_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 30959 formats: dateFormats, 30960 defaultWidth: 'full' 30961 }), 30962 time: (0,_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 30963 formats: timeFormats, 30964 defaultWidth: 'full' 30965 }), 30966 dateTime: (0,_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 30967 formats: dateTimeFormats, 30968 defaultWidth: 'full' 30969 }) 30970}; 30971/* harmony default export */ __webpack_exports__["default"] = (formatLong); 30972 30973/***/ }), 30974
vendor: 869 bytes, lines 30975-30999
30975/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js": 30976/*!*****************************************************************************!*\ 30977 !*** ./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js ***! 30978 \*****************************************************************************/ 30979/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 30980 30981"use strict"; 30982__webpack_require__.r(__webpack_exports__); 30983var formatRelativeLocale = { 30984 lastWeek: "'last' eeee 'at' p", 30985 yesterday: "'yesterday at' p", 30986 today: "'today at' p", 30987 tomorrow: "'tomorrow at' p", 30988 nextWeek: "eeee 'at' p", 30989 other: 'P' 30990}; 30991 30992var formatRelative = function (token, _date, _baseDate, _options) { 30993 return formatRelativeLocale[token]; 30994}; 30995 30996/* harmony default export */ __webpack_exports__["default"] = (formatRelative); 30997 30998/***/ }), 30999
vendor: 4,768 bytes, lines 31000-31157
31000/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js": 31001/*!***********************************************************************!*\ 31002 !*** ./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js ***! 31003 \***********************************************************************/ 31004/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 31005 31006"use strict"; 31007__webpack_require__.r(__webpack_exports__); 31008/* harmony import */ var _lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_lib/buildLocalizeFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js"); 31009 31010var eraValues = { 31011 narrow: ['B', 'A'], 31012 abbreviated: ['BC', 'AD'], 31013 wide: ['Before Christ', 'Anno Domini'] 31014}; 31015var quarterValues = { 31016 narrow: ['1', '2', '3', '4'], 31017 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 31018 wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] 31019}; // Note: in English, the names of days of the week and months are capitalized. 31020// If you are making a new locale based on this one, check if the same is true for the language you're working on. 31021// Generally, formatted dates should look like they are in the middle of a sentence, 31022// e.g. in Spanish language the weekdays and months should be in the lowercase. 31023 31024var monthValues = { 31025 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 31026 abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 31027 wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] 31028}; 31029var dayValues = { 31030 narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], 31031 short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], 31032 abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], 31033 wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] 31034}; 31035var dayPeriodValues = { 31036 narrow: { 31037 am: 'a', 31038 pm: 'p', 31039 midnight: 'mi', 31040 noon: 'n', 31041 morning: 'morning', 31042 afternoon: 'afternoon', 31043 evening: 'evening', 31044 night: 'night' 31045 }, 31046 abbreviated: { 31047 am: 'AM', 31048 pm: 'PM', 31049 midnight: 'midnight', 31050 noon: 'noon', 31051 morning: 'morning', 31052 afternoon: 'afternoon', 31053 evening: 'evening', 31054 night: 'night' 31055 }, 31056 wide: { 31057 am: 'a.m.', 31058 pm: 'p.m.', 31059 midnight: 'midnight', 31060 noon: 'noon', 31061 morning: 'morning', 31062 afternoon: 'afternoon', 31063 evening: 'evening', 31064 night: 'night' 31065 } 31066}; 31067var formattingDayPeriodValues = { 31068 narrow: { 31069 am: 'a', 31070 pm: 'p', 31071 midnight: 'mi', 31072 noon: 'n', 31073 morning: 'in the morning', 31074 afternoon: 'in the afternoon', 31075 evening: 'in the evening', 31076 night: 'at night' 31077 }, 31078 abbreviated: { 31079 am: 'AM', 31080 pm: 'PM', 31081 midnight: 'midnight', 31082 noon: 'noon', 31083 morning: 'in the morning', 31084 afternoon: 'in the afternoon', 31085 evening: 'in the evening', 31086 night: 'at night' 31087 }, 31088 wide: { 31089 am: 'a.m.', 31090 pm: 'p.m.', 31091 midnight: 'midnight', 31092 noon: 'noon', 31093 morning: 'in the morning', 31094 afternoon: 'in the afternoon', 31095 evening: 'in the evening', 31096 night: 'at night' 31097 } 31098}; 31099 31100var ordinalNumber = function (dirtyNumber, _options) { 31101 var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, 31102 // if they are different for different grammatical genders, 31103 // use `options.unit`. 31104 // 31105 // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', 31106 // 'day', 'hour', 'minute', 'second'. 31107 31108 var rem100 = number % 100; 31109 31110 if (rem100 > 20 || rem100 < 10) { 31111 switch (rem100 % 10) { 31112 case 1: 31113 return number + 'st'; 31114 31115 case 2: 31116 return number + 'nd'; 31117 31118 case 3: 31119 return number + 'rd'; 31120 } 31121 } 31122 31123 return number + 'th'; 31124}; 31125 31126var localize = { 31127 ordinalNumber: ordinalNumber, 31128 era: (0,_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 31129 values: eraValues, 31130 defaultWidth: 'wide' 31131 }), 31132 quarter: (0,_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 31133 values: quarterValues, 31134 defaultWidth: 'wide', 31135 argumentCallback: function (quarter) { 31136 return quarter - 1; 31137 } 31138 }), 31139 month: (0,_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 31140 values: monthValues, 31141 defaultWidth: 'wide' 31142 }), 31143 day: (0,_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 31144 values: dayValues, 31145 defaultWidth: 'wide' 31146 }), 31147 dayPeriod: (0,_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 31148 values: dayPeriodValues, 31149 defaultWidth: 'wide', 31150 formattingValues: formattingDayPeriodValues, 31151 defaultFormattingWidth: 'wide' 31152 }) 31153}; 31154/* harmony default export */ __webpack_exports__["default"] = (localize); 31155 31156/***/ }), 31157
vendor: 4,213 bytes, lines 31158-31268
31158/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js": 31159/*!********************************************************************!*\ 31160 !*** ./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js ***! 31161 \********************************************************************/ 31162/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 31163 31164"use strict"; 31165__webpack_require__.r(__webpack_exports__); 31166/* harmony import */ var _lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_lib/buildMatchFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js"); 31167/* harmony import */ var _lib_buildMatchPatternFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_lib/buildMatchPatternFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js"); 31168 31169 31170var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; 31171var parseOrdinalNumberPattern = /\d+/i; 31172var matchEraPatterns = { 31173 narrow: /^(b|a)/i, 31174 abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, 31175 wide: /^(before christ|before common era|anno domini|common era)/i 31176}; 31177var parseEraPatterns = { 31178 any: [/^b/i, /^(a|c)/i] 31179}; 31180var matchQuarterPatterns = { 31181 narrow: /^[1234]/i, 31182 abbreviated: /^q[1234]/i, 31183 wide: /^[1234](th|st|nd|rd)? quarter/i 31184}; 31185var parseQuarterPatterns = { 31186 any: [/1/i, /2/i, /3/i, /4/i] 31187}; 31188var matchMonthPatterns = { 31189 narrow: /^[jfmasond]/i, 31190 abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, 31191 wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i 31192}; 31193var parseMonthPatterns = { 31194 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 31195 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 31196}; 31197var matchDayPatterns = { 31198 narrow: /^[smtwf]/i, 31199 short: /^(su|mo|tu|we|th|fr|sa)/i, 31200 abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, 31201 wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i 31202}; 31203var parseDayPatterns = { 31204 narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], 31205 any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] 31206}; 31207var matchDayPeriodPatterns = { 31208 narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, 31209 any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i 31210}; 31211var parseDayPeriodPatterns = { 31212 any: { 31213 am: /^a/i, 31214 pm: /^p/i, 31215 midnight: /^mi/i, 31216 noon: /^no/i, 31217 morning: /morning/i, 31218 afternoon: /afternoon/i, 31219 evening: /evening/i, 31220 night: /night/i 31221 } 31222}; 31223var match = { 31224 ordinalNumber: (0,_lib_buildMatchPatternFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 31225 matchPattern: matchOrdinalNumberPattern, 31226 parsePattern: parseOrdinalNumberPattern, 31227 valueCallback: function (value) { 31228 return parseInt(value, 10); 31229 } 31230 }), 31231 era: (0,_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ 31232 matchPatterns: matchEraPatterns, 31233 defaultMatchWidth: 'wide', 31234 parsePatterns: parseEraPatterns, 31235 defaultParseWidth: 'any' 31236 }), 31237 quarter: (0,_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ 31238 matchPatterns: matchQuarterPatterns, 31239 defaultMatchWidth: 'wide', 31240 parsePatterns: parseQuarterPatterns, 31241 defaultParseWidth: 'any', 31242 valueCallback: function (index) { 31243 return index + 1; 31244 } 31245 }), 31246 month: (0,_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ 31247 matchPatterns: matchMonthPatterns, 31248 defaultMatchWidth: 'wide', 31249 parsePatterns: parseMonthPatterns, 31250 defaultParseWidth: 'any' 31251 }), 31252 day: (0,_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ 31253 matchPatterns: matchDayPatterns, 31254 defaultMatchWidth: 'wide', 31255 parsePatterns: parseDayPatterns, 31256 defaultParseWidth: 'any' 31257 }), 31258 dayPeriod: (0,_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ 31259 matchPatterns: matchDayPeriodPatterns, 31260 defaultMatchWidth: 'any', 31261 parsePatterns: parseDayPeriodPatterns, 31262 defaultParseWidth: 'any' 31263 }) 31264}; 31265/* harmony default export */ __webpack_exports__["default"] = (match); 31266 31267/***/ }), 31268
vendor: 2,309 bytes, lines 31269-31314
31269/***/ "./node_modules/date-fns/esm/locale/en-US/index.js": 31270/*!*********************************************************!*\ 31271 !*** ./node_modules/date-fns/esm/locale/en-US/index.js ***! 31272 \*********************************************************/ 31273/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 31274 31275"use strict"; 31276__webpack_require__.r(__webpack_exports__); 31277/* harmony import */ var _lib_formatDistance_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_lib/formatDistance/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js"); 31278/* harmony import */ var _lib_formatLong_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_lib/formatLong/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js"); 31279/* harmony import */ var _lib_formatRelative_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_lib/formatRelative/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js"); 31280/* harmony import */ var _lib_localize_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./_lib/localize/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js"); 31281/* harmony import */ var _lib_match_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./_lib/match/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js"); 31282 31283 31284 31285 31286 31287 31288/** 31289 * @type {Locale} 31290 * @category Locales 31291 * @summary English locale (United States). 31292 * @language English 31293 * @iso-639-2 eng 31294 * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp} 31295 * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} 31296 */ 31297var locale = { 31298 code: 'en-US', 31299 formatDistance: _lib_formatDistance_index_js__WEBPACK_IMPORTED_MODULE_0__["default"], 31300 formatLong: _lib_formatLong_index_js__WEBPACK_IMPORTED_MODULE_1__["default"], 31301 formatRelative: _lib_formatRelative_index_js__WEBPACK_IMPORTED_MODULE_2__["default"], 31302 localize: _lib_localize_index_js__WEBPACK_IMPORTED_MODULE_3__["default"], 31303 match: _lib_match_index_js__WEBPACK_IMPORTED_MODULE_4__["default"], 31304 options: { 31305 weekStartsOn: 0 31306 /* Sunday */ 31307 , 31308 firstWeekContainsDate: 1 31309 } 31310}; 31311/* harmony default export */ __webpack_exports__["default"] = (locale); 31312 31313/***/ }), 31314
vendor: 9,660 bytes, lines 31315-31597
31315/***/ "./node_modules/date-fns/esm/parseISO/index.js": 31316/*!*****************************************************!*\ 31317 !*** ./node_modules/date-fns/esm/parseISO/index.js ***! 31318 \*****************************************************/ 31319/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 31320 31321"use strict"; 31322__webpack_require__.r(__webpack_exports__); 31323/* harmony export */ __webpack_require__.d(__webpack_exports__, { 31324/* harmony export */ "default": function() { return /* binding */ parseISO; } 31325/* harmony export */ }); 31326/* harmony import */ var _constants_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants/index.js */ "./node_modules/date-fns/esm/constants/index.js"); 31327/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 31328/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 31329 31330 31331 31332/** 31333 * @name parseISO 31334 * @category Common Helpers 31335 * @summary Parse ISO string 31336 * 31337 * @description 31338 * Parse the given string in ISO 8601 format and return an instance of Date. 31339 * 31340 * Function accepts complete ISO 8601 formats as well as partial implementations. 31341 * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601 31342 * 31343 * If the argument isn't a string, the function cannot parse the string or 31344 * the values are invalid, it returns Invalid Date. 31345 * 31346 * @param {String} argument - the value to convert 31347 * @param {Object} [options] - an object with options. 31348 * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format 31349 * @returns {Date} the parsed date in the local time zone 31350 * @throws {TypeError} 1 argument required 31351 * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 31352 * 31353 * @example 31354 * // Convert string '2014-02-11T11:30:30' to date: 31355 * const result = parseISO('2014-02-11T11:30:30') 31356 * //=> Tue Feb 11 2014 11:30:30 31357 * 31358 * @example 31359 * // Convert string '+02014101' to date, 31360 * // if the additional number of digits in the extended year format is 1: 31361 * const result = parseISO('+02014101', { additionalDigits: 1 }) 31362 * //=> Fri Apr 11 2014 00:00:00 31363 */ 31364 31365function parseISO(argument, options) { 31366 var _options$additionalDi; 31367 31368 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 31369 var additionalDigits = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])((_options$additionalDi = options === null || options === void 0 ? void 0 : options.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2); 31370 31371 if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) { 31372 throw new RangeError('additionalDigits must be 0, 1 or 2'); 31373 } 31374 31375 if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) { 31376 return new Date(NaN); 31377 } 31378 31379 var dateStrings = splitDateString(argument); 31380 var date; 31381 31382 if (dateStrings.date) { 31383 var parseYearResult = parseYear(dateStrings.date, additionalDigits); 31384 date = parseDate(parseYearResult.restDateString, parseYearResult.year); 31385 } 31386 31387 if (!date || isNaN(date.getTime())) { 31388 return new Date(NaN); 31389 } 31390 31391 var timestamp = date.getTime(); 31392 var time = 0; 31393 var offset; 31394 31395 if (dateStrings.time) { 31396 time = parseTime(dateStrings.time); 31397 31398 if (isNaN(time)) { 31399 return new Date(NaN); 31400 } 31401 } 31402 31403 if (dateStrings.timezone) { 31404 offset = parseTimezone(dateStrings.timezone); 31405 31406 if (isNaN(offset)) { 31407 return new Date(NaN); 31408 } 31409 } else { 31410 var dirtyDate = new Date(timestamp + time); // js parsed string assuming it's in UTC timezone 31411 // but we need it to be parsed in our timezone 31412 // so we use utc values to build date in our timezone. 31413 // Year values from 0 to 99 map to the years 1900 to 1999 31414 // so set year explicitly with setFullYear. 31415 31416 var result = new Date(0); 31417 result.setFullYear(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate()); 31418 result.setHours(dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds()); 31419 return result; 31420 } 31421 31422 return new Date(timestamp + time + offset); 31423} 31424var patterns = { 31425 dateTimeDelimiter: /[T ]/, 31426 timeZoneDelimiter: /[Z ]/i, 31427 timezone: /([Z+-].*)$/ 31428}; 31429var dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/; 31430var timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/; 31431var timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/; 31432 31433function splitDateString(dateString) { 31434 var dateStrings = {}; 31435 var array = dateString.split(patterns.dateTimeDelimiter); 31436 var timeString; // The regex match should only return at maximum two array elements. 31437 // [date], [time], or [date, time]. 31438 31439 if (array.length > 2) { 31440 return dateStrings; 31441 } 31442 31443 if (/:/.test(array[0])) { 31444 timeString = array[0]; 31445 } else { 31446 dateStrings.date = array[0]; 31447 timeString = array[1]; 31448 31449 if (patterns.timeZoneDelimiter.test(dateStrings.date)) { 31450 dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0]; 31451 timeString = dateString.substr(dateStrings.date.length, dateString.length); 31452 } 31453 } 31454 31455 if (timeString) { 31456 var token = patterns.timezone.exec(timeString); 31457 31458 if (token) { 31459 dateStrings.time = timeString.replace(token[1], ''); 31460 dateStrings.timezone = token[1]; 31461 } else { 31462 dateStrings.time = timeString; 31463 } 31464 } 31465 31466 return dateStrings; 31467} 31468 31469function parseYear(dateString, additionalDigits) { 31470 var regex = new RegExp('^(?:(\\d{4}|[+-]\\d{' + (4 + additionalDigits) + '})|(\\d{2}|[+-]\\d{' + (2 + additionalDigits) + '})$)'); 31471 var captures = dateString.match(regex); // Invalid ISO-formatted year 31472 31473 if (!captures) return { 31474 year: NaN, 31475 restDateString: '' 31476 }; 31477 var year = captures[1] ? parseInt(captures[1]) : null; 31478 var century = captures[2] ? parseInt(captures[2]) : null; // either year or century is null, not both 31479 31480 return { 31481 year: century === null ? year : century * 100, 31482 restDateString: dateString.slice((captures[1] || captures[2]).length) 31483 }; 31484} 31485 31486function parseDate(dateString, year) { 31487 // Invalid ISO-formatted year 31488 if (year === null) return new Date(NaN); 31489 var captures = dateString.match(dateRegex); // Invalid ISO-formatted string 31490 31491 if (!captures) return new Date(NaN); 31492 var isWeekDate = !!captures[4]; 31493 var dayOfYear = parseDateUnit(captures[1]); 31494 var month = parseDateUnit(captures[2]) - 1; 31495 var day = parseDateUnit(captures[3]); 31496 var week = parseDateUnit(captures[4]); 31497 var dayOfWeek = parseDateUnit(captures[5]) - 1; 31498 31499 if (isWeekDate) { 31500 if (!validateWeekDate(year, week, dayOfWeek)) { 31501 return new Date(NaN); 31502 } 31503 31504 return dayOfISOWeekYear(year, week, dayOfWeek); 31505 } else { 31506 var date = new Date(0); 31507 31508 if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) { 31509 return new Date(NaN); 31510 } 31511 31512 date.setUTCFullYear(year, month, Math.max(dayOfYear, day)); 31513 return date; 31514 } 31515} 31516 31517function parseDateUnit(value) { 31518 return value ? parseInt(value) : 1; 31519} 31520 31521function parseTime(timeString) { 31522 var captures = timeString.match(timeRegex); 31523 if (!captures) return NaN; // Invalid ISO-formatted time 31524 31525 var hours = parseTimeUnit(captures[1]); 31526 var minutes = parseTimeUnit(captures[2]); 31527 var seconds = parseTimeUnit(captures[3]); 31528 31529 if (!validateTime(hours, minutes, seconds)) { 31530 return NaN; 31531 } 31532 31533 return hours * _constants_index_js__WEBPACK_IMPORTED_MODULE_2__.millisecondsInHour + minutes * _constants_index_js__WEBPACK_IMPORTED_MODULE_2__.millisecondsInMinute + seconds * 1000; 31534} 31535 31536function parseTimeUnit(value) { 31537 return value && parseFloat(value.replace(',', '.')) || 0; 31538} 31539 31540function parseTimezone(timezoneString) { 31541 if (timezoneString === 'Z') return 0; 31542 var captures = timezoneString.match(timezoneRegex); 31543 if (!captures) return 0; 31544 var sign = captures[1] === '+' ? -1 : 1; 31545 var hours = parseInt(captures[2]); 31546 var minutes = captures[3] && parseInt(captures[3]) || 0; 31547 31548 if (!validateTimezone(hours, minutes)) { 31549 return NaN; 31550 } 31551 31552 return sign * (hours * _constants_index_js__WEBPACK_IMPORTED_MODULE_2__.millisecondsInHour + minutes * _constants_index_js__WEBPACK_IMPORTED_MODULE_2__.millisecondsInMinute); 31553} 31554 31555function dayOfISOWeekYear(isoWeekYear, week, day) { 31556 var date = new Date(0); 31557 date.setUTCFullYear(isoWeekYear, 0, 4); 31558 var fourthOfJanuaryDay = date.getUTCDay() || 7; 31559 var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay; 31560 date.setUTCDate(date.getUTCDate() + diff); 31561 return date; 31562} // Validation functions 31563// February is null to handle the leap year (using ||) 31564 31565 31566var daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; 31567 31568function isLeapYearIndex(year) { 31569 return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; 31570} 31571 31572function validateDate(year, month, date) { 31573 return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28)); 31574} 31575 31576function validateDayOfYearDate(year, dayOfYear) { 31577 return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365); 31578} 31579 31580function validateWeekDate(_year, week, day) { 31581 return week >= 1 && week <= 53 && day >= 0 && day <= 6; 31582} 31583 31584function validateTime(hours, minutes, seconds) { 31585 if (hours === 24) { 31586 return minutes === 0 && seconds === 0; 31587 } 31588 31589 return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25; 31590} 31591 31592function validateTimezone(_hours, minutes) { 31593 return minutes >= 0 && minutes <= 59; 31594} 31595 31596/***/ }), 31597
vendor: 1,542 bytes, lines 31598-31642
31598/***/ "./node_modules/date-fns/esm/parse/_lib/Parser.js": 31599/*!********************************************************!*\ 31600 !*** ./node_modules/date-fns/esm/parse/_lib/Parser.js ***! 31601 \********************************************************/ 31602/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 31603 31604"use strict"; 31605__webpack_require__.r(__webpack_exports__); 31606/* harmony export */ __webpack_require__.d(__webpack_exports__, { 31607/* harmony export */ "Parser": function() { return /* binding */ Parser; } 31608/* harmony export */ }); 31609/* harmony import */ var _Setter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Setter.js */ "./node_modules/date-fns/esm/parse/_lib/Setter.js"); 31610function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 31611 31612 31613class Parser { 31614 constructor() { 31615 _defineProperty(this, "incompatibleTokens", void 0); 31616 31617 _defineProperty(this, "priority", void 0); 31618 31619 _defineProperty(this, "subPriority", void 0); 31620 } 31621 31622 run(dateString, token, match, options) { 31623 var result = this.parse(dateString, token, match, options); 31624 31625 if (!result) { 31626 return null; 31627 } 31628 31629 return { 31630 setter: new _Setter_js__WEBPACK_IMPORTED_MODULE_0__.ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority), 31631 rest: result.rest 31632 }; 31633 } 31634 31635 validate(_utcDate, _value, _options) { 31636 return true; 31637 } 31638 31639} 31640 31641/***/ }), 31642
vendor: 2,291 bytes, lines 31643-31716
31643/***/ "./node_modules/date-fns/esm/parse/_lib/Setter.js": 31644/*!********************************************************!*\ 31645 !*** ./node_modules/date-fns/esm/parse/_lib/Setter.js ***! 31646 \********************************************************/ 31647/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 31648 31649"use strict"; 31650__webpack_require__.r(__webpack_exports__); 31651/* harmony export */ __webpack_require__.d(__webpack_exports__, { 31652/* harmony export */ "DateToSystemTimezoneSetter": function() { return /* binding */ DateToSystemTimezoneSetter; }, 31653/* harmony export */ "Setter": function() { return /* binding */ Setter; }, 31654/* harmony export */ "ValueSetter": function() { return /* binding */ ValueSetter; } 31655/* harmony export */ }); 31656function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 31657 31658var TIMEZONE_UNIT_PRIORITY = 10; 31659class Setter { 31660 constructor() { 31661 _defineProperty(this, "priority", void 0); 31662 31663 _defineProperty(this, "subPriority", 0); 31664 } 31665 31666 validate(_utcDate, _options) { 31667 return true; 31668 } 31669 31670} 31671class ValueSetter extends Setter { 31672 constructor(value, validateValue, setValue, priority, subPriority) { 31673 super(); 31674 this.value = value; 31675 this.validateValue = validateValue; 31676 this.setValue = setValue; 31677 this.priority = priority; 31678 31679 if (subPriority) { 31680 this.subPriority = subPriority; 31681 } 31682 } 31683 31684 validate(utcDate, options) { 31685 return this.validateValue(utcDate, this.value, options); 31686 } 31687 31688 set(utcDate, flags, options) { 31689 return this.setValue(utcDate, flags, this.value, options); 31690 } 31691 31692} 31693class DateToSystemTimezoneSetter extends Setter { 31694 constructor() { 31695 super(...arguments); 31696 31697 _defineProperty(this, "priority", TIMEZONE_UNIT_PRIORITY); 31698 31699 _defineProperty(this, "subPriority", -1); 31700 } 31701 31702 set(date, flags) { 31703 if (flags.timestampIsSet) { 31704 return date; 31705 } 31706 31707 var convertedDate = new Date(0); 31708 convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate()); 31709 convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds()); 31710 return convertedDate; 31711 } 31712 31713} 31714 31715/***/ }), 31716
vendor: 1,853 bytes, lines 31717-31777
31717/***/ "./node_modules/date-fns/esm/parse/_lib/constants.js": 31718/*!***********************************************************!*\ 31719 !*** ./node_modules/date-fns/esm/parse/_lib/constants.js ***! 31720 \***********************************************************/ 31721/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 31722 31723"use strict"; 31724__webpack_require__.r(__webpack_exports__); 31725/* harmony export */ __webpack_require__.d(__webpack_exports__, { 31726/* harmony export */ "numericPatterns": function() { return /* binding */ numericPatterns; }, 31727/* harmony export */ "timezonePatterns": function() { return /* binding */ timezonePatterns; } 31728/* harmony export */ }); 31729var numericPatterns = { 31730 month: /^(1[0-2]|0?\d)/, 31731 // 0 to 12 31732 date: /^(3[0-1]|[0-2]?\d)/, 31733 // 0 to 31 31734 dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, 31735 // 0 to 366 31736 week: /^(5[0-3]|[0-4]?\d)/, 31737 // 0 to 53 31738 hour23h: /^(2[0-3]|[0-1]?\d)/, 31739 // 0 to 23 31740 hour24h: /^(2[0-4]|[0-1]?\d)/, 31741 // 0 to 24 31742 hour11h: /^(1[0-1]|0?\d)/, 31743 // 0 to 11 31744 hour12h: /^(1[0-2]|0?\d)/, 31745 // 0 to 12 31746 minute: /^[0-5]?\d/, 31747 // 0 to 59 31748 second: /^[0-5]?\d/, 31749 // 0 to 59 31750 singleDigit: /^\d/, 31751 // 0 to 9 31752 twoDigits: /^\d{1,2}/, 31753 // 0 to 99 31754 threeDigits: /^\d{1,3}/, 31755 // 0 to 999 31756 fourDigits: /^\d{1,4}/, 31757 // 0 to 9999 31758 anyDigitsSigned: /^-?\d+/, 31759 singleDigitSigned: /^-?\d/, 31760 // 0 to 9, -0 to -9 31761 twoDigitsSigned: /^-?\d{1,2}/, 31762 // 0 to 99, -0 to -99 31763 threeDigitsSigned: /^-?\d{1,3}/, 31764 // 0 to 999, -0 to -999 31765 fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999 31766 31767}; 31768var timezonePatterns = { 31769 basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, 31770 basic: /^([+-])(\d{2})(\d{2})|Z/, 31771 basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, 31772 extended: /^([+-])(\d{2}):(\d{2})|Z/, 31773 extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ 31774}; 31775 31776/***/ }), 31777
vendor: 2,453 bytes, lines 31778-31846
31778/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js": 31779/*!****************************************************************************!*\ 31780 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js ***! 31781 \****************************************************************************/ 31782/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 31783 31784"use strict"; 31785__webpack_require__.r(__webpack_exports__); 31786/* harmony export */ __webpack_require__.d(__webpack_exports__, { 31787/* harmony export */ "AMPMMidnightParser": function() { return /* binding */ AMPMMidnightParser; } 31788/* harmony export */ }); 31789/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 31790/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 31791function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 31792 31793 31794 31795class AMPMMidnightParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 31796 constructor() { 31797 super(...arguments); 31798 31799 _defineProperty(this, "priority", 80); 31800 31801 _defineProperty(this, "incompatibleTokens", ['a', 'B', 'H', 'k', 't', 'T']); 31802 } 31803 31804 parse(dateString, token, match) { 31805 switch (token) { 31806 case 'b': 31807 case 'bb': 31808 case 'bbb': 31809 return match.dayPeriod(dateString, { 31810 width: 'abbreviated', 31811 context: 'formatting' 31812 }) || match.dayPeriod(dateString, { 31813 width: 'narrow', 31814 context: 'formatting' 31815 }); 31816 31817 case 'bbbbb': 31818 return match.dayPeriod(dateString, { 31819 width: 'narrow', 31820 context: 'formatting' 31821 }); 31822 31823 case 'bbbb': 31824 default: 31825 return match.dayPeriod(dateString, { 31826 width: 'wide', 31827 context: 'formatting' 31828 }) || match.dayPeriod(dateString, { 31829 width: 'abbreviated', 31830 context: 'formatting' 31831 }) || match.dayPeriod(dateString, { 31832 width: 'narrow', 31833 context: 'formatting' 31834 }); 31835 } 31836 } 31837 31838 set(date, _flags, value) { 31839 date.setUTCHours((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.dayPeriodEnumToHours)(value), 0, 0, 0); 31840 return date; 31841 } 31842 31843} 31844 31845/***/ }), 31846
vendor: 2,397 bytes, lines 31847-31915
31847/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js": 31848/*!********************************************************************!*\ 31849 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js ***! 31850 \********************************************************************/ 31851/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 31852 31853"use strict"; 31854__webpack_require__.r(__webpack_exports__); 31855/* harmony export */ __webpack_require__.d(__webpack_exports__, { 31856/* harmony export */ "AMPMParser": function() { return /* binding */ AMPMParser; } 31857/* harmony export */ }); 31858/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 31859/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 31860function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 31861 31862 31863 31864class AMPMParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 31865 constructor() { 31866 super(...arguments); 31867 31868 _defineProperty(this, "priority", 80); 31869 31870 _defineProperty(this, "incompatibleTokens", ['b', 'B', 'H', 'k', 't', 'T']); 31871 } 31872 31873 parse(dateString, token, match) { 31874 switch (token) { 31875 case 'a': 31876 case 'aa': 31877 case 'aaa': 31878 return match.dayPeriod(dateString, { 31879 width: 'abbreviated', 31880 context: 'formatting' 31881 }) || match.dayPeriod(dateString, { 31882 width: 'narrow', 31883 context: 'formatting' 31884 }); 31885 31886 case 'aaaaa': 31887 return match.dayPeriod(dateString, { 31888 width: 'narrow', 31889 context: 'formatting' 31890 }); 31891 31892 case 'aaaa': 31893 default: 31894 return match.dayPeriod(dateString, { 31895 width: 'wide', 31896 context: 'formatting' 31897 }) || match.dayPeriod(dateString, { 31898 width: 'abbreviated', 31899 context: 'formatting' 31900 }) || match.dayPeriod(dateString, { 31901 width: 'narrow', 31902 context: 'formatting' 31903 }); 31904 } 31905 } 31906 31907 set(date, _flags, value) { 31908 date.setUTCHours((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.dayPeriodEnumToHours)(value), 0, 0, 0); 31909 return date; 31910 } 31911 31912} 31913 31914/***/ }), 31915
vendor: 2,749 bytes, lines 31916-31985
31916/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js": 31917/*!********************************************************************!*\ 31918 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js ***! 31919 \********************************************************************/ 31920/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 31921 31922"use strict"; 31923__webpack_require__.r(__webpack_exports__); 31924/* harmony export */ __webpack_require__.d(__webpack_exports__, { 31925/* harmony export */ "DateParser": function() { return /* binding */ DateParser; } 31926/* harmony export */ }); 31927/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 31928/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 31929/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 31930function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 31931 31932 31933 31934 31935var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; 31936var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Day of the month 31937 31938class DateParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 31939 constructor() { 31940 super(...arguments); 31941 31942 _defineProperty(this, "priority", 90); 31943 31944 _defineProperty(this, "subPriority", 1); 31945 31946 _defineProperty(this, "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); 31947 } 31948 31949 parse(dateString, token, match) { 31950 switch (token) { 31951 case 'd': 31952 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.date, dateString); 31953 31954 case 'do': 31955 return match.ordinalNumber(dateString, { 31956 unit: 'date' 31957 }); 31958 31959 default: 31960 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 31961 } 31962 } 31963 31964 validate(date, value) { 31965 var year = date.getUTCFullYear(); 31966 var isLeapYear = (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.isLeapYearIndex)(year); 31967 var month = date.getUTCMonth(); 31968 31969 if (isLeapYear) { 31970 return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month]; 31971 } else { 31972 return value >= 1 && value <= DAYS_IN_MONTH[month]; 31973 } 31974 } 31975 31976 set(date, _flags, value) { 31977 date.setUTCDate(value); 31978 date.setUTCHours(0, 0, 0, 0); 31979 return date; 31980 } 31981 31982} 31983 31984/***/ }), 31985
vendor: 2,574 bytes, lines 31986-32052
31986/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js": 31987/*!*************************************************************************!*\ 31988 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js ***! 31989 \*************************************************************************/ 31990/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 31991 31992"use strict"; 31993__webpack_require__.r(__webpack_exports__); 31994/* harmony export */ __webpack_require__.d(__webpack_exports__, { 31995/* harmony export */ "DayOfYearParser": function() { return /* binding */ DayOfYearParser; } 31996/* harmony export */ }); 31997/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 31998/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 31999/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32000function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32001 32002 32003 32004 32005class DayOfYearParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32006 constructor() { 32007 super(...arguments); 32008 32009 _defineProperty(this, "priority", 90); 32010 32011 _defineProperty(this, "subpriority", 1); 32012 32013 _defineProperty(this, "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']); 32014 } 32015 32016 parse(dateString, token, match) { 32017 switch (token) { 32018 case 'D': 32019 case 'DD': 32020 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.dayOfYear, dateString); 32021 32022 case 'Do': 32023 return match.ordinalNumber(dateString, { 32024 unit: 'date' 32025 }); 32026 32027 default: 32028 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 32029 } 32030 } 32031 32032 validate(date, value) { 32033 var year = date.getUTCFullYear(); 32034 var isLeapYear = (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.isLeapYearIndex)(year); 32035 32036 if (isLeapYear) { 32037 return value >= 1 && value <= 366; 32038 } else { 32039 return value >= 1 && value <= 365; 32040 } 32041 } 32042 32043 set(date, _flags, value) { 32044 date.setUTCMonth(0, value); 32045 date.setUTCHours(0, 0, 0, 0); 32046 return date; 32047 } 32048 32049} 32050 32051/***/ }), 32052
vendor: 2,993 bytes, lines 32053-32146
32053/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js": 32054/*!*******************************************************************!*\ 32055 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js ***! 32056 \*******************************************************************/ 32057/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32058 32059"use strict"; 32060__webpack_require__.r(__webpack_exports__); 32061/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32062/* harmony export */ "DayParser": function() { return /* binding */ DayParser; } 32063/* harmony export */ }); 32064/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32065/* harmony import */ var _lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_lib/setUTCDay/index.js */ "./node_modules/date-fns/esm/_lib/setUTCDay/index.js"); 32066function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32067 32068 32069 // Day of week 32070 32071class DayParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32072 constructor() { 32073 super(...arguments); 32074 32075 _defineProperty(this, "priority", 90); 32076 32077 _defineProperty(this, "incompatibleTokens", ['D', 'i', 'e', 'c', 't', 'T']); 32078 } 32079 32080 parse(dateString, token, match) { 32081 switch (token) { 32082 // Tue 32083 case 'E': 32084 case 'EE': 32085 case 'EEE': 32086 return match.day(dateString, { 32087 width: 'abbreviated', 32088 context: 'formatting' 32089 }) || match.day(dateString, { 32090 width: 'short', 32091 context: 'formatting' 32092 }) || match.day(dateString, { 32093 width: 'narrow', 32094 context: 'formatting' 32095 }); 32096 // T 32097 32098 case 'EEEEE': 32099 return match.day(dateString, { 32100 width: 'narrow', 32101 context: 'formatting' 32102 }); 32103 // Tu 32104 32105 case 'EEEEEE': 32106 return match.day(dateString, { 32107 width: 'short', 32108 context: 'formatting' 32109 }) || match.day(dateString, { 32110 width: 'narrow', 32111 context: 'formatting' 32112 }); 32113 // Tuesday 32114 32115 case 'EEEE': 32116 default: 32117 return match.day(dateString, { 32118 width: 'wide', 32119 context: 'formatting' 32120 }) || match.day(dateString, { 32121 width: 'abbreviated', 32122 context: 'formatting' 32123 }) || match.day(dateString, { 32124 width: 'short', 32125 context: 'formatting' 32126 }) || match.day(dateString, { 32127 width: 'narrow', 32128 context: 'formatting' 32129 }); 32130 } 32131 } 32132 32133 validate(_date, value) { 32134 return value >= 0 && value <= 6; 32135 } 32136 32137 set(date, _flags, value, options) { 32138 date = (0,_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, value, options); 32139 date.setUTCHours(0, 0, 0, 0); 32140 return date; 32141 } 32142 32143} 32144 32145/***/ }), 32146
vendor: 2,485 bytes, lines 32147-32216
32147/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js": 32148/*!*************************************************************************!*\ 32149 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js ***! 32150 \*************************************************************************/ 32151/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32152 32153"use strict"; 32154__webpack_require__.r(__webpack_exports__); 32155/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32156/* harmony export */ "DayPeriodParser": function() { return /* binding */ DayPeriodParser; } 32157/* harmony export */ }); 32158/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32159/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32160function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32161 32162 32163 // in the morning, in the afternoon, in the evening, at night 32164 32165class DayPeriodParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32166 constructor() { 32167 super(...arguments); 32168 32169 _defineProperty(this, "priority", 80); 32170 32171 _defineProperty(this, "incompatibleTokens", ['a', 'b', 't', 'T']); 32172 } 32173 32174 parse(dateString, token, match) { 32175 switch (token) { 32176 case 'B': 32177 case 'BB': 32178 case 'BBB': 32179 return match.dayPeriod(dateString, { 32180 width: 'abbreviated', 32181 context: 'formatting' 32182 }) || match.dayPeriod(dateString, { 32183 width: 'narrow', 32184 context: 'formatting' 32185 }); 32186 32187 case 'BBBBB': 32188 return match.dayPeriod(dateString, { 32189 width: 'narrow', 32190 context: 'formatting' 32191 }); 32192 32193 case 'BBBB': 32194 default: 32195 return match.dayPeriod(dateString, { 32196 width: 'wide', 32197 context: 'formatting' 32198 }) || match.dayPeriod(dateString, { 32199 width: 'abbreviated', 32200 context: 'formatting' 32201 }) || match.dayPeriod(dateString, { 32202 width: 'narrow', 32203 context: 'formatting' 32204 }); 32205 } 32206 } 32207 32208 set(date, _flags, value) { 32209 date.setUTCHours((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.dayPeriodEnumToHours)(value), 0, 0, 0); 32210 return date; 32211 } 32212 32213} 32214 32215/***/ }), 32216
vendor: 2,046 bytes, lines 32217-32282
32217/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js": 32218/*!*******************************************************************!*\ 32219 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js ***! 32220 \*******************************************************************/ 32221/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32222 32223"use strict"; 32224__webpack_require__.r(__webpack_exports__); 32225/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32226/* harmony export */ "EraParser": function() { return /* binding */ EraParser; } 32227/* harmony export */ }); 32228/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32229function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32230 32231 32232class EraParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32233 constructor() { 32234 super(...arguments); 32235 32236 _defineProperty(this, "priority", 140); 32237 32238 _defineProperty(this, "incompatibleTokens", ['R', 'u', 't', 'T']); 32239 } 32240 32241 parse(dateString, token, match) { 32242 switch (token) { 32243 // AD, BC 32244 case 'G': 32245 case 'GG': 32246 case 'GGG': 32247 return match.era(dateString, { 32248 width: 'abbreviated' 32249 }) || match.era(dateString, { 32250 width: 'narrow' 32251 }); 32252 // A, B 32253 32254 case 'GGGGG': 32255 return match.era(dateString, { 32256 width: 'narrow' 32257 }); 32258 // Anno Domini, Before Christ 32259 32260 case 'GGGG': 32261 default: 32262 return match.era(dateString, { 32263 width: 'wide' 32264 }) || match.era(dateString, { 32265 width: 'abbreviated' 32266 }) || match.era(dateString, { 32267 width: 'narrow' 32268 }); 32269 } 32270 } 32271 32272 set(date, flags, value) { 32273 flags.era = value; 32274 date.setUTCFullYear(value, 0, 1); 32275 date.setUTCHours(0, 0, 0, 0); 32276 return date; 32277 } 32278 32279} 32280 32281/***/ }), 32282
vendor: 1,865 bytes, lines 32283-32326
32283/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js": 32284/*!****************************************************************************!*\ 32285 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js ***! 32286 \****************************************************************************/ 32287/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32288 32289"use strict"; 32290__webpack_require__.r(__webpack_exports__); 32291/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32292/* harmony export */ "ExtendedYearParser": function() { return /* binding */ ExtendedYearParser; } 32293/* harmony export */ }); 32294/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32295/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32296function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32297 32298 32299 32300class ExtendedYearParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32301 constructor() { 32302 super(...arguments); 32303 32304 _defineProperty(this, "priority", 130); 32305 32306 _defineProperty(this, "incompatibleTokens", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']); 32307 } 32308 32309 parse(dateString, token) { 32310 if (token === 'u') { 32311 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigitsSigned)(4, dateString); 32312 } 32313 32314 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigitsSigned)(token.length, dateString); 32315 } 32316 32317 set(date, _flags, value) { 32318 date.setUTCFullYear(value, 0, 1); 32319 date.setUTCHours(0, 0, 0, 0); 32320 return date; 32321 } 32322 32323} 32324 32325/***/ }), 32326
vendor: 1,867 bytes, lines 32327-32369
32327/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js": 32328/*!********************************************************************************!*\ 32329 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js ***! 32330 \********************************************************************************/ 32331/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32332 32333"use strict"; 32334__webpack_require__.r(__webpack_exports__); 32335/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32336/* harmony export */ "FractionOfSecondParser": function() { return /* binding */ FractionOfSecondParser; } 32337/* harmony export */ }); 32338/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32339/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32340function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32341 32342 32343 32344class FractionOfSecondParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32345 constructor() { 32346 super(...arguments); 32347 32348 _defineProperty(this, "priority", 30); 32349 32350 _defineProperty(this, "incompatibleTokens", ['t', 'T']); 32351 } 32352 32353 parse(dateString, token) { 32354 var valueCallback = function (value) { 32355 return Math.floor(value * Math.pow(10, -token.length + 3)); 32356 }; 32357 32358 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString), valueCallback); 32359 } 32360 32361 set(date, _flags, value) { 32362 date.setUTCMilliseconds(value); 32363 return date; 32364 } 32365 32366} 32367 32368/***/ }), 32369
vendor: 2,360 bytes, lines 32370-32432
32370/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js": 32371/*!*************************************************************************!*\ 32372 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js ***! 32373 \*************************************************************************/ 32374/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32375 32376"use strict"; 32377__webpack_require__.r(__webpack_exports__); 32378/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32379/* harmony export */ "Hour0To11Parser": function() { return /* binding */ Hour0To11Parser; } 32380/* harmony export */ }); 32381/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32382/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 32383/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32384function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32385 32386 32387 32388 32389class Hour0To11Parser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32390 constructor() { 32391 super(...arguments); 32392 32393 _defineProperty(this, "priority", 70); 32394 32395 _defineProperty(this, "incompatibleTokens", ['h', 'H', 'k', 't', 'T']); 32396 } 32397 32398 parse(dateString, token, match) { 32399 switch (token) { 32400 case 'K': 32401 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.hour11h, dateString); 32402 32403 case 'Ko': 32404 return match.ordinalNumber(dateString, { 32405 unit: 'hour' 32406 }); 32407 32408 default: 32409 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 32410 } 32411 } 32412 32413 validate(_date, value) { 32414 return value >= 0 && value <= 11; 32415 } 32416 32417 set(date, _flags, value) { 32418 var isPM = date.getUTCHours() >= 12; 32419 32420 if (isPM && value < 12) { 32421 date.setUTCHours(value + 12, 0, 0, 0); 32422 } else { 32423 date.setUTCHours(value, 0, 0, 0); 32424 } 32425 32426 return date; 32427 } 32428 32429} 32430 32431/***/ }), 32432
vendor: 2,231 bytes, lines 32433-32488
32433/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js": 32434/*!*************************************************************************!*\ 32435 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js ***! 32436 \*************************************************************************/ 32437/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32438 32439"use strict"; 32440__webpack_require__.r(__webpack_exports__); 32441/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32442/* harmony export */ "Hour0to23Parser": function() { return /* binding */ Hour0to23Parser; } 32443/* harmony export */ }); 32444/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32445/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 32446/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32447function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32448 32449 32450 32451 32452class Hour0to23Parser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32453 constructor() { 32454 super(...arguments); 32455 32456 _defineProperty(this, "priority", 70); 32457 32458 _defineProperty(this, "incompatibleTokens", ['a', 'b', 'h', 'K', 'k', 't', 'T']); 32459 } 32460 32461 parse(dateString, token, match) { 32462 switch (token) { 32463 case 'H': 32464 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.hour23h, dateString); 32465 32466 case 'Ho': 32467 return match.ordinalNumber(dateString, { 32468 unit: 'hour' 32469 }); 32470 32471 default: 32472 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 32473 } 32474 } 32475 32476 validate(_date, value) { 32477 return value >= 0 && value <= 23; 32478 } 32479 32480 set(date, _flags, value) { 32481 date.setUTCHours(value, 0, 0, 0); 32482 return date; 32483 } 32484 32485} 32486 32487/***/ }), 32488
vendor: 2,281 bytes, lines 32489-32545
32489/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js": 32490/*!*************************************************************************!*\ 32491 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js ***! 32492 \*************************************************************************/ 32493/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32494 32495"use strict"; 32496__webpack_require__.r(__webpack_exports__); 32497/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32498/* harmony export */ "Hour1To24Parser": function() { return /* binding */ Hour1To24Parser; } 32499/* harmony export */ }); 32500/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32501/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 32502/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32503function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32504 32505 32506 32507 32508class Hour1To24Parser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32509 constructor() { 32510 super(...arguments); 32511 32512 _defineProperty(this, "priority", 70); 32513 32514 _defineProperty(this, "incompatibleTokens", ['a', 'b', 'h', 'H', 'K', 't', 'T']); 32515 } 32516 32517 parse(dateString, token, match) { 32518 switch (token) { 32519 case 'k': 32520 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.hour24h, dateString); 32521 32522 case 'ko': 32523 return match.ordinalNumber(dateString, { 32524 unit: 'hour' 32525 }); 32526 32527 default: 32528 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 32529 } 32530 } 32531 32532 validate(_date, value) { 32533 return value >= 1 && value <= 24; 32534 } 32535 32536 set(date, _flags, value) { 32537 var hours = value <= 24 ? value % 24 : value; 32538 date.setUTCHours(hours, 0, 0, 0); 32539 return date; 32540 } 32541 32542} 32543 32544/***/ }), 32545
vendor: 2,436 bytes, lines 32546-32610
32546/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js": 32547/*!*************************************************************************!*\ 32548 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js ***! 32549 \*************************************************************************/ 32550/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32551 32552"use strict"; 32553__webpack_require__.r(__webpack_exports__); 32554/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32555/* harmony export */ "Hour1to12Parser": function() { return /* binding */ Hour1to12Parser; } 32556/* harmony export */ }); 32557/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32558/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 32559/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32560function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32561 32562 32563 32564 32565class Hour1to12Parser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32566 constructor() { 32567 super(...arguments); 32568 32569 _defineProperty(this, "priority", 70); 32570 32571 _defineProperty(this, "incompatibleTokens", ['H', 'K', 'k', 't', 'T']); 32572 } 32573 32574 parse(dateString, token, match) { 32575 switch (token) { 32576 case 'h': 32577 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.hour12h, dateString); 32578 32579 case 'ho': 32580 return match.ordinalNumber(dateString, { 32581 unit: 'hour' 32582 }); 32583 32584 default: 32585 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 32586 } 32587 } 32588 32589 validate(_date, value) { 32590 return value >= 1 && value <= 12; 32591 } 32592 32593 set(date, _flags, value) { 32594 var isPM = date.getUTCHours() >= 12; 32595 32596 if (isPM && value < 12) { 32597 date.setUTCHours(value + 12, 0, 0, 0); 32598 } else if (!isPM && value === 12) { 32599 date.setUTCHours(0, 0, 0, 0); 32600 } else { 32601 date.setUTCHours(value, 0, 0, 0); 32602 } 32603 32604 return date; 32605 } 32606 32607} 32608 32609/***/ }), 32610
vendor: 3,848 bytes, lines 32611-32724
32611/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js": 32612/*!**********************************************************************!*\ 32613 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js ***! 32614 \**********************************************************************/ 32615/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32616 32617"use strict"; 32618__webpack_require__.r(__webpack_exports__); 32619/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32620/* harmony export */ "ISODayParser": function() { return /* binding */ ISODayParser; } 32621/* harmony export */ }); 32622/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32623/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32624/* harmony import */ var _lib_setUTCISODay_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/setUTCISODay/index.js */ "./node_modules/date-fns/esm/_lib/setUTCISODay/index.js"); 32625function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32626 32627 32628 32629 // ISO day of week 32630 32631class ISODayParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32632 constructor() { 32633 super(...arguments); 32634 32635 _defineProperty(this, "priority", 90); 32636 32637 _defineProperty(this, "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']); 32638 } 32639 32640 parse(dateString, token, match) { 32641 var valueCallback = function (value) { 32642 if (value === 0) { 32643 return 7; 32644 } 32645 32646 return value; 32647 }; 32648 32649 switch (token) { 32650 // 2 32651 case 'i': 32652 case 'ii': 32653 // 02 32654 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 32655 // 2nd 32656 32657 case 'io': 32658 return match.ordinalNumber(dateString, { 32659 unit: 'day' 32660 }); 32661 // Tue 32662 32663 case 'iii': 32664 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)(match.day(dateString, { 32665 width: 'abbreviated', 32666 context: 'formatting' 32667 }) || match.day(dateString, { 32668 width: 'short', 32669 context: 'formatting' 32670 }) || match.day(dateString, { 32671 width: 'narrow', 32672 context: 'formatting' 32673 }), valueCallback); 32674 // T 32675 32676 case 'iiiii': 32677 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)(match.day(dateString, { 32678 width: 'narrow', 32679 context: 'formatting' 32680 }), valueCallback); 32681 // Tu 32682 32683 case 'iiiiii': 32684 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)(match.day(dateString, { 32685 width: 'short', 32686 context: 'formatting' 32687 }) || match.day(dateString, { 32688 width: 'narrow', 32689 context: 'formatting' 32690 }), valueCallback); 32691 // Tuesday 32692 32693 case 'iiii': 32694 default: 32695 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)(match.day(dateString, { 32696 width: 'wide', 32697 context: 'formatting' 32698 }) || match.day(dateString, { 32699 width: 'abbreviated', 32700 context: 'formatting' 32701 }) || match.day(dateString, { 32702 width: 'short', 32703 context: 'formatting' 32704 }) || match.day(dateString, { 32705 width: 'narrow', 32706 context: 'formatting' 32707 }), valueCallback); 32708 } 32709 } 32710 32711 validate(_date, value) { 32712 return value >= 1 && value <= 7; 32713 } 32714 32715 set(date, _flags, value) { 32716 date = (0,_lib_setUTCISODay_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, value); 32717 date.setUTCHours(0, 0, 0, 0); 32718 return date; 32719 } 32720 32721} 32722 32723/***/ }), 32724
vendor: 2,783 bytes, lines 32725-32785
32725/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js": 32726/*!***************************************************************************!*\ 32727 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js ***! 32728 \***************************************************************************/ 32729/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32730 32731"use strict"; 32732__webpack_require__.r(__webpack_exports__); 32733/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32734/* harmony export */ "ISOTimezoneParser": function() { return /* binding */ ISOTimezoneParser; } 32735/* harmony export */ }); 32736/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32737/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 32738/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32739function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32740 32741 32742 32743 // Timezone (ISO-8601) 32744 32745class ISOTimezoneParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32746 constructor() { 32747 super(...arguments); 32748 32749 _defineProperty(this, "priority", 10); 32750 32751 _defineProperty(this, "incompatibleTokens", ['t', 'T', 'X']); 32752 } 32753 32754 parse(dateString, token) { 32755 switch (token) { 32756 case 'x': 32757 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseTimezonePattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.timezonePatterns.basicOptionalMinutes, dateString); 32758 32759 case 'xx': 32760 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseTimezonePattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.timezonePatterns.basic, dateString); 32761 32762 case 'xxxx': 32763 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseTimezonePattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.timezonePatterns.basicOptionalSeconds, dateString); 32764 32765 case 'xxxxx': 32766 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseTimezonePattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.timezonePatterns.extendedOptionalSeconds, dateString); 32767 32768 case 'xxx': 32769 default: 32770 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseTimezonePattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.timezonePatterns.extended, dateString); 32771 } 32772 } 32773 32774 set(date, flags, value) { 32775 if (flags.timestampIsSet) { 32776 return date; 32777 } 32778 32779 return new Date(date.getTime() - value); 32780 } 32781 32782} 32783 32784/***/ }), 32785
vendor: 2,835 bytes, lines 32786-32846
32786/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js": 32787/*!********************************************************************************!*\ 32788 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js ***! 32789 \********************************************************************************/ 32790/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32791 32792"use strict"; 32793__webpack_require__.r(__webpack_exports__); 32794/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32795/* harmony export */ "ISOTimezoneWithZParser": function() { return /* binding */ ISOTimezoneWithZParser; } 32796/* harmony export */ }); 32797/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32798/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 32799/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32800function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32801 32802 32803 32804 // Timezone (ISO-8601. +00:00 is `'Z'`) 32805 32806class ISOTimezoneWithZParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32807 constructor() { 32808 super(...arguments); 32809 32810 _defineProperty(this, "priority", 10); 32811 32812 _defineProperty(this, "incompatibleTokens", ['t', 'T', 'x']); 32813 } 32814 32815 parse(dateString, token) { 32816 switch (token) { 32817 case 'X': 32818 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseTimezonePattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.timezonePatterns.basicOptionalMinutes, dateString); 32819 32820 case 'XX': 32821 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseTimezonePattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.timezonePatterns.basic, dateString); 32822 32823 case 'XXXX': 32824 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseTimezonePattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.timezonePatterns.basicOptionalSeconds, dateString); 32825 32826 case 'XXXXX': 32827 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseTimezonePattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.timezonePatterns.extendedOptionalSeconds, dateString); 32828 32829 case 'XXX': 32830 default: 32831 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseTimezonePattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.timezonePatterns.extended, dateString); 32832 } 32833 } 32834 32835 set(date, flags, value) { 32836 if (flags.timestampIsSet) { 32837 return date; 32838 } 32839 32840 return new Date(date.getTime() - value); 32841 } 32842 32843} 32844 32845/***/ }), 32846
vendor: 2,820 bytes, lines 32847-32906
32847/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js": 32848/*!***********************************************************************!*\ 32849 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js ***! 32850 \***********************************************************************/ 32851/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32852 32853"use strict"; 32854__webpack_require__.r(__webpack_exports__); 32855/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32856/* harmony export */ "ISOWeekParser": function() { return /* binding */ ISOWeekParser; } 32857/* harmony export */ }); 32858/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32859/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 32860/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32861/* harmony import */ var _lib_setUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_lib/setUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js"); 32862/* harmony import */ var _lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_lib/startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); 32863function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32864 32865 32866 32867 32868 32869 // ISO week of year 32870 32871class ISOWeekParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32872 constructor() { 32873 super(...arguments); 32874 32875 _defineProperty(this, "priority", 100); 32876 32877 _defineProperty(this, "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']); 32878 } 32879 32880 parse(dateString, token, match) { 32881 switch (token) { 32882 case 'I': 32883 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.week, dateString); 32884 32885 case 'Io': 32886 return match.ordinalNumber(dateString, { 32887 unit: 'week' 32888 }); 32889 32890 default: 32891 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 32892 } 32893 } 32894 32895 validate(_date, value) { 32896 return value >= 1 && value <= 53; 32897 } 32898 32899 set(date, _flags, value) { 32900 return (0,_lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])((0,_lib_setUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(date, value)); 32901 } 32902 32903} 32904 32905/***/ }), 32906
vendor: 2,277 bytes, lines 32907-32954
32907/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js": 32908/*!***************************************************************************!*\ 32909 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js ***! 32910 \***************************************************************************/ 32911/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32912 32913"use strict"; 32914__webpack_require__.r(__webpack_exports__); 32915/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32916/* harmony export */ "ISOWeekYearParser": function() { return /* binding */ ISOWeekYearParser; } 32917/* harmony export */ }); 32918/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32919/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32920/* harmony import */ var _lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); 32921function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32922 32923 32924 32925 // ISO week-numbering year 32926 32927class ISOWeekYearParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32928 constructor() { 32929 super(...arguments); 32930 32931 _defineProperty(this, "priority", 130); 32932 32933 _defineProperty(this, "incompatibleTokens", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']); 32934 } 32935 32936 parse(dateString, token) { 32937 if (token === 'R') { 32938 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigitsSigned)(4, dateString); 32939 } 32940 32941 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigitsSigned)(token.length, dateString); 32942 } 32943 32944 set(_date, _flags, value) { 32945 var firstWeekOfYear = new Date(0); 32946 firstWeekOfYear.setUTCFullYear(value, 0, 4); 32947 firstWeekOfYear.setUTCHours(0, 0, 0, 0); 32948 return (0,_lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(firstWeekOfYear); 32949 } 32950 32951} 32952 32953/***/ }), 32954
vendor: 3,799 bytes, lines 32955-33065
32955/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js": 32956/*!************************************************************************!*\ 32957 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js ***! 32958 \************************************************************************/ 32959/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 32960 32961"use strict"; 32962__webpack_require__.r(__webpack_exports__); 32963/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32964/* harmony export */ "LocalDayParser": function() { return /* binding */ LocalDayParser; } 32965/* harmony export */ }); 32966/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 32967/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 32968/* harmony import */ var _lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/setUTCDay/index.js */ "./node_modules/date-fns/esm/_lib/setUTCDay/index.js"); 32969function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 32970 32971 32972 32973 // Local day of week 32974 32975class LocalDayParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 32976 constructor() { 32977 super(...arguments); 32978 32979 _defineProperty(this, "priority", 90); 32980 32981 _defineProperty(this, "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']); 32982 } 32983 32984 parse(dateString, token, match, options) { 32985 var valueCallback = function (value) { 32986 var wholeWeekDays = Math.floor((value - 1) / 7) * 7; 32987 return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; 32988 }; 32989 32990 switch (token) { 32991 // 3 32992 case 'e': 32993 case 'ee': 32994 // 03 32995 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString), valueCallback); 32996 // 3rd 32997 32998 case 'eo': 32999 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)(match.ordinalNumber(dateString, { 33000 unit: 'day' 33001 }), valueCallback); 33002 // Tue 33003 33004 case 'eee': 33005 return match.day(dateString, { 33006 width: 'abbreviated', 33007 context: 'formatting' 33008 }) || match.day(dateString, { 33009 width: 'short', 33010 context: 'formatting' 33011 }) || match.day(dateString, { 33012 width: 'narrow', 33013 context: 'formatting' 33014 }); 33015 // T 33016 33017 case 'eeeee': 33018 return match.day(dateString, { 33019 width: 'narrow', 33020 context: 'formatting' 33021 }); 33022 // Tu 33023 33024 case 'eeeeee': 33025 return match.day(dateString, { 33026 width: 'short', 33027 context: 'formatting' 33028 }) || match.day(dateString, { 33029 width: 'narrow', 33030 context: 'formatting' 33031 }); 33032 // Tuesday 33033 33034 case 'eeee': 33035 default: 33036 return match.day(dateString, { 33037 width: 'wide', 33038 context: 'formatting' 33039 }) || match.day(dateString, { 33040 width: 'abbreviated', 33041 context: 'formatting' 33042 }) || match.day(dateString, { 33043 width: 'short', 33044 context: 'formatting' 33045 }) || match.day(dateString, { 33046 width: 'narrow', 33047 context: 'formatting' 33048 }); 33049 } 33050 } 33051 33052 validate(_date, value) { 33053 return value >= 0 && value <= 6; 33054 } 33055 33056 set(date, _flags, value, options) { 33057 date = (0,_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, value, options); 33058 date.setUTCHours(0, 0, 0, 0); 33059 return date; 33060 } 33061 33062} 33063 33064/***/ }), 33065
vendor: 2,834 bytes, lines 33066-33125
33066/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js": 33067/*!*************************************************************************!*\ 33068 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js ***! 33069 \*************************************************************************/ 33070/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33071 33072"use strict"; 33073__webpack_require__.r(__webpack_exports__); 33074/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33075/* harmony export */ "LocalWeekParser": function() { return /* binding */ LocalWeekParser; } 33076/* harmony export */ }); 33077/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33078/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 33079/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33080/* harmony import */ var _lib_setUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_lib/setUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/setUTCWeek/index.js"); 33081/* harmony import */ var _lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_lib/startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); 33082function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33083 33084 33085 33086 33087 33088 // Local week of year 33089 33090class LocalWeekParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33091 constructor() { 33092 super(...arguments); 33093 33094 _defineProperty(this, "priority", 100); 33095 33096 _defineProperty(this, "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']); 33097 } 33098 33099 parse(dateString, token, match) { 33100 switch (token) { 33101 case 'w': 33102 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.week, dateString); 33103 33104 case 'wo': 33105 return match.ordinalNumber(dateString, { 33106 unit: 'week' 33107 }); 33108 33109 default: 33110 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 33111 } 33112 } 33113 33114 validate(_date, value) { 33115 return value >= 1 && value <= 53; 33116 } 33117 33118 set(date, _flags, value, options) { 33119 return (0,_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])((0,_lib_setUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(date, value, options), options); 33120 } 33121 33122} 33123 33124/***/ }), 33125
vendor: 3,586 bytes, lines 33126-33202
33126/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js": 33127/*!*****************************************************************************!*\ 33128 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js ***! 33129 \*****************************************************************************/ 33130/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33131 33132"use strict"; 33133__webpack_require__.r(__webpack_exports__); 33134/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33135/* harmony export */ "LocalWeekYearParser": function() { return /* binding */ LocalWeekYearParser; } 33136/* harmony export */ }); 33137/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33138/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33139/* harmony import */ var _lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/getUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js"); 33140/* harmony import */ var _lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_lib/startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); 33141function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33142 33143 33144 33145 33146 33147// Local week-numbering year 33148class LocalWeekYearParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33149 constructor() { 33150 super(...arguments); 33151 33152 _defineProperty(this, "priority", 130); 33153 33154 _defineProperty(this, "incompatibleTokens", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']); 33155 } 33156 33157 parse(dateString, token, match) { 33158 var valueCallback = function (year) { 33159 return { 33160 year: year, 33161 isTwoDigitYear: token === 'YY' 33162 }; 33163 }; 33164 33165 switch (token) { 33166 case 'Y': 33167 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(4, dateString), valueCallback); 33168 33169 case 'Yo': 33170 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)(match.ordinalNumber(dateString, { 33171 unit: 'year' 33172 }), valueCallback); 33173 33174 default: 33175 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString), valueCallback); 33176 } 33177 } 33178 33179 validate(_date, value) { 33180 return value.isTwoDigitYear || value.year > 0; 33181 } 33182 33183 set(date, flags, value, options) { 33184 var currentYear = (0,_lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, options); 33185 33186 if (value.isTwoDigitYear) { 33187 var normalizedTwoDigitYear = (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.normalizeTwoDigitYear)(value.year, currentYear); 33188 date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate); 33189 date.setUTCHours(0, 0, 0, 0); 33190 return (0,_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, options); 33191 } 33192 33193 var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; 33194 date.setUTCFullYear(year, 0, options.firstWeekContainsDate); 33195 date.setUTCHours(0, 0, 0, 0); 33196 return (0,_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, options); 33197 } 33198 33199} 33200 33201/***/ }), 33202
vendor: 2,185 bytes, lines 33203-33258
33203/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js": 33204/*!**********************************************************************!*\ 33205 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js ***! 33206 \**********************************************************************/ 33207/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33208 33209"use strict"; 33210__webpack_require__.r(__webpack_exports__); 33211/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33212/* harmony export */ "MinuteParser": function() { return /* binding */ MinuteParser; } 33213/* harmony export */ }); 33214/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33215/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 33216/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33217function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33218 33219 33220 33221 33222class MinuteParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33223 constructor() { 33224 super(...arguments); 33225 33226 _defineProperty(this, "priority", 60); 33227 33228 _defineProperty(this, "incompatibleTokens", ['t', 'T']); 33229 } 33230 33231 parse(dateString, token, match) { 33232 switch (token) { 33233 case 'm': 33234 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.minute, dateString); 33235 33236 case 'mo': 33237 return match.ordinalNumber(dateString, { 33238 unit: 'minute' 33239 }); 33240 33241 default: 33242 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 33243 } 33244 } 33245 33246 validate(_date, value) { 33247 return value >= 0 && value <= 59; 33248 } 33249 33250 set(date, _flags, value) { 33251 date.setUTCMinutes(value, 0, 0); 33252 return date; 33253 } 33254 33255} 33256 33257/***/ }), 33258
vendor: 3,416 bytes, lines 33259-33353
33259/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js": 33260/*!*********************************************************************!*\ 33261 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js ***! 33262 \*********************************************************************/ 33263/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33264 33265"use strict"; 33266__webpack_require__.r(__webpack_exports__); 33267/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33268/* harmony export */ "MonthParser": function() { return /* binding */ MonthParser; } 33269/* harmony export */ }); 33270/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33271/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33272/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 33273function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33274 33275 33276 33277 33278class MonthParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33279 constructor() { 33280 super(...arguments); 33281 33282 _defineProperty(this, "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); 33283 33284 _defineProperty(this, "priority", 110); 33285 } 33286 33287 parse(dateString, token, match) { 33288 var valueCallback = function (value) { 33289 return value - 1; 33290 }; 33291 33292 switch (token) { 33293 // 1, 2, ..., 12 33294 case 'M': 33295 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.month, dateString), valueCallback); 33296 // 01, 02, ..., 12 33297 33298 case 'MM': 33299 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(2, dateString), valueCallback); 33300 // 1st, 2nd, ..., 12th 33301 33302 case 'Mo': 33303 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)(match.ordinalNumber(dateString, { 33304 unit: 'month' 33305 }), valueCallback); 33306 // Jan, Feb, ..., Dec 33307 33308 case 'MMM': 33309 return match.month(dateString, { 33310 width: 'abbreviated', 33311 context: 'formatting' 33312 }) || match.month(dateString, { 33313 width: 'narrow', 33314 context: 'formatting' 33315 }); 33316 // J, F, ..., D 33317 33318 case 'MMMMM': 33319 return match.month(dateString, { 33320 width: 'narrow', 33321 context: 'formatting' 33322 }); 33323 // January, February, ..., December 33324 33325 case 'MMMM': 33326 default: 33327 return match.month(dateString, { 33328 width: 'wide', 33329 context: 'formatting' 33330 }) || match.month(dateString, { 33331 width: 'abbreviated', 33332 context: 'formatting' 33333 }) || match.month(dateString, { 33334 width: 'narrow', 33335 context: 'formatting' 33336 }); 33337 } 33338 } 33339 33340 validate(_date, value) { 33341 return value >= 0 && value <= 11; 33342 } 33343 33344 set(date, _flags, value) { 33345 date.setUTCMonth(value, 1); 33346 date.setUTCHours(0, 0, 0, 0); 33347 return date; 33348 } 33349 33350} 33351 33352/***/ }), 33353
vendor: 2,891 bytes, lines 33354-33440
33354/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js": 33355/*!***********************************************************************!*\ 33356 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js ***! 33357 \***********************************************************************/ 33358/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33359 33360"use strict"; 33361__webpack_require__.r(__webpack_exports__); 33362/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33363/* harmony export */ "QuarterParser": function() { return /* binding */ QuarterParser; } 33364/* harmony export */ }); 33365/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33366/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33367function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33368 33369 33370 33371class QuarterParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33372 constructor() { 33373 super(...arguments); 33374 33375 _defineProperty(this, "priority", 120); 33376 33377 _defineProperty(this, "incompatibleTokens", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']); 33378 } 33379 33380 parse(dateString, token, match) { 33381 switch (token) { 33382 // 1, 2, 3, 4 33383 case 'Q': 33384 case 'QQ': 33385 // 01, 02, 03, 04 33386 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 33387 // 1st, 2nd, 3rd, 4th 33388 33389 case 'Qo': 33390 return match.ordinalNumber(dateString, { 33391 unit: 'quarter' 33392 }); 33393 // Q1, Q2, Q3, Q4 33394 33395 case 'QQQ': 33396 return match.quarter(dateString, { 33397 width: 'abbreviated', 33398 context: 'formatting' 33399 }) || match.quarter(dateString, { 33400 width: 'narrow', 33401 context: 'formatting' 33402 }); 33403 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 33404 33405 case 'QQQQQ': 33406 return match.quarter(dateString, { 33407 width: 'narrow', 33408 context: 'formatting' 33409 }); 33410 // 1st quarter, 2nd quarter, ... 33411 33412 case 'QQQQ': 33413 default: 33414 return match.quarter(dateString, { 33415 width: 'wide', 33416 context: 'formatting' 33417 }) || match.quarter(dateString, { 33418 width: 'abbreviated', 33419 context: 'formatting' 33420 }) || match.quarter(dateString, { 33421 width: 'narrow', 33422 context: 'formatting' 33423 }); 33424 } 33425 } 33426 33427 validate(_date, value) { 33428 return value >= 1 && value <= 4; 33429 } 33430 33431 set(date, _flags, value) { 33432 date.setUTCMonth((value - 1) * 3, 1); 33433 date.setUTCHours(0, 0, 0, 0); 33434 return date; 33435 } 33436 33437} 33438 33439/***/ }), 33440
vendor: 2,182 bytes, lines 33441-33496
33441/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js": 33442/*!**********************************************************************!*\ 33443 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js ***! 33444 \**********************************************************************/ 33445/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33446 33447"use strict"; 33448__webpack_require__.r(__webpack_exports__); 33449/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33450/* harmony export */ "SecondParser": function() { return /* binding */ SecondParser; } 33451/* harmony export */ }); 33452/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33453/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 33454/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33455function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33456 33457 33458 33459 33460class SecondParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33461 constructor() { 33462 super(...arguments); 33463 33464 _defineProperty(this, "priority", 50); 33465 33466 _defineProperty(this, "incompatibleTokens", ['t', 'T']); 33467 } 33468 33469 parse(dateString, token, match) { 33470 switch (token) { 33471 case 's': 33472 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.second, dateString); 33473 33474 case 'so': 33475 return match.ordinalNumber(dateString, { 33476 unit: 'second' 33477 }); 33478 33479 default: 33480 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 33481 } 33482 } 33483 33484 validate(_date, value) { 33485 return value >= 0 && value <= 59; 33486 } 33487 33488 set(date, _flags, value) { 33489 date.setUTCSeconds(value, 0); 33490 return date; 33491 } 33492 33493} 33494 33495/***/ }), 33496
vendor: 3,881 bytes, lines 33497-33607
33497/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js": 33498/*!**********************************************************************************!*\ 33499 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js ***! 33500 \**********************************************************************************/ 33501/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33502 33503"use strict"; 33504__webpack_require__.r(__webpack_exports__); 33505/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33506/* harmony export */ "StandAloneLocalDayParser": function() { return /* binding */ StandAloneLocalDayParser; } 33507/* harmony export */ }); 33508/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33509/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33510/* harmony import */ var _lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/setUTCDay/index.js */ "./node_modules/date-fns/esm/_lib/setUTCDay/index.js"); 33511function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33512 33513 33514 33515 // Stand-alone local day of week 33516 33517class StandAloneLocalDayParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33518 constructor() { 33519 super(...arguments); 33520 33521 _defineProperty(this, "priority", 90); 33522 33523 _defineProperty(this, "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']); 33524 } 33525 33526 parse(dateString, token, match, options) { 33527 var valueCallback = function (value) { 33528 var wholeWeekDays = Math.floor((value - 1) / 7) * 7; 33529 return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; 33530 }; 33531 33532 switch (token) { 33533 // 3 33534 case 'c': 33535 case 'cc': 33536 // 03 33537 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString), valueCallback); 33538 // 3rd 33539 33540 case 'co': 33541 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)(match.ordinalNumber(dateString, { 33542 unit: 'day' 33543 }), valueCallback); 33544 // Tue 33545 33546 case 'ccc': 33547 return match.day(dateString, { 33548 width: 'abbreviated', 33549 context: 'standalone' 33550 }) || match.day(dateString, { 33551 width: 'short', 33552 context: 'standalone' 33553 }) || match.day(dateString, { 33554 width: 'narrow', 33555 context: 'standalone' 33556 }); 33557 // T 33558 33559 case 'ccccc': 33560 return match.day(dateString, { 33561 width: 'narrow', 33562 context: 'standalone' 33563 }); 33564 // Tu 33565 33566 case 'cccccc': 33567 return match.day(dateString, { 33568 width: 'short', 33569 context: 'standalone' 33570 }) || match.day(dateString, { 33571 width: 'narrow', 33572 context: 'standalone' 33573 }); 33574 // Tuesday 33575 33576 case 'cccc': 33577 default: 33578 return match.day(dateString, { 33579 width: 'wide', 33580 context: 'standalone' 33581 }) || match.day(dateString, { 33582 width: 'abbreviated', 33583 context: 'standalone' 33584 }) || match.day(dateString, { 33585 width: 'short', 33586 context: 'standalone' 33587 }) || match.day(dateString, { 33588 width: 'narrow', 33589 context: 'standalone' 33590 }); 33591 } 33592 } 33593 33594 validate(_date, value) { 33595 return value >= 0 && value <= 6; 33596 } 33597 33598 set(date, _flags, value, options) { 33599 date = (0,_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, value, options); 33600 date.setUTCHours(0, 0, 0, 0); 33601 return date; 33602 } 33603 33604} 33605 33606/***/ }), 33607
vendor: 3,486 bytes, lines 33608-33702
33608/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js": 33609/*!*******************************************************************************!*\ 33610 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js ***! 33611 \*******************************************************************************/ 33612/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33613 33614"use strict"; 33615__webpack_require__.r(__webpack_exports__); 33616/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33617/* harmony export */ "StandAloneMonthParser": function() { return /* binding */ StandAloneMonthParser; } 33618/* harmony export */ }); 33619/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33620/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 33621/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33622function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33623 33624 33625 33626 33627class StandAloneMonthParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33628 constructor() { 33629 super(...arguments); 33630 33631 _defineProperty(this, "priority", 110); 33632 33633 _defineProperty(this, "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); 33634 } 33635 33636 parse(dateString, token, match) { 33637 var valueCallback = function (value) { 33638 return value - 1; 33639 }; 33640 33641 switch (token) { 33642 // 1, 2, ..., 12 33643 case 'L': 33644 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNumericPattern)(_constants_js__WEBPACK_IMPORTED_MODULE_2__.numericPatterns.month, dateString), valueCallback); 33645 // 01, 02, ..., 12 33646 33647 case 'LL': 33648 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(2, dateString), valueCallback); 33649 // 1st, 2nd, ..., 12th 33650 33651 case 'Lo': 33652 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)(match.ordinalNumber(dateString, { 33653 unit: 'month' 33654 }), valueCallback); 33655 // Jan, Feb, ..., Dec 33656 33657 case 'LLL': 33658 return match.month(dateString, { 33659 width: 'abbreviated', 33660 context: 'standalone' 33661 }) || match.month(dateString, { 33662 width: 'narrow', 33663 context: 'standalone' 33664 }); 33665 // J, F, ..., D 33666 33667 case 'LLLLL': 33668 return match.month(dateString, { 33669 width: 'narrow', 33670 context: 'standalone' 33671 }); 33672 // January, February, ..., December 33673 33674 case 'LLLL': 33675 default: 33676 return match.month(dateString, { 33677 width: 'wide', 33678 context: 'standalone' 33679 }) || match.month(dateString, { 33680 width: 'abbreviated', 33681 context: 'standalone' 33682 }) || match.month(dateString, { 33683 width: 'narrow', 33684 context: 'standalone' 33685 }); 33686 } 33687 } 33688 33689 validate(_date, value) { 33690 return value >= 0 && value <= 11; 33691 } 33692 33693 set(date, _flags, value) { 33694 date.setUTCMonth(value, 1); 33695 date.setUTCHours(0, 0, 0, 0); 33696 return date; 33697 } 33698 33699} 33700 33701/***/ }), 33702
vendor: 2,961 bytes, lines 33703-33789
33703/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js": 33704/*!*********************************************************************************!*\ 33705 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js ***! 33706 \*********************************************************************************/ 33707/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33708 33709"use strict"; 33710__webpack_require__.r(__webpack_exports__); 33711/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33712/* harmony export */ "StandAloneQuarterParser": function() { return /* binding */ StandAloneQuarterParser; } 33713/* harmony export */ }); 33714/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33715/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33716function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33717 33718 33719 33720class StandAloneQuarterParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33721 constructor() { 33722 super(...arguments); 33723 33724 _defineProperty(this, "priority", 120); 33725 33726 _defineProperty(this, "incompatibleTokens", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']); 33727 } 33728 33729 parse(dateString, token, match) { 33730 switch (token) { 33731 // 1, 2, 3, 4 33732 case 'q': 33733 case 'qq': 33734 // 01, 02, 03, 04 33735 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString); 33736 // 1st, 2nd, 3rd, 4th 33737 33738 case 'qo': 33739 return match.ordinalNumber(dateString, { 33740 unit: 'quarter' 33741 }); 33742 // Q1, Q2, Q3, Q4 33743 33744 case 'qqq': 33745 return match.quarter(dateString, { 33746 width: 'abbreviated', 33747 context: 'standalone' 33748 }) || match.quarter(dateString, { 33749 width: 'narrow', 33750 context: 'standalone' 33751 }); 33752 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 33753 33754 case 'qqqqq': 33755 return match.quarter(dateString, { 33756 width: 'narrow', 33757 context: 'standalone' 33758 }); 33759 // 1st quarter, 2nd quarter, ... 33760 33761 case 'qqqq': 33762 default: 33763 return match.quarter(dateString, { 33764 width: 'wide', 33765 context: 'standalone' 33766 }) || match.quarter(dateString, { 33767 width: 'abbreviated', 33768 context: 'standalone' 33769 }) || match.quarter(dateString, { 33770 width: 'narrow', 33771 context: 'standalone' 33772 }); 33773 } 33774 } 33775 33776 validate(_date, value) { 33777 return value >= 1 && value <= 4; 33778 } 33779 33780 set(date, _flags, value) { 33781 date.setUTCMonth((value - 1) * 3, 1); 33782 date.setUTCHours(0, 0, 0, 0); 33783 return date; 33784 } 33785 33786} 33787 33788/***/ }), 33789
vendor: 1,711 bytes, lines 33790-33829
33790/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js": 33791/*!*************************************************************************************!*\ 33792 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js ***! 33793 \*************************************************************************************/ 33794/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33795 33796"use strict"; 33797__webpack_require__.r(__webpack_exports__); 33798/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33799/* harmony export */ "TimestampMillisecondsParser": function() { return /* binding */ TimestampMillisecondsParser; } 33800/* harmony export */ }); 33801/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33802/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33803function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33804 33805 33806 33807class TimestampMillisecondsParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33808 constructor() { 33809 super(...arguments); 33810 33811 _defineProperty(this, "priority", 20); 33812 33813 _defineProperty(this, "incompatibleTokens", '*'); 33814 } 33815 33816 parse(dateString) { 33817 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseAnyDigitsSigned)(dateString); 33818 } 33819 33820 set(_date, _flags, value) { 33821 return [new Date(value), { 33822 timestampIsSet: true 33823 }]; 33824 } 33825 33826} 33827 33828/***/ }), 33829
vendor: 1,683 bytes, lines 33830-33869
33830/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js": 33831/*!********************************************************************************!*\ 33832 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js ***! 33833 \********************************************************************************/ 33834/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33835 33836"use strict"; 33837__webpack_require__.r(__webpack_exports__); 33838/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33839/* harmony export */ "TimestampSecondsParser": function() { return /* binding */ TimestampSecondsParser; } 33840/* harmony export */ }); 33841/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33842/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33843function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33844 33845 33846 33847class TimestampSecondsParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33848 constructor() { 33849 super(...arguments); 33850 33851 _defineProperty(this, "priority", 40); 33852 33853 _defineProperty(this, "incompatibleTokens", '*'); 33854 } 33855 33856 parse(dateString) { 33857 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseAnyDigitsSigned)(dateString); 33858 } 33859 33860 set(_date, _flags, value) { 33861 return [new Date(value * 1000), { 33862 timestampIsSet: true 33863 }]; 33864 } 33865 33866} 33867 33868/***/ }), 33869
vendor: 3,218 bytes, lines 33870-33949
33870/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js": 33871/*!********************************************************************!*\ 33872 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js ***! 33873 \********************************************************************/ 33874/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33875 33876"use strict"; 33877__webpack_require__.r(__webpack_exports__); 33878/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33879/* harmony export */ "YearParser": function() { return /* binding */ YearParser; } 33880/* harmony export */ }); 33881/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 33882/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 33883function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } 33884 33885 33886 33887// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns 33888// | Year | y | yy | yyy | yyyy | yyyyy | 33889// |----------|-------|----|-------|-------|-------| 33890// | AD 1 | 1 | 01 | 001 | 0001 | 00001 | 33891// | AD 12 | 12 | 12 | 012 | 0012 | 00012 | 33892// | AD 123 | 123 | 23 | 123 | 0123 | 00123 | 33893// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | 33894// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | 33895class YearParser extends _Parser_js__WEBPACK_IMPORTED_MODULE_0__.Parser { 33896 constructor() { 33897 super(...arguments); 33898 33899 _defineProperty(this, "priority", 130); 33900 33901 _defineProperty(this, "incompatibleTokens", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']); 33902 } 33903 33904 parse(dateString, token, match) { 33905 var valueCallback = function (year) { 33906 return { 33907 year: year, 33908 isTwoDigitYear: token === 'yy' 33909 }; 33910 }; 33911 33912 switch (token) { 33913 case 'y': 33914 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(4, dateString), valueCallback); 33915 33916 case 'yo': 33917 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)(match.ordinalNumber(dateString, { 33918 unit: 'year' 33919 }), valueCallback); 33920 33921 default: 33922 return (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.mapValue)((0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.parseNDigits)(token.length, dateString), valueCallback); 33923 } 33924 } 33925 33926 validate(_date, value) { 33927 return value.isTwoDigitYear || value.year > 0; 33928 } 33929 33930 set(date, flags, value) { 33931 var currentYear = date.getUTCFullYear(); 33932 33933 if (value.isTwoDigitYear) { 33934 var normalizedTwoDigitYear = (0,_utils_js__WEBPACK_IMPORTED_MODULE_1__.normalizeTwoDigitYear)(value.year, currentYear); 33935 date.setUTCFullYear(normalizedTwoDigitYear, 0, 1); 33936 date.setUTCHours(0, 0, 0, 0); 33937 return date; 33938 } 33939 33940 var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; 33941 date.setUTCFullYear(year, 0, 1); 33942 date.setUTCHours(0, 0, 0, 0); 33943 return date; 33944 } 33945 33946} 33947 33948/***/ }), 33949
vendor: 12,306 bytes, lines 33950-34102
33950/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/index.js": 33951/*!***************************************************************!*\ 33952 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/index.js ***! 33953 \***************************************************************/ 33954/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 33955 33956"use strict"; 33957__webpack_require__.r(__webpack_exports__); 33958/* harmony export */ __webpack_require__.d(__webpack_exports__, { 33959/* harmony export */ "parsers": function() { return /* binding */ parsers; } 33960/* harmony export */ }); 33961/* harmony import */ var _EraParser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EraParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js"); 33962/* harmony import */ var _YearParser_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./YearParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js"); 33963/* harmony import */ var _LocalWeekYearParser_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LocalWeekYearParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js"); 33964/* harmony import */ var _ISOWeekYearParser_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ISOWeekYearParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js"); 33965/* harmony import */ var _ExtendedYearParser_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ExtendedYearParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js"); 33966/* harmony import */ var _QuarterParser_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./QuarterParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js"); 33967/* harmony import */ var _StandAloneQuarterParser_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./StandAloneQuarterParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js"); 33968/* harmony import */ var _MonthParser_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MonthParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js"); 33969/* harmony import */ var _StandAloneMonthParser_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./StandAloneMonthParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js"); 33970/* harmony import */ var _LocalWeekParser_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./LocalWeekParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js"); 33971/* harmony import */ var _ISOWeekParser_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ISOWeekParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js"); 33972/* harmony import */ var _DateParser_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DateParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js"); 33973/* harmony import */ var _DayOfYearParser_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./DayOfYearParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js"); 33974/* harmony import */ var _DayParser_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DayParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js"); 33975/* harmony import */ var _LocalDayParser_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./LocalDayParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js"); 33976/* harmony import */ var _StandAloneLocalDayParser_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./StandAloneLocalDayParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js"); 33977/* harmony import */ var _ISODayParser_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ISODayParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js"); 33978/* harmony import */ var _AMPMParser_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./AMPMParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js"); 33979/* harmony import */ var _AMPMMidnightParser_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./AMPMMidnightParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js"); 33980/* harmony import */ var _DayPeriodParser_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./DayPeriodParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js"); 33981/* harmony import */ var _Hour1to12Parser_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Hour1to12Parser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js"); 33982/* harmony import */ var _Hour0to23Parser_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Hour0to23Parser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js"); 33983/* harmony import */ var _Hour0To11Parser_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Hour0To11Parser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js"); 33984/* harmony import */ var _Hour1To24Parser_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Hour1To24Parser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js"); 33985/* harmony import */ var _MinuteParser_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./MinuteParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js"); 33986/* harmony import */ var _SecondParser_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./SecondParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js"); 33987/* harmony import */ var _FractionOfSecondParser_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./FractionOfSecondParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js"); 33988/* harmony import */ var _ISOTimezoneWithZParser_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./ISOTimezoneWithZParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js"); 33989/* harmony import */ var _ISOTimezoneParser_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./ISOTimezoneParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js"); 33990/* harmony import */ var _TimestampSecondsParser_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./TimestampSecondsParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js"); 33991/* harmony import */ var _TimestampMillisecondsParser_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./TimestampMillisecondsParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js"); 33992 33993 33994 33995 33996 33997 33998 33999 34000 34001 34002 34003 34004 34005 34006 34007 34008 34009 34010 34011 34012 34013 34014 34015 34016 34017 34018 34019 34020 34021 34022 34023/* 34024 * | | Unit | | Unit | 34025 * |-----|--------------------------------|-----|--------------------------------| 34026 * | a | AM, PM | A* | Milliseconds in day | 34027 * | b | AM, PM, noon, midnight | B | Flexible day period | 34028 * | c | Stand-alone local day of week | C* | Localized hour w/ day period | 34029 * | d | Day of month | D | Day of year | 34030 * | e | Local day of week | E | Day of week | 34031 * | f | | F* | Day of week in month | 34032 * | g* | Modified Julian day | G | Era | 34033 * | h | Hour [1-12] | H | Hour [0-23] | 34034 * | i! | ISO day of week | I! | ISO week of year | 34035 * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | 34036 * | k | Hour [1-24] | K | Hour [0-11] | 34037 * | l* | (deprecated) | L | Stand-alone month | 34038 * | m | Minute | M | Month | 34039 * | n | | N | | 34040 * | o! | Ordinal number modifier | O* | Timezone (GMT) | 34041 * | p | | P | | 34042 * | q | Stand-alone quarter | Q | Quarter | 34043 * | r* | Related Gregorian year | R! | ISO week-numbering year | 34044 * | s | Second | S | Fraction of second | 34045 * | t! | Seconds timestamp | T! | Milliseconds timestamp | 34046 * | u | Extended year | U* | Cyclic year | 34047 * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | 34048 * | w | Local week of year | W* | Week of month | 34049 * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | 34050 * | y | Year (abs) | Y | Local week-numbering year | 34051 * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) | 34052 * 34053 * Letters marked by * are not implemented but reserved by Unicode standard. 34054 * 34055 * Letters marked by ! are non-standard, but implemented by date-fns: 34056 * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs) 34057 * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, 34058 * i.e. 7 for Sunday, 1 for Monday, etc. 34059 * - `I` is ISO week of year, as opposed to `w` which is local week of year. 34060 * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. 34061 * `R` is supposed to be used in conjunction with `I` and `i` 34062 * for universal ISO week-numbering date, whereas 34063 * `Y` is supposed to be used in conjunction with `w` and `e` 34064 * for week-numbering date specific to the locale. 34065 */ 34066 34067var parsers = { 34068 G: new _EraParser_js__WEBPACK_IMPORTED_MODULE_0__.EraParser(), 34069 y: new _YearParser_js__WEBPACK_IMPORTED_MODULE_1__.YearParser(), 34070 Y: new _LocalWeekYearParser_js__WEBPACK_IMPORTED_MODULE_2__.LocalWeekYearParser(), 34071 R: new _ISOWeekYearParser_js__WEBPACK_IMPORTED_MODULE_3__.ISOWeekYearParser(), 34072 u: new _ExtendedYearParser_js__WEBPACK_IMPORTED_MODULE_4__.ExtendedYearParser(), 34073 Q: new _QuarterParser_js__WEBPACK_IMPORTED_MODULE_5__.QuarterParser(), 34074 q: new _StandAloneQuarterParser_js__WEBPACK_IMPORTED_MODULE_6__.StandAloneQuarterParser(), 34075 M: new _MonthParser_js__WEBPACK_IMPORTED_MODULE_7__.MonthParser(), 34076 L: new _StandAloneMonthParser_js__WEBPACK_IMPORTED_MODULE_8__.StandAloneMonthParser(), 34077 w: new _LocalWeekParser_js__WEBPACK_IMPORTED_MODULE_9__.LocalWeekParser(), 34078 I: new _ISOWeekParser_js__WEBPACK_IMPORTED_MODULE_10__.ISOWeekParser(), 34079 d: new _DateParser_js__WEBPACK_IMPORTED_MODULE_11__.DateParser(), 34080 D: new _DayOfYearParser_js__WEBPACK_IMPORTED_MODULE_12__.DayOfYearParser(), 34081 E: new _DayParser_js__WEBPACK_IMPORTED_MODULE_13__.DayParser(), 34082 e: new _LocalDayParser_js__WEBPACK_IMPORTED_MODULE_14__.LocalDayParser(), 34083 c: new _StandAloneLocalDayParser_js__WEBPACK_IMPORTED_MODULE_15__.StandAloneLocalDayParser(), 34084 i: new _ISODayParser_js__WEBPACK_IMPORTED_MODULE_16__.ISODayParser(), 34085 a: new _AMPMParser_js__WEBPACK_IMPORTED_MODULE_17__.AMPMParser(), 34086 b: new _AMPMMidnightParser_js__WEBPACK_IMPORTED_MODULE_18__.AMPMMidnightParser(), 34087 B: new _DayPeriodParser_js__WEBPACK_IMPORTED_MODULE_19__.DayPeriodParser(), 34088 h: new _Hour1to12Parser_js__WEBPACK_IMPORTED_MODULE_20__.Hour1to12Parser(), 34089 H: new _Hour0to23Parser_js__WEBPACK_IMPORTED_MODULE_21__.Hour0to23Parser(), 34090 K: new _Hour0To11Parser_js__WEBPACK_IMPORTED_MODULE_22__.Hour0To11Parser(), 34091 k: new _Hour1To24Parser_js__WEBPACK_IMPORTED_MODULE_23__.Hour1To24Parser(), 34092 m: new _MinuteParser_js__WEBPACK_IMPORTED_MODULE_24__.MinuteParser(), 34093 s: new _SecondParser_js__WEBPACK_IMPORTED_MODULE_25__.SecondParser(), 34094 S: new _FractionOfSecondParser_js__WEBPACK_IMPORTED_MODULE_26__.FractionOfSecondParser(), 34095 X: new _ISOTimezoneWithZParser_js__WEBPACK_IMPORTED_MODULE_27__.ISOTimezoneWithZParser(), 34096 x: new _ISOTimezoneParser_js__WEBPACK_IMPORTED_MODULE_28__.ISOTimezoneParser(), 34097 t: new _TimestampSecondsParser_js__WEBPACK_IMPORTED_MODULE_29__.TimestampSecondsParser(), 34098 T: new _TimestampMillisecondsParser_js__WEBPACK_IMPORTED_MODULE_30__.TimestampMillisecondsParser() 34099}; 34100 34101/***/ }), 34102
vendor: 5,585 bytes, lines 34103-34256
34103/***/ "./node_modules/date-fns/esm/parse/_lib/utils.js": 34104/*!*******************************************************!*\ 34105 !*** ./node_modules/date-fns/esm/parse/_lib/utils.js ***! 34106 \*******************************************************/ 34107/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 34108 34109"use strict"; 34110__webpack_require__.r(__webpack_exports__); 34111/* harmony export */ __webpack_require__.d(__webpack_exports__, { 34112/* harmony export */ "dayPeriodEnumToHours": function() { return /* binding */ dayPeriodEnumToHours; }, 34113/* harmony export */ "isLeapYearIndex": function() { return /* binding */ isLeapYearIndex; }, 34114/* harmony export */ "mapValue": function() { return /* binding */ mapValue; }, 34115/* harmony export */ "normalizeTwoDigitYear": function() { return /* binding */ normalizeTwoDigitYear; }, 34116/* harmony export */ "parseAnyDigitsSigned": function() { return /* binding */ parseAnyDigitsSigned; }, 34117/* harmony export */ "parseNDigits": function() { return /* binding */ parseNDigits; }, 34118/* harmony export */ "parseNDigitsSigned": function() { return /* binding */ parseNDigitsSigned; }, 34119/* harmony export */ "parseNumericPattern": function() { return /* binding */ parseNumericPattern; }, 34120/* harmony export */ "parseTimezonePattern": function() { return /* binding */ parseTimezonePattern; } 34121/* harmony export */ }); 34122/* harmony import */ var _constants_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../constants/index.js */ "./node_modules/date-fns/esm/constants/index.js"); 34123/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 34124 34125 34126function mapValue(parseFnResult, mapFn) { 34127 if (!parseFnResult) { 34128 return parseFnResult; 34129 } 34130 34131 return { 34132 value: mapFn(parseFnResult.value), 34133 rest: parseFnResult.rest 34134 }; 34135} 34136function parseNumericPattern(pattern, dateString) { 34137 var matchResult = dateString.match(pattern); 34138 34139 if (!matchResult) { 34140 return null; 34141 } 34142 34143 return { 34144 value: parseInt(matchResult[0], 10), 34145 rest: dateString.slice(matchResult[0].length) 34146 }; 34147} 34148function parseTimezonePattern(pattern, dateString) { 34149 var matchResult = dateString.match(pattern); 34150 34151 if (!matchResult) { 34152 return null; 34153 } // Input is 'Z' 34154 34155 34156 if (matchResult[0] === 'Z') { 34157 return { 34158 value: 0, 34159 rest: dateString.slice(1) 34160 }; 34161 } 34162 34163 var sign = matchResult[1] === '+' ? 1 : -1; 34164 var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0; 34165 var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0; 34166 var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0; 34167 return { 34168 value: sign * (hours * _constants_index_js__WEBPACK_IMPORTED_MODULE_0__.millisecondsInHour + minutes * _constants_index_js__WEBPACK_IMPORTED_MODULE_0__.millisecondsInMinute + seconds * _constants_index_js__WEBPACK_IMPORTED_MODULE_0__.millisecondsInSecond), 34169 rest: dateString.slice(matchResult[0].length) 34170 }; 34171} 34172function parseAnyDigitsSigned(dateString) { 34173 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__.numericPatterns.anyDigitsSigned, dateString); 34174} 34175function parseNDigits(n, dateString) { 34176 switch (n) { 34177 case 1: 34178 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__.numericPatterns.singleDigit, dateString); 34179 34180 case 2: 34181 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__.numericPatterns.twoDigits, dateString); 34182 34183 case 3: 34184 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__.numericPatterns.threeDigits, dateString); 34185 34186 case 4: 34187 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__.numericPatterns.fourDigits, dateString); 34188 34189 default: 34190 return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), dateString); 34191 } 34192} 34193function parseNDigitsSigned(n, dateString) { 34194 switch (n) { 34195 case 1: 34196 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__.numericPatterns.singleDigitSigned, dateString); 34197 34198 case 2: 34199 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__.numericPatterns.twoDigitsSigned, dateString); 34200 34201 case 3: 34202 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__.numericPatterns.threeDigitsSigned, dateString); 34203 34204 case 4: 34205 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__.numericPatterns.fourDigitsSigned, dateString); 34206 34207 default: 34208 return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), dateString); 34209 } 34210} 34211function dayPeriodEnumToHours(dayPeriod) { 34212 switch (dayPeriod) { 34213 case 'morning': 34214 return 4; 34215 34216 case 'evening': 34217 return 17; 34218 34219 case 'pm': 34220 case 'noon': 34221 case 'afternoon': 34222 return 12; 34223 34224 case 'am': 34225 case 'midnight': 34226 case 'night': 34227 default: 34228 return 0; 34229 } 34230} 34231function normalizeTwoDigitYear(twoDigitYear, currentYear) { 34232 var isCommonEra = currentYear > 0; // Absolute number of the current year: 34233 // 1 -> 1 AC 34234 // 0 -> 1 BC 34235 // -1 -> 2 BC 34236 34237 var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear; 34238 var result; 34239 34240 if (absCurrentYear <= 50) { 34241 result = twoDigitYear || 100; 34242 } else { 34243 var rangeEnd = absCurrentYear + 50; 34244 var rangeEndCentury = Math.floor(rangeEnd / 100) * 100; 34245 var isPreviousCentury = twoDigitYear >= rangeEnd % 100; 34246 result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0); 34247 } 34248 34249 return isCommonEra ? result : 1 - result; 34250} 34251function isLeapYearIndex(year) { 34252 return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; 34253} 34254 34255/***/ }), 34256
vendor: 35,905 bytes, lines 34257-34792
34257/***/ "./node_modules/date-fns/esm/parse/index.js": 34258/*!**************************************************!*\ 34259 !*** ./node_modules/date-fns/esm/parse/index.js ***! 34260 \**************************************************/ 34261/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 34262 34263"use strict"; 34264__webpack_require__.r(__webpack_exports__); 34265/* harmony export */ __webpack_require__.d(__webpack_exports__, { 34266/* harmony export */ "default": function() { return /* binding */ parse; } 34267/* harmony export */ }); 34268/* harmony import */ var _lib_defaultLocale_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/defaultLocale/index.js */ "./node_modules/date-fns/esm/_lib/defaultLocale/index.js"); 34269/* harmony import */ var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../subMilliseconds/index.js */ "./node_modules/date-fns/esm/subMilliseconds/index.js"); 34270/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 34271/* harmony import */ var _lib_assign_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_lib/assign/index.js */ "./node_modules/date-fns/esm/_lib/assign/index.js"); 34272/* harmony import */ var _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_lib/format/longFormatters/index.js */ "./node_modules/date-fns/esm/_lib/format/longFormatters/index.js"); 34273/* harmony import */ var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js"); 34274/* harmony import */ var _lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_lib/protectedTokens/index.js */ "./node_modules/date-fns/esm/_lib/protectedTokens/index.js"); 34275/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 34276/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 34277/* harmony import */ var _lib_Setter_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./_lib/Setter.js */ "./node_modules/date-fns/esm/parse/_lib/Setter.js"); 34278/* harmony import */ var _lib_parsers_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./_lib/parsers/index.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/index.js"); 34279/* harmony import */ var _lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 34280 34281 34282 34283 34284 34285 34286 34287 34288 34289 34290 34291 // This RegExp consists of three parts separated by `|`: 34292// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token 34293// (one of the certain letters followed by `o`) 34294// - (\w)\1* matches any sequences of the same letter 34295// - '' matches two quote characters in a row 34296// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), 34297// except a single quote symbol, which ends the sequence. 34298// Two quote characters do not end the sequence. 34299// If there is no matching single quote 34300// then the sequence will continue until the end of the string. 34301// - . matches any single character unmatched by previous parts of the RegExps 34302 34303var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also 34304// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` 34305 34306var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; 34307var escapedStringRegExp = /^'([^]*?)'?$/; 34308var doubleQuoteRegExp = /''/g; 34309var notWhitespaceRegExp = /\S/; 34310var unescapedLatinCharacterRegExp = /[a-zA-Z]/; 34311/** 34312 * @name parse 34313 * @category Common Helpers 34314 * @summary Parse the date. 34315 * 34316 * @description 34317 * Return the date parsed from string using the given format string. 34318 * 34319 * > â ï¸ Please note that the `format` tokens differ from Moment.js and other libraries. 34320 * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 34321 * 34322 * The characters in the format string wrapped between two single quotes characters (') are escaped. 34323 * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. 34324 * 34325 * Format of the format string is based on Unicode Technical Standard #35: 34326 * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table 34327 * with a few additions (see note 5 below the table). 34328 * 34329 * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited 34330 * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: 34331 * 34332 * ```javascript 34333 * parse('23 AM', 'HH a', new Date()) 34334 * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time 34335 * ``` 34336 * 34337 * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true 34338 * 34339 * Accepted format string patterns: 34340 * | Unit |Prior| Pattern | Result examples | Notes | 34341 * |---------------------------------|-----|---------|-----------------------------------|-------| 34342 * | Era | 140 | G..GGG | AD, BC | | 34343 * | | | GGGG | Anno Domini, Before Christ | 2 | 34344 * | | | GGGGG | A, B | | 34345 * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | 34346 * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | 34347 * | | | yy | 44, 01, 00, 17 | 4 | 34348 * | | | yyy | 044, 001, 123, 999 | 4 | 34349 * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | 34350 * | | | yyyyy | ... | 2,4 | 34351 * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | 34352 * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | 34353 * | | | YY | 44, 01, 00, 17 | 4,6 | 34354 * | | | YYY | 044, 001, 123, 999 | 4 | 34355 * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | 34356 * | | | YYYYY | ... | 2,4 | 34357 * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | 34358 * | | | RR | -43, 01, 00, 17 | 4,5 | 34359 * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | 34360 * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | 34361 * | | | RRRRR | ... | 2,4,5 | 34362 * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | 34363 * | | | uu | -43, 01, 99, -99 | 4 | 34364 * | | | uuu | -043, 001, 123, 999, -999 | 4 | 34365 * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | 34366 * | | | uuuuu | ... | 2,4 | 34367 * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | 34368 * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | 34369 * | | | QQ | 01, 02, 03, 04 | | 34370 * | | | QQQ | Q1, Q2, Q3, Q4 | | 34371 * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | 34372 * | | | QQQQQ | 1, 2, 3, 4 | 4 | 34373 * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | 34374 * | | | qo | 1st, 2nd, 3rd, 4th | 5 | 34375 * | | | qq | 01, 02, 03, 04 | | 34376 * | | | qqq | Q1, Q2, Q3, Q4 | | 34377 * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | 34378 * | | | qqqqq | 1, 2, 3, 4 | 3 | 34379 * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | 34380 * | | | Mo | 1st, 2nd, ..., 12th | 5 | 34381 * | | | MM | 01, 02, ..., 12 | | 34382 * | | | MMM | Jan, Feb, ..., Dec | | 34383 * | | | MMMM | January, February, ..., December | 2 | 34384 * | | | MMMMM | J, F, ..., D | | 34385 * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | 34386 * | | | Lo | 1st, 2nd, ..., 12th | 5 | 34387 * | | | LL | 01, 02, ..., 12 | | 34388 * | | | LLL | Jan, Feb, ..., Dec | | 34389 * | | | LLLL | January, February, ..., December | 2 | 34390 * | | | LLLLL | J, F, ..., D | | 34391 * | Local week of year | 100 | w | 1, 2, ..., 53 | | 34392 * | | | wo | 1st, 2nd, ..., 53th | 5 | 34393 * | | | ww | 01, 02, ..., 53 | | 34394 * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | 34395 * | | | Io | 1st, 2nd, ..., 53th | 5 | 34396 * | | | II | 01, 02, ..., 53 | 5 | 34397 * | Day of month | 90 | d | 1, 2, ..., 31 | | 34398 * | | | do | 1st, 2nd, ..., 31st | 5 | 34399 * | | | dd | 01, 02, ..., 31 | | 34400 * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | 34401 * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | 34402 * | | | DD | 01, 02, ..., 365, 366 | 7 | 34403 * | | | DDD | 001, 002, ..., 365, 366 | | 34404 * | | | DDDD | ... | 2 | 34405 * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | | 34406 * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | 34407 * | | | EEEEE | M, T, W, T, F, S, S | | 34408 * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | 34409 * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | 34410 * | | | io | 1st, 2nd, ..., 7th | 5 | 34411 * | | | ii | 01, 02, ..., 07 | 5 | 34412 * | | | iii | Mon, Tue, Wed, ..., Sun | 5 | 34413 * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | 34414 * | | | iiiii | M, T, W, T, F, S, S | 5 | 34415 * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | 34416 * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | 34417 * | | | eo | 2nd, 3rd, ..., 1st | 5 | 34418 * | | | ee | 02, 03, ..., 01 | | 34419 * | | | eee | Mon, Tue, Wed, ..., Sun | | 34420 * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | 34421 * | | | eeeee | M, T, W, T, F, S, S | | 34422 * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | 34423 * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | 34424 * | | | co | 2nd, 3rd, ..., 1st | 5 | 34425 * | | | cc | 02, 03, ..., 01 | | 34426 * | | | ccc | Mon, Tue, Wed, ..., Sun | | 34427 * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | 34428 * | | | ccccc | M, T, W, T, F, S, S | | 34429 * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | 34430 * | AM, PM | 80 | a..aaa | AM, PM | | 34431 * | | | aaaa | a.m., p.m. | 2 | 34432 * | | | aaaaa | a, p | | 34433 * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | 34434 * | | | bbbb | a.m., p.m., noon, midnight | 2 | 34435 * | | | bbbbb | a, p, n, mi | | 34436 * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | 34437 * | | | BBBB | at night, in the morning, ... | 2 | 34438 * | | | BBBBB | at night, in the morning, ... | | 34439 * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | 34440 * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | 34441 * | | | hh | 01, 02, ..., 11, 12 | | 34442 * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | 34443 * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | 34444 * | | | HH | 00, 01, 02, ..., 23 | | 34445 * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | 34446 * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | 34447 * | | | KK | 01, 02, ..., 11, 00 | | 34448 * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | 34449 * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | 34450 * | | | kk | 24, 01, 02, ..., 23 | | 34451 * | Minute | 60 | m | 0, 1, ..., 59 | | 34452 * | | | mo | 0th, 1st, ..., 59th | 5 | 34453 * | | | mm | 00, 01, ..., 59 | | 34454 * | Second | 50 | s | 0, 1, ..., 59 | | 34455 * | | | so | 0th, 1st, ..., 59th | 5 | 34456 * | | | ss | 00, 01, ..., 59 | | 34457 * | Seconds timestamp | 40 | t | 512969520 | | 34458 * | | | tt | ... | 2 | 34459 * | Fraction of second | 30 | S | 0, 1, ..., 9 | | 34460 * | | | SS | 00, 01, ..., 99 | | 34461 * | | | SSS | 000, 001, ..., 999 | | 34462 * | | | SSSS | ... | 2 | 34463 * | Milliseconds timestamp | 20 | T | 512969520900 | | 34464 * | | | TT | ... | 2 | 34465 * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | 34466 * | | | XX | -0800, +0530, Z | | 34467 * | | | XXX | -08:00, +05:30, Z | | 34468 * | | | XXXX | -0800, +0530, Z, +123456 | 2 | 34469 * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | 34470 * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | 34471 * | | | xx | -0800, +0530, +0000 | | 34472 * | | | xxx | -08:00, +05:30, +00:00 | 2 | 34473 * | | | xxxx | -0800, +0530, +0000, +123456 | | 34474 * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | 34475 * | Long localized date | NA | P | 05/29/1453 | 5,8 | 34476 * | | | PP | May 29, 1453 | | 34477 * | | | PPP | May 29th, 1453 | | 34478 * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | 34479 * | Long localized time | NA | p | 12:00 AM | 5,8 | 34480 * | | | pp | 12:00:00 AM | | 34481 * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | 34482 * | | | PPpp | May 29, 1453, 12:00:00 AM | | 34483 * | | | PPPpp | May 29th, 1453 at ... | | 34484 * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | 34485 * Notes: 34486 * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale 34487 * are the same as "stand-alone" units, but are different in some languages. 34488 * "Formatting" units are declined according to the rules of the language 34489 * in the context of a date. "Stand-alone" units are always nominative singular. 34490 * In `format` function, they will produce different result: 34491 * 34492 * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` 34493 * 34494 * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` 34495 * 34496 * `parse` will try to match both formatting and stand-alone units interchangably. 34497 * 34498 * 2. Any sequence of the identical letters is a pattern, unless it is escaped by 34499 * the single quote characters (see below). 34500 * If the sequence is longer than listed in table: 34501 * - for numerical units (`yyyyyyyy`) `parse` will try to match a number 34502 * as wide as the sequence 34503 * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit. 34504 * These variations are marked with "2" in the last column of the table. 34505 * 34506 * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. 34507 * These tokens represent the shortest form of the quarter. 34508 * 34509 * 4. The main difference between `y` and `u` patterns are B.C. years: 34510 * 34511 * | Year | `y` | `u` | 34512 * |------|-----|-----| 34513 * | AC 1 | 1 | 1 | 34514 * | BC 1 | 1 | 0 | 34515 * | BC 2 | 2 | -1 | 34516 * 34517 * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: 34518 * 34519 * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00` 34520 * 34521 * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00` 34522 * 34523 * while `uu` will just assign the year as is: 34524 * 34525 * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00` 34526 * 34527 * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00` 34528 * 34529 * The same difference is true for local and ISO week-numbering years (`Y` and `R`), 34530 * except local week-numbering years are dependent on `options.weekStartsOn` 34531 * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear} 34532 * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}). 34533 * 34534 * 5. These patterns are not in the Unicode Technical Standard #35: 34535 * - `i`: ISO day of week 34536 * - `I`: ISO week of year 34537 * - `R`: ISO week-numbering year 34538 * - `o`: ordinal number modifier 34539 * - `P`: long localized date 34540 * - `p`: long localized time 34541 * 34542 * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. 34543 * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 34544 * 34545 * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. 34546 * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 34547 * 34548 * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based 34549 * on the given locale. 34550 * 34551 * using `en-US` locale: `P` => `MM/dd/yyyy` 34552 * using `en-US` locale: `p` => `hh:mm a` 34553 * using `pt-BR` locale: `P` => `dd/MM/yyyy` 34554 * using `pt-BR` locale: `p` => `HH:mm` 34555 * 34556 * Values will be assigned to the date in the descending order of its unit's priority. 34557 * Units of an equal priority overwrite each other in the order of appearance. 34558 * 34559 * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year), 34560 * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing. 34561 * 34562 * `referenceDate` must be passed for correct work of the function. 34563 * If you're not sure which `referenceDate` to supply, create a new instance of Date: 34564 * `parse('02/11/2014', 'MM/dd/yyyy', new Date())` 34565 * In this case parsing will be done in the context of the current date. 34566 * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`, 34567 * then `Invalid Date` will be returned. 34568 * 34569 * The result may vary by locale. 34570 * 34571 * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. 34572 * 34573 * If parsing failed, `Invalid Date` will be returned. 34574 * Invalid Date is a Date, whose time value is NaN. 34575 * Time value of Date: http://es5.github.io/#x15.9.1.1 34576 * 34577 * @param {String} dateString - the string to parse 34578 * @param {String} formatString - the string of tokens 34579 * @param {Date|Number} referenceDate - defines values missing from the parsed dateString 34580 * @param {Object} [options] - an object with options. 34581 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 34582 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 34583 * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year 34584 * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; 34585 * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 34586 * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; 34587 * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 34588 * @returns {Date} the parsed date 34589 * @throws {TypeError} 3 arguments required 34590 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 34591 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 34592 * @throws {RangeError} `options.locale` must contain `match` property 34593 * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 34594 * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 34595 * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 34596 * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 34597 * @throws {RangeError} format string contains an unescaped latin alphabet character 34598 * 34599 * @example 34600 * // Parse 11 February 2014 from middle-endian format: 34601 * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date()) 34602 * //=> Tue Feb 11 2014 00:00:00 34603 * 34604 * @example 34605 * // Parse 28th of February in Esperanto locale in the context of 2010 year: 34606 * import eo from 'date-fns/locale/eo' 34607 * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), { 34608 * locale: eo 34609 * }) 34610 * //=> Sun Feb 28 2010 00:00:00 34611 */ 34612 34613function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options) { 34614 var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4; 34615 34616 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(3, arguments); 34617 var dateString = String(dirtyDateString); 34618 var formatString = String(dirtyFormatString); 34619 var defaultOptions = (0,_lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__.getDefaultOptions)(); 34620 var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _lib_defaultLocale_index_js__WEBPACK_IMPORTED_MODULE_2__["default"]; 34621 34622 if (!locale.match) { 34623 throw new RangeError('locale must contain match property'); 34624 } 34625 34626 var firstWeekContainsDate = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN 34627 34628 if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { 34629 throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); 34630 } 34631 34632 var weekStartsOn = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 34633 34634 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 34635 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 34636 } 34637 34638 if (formatString === '') { 34639 if (dateString === '') { 34640 return (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dirtyReferenceDate); 34641 } else { 34642 return new Date(NaN); 34643 } 34644 } 34645 34646 var subFnOptions = { 34647 firstWeekContainsDate: firstWeekContainsDate, 34648 weekStartsOn: weekStartsOn, 34649 locale: locale 34650 }; // If timezone isn't specified, it will be set to the system timezone 34651 34652 var setters = [new _lib_Setter_js__WEBPACK_IMPORTED_MODULE_5__.DateToSystemTimezoneSetter()]; 34653 var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) { 34654 var firstCharacter = substring[0]; 34655 34656 if (firstCharacter in _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__["default"]) { 34657 var longFormatter = _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__["default"][firstCharacter]; 34658 return longFormatter(substring, locale.formatLong); 34659 } 34660 34661 return substring; 34662 }).join('').match(formattingTokensRegExp); 34663 var usedTokens = []; 34664 34665 var _loop = function (_token) { 34666 if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_7__.isProtectedWeekYearToken)(_token)) { 34667 (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_7__.throwProtectedError)(_token, formatString, dirtyDateString); 34668 } 34669 34670 if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_7__.isProtectedDayOfYearToken)(_token)) { 34671 (0,_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_7__.throwProtectedError)(_token, formatString, dirtyDateString); 34672 } 34673 34674 var firstCharacter = _token[0]; 34675 var parser = _lib_parsers_index_js__WEBPACK_IMPORTED_MODULE_8__.parsers[firstCharacter]; 34676 34677 if (parser) { 34678 var incompatibleTokens = parser.incompatibleTokens; 34679 34680 if (Array.isArray(incompatibleTokens)) { 34681 var incompatibleToken = usedTokens.find(function (usedToken) { 34682 return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter; 34683 }); 34684 34685 if (incompatibleToken) { 34686 throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(_token, "` at the same time")); 34687 } 34688 } else if (parser.incompatibleTokens === '*' && usedTokens.length > 0) { 34689 throw new RangeError("The format string mustn't contain `".concat(_token, "` and any other token at the same time")); 34690 } 34691 34692 usedTokens.push({ 34693 token: firstCharacter, 34694 fullToken: _token 34695 }); 34696 var parseResult = parser.run(dateString, _token, locale.match, subFnOptions); 34697 34698 if (!parseResult) { 34699 token = _token; 34700 return { 34701 v: new Date(NaN) 34702 }; 34703 } 34704 34705 setters.push(parseResult.setter); 34706 dateString = parseResult.rest; 34707 } else { 34708 if (firstCharacter.match(unescapedLatinCharacterRegExp)) { 34709 throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); 34710 } // Replace two single quote characters with one single quote character 34711 34712 34713 if (_token === "''") { 34714 _token = "'"; 34715 } else if (firstCharacter === "'") { 34716 _token = cleanEscapedString(_token); 34717 } // Cut token from string, or, if string doesn't match the token, return Invalid Date 34718 34719 34720 if (dateString.indexOf(_token) === 0) { 34721 dateString = dateString.slice(_token.length); 34722 } else { 34723 token = _token; 34724 return { 34725 v: new Date(NaN) 34726 }; 34727 } 34728 } 34729 34730 token = _token; 34731 }; 34732 34733 for (var token of tokens) { 34734 var _ret = _loop(token); 34735 34736 if (typeof _ret === "object") return _ret.v; 34737 } // Check if the remaining input contains something other than whitespace 34738 34739 34740 if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) { 34741 return new Date(NaN); 34742 } 34743 34744 var uniquePrioritySetters = setters.map(function (setter) { 34745 return setter.priority; 34746 }).sort(function (a, b) { 34747 return b - a; 34748 }).filter(function (priority, index, array) { 34749 return array.indexOf(priority) === index; 34750 }).map(function (priority) { 34751 return setters.filter(function (setter) { 34752 return setter.priority === priority; 34753 }).sort(function (a, b) { 34754 return b.subPriority - a.subPriority; 34755 }); 34756 }).map(function (setterArray) { 34757 return setterArray[0]; 34758 }); 34759 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dirtyReferenceDate); 34760 34761 if (isNaN(date.getTime())) { 34762 return new Date(NaN); 34763 } // Convert the date in system timezone to the same date in UTC+00:00 timezone. 34764 34765 34766 var utcDate = (0,_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_9__["default"])(date, (0,_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_10__["default"])(date)); 34767 var flags = {}; 34768 34769 for (var setter of uniquePrioritySetters) { 34770 if (!setter.validate(utcDate, subFnOptions)) { 34771 return new Date(NaN); 34772 } 34773 34774 var result = setter.set(utcDate, flags, subFnOptions); // Result is tuple (date, flags) 34775 34776 if (Array.isArray(result)) { 34777 utcDate = result[0]; 34778 (0,_lib_assign_index_js__WEBPACK_IMPORTED_MODULE_11__["default"])(flags, result[1]); // Result is date 34779 } else { 34780 utcDate = result; 34781 } 34782 } 34783 34784 return utcDate; 34785} 34786 34787function cleanEscapedString(input) { 34788 return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'"); 34789} 34790 34791/***/ }), 34792
vendor: 1,984 bytes, lines 34793-34838
34793/***/ "./node_modules/date-fns/esm/setHours/index.js": 34794/*!*****************************************************!*\ 34795 !*** ./node_modules/date-fns/esm/setHours/index.js ***! 34796 \*****************************************************/ 34797/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 34798 34799"use strict"; 34800__webpack_require__.r(__webpack_exports__); 34801/* harmony export */ __webpack_require__.d(__webpack_exports__, { 34802/* harmony export */ "default": function() { return /* binding */ setHours; } 34803/* harmony export */ }); 34804/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 34805/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 34806/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 34807 34808 34809 34810/** 34811 * @name setHours 34812 * @category Hour Helpers 34813 * @summary Set the hours to the given date. 34814 * 34815 * @description 34816 * Set the hours to the given date. 34817 * 34818 * @param {Date|Number} date - the date to be changed 34819 * @param {Number} hours - the hours of the new date 34820 * @returns {Date} the new date with the hours set 34821 * @throws {TypeError} 2 arguments required 34822 * 34823 * @example 34824 * // Set 4 hours to 1 September 2014 11:30:00: 34825 * const result = setHours(new Date(2014, 8, 1, 11, 30), 4) 34826 * //=> Mon Sep 01 2014 04:30:00 34827 */ 34828 34829function setHours(dirtyDate, dirtyHours) { 34830 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 34831 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 34832 var hours = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyHours); 34833 date.setHours(hours); 34834 return date; 34835} 34836 34837/***/ }), 34838
vendor: 2,145 bytes, lines 34839-34884
34839/***/ "./node_modules/date-fns/esm/setMilliseconds/index.js": 34840/*!************************************************************!*\ 34841 !*** ./node_modules/date-fns/esm/setMilliseconds/index.js ***! 34842 \************************************************************/ 34843/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 34844 34845"use strict"; 34846__webpack_require__.r(__webpack_exports__); 34847/* harmony export */ __webpack_require__.d(__webpack_exports__, { 34848/* harmony export */ "default": function() { return /* binding */ setMilliseconds; } 34849/* harmony export */ }); 34850/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 34851/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 34852/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 34853 34854 34855 34856/** 34857 * @name setMilliseconds 34858 * @category Millisecond Helpers 34859 * @summary Set the milliseconds to the given date. 34860 * 34861 * @description 34862 * Set the milliseconds to the given date. 34863 * 34864 * @param {Date|Number} date - the date to be changed 34865 * @param {Number} milliseconds - the milliseconds of the new date 34866 * @returns {Date} the new date with the milliseconds set 34867 * @throws {TypeError} 2 arguments required 34868 * 34869 * @example 34870 * // Set 300 milliseconds to 1 September 2014 11:30:40.500: 34871 * const result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300) 34872 * //=> Mon Sep 01 2014 11:30:40.300 34873 */ 34874 34875function setMilliseconds(dirtyDate, dirtyMilliseconds) { 34876 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 34877 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 34878 var milliseconds = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyMilliseconds); 34879 date.setMilliseconds(milliseconds); 34880 return date; 34881} 34882 34883/***/ }), 34884
vendor: 2,030 bytes, lines 34885-34930
34885/***/ "./node_modules/date-fns/esm/setMinutes/index.js": 34886/*!*******************************************************!*\ 34887 !*** ./node_modules/date-fns/esm/setMinutes/index.js ***! 34888 \*******************************************************/ 34889/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 34890 34891"use strict"; 34892__webpack_require__.r(__webpack_exports__); 34893/* harmony export */ __webpack_require__.d(__webpack_exports__, { 34894/* harmony export */ "default": function() { return /* binding */ setMinutes; } 34895/* harmony export */ }); 34896/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 34897/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 34898/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 34899 34900 34901 34902/** 34903 * @name setMinutes 34904 * @category Minute Helpers 34905 * @summary Set the minutes to the given date. 34906 * 34907 * @description 34908 * Set the minutes to the given date. 34909 * 34910 * @param {Date|Number} date - the date to be changed 34911 * @param {Number} minutes - the minutes of the new date 34912 * @returns {Date} the new date with the minutes set 34913 * @throws {TypeError} 2 arguments required 34914 * 34915 * @example 34916 * // Set 45 minutes to 1 September 2014 11:30:40: 34917 * const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45) 34918 * //=> Mon Sep 01 2014 11:45:40 34919 */ 34920 34921function setMinutes(dirtyDate, dirtyMinutes) { 34922 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 34923 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 34924 var minutes = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyMinutes); 34925 date.setMinutes(minutes); 34926 return date; 34927} 34928 34929/***/ }), 34930
vendor: 2,603 bytes, lines 34931-34986
34931/***/ "./node_modules/date-fns/esm/setMonth/index.js": 34932/*!*****************************************************!*\ 34933 !*** ./node_modules/date-fns/esm/setMonth/index.js ***! 34934 \*****************************************************/ 34935/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 34936 34937"use strict"; 34938__webpack_require__.r(__webpack_exports__); 34939/* harmony export */ __webpack_require__.d(__webpack_exports__, { 34940/* harmony export */ "default": function() { return /* binding */ setMonth; } 34941/* harmony export */ }); 34942/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 34943/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 34944/* harmony import */ var _getDaysInMonth_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../getDaysInMonth/index.js */ "./node_modules/date-fns/esm/getDaysInMonth/index.js"); 34945/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 34946 34947 34948 34949 34950/** 34951 * @name setMonth 34952 * @category Month Helpers 34953 * @summary Set the month to the given date. 34954 * 34955 * @description 34956 * Set the month to the given date. 34957 * 34958 * @param {Date|Number} date - the date to be changed 34959 * @param {Number} month - the month of the new date 34960 * @returns {Date} the new date with the month set 34961 * @throws {TypeError} 2 arguments required 34962 * 34963 * @example 34964 * // Set February to 1 September 2014: 34965 * const result = setMonth(new Date(2014, 8, 1), 1) 34966 * //=> Sat Feb 01 2014 00:00:00 34967 */ 34968 34969function setMonth(dirtyDate, dirtyMonth) { 34970 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 34971 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 34972 var month = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyMonth); 34973 var year = date.getFullYear(); 34974 var day = date.getDate(); 34975 var dateWithDesiredMonth = new Date(0); 34976 dateWithDesiredMonth.setFullYear(year, month, 15); 34977 dateWithDesiredMonth.setHours(0, 0, 0, 0); 34978 var daysInMonth = (0,_getDaysInMonth_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dateWithDesiredMonth); // Set the last day of the new month 34979 // if the original date was the last day of the longer month 34980 34981 date.setMonth(month, Math.min(day, daysInMonth)); 34982 return date; 34983} 34984 34985/***/ }), 34986
vendor: 2,030 bytes, lines 34987-35032
34987/***/ "./node_modules/date-fns/esm/setSeconds/index.js": 34988/*!*******************************************************!*\ 34989 !*** ./node_modules/date-fns/esm/setSeconds/index.js ***! 34990 \*******************************************************/ 34991/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 34992 34993"use strict"; 34994__webpack_require__.r(__webpack_exports__); 34995/* harmony export */ __webpack_require__.d(__webpack_exports__, { 34996/* harmony export */ "default": function() { return /* binding */ setSeconds; } 34997/* harmony export */ }); 34998/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 34999/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 35000/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35001 35002 35003 35004/** 35005 * @name setSeconds 35006 * @category Second Helpers 35007 * @summary Set the seconds to the given date. 35008 * 35009 * @description 35010 * Set the seconds to the given date. 35011 * 35012 * @param {Date|Number} date - the date to be changed 35013 * @param {Number} seconds - the seconds of the new date 35014 * @returns {Date} the new date with the seconds set 35015 * @throws {TypeError} 2 arguments required 35016 * 35017 * @example 35018 * // Set 45 seconds to 1 September 2014 11:30:40: 35019 * const result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45) 35020 * //=> Mon Sep 01 2014 11:30:45 35021 */ 35022 35023function setSeconds(dirtyDate, dirtySeconds) { 35024 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 35025 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 35026 var seconds = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtySeconds); 35027 date.setSeconds(seconds); 35028 return date; 35029} 35030 35031/***/ }), 35032
vendor: 2,123 bytes, lines 35033-35083
35033/***/ "./node_modules/date-fns/esm/setYear/index.js": 35034/*!****************************************************!*\ 35035 !*** ./node_modules/date-fns/esm/setYear/index.js ***! 35036 \****************************************************/ 35037/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35038 35039"use strict"; 35040__webpack_require__.r(__webpack_exports__); 35041/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35042/* harmony export */ "default": function() { return /* binding */ setYear; } 35043/* harmony export */ }); 35044/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 35045/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 35046/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35047 35048 35049 35050/** 35051 * @name setYear 35052 * @category Year Helpers 35053 * @summary Set the year to the given date. 35054 * 35055 * @description 35056 * Set the year to the given date. 35057 * 35058 * @param {Date|Number} date - the date to be changed 35059 * @param {Number} year - the year of the new date 35060 * @returns {Date} the new date with the year set 35061 * @throws {TypeError} 2 arguments required 35062 * 35063 * @example 35064 * // Set year 2013 to 1 September 2014: 35065 * const result = setYear(new Date(2014, 8, 1), 2013) 35066 * //=> Sun Sep 01 2013 00:00:00 35067 */ 35068 35069function setYear(dirtyDate, dirtyYear) { 35070 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 35071 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 35072 var year = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyYear); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date 35073 35074 if (isNaN(date.getTime())) { 35075 return new Date(NaN); 35076 } 35077 35078 date.setFullYear(year); 35079 return date; 35080} 35081 35082/***/ }), 35083
vendor: 4,402 bytes, lines 35084-35187
35084/***/ "./node_modules/date-fns/esm/set/index.js": 35085/*!************************************************!*\ 35086 !*** ./node_modules/date-fns/esm/set/index.js ***! 35087 \************************************************/ 35088/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35089 35090"use strict"; 35091__webpack_require__.r(__webpack_exports__); 35092/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35093/* harmony export */ "default": function() { return /* binding */ set; } 35094/* harmony export */ }); 35095/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 35096/* harmony import */ var _setMonth_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../setMonth/index.js */ "./node_modules/date-fns/esm/setMonth/index.js"); 35097/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 35098/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35099 35100 35101 35102 35103 35104/** 35105 * @name set 35106 * @category Common Helpers 35107 * @summary Set date values to a given date. 35108 * 35109 * @description 35110 * Set date values to a given date. 35111 * 35112 * Sets time values to date from object `values`. 35113 * A value is not set if it is undefined or null or doesn't exist in `values`. 35114 * 35115 * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts 35116 * to use native `Date#setX` methods. If you use this function, you may not want to include the 35117 * other `setX` functions that date-fns provides if you are concerned about the bundle size. 35118 * 35119 * @param {Date|Number} date - the date to be changed 35120 * @param {Object} values - an object with options 35121 * @param {Number} [values.year] - the number of years to be set 35122 * @param {Number} [values.month] - the number of months to be set 35123 * @param {Number} [values.date] - the number of days to be set 35124 * @param {Number} [values.hours] - the number of hours to be set 35125 * @param {Number} [values.minutes] - the number of minutes to be set 35126 * @param {Number} [values.seconds] - the number of seconds to be set 35127 * @param {Number} [values.milliseconds] - the number of milliseconds to be set 35128 * @returns {Date} the new date with options set 35129 * @throws {TypeError} 2 arguments required 35130 * @throws {RangeError} `values` must be an object 35131 * 35132 * @example 35133 * // Transform 1 September 2014 into 20 October 2015 in a single line: 35134 * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 }) 35135 * //=> Tue Oct 20 2015 00:00:00 35136 * 35137 * @example 35138 * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00: 35139 * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 }) 35140 * //=> Mon Sep 01 2014 12:23:45 35141 */ 35142function set(dirtyDate, values) { 35143 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 35144 35145 if (typeof values !== 'object' || values === null) { 35146 throw new RangeError('values parameter must be an object'); 35147 } 35148 35149 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date 35150 35151 if (isNaN(date.getTime())) { 35152 return new Date(NaN); 35153 } 35154 35155 if (values.year != null) { 35156 date.setFullYear(values.year); 35157 } 35158 35159 if (values.month != null) { 35160 date = (0,_setMonth_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, values.month); 35161 } 35162 35163 if (values.date != null) { 35164 date.setDate((0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(values.date)); 35165 } 35166 35167 if (values.hours != null) { 35168 date.setHours((0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(values.hours)); 35169 } 35170 35171 if (values.minutes != null) { 35172 date.setMinutes((0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(values.minutes)); 35173 } 35174 35175 if (values.seconds != null) { 35176 date.setSeconds((0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(values.seconds)); 35177 } 35178 35179 if (values.milliseconds != null) { 35180 date.setMilliseconds((0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(values.milliseconds)); 35181 } 35182 35183 return date; 35184} 35185 35186/***/ }), 35187
vendor: 1,713 bytes, lines 35188-35230
35188/***/ "./node_modules/date-fns/esm/startOfDay/index.js": 35189/*!*******************************************************!*\ 35190 !*** ./node_modules/date-fns/esm/startOfDay/index.js ***! 35191 \*******************************************************/ 35192/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35193 35194"use strict"; 35195__webpack_require__.r(__webpack_exports__); 35196/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35197/* harmony export */ "default": function() { return /* binding */ startOfDay; } 35198/* harmony export */ }); 35199/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 35200/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35201 35202 35203/** 35204 * @name startOfDay 35205 * @category Day Helpers 35206 * @summary Return the start of a day for the given date. 35207 * 35208 * @description 35209 * Return the start of a day for the given date. 35210 * The result will be in the local timezone. 35211 * 35212 * @param {Date|Number} date - the original date 35213 * @returns {Date} the start of a day 35214 * @throws {TypeError} 1 argument required 35215 * 35216 * @example 35217 * // The start of a day for 2 September 2014 11:55:00: 35218 * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0)) 35219 * //=> Tue Sep 02 2014 00:00:00 35220 */ 35221 35222function startOfDay(dirtyDate) { 35223 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 35224 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 35225 date.setHours(0, 0, 0, 0); 35226 return date; 35227} 35228 35229/***/ }), 35230
vendor: 2,390 bytes, lines 35231-35281
35231/***/ "./node_modules/date-fns/esm/startOfISOWeekYear/index.js": 35232/*!***************************************************************!*\ 35233 !*** ./node_modules/date-fns/esm/startOfISOWeekYear/index.js ***! 35234 \***************************************************************/ 35235/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35236 35237"use strict"; 35238__webpack_require__.r(__webpack_exports__); 35239/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35240/* harmony export */ "default": function() { return /* binding */ startOfISOWeekYear; } 35241/* harmony export */ }); 35242/* harmony import */ var _getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../getISOWeekYear/index.js */ "./node_modules/date-fns/esm/getISOWeekYear/index.js"); 35243/* harmony import */ var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfISOWeek/index.js */ "./node_modules/date-fns/esm/startOfISOWeek/index.js"); 35244/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35245 35246 35247 35248/** 35249 * @name startOfISOWeekYear 35250 * @category ISO Week-Numbering Year Helpers 35251 * @summary Return the start of an ISO week-numbering year for the given date. 35252 * 35253 * @description 35254 * Return the start of an ISO week-numbering year, 35255 * which always starts 3 days before the year's first Thursday. 35256 * The result will be in the local timezone. 35257 * 35258 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 35259 * 35260 * @param {Date|Number} date - the original date 35261 * @returns {Date} the start of an ISO week-numbering year 35262 * @throws {TypeError} 1 argument required 35263 * 35264 * @example 35265 * // The start of an ISO week-numbering year for 2 July 2005: 35266 * const result = startOfISOWeekYear(new Date(2005, 6, 2)) 35267 * //=> Mon Jan 03 2005 00:00:00 35268 */ 35269 35270function startOfISOWeekYear(dirtyDate) { 35271 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 35272 var year = (0,_getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 35273 var fourthOfJanuary = new Date(0); 35274 fourthOfJanuary.setFullYear(year, 0, 4); 35275 fourthOfJanuary.setHours(0, 0, 0, 0); 35276 var date = (0,_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(fourthOfJanuary); 35277 return date; 35278} 35279 35280/***/ }), 35281
vendor: 1,847 bytes, lines 35282-35326
35282/***/ "./node_modules/date-fns/esm/startOfISOWeek/index.js": 35283/*!***********************************************************!*\ 35284 !*** ./node_modules/date-fns/esm/startOfISOWeek/index.js ***! 35285 \***********************************************************/ 35286/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35287 35288"use strict"; 35289__webpack_require__.r(__webpack_exports__); 35290/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35291/* harmony export */ "default": function() { return /* binding */ startOfISOWeek; } 35292/* harmony export */ }); 35293/* harmony import */ var _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../startOfWeek/index.js */ "./node_modules/date-fns/esm/startOfWeek/index.js"); 35294/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35295 35296 35297/** 35298 * @name startOfISOWeek 35299 * @category ISO Week Helpers 35300 * @summary Return the start of an ISO week for the given date. 35301 * 35302 * @description 35303 * Return the start of an ISO week for the given date. 35304 * The result will be in the local timezone. 35305 * 35306 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 35307 * 35308 * @param {Date|Number} date - the original date 35309 * @returns {Date} the start of an ISO week 35310 * @throws {TypeError} 1 argument required 35311 * 35312 * @example 35313 * // The start of an ISO week for 2 September 2014 11:55:00: 35314 * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) 35315 * //=> Mon Sep 01 2014 00:00:00 35316 */ 35317 35318function startOfISOWeek(dirtyDate) { 35319 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 35320 return (0,_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, { 35321 weekStartsOn: 1 35322 }); 35323} 35324 35325/***/ }), 35326
vendor: 4,239 bytes, lines 35327-35394
35327/***/ "./node_modules/date-fns/esm/startOfWeek/index.js": 35328/*!********************************************************!*\ 35329 !*** ./node_modules/date-fns/esm/startOfWeek/index.js ***! 35330 \********************************************************/ 35331/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35332 35333"use strict"; 35334__webpack_require__.r(__webpack_exports__); 35335/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35336/* harmony export */ "default": function() { return /* binding */ startOfWeek; } 35337/* harmony export */ }); 35338/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 35339/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 35340/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35341/* harmony import */ var _lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 35342 35343 35344 35345 35346/** 35347 * @name startOfWeek 35348 * @category Week Helpers 35349 * @summary Return the start of a week for the given date. 35350 * 35351 * @description 35352 * Return the start of a week for the given date. 35353 * The result will be in the local timezone. 35354 * 35355 * @param {Date|Number} date - the original date 35356 * @param {Object} [options] - an object with options. 35357 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 35358 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 35359 * @returns {Date} the start of a week 35360 * @throws {TypeError} 1 argument required 35361 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 35362 * 35363 * @example 35364 * // The start of a week for 2 September 2014 11:55:00: 35365 * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) 35366 * //=> Sun Aug 31 2014 00:00:00 35367 * 35368 * @example 35369 * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: 35370 * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) 35371 * //=> Mon Sep 01 2014 00:00:00 35372 */ 35373 35374function startOfWeek(dirtyDate, options) { 35375 var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 35376 35377 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 35378 var defaultOptions = (0,_lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_1__.getDefaultOptions)(); 35379 var weekStartsOn = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 35380 35381 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 35382 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 35383 } 35384 35385 var date = (0,_toDate_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dirtyDate); 35386 var day = date.getDay(); 35387 var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; 35388 date.setDate(date.getDate() - diff); 35389 date.setHours(0, 0, 0, 0); 35390 return date; 35391} 35392 35393/***/ }), 35394
vendor: 2,122 bytes, lines 35395-35438
35395/***/ "./node_modules/date-fns/esm/subDays/index.js": 35396/*!****************************************************!*\ 35397 !*** ./node_modules/date-fns/esm/subDays/index.js ***! 35398 \****************************************************/ 35399/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35400 35401"use strict"; 35402__webpack_require__.r(__webpack_exports__); 35403/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35404/* harmony export */ "default": function() { return /* binding */ subDays; } 35405/* harmony export */ }); 35406/* harmony import */ var _addDays_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../addDays/index.js */ "./node_modules/date-fns/esm/addDays/index.js"); 35407/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35408/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 35409 35410 35411 35412/** 35413 * @name subDays 35414 * @category Day Helpers 35415 * @summary Subtract the specified number of days from the given date. 35416 * 35417 * @description 35418 * Subtract the specified number of days from the given date. 35419 * 35420 * @param {Date|Number} date - the date to be changed 35421 * @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 35422 * @returns {Date} the new date with the days subtracted 35423 * @throws {TypeError} 2 arguments required 35424 * 35425 * @example 35426 * // Subtract 10 days from 1 September 2014: 35427 * const result = subDays(new Date(2014, 8, 1), 10) 35428 * //=> Fri Aug 22 2014 00:00:00 35429 */ 35430 35431function subDays(dirtyDate, dirtyAmount) { 35432 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 35433 var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyAmount); 35434 return (0,_addDays_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate, -amount); 35435} 35436 35437/***/ }), 35438
vendor: 2,297 bytes, lines 35439-35482
35439/***/ "./node_modules/date-fns/esm/subMilliseconds/index.js": 35440/*!************************************************************!*\ 35441 !*** ./node_modules/date-fns/esm/subMilliseconds/index.js ***! 35442 \************************************************************/ 35443/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35444 35445"use strict"; 35446__webpack_require__.r(__webpack_exports__); 35447/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35448/* harmony export */ "default": function() { return /* binding */ subMilliseconds; } 35449/* harmony export */ }); 35450/* harmony import */ var _addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../addMilliseconds/index.js */ "./node_modules/date-fns/esm/addMilliseconds/index.js"); 35451/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35452/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 35453 35454 35455 35456/** 35457 * @name subMilliseconds 35458 * @category Millisecond Helpers 35459 * @summary Subtract the specified number of milliseconds from the given date. 35460 * 35461 * @description 35462 * Subtract the specified number of milliseconds from the given date. 35463 * 35464 * @param {Date|Number} date - the date to be changed 35465 * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 35466 * @returns {Date} the new date with the milliseconds subtracted 35467 * @throws {TypeError} 2 arguments required 35468 * 35469 * @example 35470 * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000: 35471 * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) 35472 * //=> Thu Jul 10 2014 12:45:29.250 35473 */ 35474 35475function subMilliseconds(dirtyDate, dirtyAmount) { 35476 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 35477 var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyAmount); 35478 return (0,_addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate, -amount); 35479} 35480 35481/***/ }), 35482
vendor: 2,155 bytes, lines 35483-35526
35483/***/ "./node_modules/date-fns/esm/subMonths/index.js": 35484/*!******************************************************!*\ 35485 !*** ./node_modules/date-fns/esm/subMonths/index.js ***! 35486 \******************************************************/ 35487/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35488 35489"use strict"; 35490__webpack_require__.r(__webpack_exports__); 35491/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35492/* harmony export */ "default": function() { return /* binding */ subMonths; } 35493/* harmony export */ }); 35494/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 35495/* harmony import */ var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../addMonths/index.js */ "./node_modules/date-fns/esm/addMonths/index.js"); 35496/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35497 35498 35499 35500/** 35501 * @name subMonths 35502 * @category Month Helpers 35503 * @summary Subtract the specified number of months from the given date. 35504 * 35505 * @description 35506 * Subtract the specified number of months from the given date. 35507 * 35508 * @param {Date|Number} date - the date to be changed 35509 * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 35510 * @returns {Date} the new date with the months subtracted 35511 * @throws {TypeError} 2 arguments required 35512 * 35513 * @example 35514 * // Subtract 5 months from 1 February 2015: 35515 * const result = subMonths(new Date(2015, 1, 1), 5) 35516 * //=> Mon Sep 01 2014 00:00:00 35517 */ 35518 35519function subMonths(dirtyDate, dirtyAmount) { 35520 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 35521 var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyAmount); 35522 return (0,_addMonths_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate, -amount); 35523} 35524 35525/***/ }), 35526
vendor: 2,138 bytes, lines 35527-35570
35527/***/ "./node_modules/date-fns/esm/subYears/index.js": 35528/*!*****************************************************!*\ 35529 !*** ./node_modules/date-fns/esm/subYears/index.js ***! 35530 \*****************************************************/ 35531/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35532 35533"use strict"; 35534__webpack_require__.r(__webpack_exports__); 35535/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35536/* harmony export */ "default": function() { return /* binding */ subYears; } 35537/* harmony export */ }); 35538/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 35539/* harmony import */ var _addYears_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../addYears/index.js */ "./node_modules/date-fns/esm/addYears/index.js"); 35540/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35541 35542 35543 35544/** 35545 * @name subYears 35546 * @category Year Helpers 35547 * @summary Subtract the specified number of years from the given date. 35548 * 35549 * @description 35550 * Subtract the specified number of years from the given date. 35551 * 35552 * @param {Date|Number} date - the date to be changed 35553 * @param {Number} amount - the amount of years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 35554 * @returns {Date} the new date with the years subtracted 35555 * @throws {TypeError} 2 arguments required 35556 * 35557 * @example 35558 * // Subtract 5 years from 1 September 2014: 35559 * const result = subYears(new Date(2014, 8, 1), 5) 35560 * //=> Tue Sep 01 2009 00:00:00 35561 */ 35562 35563function subYears(dirtyDate, dirtyAmount) { 35564 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 35565 var amount = (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyAmount); 35566 return (0,_addYears_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate, -amount); 35567} 35568 35569/***/ }), 35570
vendor: 4,224 bytes, lines 35571-35653
35571/***/ "./node_modules/date-fns/esm/sub/index.js": 35572/*!************************************************!*\ 35573 !*** ./node_modules/date-fns/esm/sub/index.js ***! 35574 \************************************************/ 35575/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35576 35577"use strict"; 35578__webpack_require__.r(__webpack_exports__); 35579/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35580/* harmony export */ "default": function() { return /* binding */ sub; } 35581/* harmony export */ }); 35582/* harmony import */ var _subDays_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../subDays/index.js */ "./node_modules/date-fns/esm/subDays/index.js"); 35583/* harmony import */ var _subMonths_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../subMonths/index.js */ "./node_modules/date-fns/esm/subMonths/index.js"); 35584/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35585/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 35586 35587 35588 35589 35590/** 35591 * @name sub 35592 * @category Common Helpers 35593 * @summary Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. 35594 * 35595 * @description 35596 * Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. 35597 * 35598 * @param {Date|Number} date - the date to be changed 35599 * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be subtracted 35600 * 35601 * | Key | Description | 35602 * |---------|------------------------------------| 35603 * | years | Amount of years to be subtracted | 35604 * | months | Amount of months to be subtracted | 35605 * | weeks | Amount of weeks to be subtracted | 35606 * | days | Amount of days to be subtracted | 35607 * | hours | Amount of hours to be subtracted | 35608 * | minutes | Amount of minutes to be subtracted | 35609 * | seconds | Amount of seconds to be subtracted | 35610 * 35611 * All values default to 0 35612 * 35613 * @returns {Date} the new date with the seconds subtracted 35614 * @throws {TypeError} 2 arguments required 35615 * 35616 * @example 35617 * // Subtract the following duration from 15 June 2017 15:29:20 35618 * const result = sub(new Date(2017, 5, 15, 15, 29, 20), { 35619 * years: 2, 35620 * months: 9, 35621 * weeks: 1, 35622 * days: 7, 35623 * hours: 5, 35624 * minutes: 9, 35625 * seconds: 30 35626 * }) 35627 * //=> Mon Sep 1 2014 10:19:50 35628 */ 35629 35630function sub(date, duration) { 35631 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(2, arguments); 35632 if (!duration || typeof duration !== 'object') return new Date(NaN); 35633 var years = duration.years ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.years) : 0; 35634 var months = duration.months ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.months) : 0; 35635 var weeks = duration.weeks ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.weeks) : 0; 35636 var days = duration.days ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.days) : 0; 35637 var hours = duration.hours ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.hours) : 0; 35638 var minutes = duration.minutes ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.minutes) : 0; 35639 var seconds = duration.seconds ? (0,_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(duration.seconds) : 0; // Subtract years and months 35640 35641 var dateWithoutMonths = (0,_subMonths_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, months + years * 12); // Subtract weeks and days 35642 35643 var dateWithoutDays = (0,_subDays_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dateWithoutMonths, days + weeks * 7); // Subtract hours, minutes and seconds 35644 35645 var minutestoSub = minutes + hours * 60; 35646 var secondstoSub = seconds + minutestoSub * 60; 35647 var mstoSub = secondstoSub * 1000; 35648 var finalDate = new Date(dateWithoutDays.getTime() - mstoSub); 35649 return finalDate; 35650} 35651 35652/***/ }), 35653
vendor: 2,707 bytes, lines 35654-35720
35654/***/ "./node_modules/date-fns/esm/toDate/index.js": 35655/*!***************************************************!*\ 35656 !*** ./node_modules/date-fns/esm/toDate/index.js ***! 35657 \***************************************************/ 35658/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35659 35660"use strict"; 35661__webpack_require__.r(__webpack_exports__); 35662/* harmony export */ __webpack_require__.d(__webpack_exports__, { 35663/* harmony export */ "default": function() { return /* binding */ toDate; } 35664/* harmony export */ }); 35665/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 35666 35667/** 35668 * @name toDate 35669 * @category Common Helpers 35670 * @summary Convert the given argument to an instance of Date. 35671 * 35672 * @description 35673 * Convert the given argument to an instance of Date. 35674 * 35675 * If the argument is an instance of Date, the function returns its clone. 35676 * 35677 * If the argument is a number, it is treated as a timestamp. 35678 * 35679 * If the argument is none of the above, the function returns Invalid Date. 35680 * 35681 * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. 35682 * 35683 * @param {Date|Number} argument - the value to convert 35684 * @returns {Date} the parsed date in the local time zone 35685 * @throws {TypeError} 1 argument required 35686 * 35687 * @example 35688 * // Clone the date: 35689 * const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) 35690 * //=> Tue Feb 11 2014 11:30:30 35691 * 35692 * @example 35693 * // Convert the timestamp to date: 35694 * const result = toDate(1392098430000) 35695 * //=> Tue Feb 11 2014 11:30:30 35696 */ 35697 35698function toDate(argument) { 35699 (0,_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 35700 var argStr = Object.prototype.toString.call(argument); // Clone the date 35701 35702 if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') { 35703 // Prevent the date to lose the milliseconds when passed to new Date() in IE10 35704 return new Date(argument.getTime()); 35705 } else if (typeof argument === 'number' || argStr === '[object Number]') { 35706 return new Date(argument); 35707 } else { 35708 if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') { 35709 // eslint-disable-next-line no-console 35710 console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console 35711 35712 console.warn(new Error().stack); 35713 } 35714 35715 return new Date(NaN); 35716 } 35717} 35718 35719/***/ }), 35720
vendor: 10,389 bytes, lines 35721-35941
35721/***/ "./node_modules/process/browser.js": 35722/*!*****************************************!*\ 35723 !*** ./node_modules/process/browser.js ***! 35724 \*****************************************/ 35725/***/ (function(module) { 35726 35727// shim for using process in browser 35728var process = module.exports = {}; 35729 35730// cached from whatever global is present so that test runners that stub it 35731// don't break things. But we need to wrap it in a try catch in case it is 35732// wrapped in strict mode code which doesn't define any globals. It's inside a 35733// function because try/catches deoptimize in certain engines. 35734 35735var cachedSetTimeout; 35736var cachedClearTimeout; 35737 35738function defaultSetTimout() { 35739 throw new Error('setTimeout has not been defined'); 35740} 35741function defaultClearTimeout () { 35742 throw new Error('clearTimeout has not been defined'); 35743} 35744(function () { 35745 try { 35746 if (typeof setTimeout === 'function') { 35747 cachedSetTimeout = setTimeout; 35748 } else { 35749 cachedSetTimeout = defaultSetTimout; 35750 } 35751 } catch (e) { 35752 cachedSetTimeout = defaultSetTimout; 35753 } 35754 try { 35755 if (typeof clearTimeout === 'function') { 35756 cachedClearTimeout = clearTimeout; 35757 } else { 35758 cachedClearTimeout = defaultClearTimeout; 35759 } 35760 } catch (e) { 35761 cachedClearTimeout = defaultClearTimeout; 35762 } 35763} ()) 35764function runTimeout(fun) { 35765 if (cachedSetTimeout === setTimeout) { 35766 //normal enviroments in sane situations 35767 return setTimeout(fun, 0); 35768 } 35769 // if setTimeout wasn't available but was latter defined 35770 if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { 35771 cachedSetTimeout = setTimeout; 35772 return setTimeout(fun, 0); 35773 } 35774 try { 35775 // when when somebody has screwed with setTimeout but no I.E. maddness 35776 return cachedSetTimeout(fun, 0); 35777 } catch(e){ 35778 try { 35779 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally 35780 return cachedSetTimeout.call(null, fun, 0); 35781 } catch(e){ 35782 // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error 35783 return cachedSetTimeout.call(this, fun, 0); 35784 } 35785 } 35786 35787 35788} 35789function runClearTimeout(marker) { 35790 if (cachedClearTimeout === clearTimeout) { 35791 //normal enviroments in sane situations 35792 return clearTimeout(marker); 35793 } 35794 // if clearTimeout wasn't available but was latter defined 35795 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { 35796 cachedClearTimeout = clearTimeout; 35797 return clearTimeout(marker); 35798 } 35799 try { 35800 // when when somebody has screwed with setTimeout but no I.E. maddness 35801 return cachedClearTimeout(marker); 35802 } catch (e){ 35803 try { 35804 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally 35805 return cachedClearTimeout.call(null, marker); 35806 } catch (e){ 35807 // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. 35808 // Some versions of I.E. have different rules for clearTimeout vs setTimeout 35809 return cachedClearTimeout.call(this, marker); 35810 } 35811 } 35812 35813 35814 35815} 35816var queue = []; 35817var draining = false; 35818var currentQueue; 35819var queueIndex = -1; 35820 35821function cleanUpNextTick() { 35822 if (!draining || !currentQueue) { 35823 return; 35824 } 35825 draining = false; 35826 if (currentQueue.length) { 35827 queue = currentQueue.concat(queue); 35828 } else { 35829 queueIndex = -1; 35830 } 35831 if (queue.length) { 35832 drainQueue(); 35833 } 35834} 35835 35836function drainQueue() { 35837 if (draining) { 35838 return; 35839 } 35840 var timeout = runTimeout(cleanUpNextTick); 35841 draining = true; 35842 35843 var len = queue.length; 35844 while(len) { 35845 currentQueue = queue; 35846 queue = []; 35847 while (++queueIndex < len) { 35848 if (currentQueue) { 35849 currentQueue[queueIndex].run(); 35850 } 35851 } 35852 queueIndex = -1; 35853 len = queue.length; 35854 } 35855 currentQueue = null; 35856 draining = false; 35857 runClearTimeout(timeout); 35858} 35859 35860process.nextTick = function (fun) { 35861 var args = new Array(arguments.length - 1); 35862 if (arguments.length > 1) { 35863 for (var i = 1; i < arguments.length; i++) { 35864 args[i - 1] = arguments[i]; 35865 } 35866 } 35867 queue.push(new Item(fun, args)); 35868 if (queue.length === 1 && !draining) { 35869 runTimeout(drainQueue); 35870 } 35871}; 35872 35873// v8 likes predictible objects 35874function Item(fun, array) { 35875 this.fun = fun; 35876 this.array = array; 35877} 35878Item.prototype.run = function () { 35879 this.fun.apply(null, this.array); 35880}; 35881process.title = 'browser'; 35882process.browser = true; 35883process.env = {}; 35884process.argv = []; 35885process.version = ''; // empty string to avoid regexp issues 35886process.versions = {}; 35887 35888function noop() {} 35889 35890process.on = noop; 35891process.addListener = noop; 35892process.once = noop; 35893process.off = noop; 35894process.removeListener = noop; 35895process.removeAllListeners = noop; 35896process.emit = noop; 35897process.prependListener = noop; 35898process.prependOnceListener = noop; 35899 35900process.listeners = function (name) { return [] } 35901 35902process.binding = function (name) { 35903 throw new Error('process.binding is not supported'); 35904}; 35905 35906process.cwd = function () { return '/' }; 35907process.chdir = function (dir) { 35908 throw new Error('process.chdir is not supported'); 35909}; 35910process.umask = function() { return 0; }; 35911 35912 35913/***/ }), 35914 35915/***/ "./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss": 35916/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ 35917 !*** ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss ***! 35918 \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ 35919/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35920 35921"use strict"; 35922__webpack_require__.r(__webpack_exports__); 35923/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); 35924/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); 35925/* harmony import */ var _node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BaseSelect_vue_vue_type_style_index_0_id_f1c5db0e_lang_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!../../../node_modules/vue-loader/dist/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss"); 35926 35927 35928 35929var options = {}; 35930 35931options.insert = "head"; 35932options.singleton = false; 35933 35934var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BaseSelect_vue_vue_type_style_index_0_id_f1c5db0e_lang_scss__WEBPACK_IMPORTED_MODULE_1__["default"], options); 35935 35936 35937 35938/* harmony default export */ __webpack_exports__["default"] = (_node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BaseSelect_vue_vue_type_style_index_0_id_f1c5db0e_lang_scss__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {}); 35939 35940/***/ }), 35941
vendor: 2,000 bytes, lines 35942-35968
35942/***/ "./node_modules/@vuepic/vue-datepicker/dist/main.css": 35943/*!***********************************************************!*\ 35944 !*** ./node_modules/@vuepic/vue-datepicker/dist/main.css ***! 35945 \***********************************************************/ 35946/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35947 35948"use strict"; 35949__webpack_require__.r(__webpack_exports__); 35950/* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); 35951/* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); 35952/* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_main_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./main.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/@vuepic/vue-datepicker/dist/main.css"); 35953 35954 35955 35956var options = {}; 35957 35958options.insert = "head"; 35959options.singleton = false; 35960 35961var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_main_css__WEBPACK_IMPORTED_MODULE_1__["default"], options); 35962 35963 35964 35965/* harmony default export */ __webpack_exports__["default"] = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_main_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {}); 35966 35967/***/ }), 35968
vendor: 10,559 bytes, lines 35969-36049
35969/***/ "./node_modules/vue-toastification/dist/index.css": 35970/*!********************************************************!*\ 35971 !*** ./node_modules/vue-toastification/dist/index.css ***! 35972 \********************************************************/ 35973/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 35974 35975"use strict"; 35976__webpack_require__.r(__webpack_exports__); 35977/* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); 35978/* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); 35979/* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./index.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-toastification/dist/index.css"); 35980 35981 35982 35983var options = {}; 35984 35985options.insert = "head"; 35986options.singleton = false; 35987 35988var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_index_css__WEBPACK_IMPORTED_MODULE_1__["default"], options); 35989 35990 35991 35992/* harmony default export */ __webpack_exports__["default"] = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_index_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {}); 35993 35994/***/ }), 35995 35996/***/ "./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css": 35997/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ 35998 !*** ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css ***! 35999 \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ 36000/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36001 36002"use strict"; 36003__webpack_require__.r(__webpack_exports__); 36004/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); 36005/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); 36006/* harmony import */ var _node_modules_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_CompanyData_vue_vue_type_style_index_0_id_457cc02b_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../../node_modules/vue-loader/dist/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css"); 36007 36008 36009 36010var options = {}; 36011 36012options.insert = "head"; 36013options.singleton = false; 36014 36015var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_CompanyData_vue_vue_type_style_index_0_id_457cc02b_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__["default"], options); 36016 36017 36018 36019/* harmony default export */ __webpack_exports__["default"] = (_node_modules_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_CompanyData_vue_vue_type_style_index_0_id_457cc02b_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {}); 36020 36021/***/ }), 36022 36023/***/ "./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css": 36024/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ 36025 !*** ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css ***! 36026 \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ 36027/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36028 36029"use strict"; 36030__webpack_require__.r(__webpack_exports__); 36031/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); 36032/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); 36033/* harmony import */ var _node_modules_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_RegistrationData_vue_vue_type_style_index_0_id_ed527d62_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../../node_modules/vue-loader/dist/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css"); 36034 36035 36036 36037var options = {}; 36038 36039options.insert = "head"; 36040options.singleton = false; 36041 36042var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_RegistrationData_vue_vue_type_style_index_0_id_ed527d62_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__["default"], options); 36043 36044 36045 36046/* harmony default export */ __webpack_exports__["default"] = (_node_modules_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_RegistrationData_vue_vue_type_style_index_0_id_ed527d62_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {}); 36047 36048/***/ }), 36049
vendor: 7,205 bytes, lines 36050-36328
36050/***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js": 36051/*!****************************************************************************!*\ 36052 !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! 36053 \****************************************************************************/ 36054/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 36055 36056"use strict"; 36057 36058 36059var isOldIE = function isOldIE() { 36060 var memo; 36061 return function memorize() { 36062 if (typeof memo === 'undefined') { 36063 // Test for IE <= 9 as proposed by Browserhacks 36064 // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 36065 // Tests for existence of standard globals is to allow style-loader 36066 // to operate correctly into non-standard environments 36067 // @see https://github.com/webpack-contrib/style-loader/issues/177 36068 memo = Boolean(window && document && document.all && !window.atob); 36069 } 36070 36071 return memo; 36072 }; 36073}(); 36074 36075var getTarget = function getTarget() { 36076 var memo = {}; 36077 return function memorize(target) { 36078 if (typeof memo[target] === 'undefined') { 36079 var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself 36080 36081 if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { 36082 try { 36083 // This will throw an exception if access to iframe is blocked 36084 // due to cross-origin restrictions 36085 styleTarget = styleTarget.contentDocument.head; 36086 } catch (e) { 36087 // istanbul ignore next 36088 styleTarget = null; 36089 } 36090 } 36091 36092 memo[target] = styleTarget; 36093 } 36094 36095 return memo[target]; 36096 }; 36097}(); 36098 36099var stylesInDom = []; 36100 36101function getIndexByIdentifier(identifier) { 36102 var result = -1; 36103 36104 for (var i = 0; i < stylesInDom.length; i++) { 36105 if (stylesInDom[i].identifier === identifier) { 36106 result = i; 36107 break; 36108 } 36109 } 36110 36111 return result; 36112} 36113 36114function modulesToDom(list, options) { 36115 var idCountMap = {}; 36116 var identifiers = []; 36117 36118 for (var i = 0; i < list.length; i++) { 36119 var item = list[i]; 36120 var id = options.base ? item[0] + options.base : item[0]; 36121 var count = idCountMap[id] || 0; 36122 var identifier = "".concat(id, " ").concat(count); 36123 idCountMap[id] = count + 1; 36124 var index = getIndexByIdentifier(identifier); 36125 var obj = { 36126 css: item[1], 36127 media: item[2], 36128 sourceMap: item[3] 36129 }; 36130 36131 if (index !== -1) { 36132 stylesInDom[index].references++; 36133 stylesInDom[index].updater(obj); 36134 } else { 36135 stylesInDom.push({ 36136 identifier: identifier, 36137 updater: addStyle(obj, options), 36138 references: 1 36139 }); 36140 } 36141 36142 identifiers.push(identifier); 36143 } 36144 36145 return identifiers; 36146} 36147 36148function insertStyleElement(options) { 36149 var style = document.createElement('style'); 36150 var attributes = options.attributes || {}; 36151 36152 if (typeof attributes.nonce === 'undefined') { 36153 var nonce = true ? __webpack_require__.nc : 0; 36154 36155 if (nonce) { 36156 attributes.nonce = nonce; 36157 } 36158 } 36159 36160 Object.keys(attributes).forEach(function (key) { 36161 style.setAttribute(key, attributes[key]); 36162 }); 36163 36164 if (typeof options.insert === 'function') { 36165 options.insert(style); 36166 } else { 36167 var target = getTarget(options.insert || 'head'); 36168 36169 if (!target) { 36170 throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); 36171 } 36172 36173 target.appendChild(style); 36174 } 36175 36176 return style; 36177} 36178 36179function removeStyleElement(style) { 36180 // istanbul ignore if 36181 if (style.parentNode === null) { 36182 return false; 36183 } 36184 36185 style.parentNode.removeChild(style); 36186} 36187/* istanbul ignore next */ 36188 36189 36190var replaceText = function replaceText() { 36191 var textStore = []; 36192 return function replace(index, replacement) { 36193 textStore[index] = replacement; 36194 return textStore.filter(Boolean).join('\n'); 36195 }; 36196}(); 36197 36198function applyToSingletonTag(style, index, remove, obj) { 36199 var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE 36200 36201 /* istanbul ignore if */ 36202 36203 if (style.styleSheet) { 36204 style.styleSheet.cssText = replaceText(index, css); 36205 } else { 36206 var cssNode = document.createTextNode(css); 36207 var childNodes = style.childNodes; 36208 36209 if (childNodes[index]) { 36210 style.removeChild(childNodes[index]); 36211 } 36212 36213 if (childNodes.length) { 36214 style.insertBefore(cssNode, childNodes[index]); 36215 } else { 36216 style.appendChild(cssNode); 36217 } 36218 } 36219} 36220 36221function applyToTag(style, options, obj) { 36222 var css = obj.css; 36223 var media = obj.media; 36224 var sourceMap = obj.sourceMap; 36225 36226 if (media) { 36227 style.setAttribute('media', media); 36228 } else { 36229 style.removeAttribute('media'); 36230 } 36231 36232 if (sourceMap && typeof btoa !== 'undefined') { 36233 css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */"); 36234 } // For old IE 36235 36236 /* istanbul ignore if */ 36237 36238 36239 if (style.styleSheet) { 36240 style.styleSheet.cssText = css; 36241 } else { 36242 while (style.firstChild) { 36243 style.removeChild(style.firstChild); 36244 } 36245 36246 style.appendChild(document.createTextNode(css)); 36247 } 36248} 36249 36250var singleton = null; 36251var singletonCounter = 0; 36252 36253function addStyle(obj, options) { 36254 var style; 36255 var update; 36256 var remove; 36257 36258 if (options.singleton) { 36259 var styleIndex = singletonCounter++; 36260 style = singleton || (singleton = insertStyleElement(options)); 36261 update = applyToSingletonTag.bind(null, style, styleIndex, false); 36262 remove = applyToSingletonTag.bind(null, style, styleIndex, true); 36263 } else { 36264 style = insertStyleElement(options); 36265 update = applyToTag.bind(null, style, options); 36266 36267 remove = function remove() { 36268 removeStyleElement(style); 36269 }; 36270 } 36271 36272 update(obj); 36273 return function updateStyle(newObj) { 36274 if (newObj) { 36275 if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) { 36276 return; 36277 } 36278 36279 update(obj = newObj); 36280 } else { 36281 remove(); 36282 } 36283 }; 36284} 36285 36286module.exports = function (list, options) { 36287 options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style> 36288 // tags it will allow on a page 36289 36290 if (!options.singleton && typeof options.singleton !== 'boolean') { 36291 options.singleton = isOldIE(); 36292 } 36293 36294 list = list || []; 36295 var lastIdentifiers = modulesToDom(list, options); 36296 return function update(newList) { 36297 newList = newList || []; 36298 36299 if (Object.prototype.toString.call(newList) !== '[object Array]') { 36300 return; 36301 } 36302 36303 for (var i = 0; i < lastIdentifiers.length; i++) { 36304 var identifier = lastIdentifiers[i]; 36305 var index = getIndexByIdentifier(identifier); 36306 stylesInDom[index].references--; 36307 } 36308 36309 var newLastIdentifiers = modulesToDom(newList, options); 36310 36311 for (var _i = 0; _i < lastIdentifiers.length; _i++) { 36312 var _identifier = lastIdentifiers[_i]; 36313 36314 var _index = getIndexByIdentifier(_identifier); 36315 36316 if (stylesInDom[_index].references === 0) { 36317 stylesInDom[_index].updater(); 36318 36319 stylesInDom.splice(_index, 1); 36320 } 36321 } 36322 36323 lastIdentifiers = newLastIdentifiers; 36324 }; 36325}; 36326 36327/***/ }), 36328
vendor: 635 bytes, lines 36329-36350
36329/***/ "./node_modules/vue-loader/dist/exportHelper.js": 36330/*!******************************************************!*\ 36331 !*** ./node_modules/vue-loader/dist/exportHelper.js ***! 36332 \******************************************************/ 36333/***/ (function(__unused_webpack_module, exports) { 36334 36335"use strict"; 36336 36337Object.defineProperty(exports, "__esModule", ({ value: true })); 36338// runtime helper for setting properties on components 36339// in a tree-shakable way 36340exports["default"] = (sfc, props) => { 36341 const target = sfc.__vccOpts || sfc; 36342 for (const [key, val] of props) { 36343 target[key] = val; 36344 } 36345 return target; 36346}; 36347 36348 36349/***/ }), 36350
36351/***/ "./src/js/components/BaseSelect.vue": 36352/*!******************************************!*\ 36353 !*** ./src/js/components/BaseSelect.vue ***! 36354 \******************************************/ 36355/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36356 36357"use strict"; 36358__webpack_require__.r(__webpack_exports__); 36359/* harmony import */ var _BaseSelect_vue_vue_type_template_id_f1c5db0e__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BaseSelect.vue?vue&type=template&id=f1c5db0e */ "./src/js/components/BaseSelect.vue?vue&type=template&id=f1c5db0e"); 36360/* harmony import */ var _BaseSelect_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseSelect.vue?vue&type=script&lang=js */ "./src/js/components/BaseSelect.vue?vue&type=script&lang=js"); 36361/* harmony import */ var _BaseSelect_vue_vue_type_style_index_0_id_f1c5db0e_lang_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss */ "./src/js/components/BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss"); 36362/* harmony import */ var C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); 36363 36364 36365 36366 36367; 36368 36369 36370const __exports__ = /*#__PURE__*/(0,C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_3__["default"])(_BaseSelect_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_BaseSelect_vue_vue_type_template_id_f1c5db0e__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"src/js/components/BaseSelect.vue"]]) 36371/* hot reload */ 36372if (false) {} 36373 36374 36375/* harmony default export */ __webpack_exports__["default"] = (__exports__); 36376 36377/***/ }), 36378
36379/***/ "./src/js/components/CompanyData.vue": 36380/*!*******************************************!*\ 36381 !*** ./src/js/components/CompanyData.vue ***! 36382 \*******************************************/ 36383/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36384 36385"use strict"; 36386__webpack_require__.r(__webpack_exports__); 36387/* harmony import */ var _CompanyData_vue_vue_type_template_id_457cc02b_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CompanyData.vue?vue&type=template&id=457cc02b&scoped=true */ "./src/js/components/CompanyData.vue?vue&type=template&id=457cc02b&scoped=true"); 36388/* harmony import */ var _CompanyData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CompanyData.vue?vue&type=script&lang=js */ "./src/js/components/CompanyData.vue?vue&type=script&lang=js"); 36389/* harmony import */ var _CompanyData_vue_vue_type_style_index_0_id_457cc02b_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css */ "./src/js/components/CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css"); 36390/* harmony import */ var C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); 36391 36392 36393 36394 36395; 36396 36397 36398const __exports__ = /*#__PURE__*/(0,C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_3__["default"])(_CompanyData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_CompanyData_vue_vue_type_template_id_457cc02b_scoped_true__WEBPACK_IMPORTED_MODULE_0__.render],['__scopeId',"data-v-457cc02b"],['__file',"src/js/components/CompanyData.vue"]]) 36399/* hot reload */ 36400if (false) {} 36401 36402 36403/* harmony default export */ __webpack_exports__["default"] = (__exports__); 36404 36405/***/ }), 36406
36407/***/ "./src/js/components/EventData.vue": 36408/*!*****************************************!*\ 36409 !*** ./src/js/components/EventData.vue ***! 36410 \*****************************************/ 36411/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36412 36413"use strict"; 36414__webpack_require__.r(__webpack_exports__); 36415/* harmony import */ var _EventData_vue_vue_type_template_id_8bbc2770__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventData.vue?vue&type=template&id=8bbc2770 */ "./src/js/components/EventData.vue?vue&type=template&id=8bbc2770"); 36416/* harmony import */ var _EventData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EventData.vue?vue&type=script&lang=js */ "./src/js/components/EventData.vue?vue&type=script&lang=js"); 36417/* harmony import */ var C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); 36418 36419 36420 36421 36422; 36423const __exports__ = /*#__PURE__*/(0,C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_EventData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_EventData_vue_vue_type_template_id_8bbc2770__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"src/js/components/EventData.vue"]]) 36424/* hot reload */ 36425if (false) {} 36426 36427 36428/* harmony default export */ __webpack_exports__["default"] = (__exports__); 36429 36430/***/ }), 36431
36432/***/ "./src/js/components/EventForm.vue": 36433/*!*****************************************!*\ 36434 !*** ./src/js/components/EventForm.vue ***! 36435 \*****************************************/ 36436/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36437 36438"use strict"; 36439__webpack_require__.r(__webpack_exports__); 36440/* harmony import */ var _EventForm_vue_vue_type_template_id_6bbaec62__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EventForm.vue?vue&type=template&id=6bbaec62 */ "./src/js/components/EventForm.vue?vue&type=template&id=6bbaec62"); 36441/* harmony import */ var _EventForm_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EventForm.vue?vue&type=script&lang=js */ "./src/js/components/EventForm.vue?vue&type=script&lang=js"); 36442/* harmony import */ var C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); 36443 36444 36445 36446 36447; 36448const __exports__ = /*#__PURE__*/(0,C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_EventForm_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_EventForm_vue_vue_type_template_id_6bbaec62__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"src/js/components/EventForm.vue"]]) 36449/* hot reload */ 36450if (false) {} 36451 36452 36453/* harmony default export */ __webpack_exports__["default"] = (__exports__); 36454 36455/***/ }), 36456
36457/***/ "./src/js/components/InputFileUpload.vue": 36458/*!***********************************************!*\ 36459 !*** ./src/js/components/InputFileUpload.vue ***! 36460 \***********************************************/ 36461/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36462 36463"use strict"; 36464__webpack_require__.r(__webpack_exports__); 36465/* harmony import */ var _InputFileUpload_vue_vue_type_template_id_5c733b2a__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./InputFileUpload.vue?vue&type=template&id=5c733b2a */ "./src/js/components/InputFileUpload.vue?vue&type=template&id=5c733b2a"); 36466/* harmony import */ var _InputFileUpload_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InputFileUpload.vue?vue&type=script&lang=js */ "./src/js/components/InputFileUpload.vue?vue&type=script&lang=js"); 36467/* harmony import */ var C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); 36468 36469 36470 36471 36472; 36473const __exports__ = /*#__PURE__*/(0,C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_InputFileUpload_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_InputFileUpload_vue_vue_type_template_id_5c733b2a__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"src/js/components/InputFileUpload.vue"]]) 36474/* hot reload */ 36475if (false) {} 36476 36477 36478/* harmony default export */ __webpack_exports__["default"] = (__exports__); 36479 36480/***/ }), 36481
36482/***/ "./src/js/components/RegistrationData.vue": 36483/*!************************************************!*\ 36484 !*** ./src/js/components/RegistrationData.vue ***! 36485 \************************************************/ 36486/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36487 36488"use strict"; 36489__webpack_require__.r(__webpack_exports__); 36490/* harmony import */ var _RegistrationData_vue_vue_type_template_id_ed527d62_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RegistrationData.vue?vue&type=template&id=ed527d62&scoped=true */ "./src/js/components/RegistrationData.vue?vue&type=template&id=ed527d62&scoped=true"); 36491/* harmony import */ var _RegistrationData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RegistrationData.vue?vue&type=script&lang=js */ "./src/js/components/RegistrationData.vue?vue&type=script&lang=js"); 36492/* harmony import */ var _RegistrationData_vue_vue_type_style_index_0_id_ed527d62_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css */ "./src/js/components/RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css"); 36493/* harmony import */ var C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); 36494 36495 36496 36497 36498; 36499 36500 36501const __exports__ = /*#__PURE__*/(0,C_www_xampp_htdocs_wknoe_berufsinformationen_2023_themes_wknoe_berufsinformationen_2023_app_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_3__["default"])(_RegistrationData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_RegistrationData_vue_vue_type_template_id_ed527d62_scoped_true__WEBPACK_IMPORTED_MODULE_0__.render],['__scopeId',"data-v-ed527d62"],['__file',"src/js/components/RegistrationData.vue"]]) 36502/* hot reload */ 36503if (false) {} 36504 36505 36506/* harmony default export */ __webpack_exports__["default"] = (__exports__); 36507 36508/***/ }), 36509 36510/***/ "./src/js/components/BaseSelect.vue?vue&type=script&lang=js": 36511/*!******************************************************************!*\ 36512 !*** ./src/js/components/BaseSelect.vue?vue&type=script&lang=js ***! 36513 \******************************************************************/ 36514/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36515 36516"use strict"; 36517__webpack_require__.r(__webpack_exports__); 36518/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36519/* harmony export */ "default": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BaseSelect_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]; } 36520/* harmony export */ }); 36521/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BaseSelect_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./BaseSelect.vue?vue&type=script&lang=js */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=script&lang=js"); 36522 36523 36524/***/ }), 36525 36526/***/ "./src/js/components/CompanyData.vue?vue&type=script&lang=js": 36527/*!*******************************************************************!*\ 36528 !*** ./src/js/components/CompanyData.vue?vue&type=script&lang=js ***! 36529 \*******************************************************************/ 36530/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36531 36532"use strict"; 36533__webpack_require__.r(__webpack_exports__); 36534/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36535/* harmony export */ "default": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_CompanyData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]; } 36536/* harmony export */ }); 36537/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_CompanyData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./CompanyData.vue?vue&type=script&lang=js */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=script&lang=js"); 36538 36539 36540/***/ }), 36541 36542/***/ "./src/js/components/EventData.vue?vue&type=script&lang=js": 36543/*!*****************************************************************!*\ 36544 !*** ./src/js/components/EventData.vue?vue&type=script&lang=js ***! 36545 \*****************************************************************/ 36546/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36547 36548"use strict"; 36549__webpack_require__.r(__webpack_exports__); 36550/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36551/* harmony export */ "default": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_EventData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]; } 36552/* harmony export */ }); 36553/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_EventData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./EventData.vue?vue&type=script&lang=js */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventData.vue?vue&type=script&lang=js"); 36554 36555 36556/***/ }), 36557 36558/***/ "./src/js/components/EventForm.vue?vue&type=script&lang=js": 36559/*!*****************************************************************!*\ 36560 !*** ./src/js/components/EventForm.vue?vue&type=script&lang=js ***! 36561 \*****************************************************************/ 36562/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36563 36564"use strict"; 36565__webpack_require__.r(__webpack_exports__); 36566/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36567/* harmony export */ "default": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_EventForm_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]; } 36568/* harmony export */ }); 36569/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_EventForm_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./EventForm.vue?vue&type=script&lang=js */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventForm.vue?vue&type=script&lang=js"); 36570 36571 36572/***/ }), 36573 36574/***/ "./src/js/components/InputFileUpload.vue?vue&type=script&lang=js": 36575/*!***********************************************************************!*\ 36576 !*** ./src/js/components/InputFileUpload.vue?vue&type=script&lang=js ***! 36577 \***********************************************************************/ 36578/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36579 36580"use strict"; 36581__webpack_require__.r(__webpack_exports__); 36582/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36583/* harmony export */ "default": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_InputFileUpload_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]; } 36584/* harmony export */ }); 36585/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_InputFileUpload_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./InputFileUpload.vue?vue&type=script&lang=js */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/InputFileUpload.vue?vue&type=script&lang=js"); 36586 36587 36588/***/ }), 36589 36590/***/ "./src/js/components/RegistrationData.vue?vue&type=script&lang=js": 36591/*!************************************************************************!*\ 36592 !*** ./src/js/components/RegistrationData.vue?vue&type=script&lang=js ***! 36593 \************************************************************************/ 36594/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36595 36596"use strict"; 36597__webpack_require__.r(__webpack_exports__); 36598/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36599/* harmony export */ "default": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_RegistrationData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]; } 36600/* harmony export */ }); 36601/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_RegistrationData_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./RegistrationData.vue?vue&type=script&lang=js */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=script&lang=js"); 36602 36603 36604/***/ }), 36605 36606/***/ "./src/js/components/BaseSelect.vue?vue&type=template&id=f1c5db0e": 36607/*!************************************************************************!*\ 36608 !*** ./src/js/components/BaseSelect.vue?vue&type=template&id=f1c5db0e ***! 36609 \************************************************************************/ 36610/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36611 36612"use strict"; 36613__webpack_require__.r(__webpack_exports__); 36614/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36615/* harmony export */ "render": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BaseSelect_vue_vue_type_template_id_f1c5db0e__WEBPACK_IMPORTED_MODULE_0__.render; } 36616/* harmony export */ }); 36617/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BaseSelect_vue_vue_type_template_id_f1c5db0e__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./BaseSelect.vue?vue&type=template&id=f1c5db0e */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=template&id=f1c5db0e"); 36618 36619
36620/***/ }), 36621 36622/***/ "./src/js/components/CompanyData.vue?vue&type=template&id=457cc02b&scoped=true": 36623/*!*************************************************************************************!*\ 36624 !*** ./src/js/components/CompanyData.vue?vue&type=template&id=457cc02b&scoped=true ***! 36625 \*************************************************************************************/ 36626/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36627 36628"use strict"; 36629__webpack_require__.r(__webpack_exports__); 36630/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36631/* harmony export */ "render": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_CompanyData_vue_vue_type_template_id_457cc02b_scoped_true__WEBPACK_IMPORTED_MODULE_0__.render; } 36632/* harmony export */ }); 36633/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_CompanyData_vue_vue_type_template_id_457cc02b_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./CompanyData.vue?vue&type=template&id=457cc02b&scoped=true */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=template&id=457cc02b&scoped=true"); 36634 36635 36636/***/ }), 36637 36638/***/ "./src/js/components/EventData.vue?vue&type=template&id=8bbc2770": 36639/*!***********************************************************************!*\ 36640 !*** ./src/js/components/EventData.vue?vue&type=template&id=8bbc2770 ***! 36641 \***********************************************************************/ 36642/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36643 36644"use strict"; 36645__webpack_require__.r(__webpack_exports__); 36646/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36647/* harmony export */ "render": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_EventData_vue_vue_type_template_id_8bbc2770__WEBPACK_IMPORTED_MODULE_0__.render; } 36648/* harmony export */ }); 36649/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_EventData_vue_vue_type_template_id_8bbc2770__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./EventData.vue?vue&type=template&id=8bbc2770 */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventData.vue?vue&type=template&id=8bbc2770"); 36650 36651 36652/***/ }), 36653 36654/***/ "./src/js/components/EventForm.vue?vue&type=template&id=6bbaec62": 36655/*!***********************************************************************!*\ 36656 !*** ./src/js/components/EventForm.vue?vue&type=template&id=6bbaec62 ***! 36657 \***********************************************************************/ 36658/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36659 36660"use strict"; 36661__webpack_require__.r(__webpack_exports__); 36662/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36663/* harmony export */ "render": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_EventForm_vue_vue_type_template_id_6bbaec62__WEBPACK_IMPORTED_MODULE_0__.render; } 36664/* harmony export */ }); 36665/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_EventForm_vue_vue_type_template_id_6bbaec62__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./EventForm.vue?vue&type=template&id=6bbaec62 */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/EventForm.vue?vue&type=template&id=6bbaec62"); 36666 36667 36668/***/ }), 36669 36670/***/ "./src/js/components/InputFileUpload.vue?vue&type=template&id=5c733b2a": 36671/*!*****************************************************************************!*\ 36672 !*** ./src/js/components/InputFileUpload.vue?vue&type=template&id=5c733b2a ***! 36673 \*****************************************************************************/ 36674/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36675 36676"use strict"; 36677__webpack_require__.r(__webpack_exports__); 36678/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36679/* harmony export */ "render": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_InputFileUpload_vue_vue_type_template_id_5c733b2a__WEBPACK_IMPORTED_MODULE_0__.render; } 36680/* harmony export */ }); 36681/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_InputFileUpload_vue_vue_type_template_id_5c733b2a__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./InputFileUpload.vue?vue&type=template&id=5c733b2a */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/InputFileUpload.vue?vue&type=template&id=5c733b2a"); 36682 36683 36684/***/ }), 36685 36686/***/ "./src/js/components/RegistrationData.vue?vue&type=template&id=ed527d62&scoped=true": 36687/*!******************************************************************************************!*\ 36688 !*** ./src/js/components/RegistrationData.vue?vue&type=template&id=ed527d62&scoped=true ***! 36689 \******************************************************************************************/ 36690/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36691 36692"use strict"; 36693__webpack_require__.r(__webpack_exports__); 36694/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36695/* harmony export */ "render": function() { return /* reexport safe */ _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_RegistrationData_vue_vue_type_template_id_ed527d62_scoped_true__WEBPACK_IMPORTED_MODULE_0__.render; } 36696/* harmony export */ }); 36697/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_RegistrationData_vue_vue_type_template_id_ed527d62_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./RegistrationData.vue?vue&type=template&id=ed527d62&scoped=true */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=template&id=ed527d62&scoped=true"); 36698 36699 36700/***/ }), 36701 36702/***/ "./src/js/components/BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss": 36703/*!***************************************************************************************!*\ 36704 !*** ./src/js/components/BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss ***! 36705 \***************************************************************************************/ 36706/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36707 36708"use strict"; 36709__webpack_require__.r(__webpack_exports__); 36710/* harmony import */ var _node_modules_style_loader_dist_cjs_js_node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_vue_loader_dist_stylePostLo
36710ader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BaseSelect_vue_vue_type_style_index_0_id_f1c5db0e_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/style-loader/dist/cjs.js!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!../../../node_modules/vue-loader/dist/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss */ "./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/BaseSelect.vue?vue&type=style&index=0&id=f1c5db0e&lang=scss"); 36711 36712 36713/***/ }), 36714 36715/***/ "./src/js/components/CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css": 36716/*!***************************************************************************************************!*\ 36717 !*** ./src/js/components/CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css ***! 36718 \***************************************************************************************************/ 36719/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36720 36721"use strict"; 36722__webpack_require__.r(__webpack_exports__); 36723/* harmony import */ var _node_modules_style_loader_dist_cjs_js_node_modules_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_CompanyData_vue_vue_type_style_index_0_id_457cc02b_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/style-loader/dist/cjs.js!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../../node_modules/vue-loader/dist/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css */ "./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/CompanyData.vue?vue&type=style&index=0&id=457cc02b&scoped=true&lang=css"); 36724 36725 36726/***/ }), 36727 36728/***/ "./src/js/components/RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css": 36729/*!********************************************************************************************************!*\ 36730 !*** ./src/js/components/RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css ***! 36731 \********************************************************************************************************/ 36732/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36733 36734"use strict"; 36735__webpack_require__.r(__webpack_exports__); 36736/* harmony import */ var _node_modules_style_loader_dist_cjs_js_node_modules_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_RegistrationData_vue_vue_type_style_index_0_id_ed527d62_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/style-loader/dist/cjs.js!../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../../node_modules/vue-loader/dist/stylePostLo
36736ader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css */ "./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/js/components/RegistrationData.vue?vue&type=style&index=0&id=ed527d62&scoped=true&lang=css"); 36737 36738 36739/***/ }), 36740
vendor: 33,071 bytes, lines 36741-36757
36741/***/ "./node_modules/vue-next-select/dist/vue-next-select.es.prod.js": 36742/*!**********************************************************************!*\ 36743 !*** ./node_modules/vue-next-select/dist/vue-next-select.es.prod.js ***! 36744 \**********************************************************************/ 36745/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36746 36747"use strict"; 36748__webpack_require__.r(__webpack_exports__); 36749/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36750/* harmony export */ "default": function() { return /* binding */ Y; } 36751/* harmony export */ }); 36752/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 36753function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,n){if(e){if("string"==typeof e)return N(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?N(e,n):void 0}}function N(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function E(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=D(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var a=0,l=function(){};return{s:l,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return u=e.done,e},e:function(e){i=!0,o=e},f:function(){try{u||null==t.return||t.return()}finally{if(i)throw o}}}}var L={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(a,l){var o=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null);return (0,vue__WEBPACK_IMPORTED_MODULE_0__.onMounted)((function(){a.autofocus&&o.value.focus()})),(0,vue__WEBPACK_IMPORTED_MODULE_0__.onUpdated)((function(){a.autofocus&&o.value.focus()})),{handleInput:function(e){l.emit("input",e),l.emit("update:modelValue",e.target.value)},handleChange:function(e){l.emit("change",e),l.emit("update:modelValue",e.target.value)},handleFocus:function(e){l.emit("focus",e)},handleBlur:function(e){l.emit("blur",e)},input:o,handleEscape:function(e){o.value.blur(),l.emit("escape",e)}}}},j={class:"vue-input"},$=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];L.render=function(e,n,t,c,d,s){return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div",j,[(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(e.$slots,"prepend"),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input",{ref:"input",autocomplete:t.autocomplete,modelValue:t.modelValue,placeholder:t.placeholder,disabled:t.disabled,onInput:n[0]||(n[0]=function(){return c.handleInput&&c.handleInput.apply(c,arguments)}),onChange:n[1]||(n[1]=function(){return c.handleChange&&c.handleChange.apply(c,arguments)}),onFocus:n[2]||(n[2]=function(){return c.handleFocus&&c.handleFocus.apply(c,arguments)}),onBlur:n[3]||(n[3]=function(){return c.handleBlur&&c.handleBlur.apply(c,arguments)}),onKeyup:n[4]||(n[4]=(0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)((function(){return c.handleEscape&&c.handleEscape.apply(c,arguments)}),["exact"]),["esc"])),tabindex:t.tabindex,autofocus:t.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(t.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(t.comboboxUid,"-combobox")},null,40,$),(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(e.$slots,"append")])},L.__file="src/components/input.vue";var U={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every((function(e){return void 0!==T(e.key)&&void 0!==e.label&&"boolean"==typeof e.selected}))}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,n){return{dataAttrs:(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("dataAttrs"),handleClick:function(e){n.emit("click",e)}}}};U.render=function(e,n,t,i,c,y){return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("ul",(0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({class:["vue-tags",{collapsed:t.collapseTags}],onMousedown:n[0]||(n[0]=(0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)((function(){}),["prevent"])),tabindex:"-1",onClick:n[1]||(n[1]=function(){return i.handleClick&&i.handleClick.apply(i,arguments)})},i.dataAttrs),[((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(!0),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(t.modelValue,(function(n){return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment,{key:n.key},[n.group?(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if",!0):((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("li",{key:0,class:(0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["vue-tag",{selected:n.selected}])},[(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(e.$slots,"default",{option:n},(function(){return[(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span",null,(0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(n.label),1)]}))],2))],64)})),128))],16)},U.__file="src/components/tags.vue";var z={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every((function(e){return void 0!==T(e.key)&&void 0!==e.label&&"boolean"==typeof e.selected}))}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(e,n){return{dataAttrs:(0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)("dataAttrs"),handleClickItem:function(e,t){t.disabled||n.emit("click-item",e,t)},handleMouseenter:function(e,t){n.emit("mouseenter",e,t)}}}},P=["id","aria-multiselectable","aria-busy","aria-disabled"],q=["onClick","onMouseenter","id","aria-selected","aria-disabled"];z.render=function(e,n,t,i,c,y){return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("ul",(0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({class:"vue-dropdown",style:{maxHeight:t.maxHeight+"px"},onMousedown:n[0]||(n[0]=(0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)((function(){}),["prevent"]))},i.dataAttrs,{role:"listbox",id:"vs".concat(t.comboboxUid,"-listbox"),"aria-multiselectable":i.dataAttrs["data-multiple"],"aria-busy":i.dataAttrs["data-loading"],"aria-disabled":i.dataAttrs["data-disabled"]}),[((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(!0),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(t.modelValue,(function(n,r){return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment,{key:n.key},[n.visible&&!1===n.hidden?((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("li",{key:0,onClick:function(e){return i.handleClickItem(e,n)},class:(0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["vue-dropdown-item",{selected:n.selected,disabled:n.disabled,highlighted:n.originalIndex===t.highlightedOriginalIndex,group:n.group}]),onMouseenter:function(e){return i.handleMouseenter(e,n)},role:"option",id:"vs".concat(t.comboboxUid,"-option-").concat(r),"aria-selected":!!n.selected||!!n.disabled&&void 0,"aria-disabled":n.disabled},[(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(e.$slots,"default",{option:n},(function(){return[(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span",null,(0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(n.label),1)]}))],42,q)):(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if",!0)],64)})),128))],16,P)},z.__file="src/components/dropdown.vue";var H=function(e,n,t){var a=t.valueBy;return a(e)===a(n)},_=function(e,n,t){var a=t.valueBy;return e.some((function(e){return H(e,n,{valueBy:a})}))},W=function(e,n,t){var a=t.valueBy;return e.find((function(e){return a(e)===n}))},Z=function(e,n,t){var a=t.max,l=t.valueBy;return _(e,n,{valueBy:l})||e.length>=a?e:e.concat(n)},R=function(e,n,t){var a=t.min,l=t.valueBy;return!1===_(e,n,{valueBy:l})||e.length<=a?e:e.filter((function(e){return!1===H(e,n,{valueBy:l})}))},G=function(e){return (0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return"function"==typeof e.value?e.value:"string"==typeof e.value?function(n){return e.value.split(".").reduce((function(e,n){return e[n]}),n)}:function(e){return e}}))},Q=function(e,n){var t=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return e.value.reduce((function(e,n){return Object.assign(e,(t={},a=n.originalIndex,l=n,a in t?Object.defineProperty(t,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[a]=l,t));var t,a,l}),{})})),a=function(e){var a=t.value[e];return void 0!==a&&(!1!==l(a)&&(n.value=e,!0))},l=function(e){return!e.disabled&&!e.hidden&&e.visible},o=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return e.value.some((function(e){return l(e)}))}));return (0,vue__WEBPACK_IMPORTED_MODULE_0__.watchEffect)((function(){if(!1===o.value&&(n.value=null),null!==n.value&&e.value.length<=n.value){var t,u=E(e.value.reverse());try{for(u.s();!(t=u.n()).done;){var i=t.value;if(a(i.originalIndex))break}}catch(e){u.e(e)}finally{u.f()}}if(null===n.value||!1===l(e.value[n.value])){var r,c=E(e.value);try{for(c.s();!(r=c.n()).done;){var d=r.value;if(a(d.originalIndex))break}}catch(e){c.e(e)}finally{c.f()}}})),{pointerForward:function(){if(!1!==o.value&&null!==n.value)for(var t=n.value+1,l=0;t!==n.value&&l++<e.value.length&&(e.value.length<=t&&(t=0),!a(t));)++t},pointerBackward:function(){if(!1!==o.value&&null!==n.value)for(var t=n.value-1,l=0;t!==n.value&&l++<e.value.length&&(t<0&&(t=e.value.length-1),!a(t));)--t},pointerSet:a}};var Y=(0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({name:"vue-select",inheritAttrs:!1,props:{modelValue:{required:!0},emptyModelValue:{},options:{required:!0,type:Array},labelBy:{type:[String,Function]},valueBy:{type:[String,Function]},disabledBy:{default:"disabled",type:[String,Function]},groupBy:{default:"group",type:[String,Function]},visibleOptions:{type:Array,default:null},multiple:{default:!1,type:Boolean},min:{default:0,type:Number},max:{default:1/0,type:Number},searchable:{default:!1,type:Boolean},searchPlaceholder:{default:"Type to search",type:String},clearOnSelect:{default:!1,type:Boolean},clearOnClose:{default:!1,type:Boolean},taggable:{default:!1,type:Boolean},collapseTags:{default:!1,type:Boolean},autocomplete:{default:"off",type:String},disabled:{default:!1,type:Boolean},loading:{default:!1,type:Boolean},closeOnSelect:{default:!1,type:Boolean},hideSelected:{default:!1,type:Boolean},placeholder:{default:"Select option",type:String},tabindex:{default:0,type:Number},autofocus:{default:!1,type:Boolean},maxHeight:{default:300,type:Number},openDirection:{type:String,validator:function(e){return["top","bottom"].includes(e)}}},emits:["selected","removed","update:modelValue","focus","blur","toggle","opened","closed","search:input","search:change","search:focus","search:blur"],setup:function(n,t){var a=function(e){var n=(0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)({}),t=G((0,vue__WEBPACK_IMPORTED_MODULE_0__.toRef)(e,"labelBy"));(0,vue__WEBPACK_IMPORTED_MODULE_0__.watchEffect)((function(){return n.labelBy=t.value}));var a=G((0,vue__WEBPACK_IMPORTED_MODULE_0__.toRef)(e,"valueBy"));(0,vue__WEBPACK_IMPORTED_MODULE_0__.watchEffect)((function(){return n.valueBy=a.value}));var l=G((0,vue__WEBPACK_IMPORTED_MODULE_0__.toRef)(e,"disabledBy"));(0,vue__WEBPACK_IMPORTED_MODULE_0__.watchEffect)((function(){return n.disabledBy=l.value}));var o=G((0,vue__WEBPACK_IMPORTED_MODULE_0__.toRef)(e,"groupBy"));(0,vue__WEBPACK_IMPORTED_MODULE_0__.watchEffect)((function(){return n.groupBy=o.value}));var u=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return e.multiple?e.min:Math.min(1,e.min)}));(0,vue__WEBPACK_IMPORTED_MODULE_0__.watchEffect)((function(){return n.min=u.value}));var i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return e.multiple?e.max:1}));return (0,vue__WEBPACK_IMPORTED_MODULE_0__.watchEffect)((function(){return n.max=i.value})),(0,vue__WEBPACK_IMPORTED_MODULE_0__.watchEffect)((function(){return n.options=e.options})),n}(n),l=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){var e;return null!==(e=n.emptyModelValue)&&void 0!==e?e:null})),o=(0,vue__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)(),u=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(),i=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(),r=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(),c=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){var e;return null===(e=r.value)||void 0===e?void 0:e._.refs.input})),d=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(!1);(0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)((function(){return d.value}),(function(){var e,a;d.value?(t.emit("opened"),t.emit("focus"),n.searchable?(c.value!==document.activeElement&&c.value.focus(),t.emit("search:focus")):null===(e=u.value)||void 0===e||e.focus()):(n.searchable?(c.value===document.activeElement&&c.value.blur(),n.clearOnClose&&D(),t.emit("search:blur")):null===(a=u.value)||void 0===a||a.blur(),t.emit("closed"),t.emit("blur")),t.emit("toggle")}));var s=function(){n.disabled||(d.value=!0)},v=function(e){var n;(null===(n=u.value)||void 0===n?void 0:n.contains(null==e?void 0:e.relatedTarget))?setTimeout((function(){var e;null===(e=u.value)||void 0===e||e.focus()})):d.value=!1};(0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)((function(){return n.disabled}),(function(){return v()}));var p=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(""),f=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return new RegExp(p.value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")})),g=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return p.value?a.options.filter((function(e){return f.value.test(a.labelBy(e))})):void 0})),B=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)([]),k=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return new Set(B.value.map((function(e){return a.valueBy(e)})))})),O=function(){if(n.multiple){if(!1===Array.isArray(n.modelValue))return!1;if(B.value.length!==n.modelValue.length)return!1;if(Object.keys(B.value).some((function(e){return B.value[e]!==W(a.options,n.modelValue[e],{valueBy:a.valueBy})})))return!1}else{if(0===B.value.length&&n.modelValue!==l.value)return!1;if(1===B.value.length&&n.modelValue===l.value)return!1;if(B.value[0]!==W(a.options,n.modelValue,{valueBy:a.valueBy}))return!1}return!0},F=function(){if(!O()){B.value=[];var e,t=E(n.multiple?n.modelValue:n.modelValue===l.value?[]:[n.modelValue]);try{for(t.s();!(e=t.n()).done;){var o=e.value,u=W(a.options,o,{valueBy:a.valueBy});!1!==_(a.options,u,{valueBy:a.valueBy})&&(B.value=Z(B.value,u,{max:1/0,valueBy:a.valueBy}))}}catch(e){t.e(e)}finally{t.f()}}};F(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)((function(){return n.modelValue}),(function(){return F()}),{deep:!0}),(0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)((function(){return a.options}),(function(){B.value=a.options.filter((function(e){return k.value.has(a.valueBy(e))}))}),{deep:!0});var V,S=function(e,n){(n=n.originalOption).value.every((function(e){var n=W(a.options,e,{valueBy:a.valueBy});return _(B.value,n,{valueBy:a.valueBy})}))?n.value.forEach((function(e){var n=W(a.options,e,{valueBy:a.valueBy});B.value=R(B.value,n,{min:a.min,valueBy:a.valueBy}),t.emit("removed",n)})):n.value.forEach((function(e){var n=W(a.options,e,{valueBy:a.valueBy});_(B.value,n,{valueBy:a.valueBy})||(B.value=Z(B.value,n,{max:a.max,valueBy:a.valueBy}),t.emit("selected",n))}))},A=function(e,l){if(l=l.originalOption,_(B.value,l,{valueBy:a.valueBy}))B.value=R(B.value,l,{min:a.min,valueBy:a.valueBy}),t.emit("removed",l);else{if(!n.multiple&&1===B.value.length){var o=B.value[0];B.value=R(B.value,B.value[0],{min:0,valueBy:a.valueBy}),t.emit("removed",o)}B.value=Z(B.value,l,{max:a.max,valueBy:a.valueBy}),t.emit("selected",l)}},T=function(){if(!O()){var e=B.value.map((function(e){return a.valueBy(e)}));n.multiple?t.emit("update:modelValue",e):e.length?t.emit("update:modelValue",e[0]):t.emit("update:modelValue",l.value)}},D=function(){c.value.value="",c.value.dispatchEvent(new Event("input")),c.value.dispatchEvent(new Event("change"))},N=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){var e,t;return null!==(t=null!==(e=n.visibleOptions)&&void 0!==e?e:g.value)&&void 0!==t?t:a.options})),L=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(0),j=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){var e,t=new Set(N.value.map((function(e){return a.valueBy(e)}))),l=a.options.map((function(e,l){var o,u={key:a.valueBy(e),label:a.labelBy(e),group:null!==(o=a.groupBy(e))&&void 0!==o&&o,originalIndex:l,originalOption:e};return u.selected=u.group?e.value.every((function(e){return k.value.has(e)})):k.value.has(a.valueBy(e)),u.disabled=u.group?a.disabledBy(e)||e.value.every((function(e){var n=W(a.options,e,{valueBy:a.valueBy});return a.disabledBy(n)})):a.disabledBy(e),u.visible=u.group?e.value.some((function(e){return t.has(e)})):t.has(a.valueBy(e)),u.hidden=!!n.hideSelected&&(u.group?e.value.every((function(e){return k.value.has(e)})):k.value.has(a.valueBy(e))),u})),o=E(l);try{for(o.s();!(e=o.n()).done;){var u=e.value;!1!==u.group&&(u.disabled&&function(){var e=new Set(u.originalOption.value);l.filter((function(n){return e.has(a.valueBy(n.originalOption))})).forEach((function(e){return e.disabled=!0}))}())}}catch(e){o.e(e)}finally{o.f()}return l})),$=Q(j,L),U=$.pointerForward,z=$.pointerBackward,P=$.pointerSet,q="",H=/^[\w]$/,Y=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){var e=C(a.options.keys());return e.slice(L.value).concat(e.slice(0,L.value))})),K=function(){var e,n=null===(e=u.value)||void 0===e?void 0:e.querySelector(".highlighted");if(n&&i.value){var t,a=getComputedStyle(n);for(t=0;n.offsetTop+parseFloat(a.height)+parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)>i.value.$el.clientHeight+i.value.$el.scrollTop&&t++<j.value.length;)i.value.$el.scrollTop=i.value.$el.scrollTop+parseFloat(a.height)+parseFloat(a.paddingTop)+parseFloat(a.paddingBottom);for(t=0;n.offsetTop<i.value.$el.scrollTop&&t++<j.value.length;)i.value.$el.scrollTop=i.value.$el.scrollTop-parseFloat(a.height)-parseFloat(a.paddingTop)-parseFloat(a.paddingBottom)}};(0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)((function(){return[d.value,a.options,k.value]}),(function(e,n){!0!==(null==n?void 0:n[0])&&!1!==d.value&&0!==B.value.length&&(P(a.options.findIndex((function(e){return k.value.has(a.valueBy(e))}))),(0,vue__WEBPACK_IMPORTED_MODULE_0__.nextTick)(K))}),{deep:!0,immediate:!0});var J=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return{"data-is-focusing":d.value,"data-visible-length":j.value.filter((function(e){return e.visible&&!1===e.hidden})).length,"data-not-selected-length":a.options.length-j.value.filter((function(e){return e.selected})).length,"data-selected-length":j.value.filter((function(e){return e.selected})).length,"data-addable":j.value.filter((function(e){return e.selected})).length<a.max,"data-removable":j.value.filter((function(e){return e.selected})).length>a.min,"data-total-length":a.options.length,"data-multiple":n.multiple,"data-loading":n.loading,"data-disabled":n.disabled}}));(0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)("dataAttrs",J);var X=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return j.value.filter((function(e){return e.selected})).filter((function(e){return!e.group}))})),ee=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){return n.multiple?0===X.value.length?n.placeholder:1===X.value.length?"1 option selected":X.value.length+" options selected":0===X.value.length?n.placeholder:X.value[0].label+""})),ne=(0,vue__WEBPACK_IMPORTED_MODULE_0__.computed)((function(){var e=X.value.map((function(e){return e.originalOption}));return n.multiple?e:e[0]||l.value})),te=(0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)();return (0,vue__WEBPACK_IMPORTED_MODULE_0__.watch)((function(){return[n.openDirection,d.value]}),(function(){var e,t;te.value=null!==(t=null!==(e=n.openDirection)&&void 0!==e?e:function(){if(void 0===u.value)return;if(void 0===window)return;return window.innerHeight-u.value.getBoundingClientRect().bottom>=n.maxHeight?"bottom":"top"}())&&void 0!==t?t:"bottom"}),{immediate:!0}),{instance:o,isFocusing:d,wrapper:u,dropdown:i,input:r,focus:s,blur:v,toggle:function(){d.value?v():s()},searchingInputValue:p,handleInputForInput:function(e){t.emit("search:input",e)},handleChangeForInput:function(e){t.emit("search:change",e)},handleFocusForInput:function(e){s()},handleBlurForInput:function(e){v()},optionsWithInfo:j,addOrRemoveOption:function(e,t){n.disabled||(t.group&&n.multiple?S(e,t):A(e,t),T(),!0===n.closeOnSelect&&(d.value=!1),!0===n.clearOnSelect&&p.value&&D())},dataAttrs:J,innerPlaceholder:ee,selected:ne,highlightedOriginalIndex:L,pointerForward:function(){U(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.nextTick)(K)},pointerBackward:function(){z(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.nextTick)(K)},pointerFirst:function(){var e,n=E(a.options.keys());try{for(n.s();!(e=n.n()).done;){var t=e.value;if(P(t))break}}catch(e){n.e(e)}finally{n.f()}(0,vue__WEBPACK_IMPORTED_MODULE_0__.nextTick)(K)},pointerLast:function(){var e,n=E(C(a.options.keys()).reverse());try{for(n.s();!(e=n.n()).done;){var t=e.value;if(P(t))break}}catch(e){n.e(e)}finally{n.f()}(0,vue__WEBPACK_IMPORTED_MODULE_0__.nextTick)(K)},typeAhead:function(e){var t,l;if(!n.searchable){var o=!1;if(H.test(e.key)?(q+=e.key.toLowerCase(),o=!0):"Space"===e.code&&(q+=" "),o){var u,i=E(Y.value);try{for(i.s();!(u=i.n()).done;){var r=u.value;if(!0===(null===(l=null===(t=a.labelBy(a.options[r]))||void 0===t?void 0:t.toLowerCase())||void 0===l?void 0:l.startsWith(q))&&P(r))break}}catch(e){i.e(e)}finally{i.f()}clearTimeout(V),V=setTimeout((function(){q=""}),500)}}},pointerSet:P,direction:te}},components:{VInput:L,VTags:U,VDropdown:z}});Y.__VERSION__="2.10.5";var K=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],J={class:"vue-select-header"},X={key:0,class:"vue-input"},ee=["placeholder","autocomplete"],ne=["onClick"],te=(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span",{class:"icon loading"},[(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div"),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div"),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div")],-1),ae={key:0,class:"vue-select-input-wrapper"},le=(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span",{class:"icon loading"},[(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div"),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div"),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div")],-1);Y.render=function(e,n,t,c,v,y){var m=(0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("v-tags"),h=(0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("v-input"),b=(0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("v-dropdown");return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div",(0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ref:"wrapper",class:["vue-select",["direction-".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:n[9]||(n[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:n[10]||(n[10]=function(n){return!e.searchable&&e.blur(n)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:n[11]||(n[11]=(0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)((function(){return null!==e.highlightedOriginalIndex&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])}),["prevent","exact"]),["enter"])),onKeydown:[n[12]||(n[12]=(0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)((function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)}),["prevent","exact"]),["down"])),n[13]||(n[13]=(0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)((function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)}),["prevent","exact"]),["up"])),n[14]||(n[14]=(0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)((function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)}),["prevent","exact"]),["home"])),n[15]||(n[15]=(0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)((function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)}),["prevent","exact"]),["end"])),n[16]||(n[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:"vs".concat(e.instance.uid,"-combobox"),role:e.searchable?"combobox":null,"aria-expanded":e.isFocusing,"aria-haspopup":"listbox","aria-owns":"vs".concat(e.instance.uid,"-listbox"),"aria-activedescendant":null===e.highlightedOriginalIndex?null:"vs".concat(e.instance.uid,"-option-").concat(e.highlightedOriginalIndex),"aria-busy":e.loading,"aria-disabled":e.disabled}),[(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div",J,[e.multiple&&e.taggable&&0===e.modelValue.length||!1===e.searchable&&!1===e.taggable?((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div",X,[(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(e.$slots,"label",{selected:e.selected},(function(){return[(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:"",onClick:n[0]||(n[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,ee)]}))])):(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if",!0),e.multiple&&e.taggable?((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment,{key:1},[(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(m,{modelValue:e.optionsWithInfo,"collapse-tags":e.collapseTags,tabindex:"-1",onClick:e.focus},{default:(0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)((function(n){var t=n.option;return[(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(e.$slots,"tag",{option:t.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,t)}},(function(){return[(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span",null,(0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(t.label),1),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==",alt:"delete tag",class:"icon delete",onClick:(0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)((function(){return e.addOrRemoveOption(e.$event,t)}),["prevent","stop"])},null,8,ne)]}))]})),_:3},8,["modelValue","collapse-tags","onClick"]),(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(e.$slots,"toggle",{isFocusing:e.isFocusing,toggle:e.toggle},(function(){return[(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span",{class:(0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["icon arrow-downward",{active:e.isFocusing}]),onClick:n[1]||(n[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:n[2]||(n[2]=(0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)((function(){}),["prevent","stop"]))},null,34)]}))],64)):((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment,{key:2},[e.searchable?((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(h,{key:0,ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":n[3]||(n[3]=function(n){return e.searchingInputValue=n}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"])):(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if",!0),e.loading?(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(e.$slots,"loading",{key:1},(function(){return[te]})):(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(e.$slots,"toggle",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},(function(){return[(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span",{class:(0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["icon arrow-downward",{active:e.isFocusing}]),onClick:n[4]||(n[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:n[5]||(n[5]=(0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)((function(){}),["prevent","stop"]))},null,34)]}))],64))]),e.multiple&&e.taggable&&e.searchable?((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div",ae,[(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(h,{ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":n[6]||(n[6]=function(n){return e.searchingInputValue=n}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"]),[[vue__WEBPACK_IMPORTED_MODULE_0__.vShow,e.isFocusing]]),e.loading?(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(e.$slots,"loading",{key:0},(function(){return[le]})):(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if",!0)])):(0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if",!0),(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(b,{ref:"dropdown",modelValue:e.optionsWithInfo,"onUpdate:modelValue":n[7]||(n[7]=function(n){return e.optionsWithInfo=n}),onClickItem:e.addOrRemoveOption,onMouseenter:n[8]||(n[8]=function(n,t){return e.pointerSet(t.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:(0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)((function(n){var t=n.option;return[(0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(e.$slots,"dropdown-item",{option:t.originalOption},(function(){return[(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span",null,(0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(t.label),1)]}))]})),_:3},8,["modelValue","onClickItem","comboboxUid","maxHeight","highlightedOriginalIndex"])],16,K)},Y.__file="src/index.vue"; 36754 36755 36756/***/ }), 36757
vendor: 25,578 bytes, lines 36758-37024
36758/***/ "./node_modules/vue/dist/vue.esm-bundler.js": 36759/*!**************************************************!*\ 36760 !*** ./node_modules/vue/dist/vue.esm-bundler.js ***! 36761 \**************************************************/ 36762/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36763 36764"use strict"; 36765__webpack_require__.r(__webpack_exports__); 36766/* harmony export */ __webpack_require__.d(__webpack_exports__, { 36767/* harmony export */ "BaseTransition": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.BaseTransition; }, 36768/* harmony export */ "Comment": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Comment; }, 36769/* harmony export */ "EffectScope": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.EffectScope; }, 36770/* harmony export */ "Fragment": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Fragment; }, 36771/* harmony export */ "KeepAlive": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.KeepAlive; }, 36772/* harmony export */ "ReactiveEffect": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect; }, 36773/* harmony export */ "Static": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Static; }, 36774/* harmony export */ "Suspense": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Suspense; }, 36775/* harmony export */ "Teleport": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Teleport; }, 36776/* harmony export */ "Text": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Text; }, 36777/* harmony export */ "Transition": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Transition; }, 36778/* harmony export */ "TransitionGroup": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.TransitionGroup; }, 36779/* harmony export */ "VueElement": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.VueElement; }, 36780/* harmony export */ "callWithAsyncErrorHandling": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling; }, 36781/* harmony export */ "callWithErrorHandling": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.callWithErrorHandling; }, 36782/* harmony export */ "camelize": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.camelize; }, 36783/* harmony export */ "capitalize": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.capitalize; }, 36784/* harmony export */ "cloneVNode": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.cloneVNode; }, 36785/* harmony export */ "compatUtils": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.compatUtils; }, 36786/* harmony export */ "compile": function() { return /* binding */ compileToFunction; }, 36787/* harmony export */ "computed": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.computed; }, 36788/* harmony export */ "createApp": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createApp; }, 36789/* harmony export */ "createBlock": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createBlock; }, 36790/* harmony export */ "createCommentVNode": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode; }, 36791/* harmony export */ "createElementBlock": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createElementBlock; }, 36792/* harmony export */ "createElementVNode": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createElementVNode; }, 36793/* harmony export */ "createHydrationRenderer": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer; }, 36794/* harmony export */ "createPropsRestProxy": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createPropsRestProxy; }, 36795/* harmony export */ "createRenderer": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createRenderer; }, 36796/* harmony export */ "createSSRApp": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createSSRApp; }, 36797/* harmony export */ "createSlots": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createSlots; }, 36798/* harmony export */ "createStaticVNode": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode; }, 36799/* harmony export */ "createTextVNode": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createTextVNode; }, 36800/* harmony export */ "createVNode": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createVNode; }, 36801/* harmony export */ "customRef": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.customRef; }, 36802/* harmony export */ "defineAsyncComponent": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent; }, 36803/* harmony export */ "defineComponent": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineComponent; }, 36804/* harmony export */ "defineCustomElement": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineCustomElement; }, 36805/* harmony export */ "defineEmits": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineEmits; }, 36806/* harmony export */ "defineExpose": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineExpose; }, 36807/* harmony export */ "defineProps": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineProps; }, 36808/* harmony export */ "defineSSRCustomElement": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineSSRCustomElement; }, 36809/* harmony export */ "devtools": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.devtools; }, 36810/* harmony export */ "effect": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.effect; }, 36811/* harmony export */ "effectScope": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.effectScope; }, 36812/* harmony export */ "getCurrentInstance": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance; }, 36813/* harmony export */ "getCurrentScope": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope; }, 36814/* harmony export */ "getTransitionRawChildren": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren; }, 36815/* harmony export */ "guardReactiveProps": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps; }, 36816/* harmony export */ "h": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.h; }, 36817/* harmony export */ "handleError": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.handleError; }, 36818/* harmony export */ "hydrate": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.hydrate; }, 36819/* harmony export */ "initCustomFormatter": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.initCustomFormatter; }, 36820/* harmony export */ "initDirectivesForSSR": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.initDirectivesForSSR; }, 36821/* harmony export */ "inject": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.inject; }, 36822/* harmony export */ "isMemoSame": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isMemoSame; }, 36823/* harmony export */ "isProxy": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isProxy; }, 36824/* harmony export */ "isReactive": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isReactive; }, 36825/* harmony export */ "isReadonly": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isReadonly; }, 36826/* harmony export */ "isRef": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isRef; }, 36827/* harmony export */ "isRuntimeOnly": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly; }, 36828/* harmony export */ "isShallow": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isShallow; }, 36829/* harmony export */ "isVNode": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isVNode; }, 36830/* harmony export */ "markRaw": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.markRaw; }, 36831/* harmony export */ "mergeDefaults": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.mergeDefaults; }, 36832/* harmony export */ "mergeProps": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.mergeProps; }, 36833/* harmony export */ "nextTick": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.nextTick; }, 36834/* harmony export */ "normalizeClass": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeClass; }, 36835/* harmony export */ "normalizeProps": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeProps; }, 36836/* harmony export */ "normalizeStyle": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle; }, 36837/* harmony export */ "onActivated": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onActivated; }, 36838/* harmony export */ "onBeforeMount": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeMount; }, 36839/* harmony export */ "onBeforeUnmount": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeUnmount; }, 36840/* harmony export */ "onBeforeUpdate": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeUpdate; }, 36841/* harmony export */ "onDeactivated": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onDeactivated; }, 36842/* harmony export */ "onErrorCaptured": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured; }, 36843/* harmony export */ "onMounted": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onMounted; }, 36844/* harmony export */ "onRenderTracked": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onRenderTracked; }, 36845/* harmony export */ "onRenderTriggered": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onRenderTriggered; }, 36846/* harmony export */ "onScopeDispose": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose; }, 36847/* harmony export */ "onServerPrefetch": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onServerPrefetch; }, 36848/* harmony export */ "onUnmounted": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onUnmounted; }, 36849/* harmony export */ "onUpdated": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onUpdated; }, 36850/* harmony export */ "openBlock": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.openBlock; }, 36851/* harmony export */ "popScopeId": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.popScopeId; }, 36852/* harmony export */ "provide": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.provide; }, 36853/* harmony export */ "proxyRefs": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.proxyRefs; }, 36854/* harmony export */ "pushScopeId": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.pushScopeId; }, 36855/* harmony export */ "queuePostFlushCb": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.queuePostFlushCb; }, 36856/* harmony export */ "reactive": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.reactive; }, 36857/* harmony export */ "readonly": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.readonly; }, 36858/* harmony export */ "ref": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ref; }, 36859/* harmony export */ "registerRuntimeCompiler": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeCompiler; }, 36860/* harmony export */ "render": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.render; }, 36861/* harmony export */ "renderList": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.renderList; }, 36862/* harmony export */ "renderSlot": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.renderSlot; }, 36863/* harmony export */ "resolveComponent": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveComponent; }, 36864/* harmony export */ "resolveDirective": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveDirective; }, 36865/* harmony export */ "resolveDynamicComponent": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent; }, 36866/* harmony export */ "resolveFilter": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveFilter; }, 36867/* harmony export */ "resolveTransitionHooks": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks; }, 36868/* harmony export */ "setBlockTracking": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setBlockTracking; }, 36869/* harmony export */ "setDevtoolsHook": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setDevtoolsHook; }, 36870/* harmony export */ "setTransitionHooks": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks; }, 36871/* harmony export */ "shallowReactive": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowReactive; }, 36872/* harmony export */ "shallowReadonly": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly; }, 36873/* harmony export */ "shallowRef": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowRef; }, 36874/* harmony export */ "ssrContextKey": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ssrContextKey; }, 36875/* harmony export */ "ssrUtils": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ssrUtils; }, 36876/* harmony export */ "stop": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.stop; }, 36877/* harmony export */ "toDisplayString": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toDisplayString; }, 36878/* harmony export */ "toHandlerKey": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey; }, 36879/* harmony export */ "toHandlers": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toHandlers; }, 36880/* harmony export */ "toRaw": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRaw; }, 36881/* harmony export */ "toRef": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRef; }, 36882/* harmony export */ "toRefs": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRefs; }, 36883/* harmony export */ "transformVNodeArgs": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.transformVNodeArgs; }, 36884/* harmony export */ "triggerRef": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.triggerRef; }, 36885/* harmony export */ "unref": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.unref; }, 36886/* harmony export */ "useAttrs": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useAttrs; }, 36887/* harmony export */ "useCssModule": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useCssModule; }, 36888/* harmony export */ "useCssVars": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useCssVars; }, 36889/* harmony export */ "useSSRContext": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useSSRContext; }, 36890/* harmony export */ "useSlots": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useSlots; }, 36891/* harmony export */ "useTransitionState": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useTransitionState; }, 36892/* harmony export */ "vModelCheckbox": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox; }, 36893/* harmony export */ "vModelDynamic": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic; }, 36894/* harmony export */ "vModelRadio": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelRadio; }, 36895/* harmony export */ "vModelSelect": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelSelect; }, 36896/* harmony export */ "vModelText": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelText; }, 36897/* harmony export */ "vShow": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vShow; }, 36898/* harmony export */ "version": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.version; }, 36899/* harmony export */ "warn": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.warn; }, 36900/* harmony export */ "watch": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watch; }, 36901/* harmony export */ "watchEffect": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchEffect; }, 36902/* harmony export */ "watchPostEffect": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect; }, 36903/* harmony export */ "watchSyncEffect": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchSyncEffect; }, 36904/* harmony export */ "withAsyncContext": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withAsyncContext; }, 36905/* harmony export */ "withCtx": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withCtx; }, 36906/* harmony export */ "withDefaults": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withDefaults; }, 36907/* harmony export */ "withDirectives": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withDirectives; }, 36908/* harmony export */ "withKeys": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withKeys; }, 36909/* harmony export */ "withMemo": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withMemo; }, 36910/* harmony export */ "withModifiers": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withModifiers; }, 36911/* harmony export */ "withScopeId": function() { return /* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withScopeId; } 36912/* harmony export */ }); 36913/* harmony import */ var _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/runtime-dom */ "./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js"); 36914/* harmony import */ var _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/runtime-dom */ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js"); 36915/* harmony import */ var _vue_compiler_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @vue/compiler-dom */ "./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js"); 36916/* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js"); 36917 36918 36919 36920 36921 36922 36923function initDev() { 36924 { 36925 (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.initCustomFormatter)(); 36926 } 36927} 36928 36929// This entry is the "full-build" that includes both the runtime 36930if ((true)) { 36931 initDev(); 36932} 36933const compileCache = Object.create(null); 36934function compileToFunction(template, options) { 36935 if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_2__.isString)(template)) { 36936 if (template.nodeType) { 36937 template = template.innerHTML; 36938 } 36939 else { 36940 ( true) && (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.warn)(`invalid template option: `, template); 36941 return _vue_shared__WEBPACK_IMPORTED_MODULE_2__.NOOP; 36942 } 36943 } 36944 const key = template; 36945 const cached = compileCache[key]; 36946 if (cached) { 36947 return cached; 36948 } 36949 if (template[0] === '#') { 36950 const el = document.querySelector(template); 36951 if (( true) && !el) { 36952 (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.warn)(`Template element not found or is empty: ${template}`); 36953 } 36954 // __UNSAFE__ 36955 // Reason: potential execution of JS expressions in in-DOM template. 36956 // The user must make sure the in-DOM template is trusted. If it's rendered 36957 // by the server, the template should not contain any user data. 36958 template = el ? el.innerHTML : ``; 36959 } 36960 const { code } = (0,_vue_compiler_dom__WEBPACK_IMPORTED_MODULE_3__.compile)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_2__.extend)({ 36961 hoistStatic: true, 36962 onError: ( true) ? onError : 0, 36963 onWarn: ( true) ? e => onError(e, true) : 0 36964 }, options)); 36965 function onError(err, asWarning = false) { 36966 const message = asWarning 36967 ? err.message 36968 : `Template compilation error: ${err.message}`; 36969 const codeFrame = err.loc && 36970 (0,_vue_shared__WEBPACK_IMPORTED_MODULE_2__.generateCodeFrame)(template, err.loc.start.offset, err.loc.end.offset); 36971 (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.warn)(codeFrame ? `${message}\n${codeFrame}` : message); 36972 } 36973 // The wildcard import results in a huge object with every export 36974 // with keys that cannot be mangled, and can be quite heavy size-wise. 36975 // In the global build we know `Vue` is available globally so we can avoid 36976 // the wildcard object. 36977 const render = (new Function('Vue', code)(_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__)); 36978 render._rc = true; 36979 return (compileCache[key] = render); 36980} 36981(0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_1__.registerRuntimeCompiler)(compileToFunction); 36982 36983 36984 36985 36986/***/ }), 36987 36988/***/ "./src/js sync recursive \\.vue$/": 36989/*!******************************!*\ 36990 !*** ./src/js/ sync \.vue$/ ***! 36991 \******************************/ 36992/***/ (function(module, __unused_webpack_exports, __webpack_require__) { 36993 36994var map = { 36995 "./components/BaseSelect.vue": "./src/js/components/BaseSelect.vue", 36996 "./components/CompanyData.vue": "./src/js/components/CompanyData.vue", 36997 "./components/EventData.vue": "./src/js/components/EventData.vue", 36998 "./components/EventForm.vue": "./src/js/components/EventForm.vue", 36999 "./components/InputFileUpload.vue": "./src/js/components/InputFileUpload.vue", 37000 "./components/RegistrationData.vue": "./src/js/components/RegistrationData.vue" 37001}; 37002 37003 37004function webpackContext(req) { 37005 var id = webpackContextResolve(req); 37006 return __webpack_require__(id); 37007} 37008function webpackContextResolve(req) { 37009 if(!__webpack_require__.o(map, req)) { 37010 var e = new Error("Cannot find module '" + req + "'"); 37011 e.code = 'MODULE_NOT_FOUND'; 37012 throw e; 37013 } 37014 return map[req]; 37015} 37016webpackContext.keys = function webpackContextKeys() { 37017 return Object.keys(map); 37018}; 37019webpackContext.resolve = webpackContextResolve; 37020module.exports = webpackContext; 37021webpackContext.id = "./src/js sync recursive \\.vue$/"; 37022 37023/***/ }), 37024
vendor: 40,062 bytes, lines 37025-38126
37025/***/ "./node_modules/vue-toastification/dist/index.mjs": 37026/*!********************************************************!*\ 37027 !*** ./node_modules/vue-toastification/dist/index.mjs ***! 37028 \********************************************************/ 37029/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { 37030 37031"use strict"; 37032__webpack_require__.r(__webpack_exports__); 37033/* harmony export */ __webpack_require__.d(__webpack_exports__, { 37034/* harmony export */ "EventBus": function() { return /* binding */ EventBus; }, 37035/* harmony export */ "POSITION": function() { return /* binding */ POSITION; }, 37036/* harmony export */ "TYPE": function() { return /* binding */ TYPE; }, 37037/* harmony export */ "createToastInterface": function() { return /* binding */ createToastInterface; }, 37038/* harmony export */ "default": function() { return /* binding */ src_default; }, 37039/* harmony export */ "globalEventBus": function() { return /* binding */ globalEventBus; }, 37040/* harmony export */ "provideToast": function() { return /* binding */ provideToast; }, 37041/* harmony export */ "toastInjectionKey": function() { return /* binding */ toastInjectionKey; }, 37042/* harmony export */ "useToast": function() { return /* binding */ useToast; } 37043/* harmony export */ }); 37044/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 37045var __defProp = Object.defineProperty; 37046var __getOwnPropSymbols = Object.getOwnPropertySymbols; 37047var __hasOwnProp = Object.prototype.hasOwnProperty; 37048var __propIsEnum = Object.prototype.propertyIsEnumerable; 37049var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; 37050var __spreadValues = (a, b) => { 37051 for (var prop in b || (b = {})) 37052 if (__hasOwnProp.call(b, prop)) 37053 __defNormalProp(a, prop, b[prop]); 37054 if (__getOwnPropSymbols) 37055 for (var prop of __getOwnPropSymbols(b)) { 37056 if (__propIsEnum.call(b, prop)) 37057 __defNormalProp(a, prop, b[prop]); 37058 } 37059 return a; 37060}; 37061 37062// src/index.ts 37063 37064 37065// src/ts/interface.ts 37066 37067 37068// src/ts/utils.ts 37069 37070var isFunction = (value) => typeof value === "function"; 37071var isString = (value) => typeof value === "string"; 37072var isNonEmptyString = (value) => isString(value) && value.trim().length > 0; 37073var isNumber = (value) => typeof value === "number"; 37074var isUndefined = (value) => typeof value === "undefined"; 37075var isObject = (value) => typeof value === "object" && value !== null; 37076var isJSX = (obj) => hasProp(obj, "tag") && isNonEmptyString(obj.tag); 37077var isTouchEvent = (event) => window.TouchEvent && event instanceof TouchEvent; 37078var isToastComponent = (obj) => hasProp(obj, "component") && isToastContent(obj.component); 37079var isVueComponent = (c) => isFunction(c) || isObject(c); 37080var isToastContent = (obj) => !isUndefined(obj) && (isString(obj) || isVueComponent(obj) || isToastComponent(obj)); 37081var isDOMRect = (obj) => isObject(obj) && ["height", "width", "right", "left", "top", "bottom"].every((p) => isNumber(obj[p])); 37082var hasProp = (obj, propKey) => (isObject(obj) || isFunction(obj)) && propKey in obj; 37083var getId = ((i) => () => i++)(0); 37084function getX(event) { 37085 return isTouchEvent(event) ? event.targetTouches[0].clientX : event.clientX; 37086} 37087function getY(event) { 37088 return isTouchEvent(event) ? event.targetTouches[0].clientY : event.clientY; 37089} 37090var removeElement = (el) => { 37091 if (!isUndefined(el.remove)) { 37092 el.remove(); 37093 } else if (el.parentNode) { 37094 el.parentNode.removeChild(el); 37095 } 37096}; 37097var getVueComponentFromObj = (obj) => { 37098 if (isToastComponent(obj)) { 37099 return getVueComponentFromObj(obj.component); 37100 } 37101 if (isJSX(obj)) { 37102 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 37103 render() { 37104 return obj; 37105 } 37106 }); 37107 } 37108 return typeof obj === "string" ? obj : (0,vue__WEBPACK_IMPORTED_MODULE_0__.toRaw)((0,vue__WEBPACK_IMPORTED_MODULE_0__.unref)(obj)); 37109}; 37110var normalizeToastComponent = (obj) => { 37111 if (typeof obj === "string") { 37112 return obj; 37113 } 37114 const props = hasProp(obj, "props") && isObject(obj.props) ? obj.props : {}; 37115 const listeners = hasProp(obj, "listeners") && isObject(obj.listeners) ? obj.listeners : {}; 37116 return { component: getVueComponentFromObj(obj), props, listeners }; 37117}; 37118var isBrowser = () => typeof window !== "undefined"; 37119 37120// src/ts/eventBus.ts 37121var EventBus = class { 37122 constructor() { 37123 this.allHandlers = {}; 37124 } 37125 getHandlers(eventType) { 37126 return this.allHandlers[eventType] || []; 37127 } 37128 on(eventType, handler) { 37129 const handlers = this.getHandlers(eventType); 37130 handlers.push(handler); 37131 this.allHandlers[eventType] = handlers; 37132 } 37133 off(eventType, handler) { 37134 const handlers = this.getHandlers(eventType); 37135 handlers.splice(handlers.indexOf(handler) >>> 0, 1); 37136 } 37137 emit(eventType, event) { 37138 const handlers = this.getHandlers(eventType); 37139 handlers.forEach((handler) => handler(event)); 37140 } 37141}; 37142var isEventBusInterface = (e) => ["on", "off", "emit"].every((f) => hasProp(e, f) && isFunction(e[f])); 37143 37144// vue:/Users/maronato/Developer/vue-toastification/src/components/VtToastContainer.vue?vue&type=script 37145 37146 37147// src/ts/constants.ts 37148var TYPE; 37149(function(TYPE2) { 37150 TYPE2["SUCCESS"] = "success"; 37151 TYPE2["ERROR"] = "error"; 37152 TYPE2["WARNING"] = "warning"; 37153 TYPE2["INFO"] = "info"; 37154 TYPE2["DEFAULT"] = "default"; 37155})(TYPE || (TYPE = {})); 37156var POSITION; 37157(function(POSITION2) { 37158 POSITION2["TOP_LEFT"] = "top-left"; 37159 POSITION2["TOP_CENTER"] = "top-center"; 37160 POSITION2["TOP_RIGHT"] = "top-right"; 37161 POSITION2["BOTTOM_LEFT"] = "bottom-left"; 37162 POSITION2["BOTTOM_CENTER"] = "bottom-center"; 37163 POSITION2["BOTTOM_RIGHT"] = "bottom-right"; 37164})(POSITION || (POSITION = {})); 37165var EVENTS; 37166(function(EVENTS2) { 37167 EVENTS2["ADD"] = "add"; 37168 EVENTS2["DISMISS"] = "dismiss"; 37169 EVENTS2["UPDATE"] = "update"; 37170 EVENTS2["CLEAR"] = "clear"; 37171 EVENTS2["UPDATE_DEFAULTS"] = "update_defaults"; 37172})(EVENTS || (EVENTS = {})); 37173var VT_NAMESPACE = "Vue-Toastification"; 37174 37175// src/ts/propValidators.ts 37176var COMMON = { 37177 type: { 37178 type: String, 37179 default: TYPE.DEFAULT 37180 }, 37181 classNames: { 37182 type: [String, Array], 37183 default: () => [] 37184 }, 37185 trueBoolean: { 37186 type: Boolean, 37187 default: true 37188 } 37189}; 37190var ICON = { 37191 type: COMMON.type, 37192 customIcon: { 37193 type: [String, Boolean, Object, Function], 37194 default: true 37195 } 37196}; 37197var CLOSE_BUTTON = { 37198 component: { 37199 type: [String, Object, Function, Boolean], 37200 default: "button" 37201 }, 37202 classNames: COMMON.classNames, 37203 showOnHover: { 37204 type: Boolean, 37205 default: false 37206 }, 37207 ariaLabel: { 37208 type: String, 37209 default: "close" 37210 } 37211}; 37212var PROGRESS_BAR = { 37213 timeout: { 37214 type: [Number, Boolean], 37215 default: 5e3 37216 }, 37217 hideProgressBar: { 37218 type: Boolean, 37219 default: false 37220 }, 37221 isRunning: { 37222 type: Boolean, 37223 default: false 37224 } 37225}; 37226var TRANSITION = { 37227 transition: { 37228 type: [Object, String], 37229 default: `${VT_NAMESPACE}__bounce` 37230 } 37231}; 37232var CORE_TOAST = { 37233 position: { 37234 type: String, 37235 default: POSITION.TOP_RIGHT 37236 }, 37237 draggable: COMMON.trueBoolean, 37238 draggablePercent: { 37239 type: Number, 37240 default: 0.6 37241 }, 37242 pauseOnFocusLoss: COMMON.trueBoolean, 37243 pauseOnHover: COMMON.trueBoolean, 37244 closeOnClick: COMMON.trueBoolean, 37245 timeout: PROGRESS_BAR.timeout, 37246 hideProgressBar: PROGRESS_BAR.hideProgressBar, 37247 toastClassName: COMMON.classNames, 37248 bodyClassName: COMMON.classNames, 37249 icon: ICON.customIcon, 37250 closeButton: CLOSE_BUTTON.component, 37251 closeButtonClassName: CLOSE_BUTTON.classNames, 37252 showCloseButtonOnHover: CLOSE_BUTTON.showOnHover, 37253 accessibility: { 37254 type: Object, 37255 default: () => ({ 37256 toastRole: "alert", 37257 closeButtonLabel: "close" 37258 }) 37259 }, 37260 rtl: { 37261 type: Boolean, 37262 default: false 37263 }, 37264 eventBus: { 37265 type: Object, 37266 required: false, 37267 default: () => new EventBus() 37268 } 37269}; 37270var TOAST = { 37271 id: { 37272 type: [String, Number], 37273 required: true, 37274 default: 0 37275 }, 37276 type: COMMON.type, 37277 content: { 37278 type: [String, Object, Function], 37279 required: true, 37280 default: "" 37281 }, 37282 onClick: { 37283 type: Function, 37284 default: void 0 37285 }, 37286 onClose: { 37287 type: Function, 37288 default: void 0 37289 } 37290}; 37291var CONTAINER = { 37292 container: { 37293 type: [ 37294 Object, 37295 Function 37296 ], 37297 default: () => document.body 37298 }, 37299 newestOnTop: COMMON.trueBoolean, 37300 maxToasts: { 37301 type: Number, 37302 default: 20 37303 }, 37304 transition: TRANSITION.transition, 37305 toastDefaults: Object, 37306 filterBeforeCreate: { 37307 type: Function, 37308 default: (toast) => toast 37309 }, 37310 filterToasts: { 37311 type: Function, 37312 default: (toasts) => toasts 37313 }, 37314 containerClassName: COMMON.classNames, 37315 onMounted: Function, 37316 shareAppContext: [Boolean, Object] 37317}; 37318var propValidators_default = { 37319 CORE_TOAST, 37320 TOAST, 37321 CONTAINER, 37322 PROGRESS_BAR, 37323 ICON, 37324 TRANSITION, 37325 CLOSE_BUTTON 37326}; 37327 37328// vue:/Users/maronato/Developer/vue-toastification/src/components/VtToast.vue?vue&type=script 37329 37330 37331// vue:/Users/maronato/Developer/vue-toastification/src/components/VtProgressBar.vue?vue&type=script 37332 37333var VtProgressBar_default = (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 37334 name: "VtProgressBar", 37335 props: propValidators_default.PROGRESS_BAR, 37336 data() { 37337 return { 37338 hasClass: true 37339 }; 37340 }, 37341 computed: { 37342 style() { 37343 return { 37344 animationDuration: `${this.timeout}ms`, 37345 animationPlayState: this.isRunning ? "running" : "paused", 37346 opacity: this.hideProgressBar ? 0 : 1 37347 }; 37348 }, 37349 cpClass() { 37350 return this.hasClass ? `${VT_NAMESPACE}__progress-bar` : ""; 37351 } 37352 }, 37353 watch: { 37354 timeout() { 37355 this.hasClass = false; 37356 this.$nextTick(() => this.hasClass = true); 37357 } 37358 }, 37359 mounted() { 37360 this.$el.addEventListener("animationend", this.animationEnded); 37361 }, 37362 beforeUnmount() { 37363 this.$el.removeEventListener("animationend", this.animationEnded); 37364 }, 37365 methods: { 37366 animationEnded() { 37367 this.$emit("close-toast"); 37368 } 37369 } 37370}); 37371 37372// vue:/Users/maronato/Developer/vue-toastification/src/components/VtProgressBar.vue?vue&type=template 37373 37374function render(_ctx, _cache) { 37375 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 37376 style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)(_ctx.style), 37377 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.cpClass) 37378 }, null, 6); 37379} 37380 37381// vue:/Users/maronato/Developer/vue-toastification/src/components/VtProgressBar.vue 37382VtProgressBar_default.render = render; 37383var VtProgressBar_default2 = VtProgressBar_default; 37384 37385// vue:/Users/maronato/Developer/vue-toastification/src/components/VtCloseButton.vue?vue&type=script 37386 37387var VtCloseButton_default = (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 37388 name: "VtCloseButton", 37389 props: propValidators_default.CLOSE_BUTTON, 37390 computed: { 37391 buttonComponent() { 37392 if (this.component !== false) { 37393 return getVueComponentFromObj(this.component); 37394 } 37395 return "button"; 37396 }, 37397 classes() { 37398 const classes = [`${VT_NAMESPACE}__close-button`]; 37399 if (this.showOnHover) { 37400 classes.push("show-on-hover"); 37401 } 37402 return classes.concat(this.classNames); 37403 } 37404 } 37405}); 37406 37407// vue:/Users/maronato/Developer/vue-toastification/src/components/VtCloseButton.vue?vue&type=template 37408 37409var _hoisted_1 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" \xD7 "); 37410function render2(_ctx, _cache) { 37411 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent)(_ctx.buttonComponent), (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ 37412 "aria-label": _ctx.ariaLabel, 37413 class: _ctx.classes 37414 }, _ctx.$attrs), { 37415 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 37416 _hoisted_1 37417 ]), 37418 _: 1 37419 }, 16, ["aria-label", "class"]); 37420} 37421 37422// vue:/Users/maronato/Developer/vue-toastification/src/components/VtCloseButton.vue 37423VtCloseButton_default.render = render2; 37424var VtCloseButton_default2 = VtCloseButton_default; 37425 37426// vue:/Users/maronato/Developer/vue-toastification/src/components/VtIcon.vue?vue&type=script 37427 37428 37429// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtSuccessIcon.vue?vue&type=script 37430var VtSuccessIcon_default = {}; 37431 37432// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtSuccessIcon.vue?vue&type=template 37433 37434var _hoisted_12 = { 37435 "aria-hidden": "true", 37436 focusable: "false", 37437 "data-prefix": "fas", 37438 "data-icon": "check-circle", 37439 class: "svg-inline--fa fa-check-circle fa-w-16", 37440 role: "img", 37441 xmlns: "http://www.w3.org/2000/svg", 37442 viewBox: "0 0 512 512" 37443}; 37444var _hoisted_2 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { 37445 fill: "currentColor", 37446 d: "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z" 37447}, null, -1); 37448var _hoisted_3 = [ 37449 _hoisted_2 37450]; 37451function render3(_ctx, _cache) { 37452 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("svg", _hoisted_12, _hoisted_3); 37453} 37454 37455// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtSuccessIcon.vue 37456VtSuccessIcon_default.render = render3; 37457var VtSuccessIcon_default2 = VtSuccessIcon_default; 37458 37459// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtInfoIcon.vue?vue&type=script 37460var VtInfoIcon_default = {}; 37461 37462// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtInfoIcon.vue?vue&type=template 37463 37464var _hoisted_13 = { 37465 "aria-hidden": "true", 37466 focusable: "false", 37467 "data-prefix": "fas", 37468 "data-icon": "info-circle", 37469 class: "svg-inline--fa fa-info-circle fa-w-16", 37470 role: "img", 37471 xmlns: "http://www.w3.org/2000/svg", 37472 viewBox: "0 0 512 512" 37473}; 37474var _hoisted_22 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { 37475 fill: "currentColor", 37476 d: "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z" 37477}, null, -1); 37478var _hoisted_32 = [ 37479 _hoisted_22 37480]; 37481function render4(_ctx, _cache) { 37482 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("svg", _hoisted_13, _hoisted_32); 37483} 37484 37485// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtInfoIcon.vue 37486VtInfoIcon_default.render = render4; 37487var VtInfoIcon_default2 = VtInfoIcon_default; 37488 37489// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtWarningIcon.vue?vue&type=script 37490var VtWarningIcon_default = {}; 37491 37492// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtWarningIcon.vue?vue&type=template 37493 37494var _hoisted_14 = { 37495 "aria-hidden": "true", 37496 focusable: "false", 37497 "data-prefix": "fas", 37498 "data-icon": "exclamation-circle", 37499 class: "svg-inline--fa fa-exclamation-circle fa-w-16", 37500 role: "img", 37501 xmlns: "http://www.w3.org/2000/svg", 37502 viewBox: "0 0 512 512" 37503}; 37504var _hoisted_23 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { 37505 fill: "currentColor", 37506 d: "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z" 37507}, null, -1); 37508var _hoisted_33 = [ 37509 _hoisted_23 37510]; 37511function render5(_ctx, _cache) { 37512 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("svg", _hoisted_14, _hoisted_33); 37513} 37514 37515// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtWarningIcon.vue 37516VtWarningIcon_default.render = render5; 37517var VtWarningIcon_default2 = VtWarningIcon_default; 37518 37519// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtErrorIcon.vue?vue&type=script 37520var VtErrorIcon_default = {}; 37521 37522// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtErrorIcon.vue?vue&type=template 37523 37524var _hoisted_15 = { 37525 "aria-hidden": "true", 37526 focusable: "false", 37527 "data-prefix": "fas", 37528 "data-icon": "exclamation-triangle", 37529 class: "svg-inline--fa fa-exclamation-triangle fa-w-18", 37530 role: "img", 37531 xmlns: "http://www.w3.org/2000/svg", 37532 viewBox: "0 0 576 512" 37533}; 37534var _hoisted_24 = /* @__PURE__ */ (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { 37535 fill: "currentColor", 37536 d: "M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z" 37537}, null, -1); 37538var _hoisted_34 = [ 37539 _hoisted_24 37540]; 37541function render6(_ctx, _cache) { 37542 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("svg", _hoisted_15, _hoisted_34); 37543} 37544 37545// vue:/Users/maronato/Developer/vue-toastification/src/components/icons/VtErrorIcon.vue 37546VtErrorIcon_default.render = render6; 37547var VtErrorIcon_default2 = VtErrorIcon_default; 37548 37549// vue:/Users/maronato/Developer/vue-toastification/src/components/VtIcon.vue?vue&type=script 37550var VtIcon_default = (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 37551 name: "VtIcon", 37552 props: propValidators_default.ICON, 37553 computed: { 37554 customIconChildren() { 37555 return hasProp(this.customIcon, "iconChildren") ? this.trimValue(this.customIcon.iconChildren) : ""; 37556 }, 37557 customIconClass() { 37558 if (isString(this.customIcon)) { 37559 return this.trimValue(this.customIcon); 37560 } else if (hasProp(this.customIcon, "iconClass")) { 37561 return this.trimValue(this.customIcon.iconClass); 37562 } 37563 return ""; 37564 }, 37565 customIconTag() { 37566 if (hasProp(this.customIcon, "iconTag")) { 37567 return this.trimValue(this.customIcon.iconTag, "i"); 37568 } 37569 return "i"; 37570 }, 37571 hasCustomIcon() { 37572 return this.customIconClass.length > 0; 37573 }, 37574 component() { 37575 if (this.hasCustomIcon) { 37576 return this.customIconTag; 37577 } 37578 if (isToastContent(this.customIcon)) { 37579 return getVueComponentFromObj(this.customIcon); 37580 } 37581 return this.iconTypeComponent; 37582 }, 37583 iconTypeComponent() { 37584 const types = { 37585 [TYPE.DEFAULT]: VtInfoIcon_default2, 37586 [TYPE.INFO]: VtInfoIcon_default2, 37587 [TYPE.SUCCESS]: VtSuccessIcon_default2, 37588 [TYPE.ERROR]: VtErrorIcon_default2, 37589 [TYPE.WARNING]: VtWarningIcon_default2 37590 }; 37591 return types[this.type]; 37592 }, 37593 iconClasses() { 37594 const classes = [`${VT_NAMESPACE}__icon`]; 37595 if (this.hasCustomIcon) { 37596 return classes.concat(this.customIconClass); 37597 } 37598 return classes; 37599 } 37600 }, 37601 methods: { 37602 trimValue(value, empty = "") { 37603 return isNonEmptyString(value) ? value.trim() : empty; 37604 } 37605 } 37606}); 37607 37608// vue:/Users/maronato/Developer/vue-toastification/src/components/VtIcon.vue?vue&type=template 37609 37610function render7(_ctx, _cache) { 37611 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent)(_ctx.component), { 37612 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.iconClasses) 37613 }, { 37614 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 37615 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.customIconChildren), 1) 37616 ]), 37617 _: 1 37618 }, 8, ["class"]); 37619} 37620 37621// vue:/Users/maronato/Developer/vue-toastification/src/components/VtIcon.vue 37622VtIcon_default.render = render7; 37623var VtIcon_default2 = VtIcon_default; 37624 37625// vue:/Users/maronato/Developer/vue-toastification/src/components/VtToast.vue?vue&type=script 37626var VtToast_default = (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 37627 name: "VtToast", 37628 components: { ProgressBar: VtProgressBar_default2, CloseButton: VtCloseButton_default2, Icon: VtIcon_default2 }, 37629 inheritAttrs: false, 37630 props: Object.assign({}, propValidators_default.CORE_TOAST, propValidators_default.TOAST), 37631 data() { 37632 const data = { 37633 isRunning: true, 37634 disableTransitions: false, 37635 beingDragged: false, 37636 dragStart: 0, 37637 dragPos: { x: 0, y: 0 }, 37638 dragRect: {} 37639 }; 37640 return data; 37641 }, 37642 computed: { 37643 classes() { 37644 const classes = [ 37645 `${VT_NAMESPACE}__toast`, 37646 `${VT_NAMESPACE}__toast--${this.type}`, 37647 `${this.position}` 37648 ].concat(this.toastClassName); 37649 if (this.disableTransitions) { 37650 classes.push("disable-transition"); 37651 } 37652 if (this.rtl) { 37653 classes.push(`${VT_NAMESPACE}__toast--rtl`); 37654 } 37655 return classes; 37656 }, 37657 bodyClasses() { 37658 const classes = [ 37659 `${VT_NAMESPACE}__toast-${isString(this.content) ? "body" : "component-body"}` 37660 ].concat(this.bodyClassName); 37661 return classes; 37662 }, 37663 draggableStyle() { 37664 if (this.dragStart === this.dragPos.x) { 37665 return {}; 37666 } else if (this.beingDragged) { 37667 return { 37668 transform: `translateX(${this.dragDelta}px)`, 37669 opacity: 1 - Math.abs(this.dragDelta / this.removalDistance) 37670 }; 37671 } else { 37672 return { 37673 transition: "transform 0.2s, opacity 0.2s", 37674 transform: "translateX(0)", 37675 opacity: 1 37676 }; 37677 } 37678 }, 37679 dragDelta() { 37680 return this.beingDragged ? this.dragPos.x - this.dragStart : 0; 37681 }, 37682 removalDistance() { 37683 if (isDOMRect(this.dragRect)) { 37684 return (this.dragRect.right - this.dragRect.left) * this.draggablePercent; 37685 } 37686 return 0; 37687 } 37688 }, 37689 mounted() { 37690 if (this.draggable) { 37691 this.draggableSetup(); 37692 } 37693 if (this.pauseOnFocusLoss) { 37694 this.focusSetup(); 37695 } 37696 }, 37697 beforeUnmount() { 37698 if (this.draggable) { 37699 this.draggableCleanup(); 37700 } 37701 if (this.pauseOnFocusLoss) { 37702 this.focusCleanup(); 37703 } 37704 }, 37705 methods: { 37706 hasProp, 37707 getVueComponentFromObj, 37708 closeToast() { 37709 this.eventBus.emit(EVENTS.DISMISS, this.id); 37710 }, 37711 clickHandler() { 37712 if (this.onClick) { 37713 this.onClick(this.closeToast); 37714 } 37715 if (this.closeOnClick) { 37716 if (!this.beingDragged || this.dragStart === this.dragPos.x) { 37717 this.closeToast(); 37718 } 37719 } 37720 }, 37721 timeoutHandler() { 37722 this.closeToast(); 37723 }, 37724 hoverPause() { 37725 if (this.pauseOnHover) { 37726 this.isRunning = false; 37727 } 37728 }, 37729 hoverPlay() { 37730 if (this.pauseOnHover) { 37731 this.isRunning = true; 37732 } 37733 }, 37734 focusPause() { 37735 this.isRunning = false; 37736 }, 37737 focusPlay() { 37738 this.isRunning = true; 37739 }, 37740 focusSetup() { 37741 addEventListener("blur", this.focusPause); 37742 addEventListener("focus", this.focusPlay); 37743 }, 37744 focusCleanup() { 37745 removeEventListener("blur", this.focusPause); 37746 removeEventListener("focus", this.focusPlay); 37747 }, 37748 draggableSetup() { 37749 const element = this.$el; 37750 element.addEventListener("touchstart", this.onDragStart, { 37751 passive: true 37752 }); 37753 element.addEventListener("mousedown", this.onDragStart); 37754 addEventListener("touchmove", this.onDragMove, { passive: false }); 37755 addEventListener("mousemove", this.onDragMove); 37756 addEventListener("touchend", this.onDragEnd); 37757 addEventListener("mouseup", this.onDragEnd); 37758 }, 37759 draggableCleanup() { 37760 const element = this.$el; 37761 element.removeEventListener("touchstart", this.onDragStart); 37762 element.removeEventListener("mousedown", this.onDragStart); 37763 removeEventListener("touchmove", this.onDragMove); 37764 removeEventListener("mousemove", this.onDragMove); 37765 removeEventListener("touchend", this.onDragEnd); 37766 removeEventListener("mouseup", this.onDragEnd); 37767 }, 37768 onDragStart(event) { 37769 this.beingDragged = true; 37770 this.dragPos = { x: getX(event), y: getY(event) }; 37771 this.dragStart = getX(event); 37772 this.dragRect = this.$el.getBoundingClientRect(); 37773 }, 37774 onDragMove(event) { 37775 if (this.beingDragged) { 37776 event.preventDefault(); 37777 if (this.isRunning) { 37778 this.isRunning = false; 37779 } 37780 this.dragPos = { x: getX(event), y: getY(event) }; 37781 } 37782 }, 37783 onDragEnd() { 37784 if (this.beingDragged) { 37785 if (Math.abs(this.dragDelta) >= this.removalDistance) { 37786 this.disableTransitions = true; 37787 this.$nextTick(() => this.closeToast()); 37788 } else { 37789 setTimeout(() => { 37790 this.beingDragged = false; 37791 if (isDOMRect(this.dragRect) && this.pauseOnHover && this.dragRect.bottom >= this.dragPos.y && this.dragPos.y >= this.dragRect.top && this.dragRect.left <= this.dragPos.x && this.dragPos.x <= this.dragRect.right) { 37792 this.isRunning = false; 37793 } else { 37794 this.isRunning = true; 37795 } 37796 }); 37797 } 37798 } 37799 } 37800 } 37801}); 37802 37803// vue:/Users/maronato/Developer/vue-toastification/src/components/VtToast.vue?vue&type=template 37804 37805var _hoisted_16 = ["role"]; 37806function render8(_ctx, _cache) { 37807 const _component_Icon = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("Icon"); 37808 const _component_CloseButton = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("CloseButton"); 37809 const _component_ProgressBar = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("ProgressBar"); 37810 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { 37811 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.classes), 37812 style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)(_ctx.draggableStyle), 37813 onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clickHandler && _ctx.clickHandler(...args)), 37814 onMouseenter: _cache[1] || (_cache[1] = (...args) => _ctx.hoverPause && _ctx.hoverPause(...args)), 37815 onMouseleave: _cache[2] || (_cache[2] = (...args) => _ctx.hoverPlay && _ctx.hoverPlay(...args)) 37816 }, [ 37817 _ctx.icon ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_Icon, { 37818 key: 0, 37819 "custom-icon": _ctx.icon, 37820 type: _ctx.type 37821 }, null, 8, ["custom-icon", "type"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), 37822 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { 37823 role: _ctx.accessibility.toastRole || "alert", 37824 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.bodyClasses) 37825 }, [ 37826 typeof _ctx.content === "string" ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 0 }, [ 37827 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.content), 1) 37828 ], 2112)) : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent)(_ctx.getVueComponentFromObj(_ctx.content)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ 37829 key: 1, 37830 "toast-id": _ctx.id 37831 }, _ctx.hasProp(_ctx.content, "props") ? _ctx.content.props : {}, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toHandlers)(_ctx.hasProp(_ctx.content, "listeners") ? _ctx.content.listeners : {}), { onCloseToast: _ctx.closeToast }), null, 16, ["toast-id", "onCloseToast"])) 37832 ], 10, _hoisted_16), 37833 !!_ctx.closeButton ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_CloseButton, { 37834 key: 1, 37835 component: _ctx.closeButton, 37836 "class-names": _ctx.closeButtonClassName, 37837 "show-on-hover": _ctx.showCloseButtonOnHover, 37838 "aria-label": _ctx.accessibility.closeButtonLabel, 37839 onClick: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(_ctx.closeToast, ["stop"]) 37840 }, null, 8, ["component", "class-names", "show-on-hover", "aria-label", "onClick"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), 37841 _ctx.timeout ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_ProgressBar, { 37842 key: 2, 37843 "is-running": _ctx.isRunning, 37844 "hide-progress-bar": _ctx.hideProgressBar, 37845 timeout: _ctx.timeout, 37846 onCloseToast: _ctx.timeoutHandler 37847 }, null, 8, ["is-running", "hide-progress-bar", "timeout", "onCloseToast"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true) 37848 ], 38); 37849} 37850 37851// vue:/Users/maronato/Developer/vue-toastification/src/components/VtToast.vue 37852VtToast_default.render = render8; 37853var VtToast_default2 = VtToast_default; 37854 37855// vue:/Users/maronato/Developer/vue-toastification/src/components/VtTransition.vue?vue&type=script 37856 37857var VtTransition_default = (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 37858 name: "VtTransition", 37859 props: propValidators_default.TRANSITION, 37860 emits: ["leave"], 37861 methods: { 37862 hasProp, 37863 leave(el) { 37864 if (el instanceof HTMLElement) { 37865 el.style.left = el.offsetLeft + "px"; 37866 el.style.top = el.offsetTop + "px"; 37867 el.style.width = getComputedStyle(el).width; 37868 el.style.position = "absolute"; 37869 } 37870 } 37871 } 37872}); 37873 37874// vue:/Users/maronato/Developer/vue-toastification/src/components/VtTransition.vue?vue&type=template 37875 37876function render9(_ctx, _cache) { 37877 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.TransitionGroup, { 37878 tag: "div", 37879 "enter-active-class": _ctx.transition.enter ? _ctx.transition.enter : `${_ctx.transition}-enter-active`, 37880 "move-class": _ctx.transition.move ? _ctx.transition.move : `${_ctx.transition}-move`, 37881 "leave-active-class": _ctx.transition.leave ? _ctx.transition.leave : `${_ctx.transition}-leave-active`, 37882 onLeave: _ctx.leave 37883 }, { 37884 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 37885 (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default") 37886 ]), 37887 _: 3 37888 }, 8, ["enter-active-class", "move-class", "leave-active-class", "onLeave"]); 37889} 37890 37891// vue:/Users/maronato/Developer/vue-toastification/src/components/VtTransition.vue 37892VtTransition_default.render = render9; 37893var VtTransition_default2 = VtTransition_default; 37894 37895// vue:/Users/maronato/Developer/vue-toastification/src/components/VtToastContainer.vue?vue&type=script 37896var VtToastContainer_default = (0,vue__WEBPACK_IMPORTED_MODULE_0__.defineComponent)({ 37897 name: "VueToastification", 37898 devtools: { 37899 hide: true 37900 }, 37901 components: { Toast: VtToast_default2, VtTransition: VtTransition_default2 }, 37902 props: Object.assign({}, propValidators_default.CORE_TOAST, propValidators_default.CONTAINER, propValidators_default.TRANSITION), 37903 data() { 37904 const data = { 37905 count: 0, 37906 positions: Object.values(POSITION), 37907 toasts: {}, 37908 defaults: {} 37909 }; 37910 return data; 37911 }, 37912 computed: { 37913 toastArray() { 37914 return Object.values(this.toasts); 37915 }, 37916 filteredToasts() { 37917 return this.defaults.filterToasts(this.toastArray); 37918 } 37919 }, 37920 beforeMount() { 37921 const events = this.eventBus; 37922 events.on(EVENTS.ADD, this.addToast); 37923 events.on(EVENTS.CLEAR, this.clearToasts); 37924 events.on(EVENTS.DISMISS, this.dismissToast); 37925 events.on(EVENTS.UPDATE, this.updateToast); 37926 events.on(EVENTS.UPDATE_DEFAULTS, this.updateDefaults); 37927 this.defaults = this.$props; 37928 }, 37929 mounted() { 37930 this.setup(this.container); 37931 }, 37932 methods: { 37933 async setup(container) { 37934 if (isFunction(container)) { 37935 container = await container(); 37936 } 37937 removeElement(this.$el); 37938 container.appendChild(this.$el); 37939 }, 37940 setToast(props) { 37941 if (!isUndefined(props.id)) { 37942 this.toasts[props.id] = props; 37943 } 37944 }, 37945 addToast(params) { 37946 params.content = normalizeToastComponent(params.content); 37947 const props = Object.assign({}, this.defaults, params.type && this.defaults.toastDefaults && this.defaults.toastDefaults[params.type], params); 37948 const toast = this.defaults.filterBeforeCreate(props, this.toastArray); 37949 toast && this.setToast(toast); 37950 }, 37951 dismissToast(id) { 37952 const toast = this.toasts[id]; 37953 if (!isUndefined(toast) && !isUndefined(toast.onClose)) { 37954 toast.onClose(); 37955 } 37956 delete this.toasts[id]; 37957 }, 37958 clearToasts() { 37959 Object.keys(this.toasts).forEach((id) => { 37960 this.dismissToast(id); 37961 }); 37962 }, 37963 getPositionToasts(position) { 37964 const toasts = this.filteredToasts.filter((toast) => toast.position === position).slice(0, this.defaults.maxToasts); 37965 return this.defaults.newestOnTop ? toasts.reverse() : toasts; 37966 }, 37967 updateDefaults(update) { 37968 if (!isUndefined(update.container)) { 37969 this.setup(update.container); 37970 } 37971 this.defaults = Object.assign({}, this.defaults, update); 37972 }, 37973 updateToast({ 37974 id, 37975 options, 37976 create 37977 }) { 37978 if (this.toasts[id]) { 37979 if (options.timeout && options.timeout === this.toasts[id].timeout) { 37980 options.timeout++; 37981 } 37982 this.setToast(Object.assign({}, this.toasts[id], options)); 37983 } else if (create) { 37984 this.addToast(Object.assign({}, { id }, options)); 37985 } 37986 }, 37987 getClasses(position) { 37988 const classes = [`${VT_NAMESPACE}__container`, position]; 37989 return classes.concat(this.defaults.containerClassName); 37990 } 37991 } 37992}); 37993 37994// vue:/Users/maronato/Developer/vue-toastification/src/components/VtToastContainer.vue?vue&type=template 37995 37996function render10(_ctx, _cache) { 37997 const _component_Toast = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("Toast"); 37998 const _component_VtTransition = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("VtTransition"); 37999 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", null, [ 38000 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(_ctx.positions, (pos) => { 38001 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { key: pos }, [ 38002 (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_VtTransition, { 38003 transition: _ctx.defaults.transition, 38004 class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(_ctx.getClasses(pos)) 38005 }, { 38006 default: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(() => [ 38007 ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)(_ctx.getPositionToasts(pos), (toast) => { 38008 return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_Toast, (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({ 38009 key: toast.id 38010 }, toast), null, 16); 38011 }), 128)) 38012 ]), 38013 _: 2 38014 }, 1032, ["transition", "class"]) 38015 ]); 38016 }), 128)) 38017 ]); 38018} 38019 38020// vue:/Users/maronato/Developer/vue-toastification/src/components/VtToastContainer.vue 38021VtToastContainer_default.render = render10; 38022var VtToastContainer_default2 = VtToastContainer_default; 38023 38024// src/ts/interface.ts 38025var buildInterface = (globalOptions = {}, mountContainer = true) => { 38026 const events = globalOptions.eventBus = globalOptions.eventBus || new EventBus(); 38027 if (mountContainer) { 38028 (0,vue__WEBPACK_IMPORTED_MODULE_0__.nextTick)(() => { 38029 const app = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createApp)(VtToastContainer_default2, __spreadValues({}, globalOptions)); 38030 const component = app.mount(document.createElement("div")); 38031 const onMounted = globalOptions.onMounted; 38032 if (!isUndefined(onMounted)) { 38033 onMounted(component, app); 38034 } 38035 if (globalOptions.shareAppContext) { 38036 const baseApp = globalOptions.shareAppContext; 38037 if (baseApp === true) { 38038 console.warn(`[${VT_NAMESPACE}] App to share context with was not provided.`); 38039 } else { 38040 app._context.components = baseApp._context.components; 38041 app._context.directives = baseApp._context.directives; 38042 app._context.mixins = baseApp._context.mixins; 38043 app._context.provides = baseApp._context.provides; 38044 app.config.globalProperties = baseApp.config.globalProperties; 38045 } 38046 } 38047 }); 38048 } 38049 const toast = (content, options) => { 38050 const props = Object.assign({}, { id: getId(), type: TYPE.DEFAULT }, options, { 38051 content 38052 }); 38053 events.emit(EVENTS.ADD, props); 38054 return props.id; 38055 }; 38056 toast.clear = () => events.emit(EVENTS.CLEAR, void 0); 38057 toast.updateDefaults = (update) => { 38058 events.emit(EVENTS.UPDATE_DEFAULTS, update); 38059 }; 38060 toast.dismiss = (id) => { 38061 events.emit(EVENTS.DISMISS, id); 38062 }; 38063 function updateToast(id, { content, options }, create = false) { 38064 const opt = Object.assign({}, options, { content }); 38065 events.emit(EVENTS.UPDATE, { 38066 id, 38067 options: opt, 38068 create 38069 }); 38070 } 38071 toast.update = updateToast; 38072 toast.success = (content, options) => toast(content, Object.assign({}, options, { type: TYPE.SUCCESS })); 38073 toast.info = (content, options) => toast(content, Object.assign({}, options, { type: TYPE.INFO })); 38074 toast.error = (content, options) => toast(content, Object.assign({}, options, { type: TYPE.ERROR })); 38075 toast.warning = (content, options) => toast(content, Object.assign({}, options, { type: TYPE.WARNING })); 38076 return toast; 38077}; 38078 38079// src/index.ts 38080var createMockToastInterface = () => { 38081 const toast = () => console.warn(`[${VT_NAMESPACE}] This plugin does not support SSR!`); 38082 return new Proxy(toast, { 38083 get() { 38084 return toast; 38085 } 38086 }); 38087}; 38088function createToastInterface(optionsOrEventBus) { 38089 if (!isBrowser()) { 38090 return createMockToastInterface(); 38091 } 38092 if (isEventBusInterface(optionsOrEventBus)) { 38093 return buildInterface({ eventBus: optionsOrEventBus }, false); 38094 } 38095 return buildInterface(optionsOrEventBus, true); 38096} 38097var toastInjectionKey = Symbol("VueToastification"); 38098var globalEventBus = new EventBus(); 38099var VueToastificationPlugin = (App, options) => { 38100 if ((options == null ? void 0 : options.shareAppContext) === true) { 38101 options.shareAppContext = App; 38102 } 38103 const inter = createToastInterface(__spreadValues({ 38104 eventBus: globalEventBus 38105 }, options)); 38106 App.provide(toastInjectionKey, inter); 38107}; 38108var provideToast = (options) => { 38109 const toast = createToastInterface(options); 38110 if ((0,vue__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)()) { 38111 (0,vue__WEBPACK_IMPORTED_MODULE_0__.provide)(toastInjectionKey, toast); 38112 } 38113}; 38114var useToast = (eventBus) => { 38115 if (eventBus) { 38116 return createToastInterface(eventBus); 38117 } 38118 const toast = (0,vue__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)() ? (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(toastInjectionKey, void 0) : void 0; 38119 return toast ? toast : createToastInterface(globalEventBus); 38120}; 38121var src_default = VueToastificationPlugin; 38122 38123 38124 38125/***/ }), 38126
vendor: 2,225 bytes, lines 38127-38136
38127/***/ "./node_modules/axios/package.json": 38128/*!*****************************************!*\ 38129 !*** ./node_modules/axios/package.json ***! 38130 \*****************************************/ 38131/***/ (function(module) { 38132 38133"use strict"; 38134module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}'); 38135 38136/***/ })
vendor: 4,297 bytes, lines 38136-38243
38136 38137 38138/******/ }); 38139/************************************************************************/ 38140/******/ // The module cache 38141/******/ var __webpack_module_cache__ = {}; 38142/******/ 38143/******/ // The require function 38144/******/ function __webpack_require__(moduleId) { 38145/******/ // Check if module is in cache 38146/******/ var cachedModule = __webpack_module_cache__[moduleId]; 38147/******/ if (cachedModule !== undefined) { 38148/******/ return cachedModule.exports; 38149/******/ } 38150/******/ // Create a new module (and put it into the cache) 38151/******/ var module = __webpack_module_cache__[moduleId] = { 38152/******/ id: moduleId, 38153/******/ // no module.loaded needed 38154/******/ exports: {} 38155/******/ }; 38156/******/ 38157/******/ // Execute the module function 38158/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); 38159/******/ 38160/******/ // Return the exports of the module 38161/******/ return module.exports; 38162/******/ } 38163/******/ 38164/************************************************************************/ 38165/******/ /* webpack/runtime/compat get default export */ 38166/******/ !function() { 38167/******/ // getDefaultExport function for compatibility with non-harmony modules 38168/******/ __webpack_require__.n = function(module) { 38169/******/ var getter = module && module.__esModule ? 38170/******/ function() { return module['default']; } : 38171/******/ function() { return module; }; 38172/******/ __webpack_require__.d(getter, { a: getter }); 38173/******/ return getter; 38174/******/ }; 38175/******/ }(); 38176/******/ 38177/******/ /* webpack/runtime/define property getters */ 38178/******/ !function() { 38179/******/ // define getter functions for harmony exports 38180/******/ __webpack_require__.d = function(exports, definition) { 38181/******/ for(var key in definition) { 38182/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { 38183/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); 38184/******/ } 38185/******/ } 38186/******/ }; 38187/******/ }(); 38188/******/ 38189/******/ /* webpack/runtime/global */ 38190/******/ !function() { 38191/******/ __webpack_require__.g = (function() { 38192/******/ if (typeof globalThis === 'object') return globalThis; 38193/******/ try { 38194/******/ return this || new Function('return this')(); 38195/******/ } catch (e) { 38196/******/ if (typeof window === 'object') return window; 38197/******/ } 38198/******/ })(); 38199/******/ }(); 38200/******/ 38201/******/ /* webpack/runtime/hasOwnProperty shorthand */ 38202/******/ !function() { 38203/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } 38204/******/ }(); 38205/******/ 38206/******/ /* webpack/runtime/make namespace object */ 38207/******/ !function() { 38208/******/ // define __esModule on exports 38209/******/ __webpack_require__.r = function(exports) { 38210/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 38211/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 38212/******/ } 38213/******/ Object.defineProperty(exports, '__esModule', { value: true }); 38214/******/ }; 38215/******/ }(); 38216/******/ 38217/******/ /* webpack/runtime/nonce */ 38218/******/ !function() { 38219/******/ __webpack_require__.nc = undefined; 38220/******/ }(); 38221/******/ 38222/************************************************************************/ 38223var __webpack_exports__ = {}; 38224// This entry need to be wrapped in an IIFE because it need to be in strict mode. 38225!function() { 38226"use strict"; 38227/*!***********************!*\ 38228 !*** ./src/js/app.js ***! 38229 \***********************/ 38230__webpack_require__.r(__webpack_exports__); 38231/* harmony import */ var vue_toastification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-toastification */ "./node_modules/vue-toastification/dist/index.mjs"); 38232/* harmony import */ var vue_toastification_dist_index_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-toastification/dist/index.css */ "./node_modules/vue-toastification/dist/index.css"); 38233/** 38234 * First we will load all of this project's JavaScript dependencies which 38235 * includes Vue and other libraries. 38236 */ 38237__webpack_require__(/*! ./bootstrap */ "./src/js/bootstrap.js"); 38238 38239window.Vue = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); 38240 38241 38242var app = Vue.createApp({}); 38243var options = {
38244 closeButton: false, 38245 toastRole: "alert" 38246}; 38247app.use(vue_toastification__WEBPACK_IMPORTED_MODULE_0__["default"], options); 38248/** 38249 * The following block of code automatically registers the applications 38250 * Vue components. It will recursively scan this directory for the Vue 38251 * components and automatically register them with their "basename". 38252 * 38253 * Eg. ./components/ExampleComponent.vue -> <example-component></example-component> 38254 */ 38255 38256var files = __webpack_require__("./src/js sync recursive \\.vue$/"); 38257 38258files.keys().map(function (key) { 38259 return app.component(key.split('/').pop().split('.')[0], files(key)["default"]); 38260}); // app.use(LocalePlugin) 38261 38262window.vm = app.mount('#app'); 38263}(); 38264/******/ })() 38265;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.