wcs-core 2.5.4 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +132 -5
- package/README.md +19 -1
- package/dist/cjs/component-fc28ed16.js +1074 -0
- package/dist/cjs/helpers-6abce594.js +86 -0
- package/dist/cjs/{index-e05c3e1f.js → index-3cb9d725.js} +165 -87
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/{esm/wcs-action-bar_47.entry.js → cjs/lodash-776d6f03.js} +12499 -22628
- package/dist/cjs/popper-5777994b.js +1732 -0
- package/dist/cjs/select-arrow-76ccf86d.js +36 -0
- package/dist/cjs/wcs-action-bar.cjs.entry.js +24 -0
- package/dist/cjs/wcs-app.cjs.entry.js +2 -2
- package/dist/cjs/wcs-badge.cjs.entry.js +27 -0
- package/dist/cjs/wcs-button.cjs.entry.js +86 -0
- package/dist/cjs/wcs-card-body.cjs.entry.js +19 -0
- package/dist/cjs/wcs-card.cjs.entry.js +20 -0
- package/dist/cjs/wcs-checkbox.cjs.entry.js +47 -0
- package/dist/cjs/wcs-com-nav-category.cjs.entry.js +63 -0
- package/dist/cjs/wcs-com-nav-submenu.cjs.entry.js +69 -0
- package/dist/cjs/wcs-com-nav.cjs.entry.js +19 -0
- package/dist/cjs/wcs-divider.cjs.entry.js +19 -0
- package/dist/cjs/wcs-dropdown-divider.cjs.entry.js +19 -0
- package/dist/cjs/wcs-dropdown-header.cjs.entry.js +19 -0
- package/dist/cjs/wcs-dropdown-item.cjs.entry.js +23 -0
- package/dist/cjs/wcs-dropdown.cjs.entry.js +90 -0
- package/dist/cjs/wcs-editable-field.cjs.entry.js +225 -0
- package/dist/cjs/wcs-error_2.cjs.entry.js +137 -0
- package/dist/cjs/wcs-field-content.cjs.entry.js +16 -0
- package/dist/cjs/wcs-field-label.cjs.entry.js +16 -0
- package/dist/cjs/wcs-field.cjs.entry.js +19 -0
- package/dist/cjs/wcs-footer.cjs.entry.js +19 -0
- package/dist/cjs/wcs-galactic-menu.cjs.entry.js +58 -0
- package/dist/cjs/wcs-galactic.cjs.entry.js +41 -0
- package/dist/cjs/wcs-grid-column.cjs.entry.js +77 -0
- package/dist/cjs/wcs-grid-custom-cell.cjs.entry.js +16 -0
- package/dist/cjs/wcs-grid-pagination.cjs.entry.js +4 -4
- package/dist/cjs/wcs-grid.cjs.entry.js +332 -0
- package/dist/cjs/wcs-header.cjs.entry.js +25 -0
- package/dist/cjs/wcs-hint.cjs.entry.js +20 -0
- package/dist/cjs/wcs-horizontal-stepper.cjs.entry.js +114 -0
- package/dist/cjs/wcs-icon.cjs.entry.js +2 -2
- package/dist/cjs/wcs-input.cjs.entry.js +228 -0
- package/dist/cjs/wcs-label.cjs.entry.js +20 -0
- package/dist/cjs/wcs-list-item-properties.cjs.entry.js +19 -0
- package/dist/cjs/wcs-list-item-property.cjs.entry.js +19 -0
- package/dist/cjs/wcs-list-item.cjs.entry.js +23 -0
- package/dist/cjs/wcs-mat-icon.cjs.entry.js +73 -0
- package/dist/cjs/wcs-modal.cjs.entry.js +50 -0
- package/dist/cjs/wcs-nav-item.cjs.entry.js +23 -0
- package/dist/cjs/wcs-nav.cjs.entry.js +19 -0
- package/dist/cjs/wcs-progress-bar.cjs.entry.js +47 -0
- package/dist/cjs/wcs-progress-radial.cjs.entry.js +30 -0
- package/dist/cjs/wcs-radio-group.cjs.entry.js +65 -0
- package/dist/cjs/wcs-radio.cjs.entry.js +49 -0
- package/dist/cjs/wcs-select_2.cjs.entry.js +4916 -0
- package/dist/cjs/wcs-spinner.cjs.entry.js +21 -0
- package/dist/cjs/wcs-switch.cjs.entry.js +42 -0
- package/dist/cjs/wcs-tab.cjs.entry.js +20 -0
- package/dist/cjs/wcs-tabs.cjs.entry.js +159 -0
- package/dist/cjs/wcs-textarea.cjs.entry.js +224 -0
- package/dist/cjs/wcs-tooltip.cjs.entry.js +1635 -0
- package/dist/cjs/wcs.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/badge/badge-interface.js +1 -0
- package/dist/collection/components/badge/badge.js +14 -4
- package/dist/collection/components/button/button.css +79 -75
- package/dist/collection/components/button/button.js +23 -11
- package/dist/collection/components/card/card-interface.js +1 -0
- package/dist/collection/components/card/card.js +7 -2
- package/dist/collection/components/checkbox/checkbox.css +18 -7
- package/dist/collection/components/checkbox/checkbox.js +24 -2
- package/dist/collection/components/com-nav/com-nav.css +1 -2
- package/dist/collection/components/com-nav-category/com-nav-category.css +5 -6
- package/dist/collection/components/com-nav-category/com-nav-category.js +31 -1
- package/dist/collection/components/com-nav-submenu/com-nav-submenu.css +1 -2
- package/dist/collection/components/com-nav-submenu/com-nav-submenu.js +21 -1
- package/dist/collection/components/dropdown/dropdown-interface.js +1 -0
- package/dist/collection/components/dropdown/dropdown.css +46 -38
- package/dist/collection/components/dropdown/dropdown.js +90 -29
- package/dist/collection/components/dropdown-divider/dropdown-divider.css +7 -0
- package/dist/collection/components/dropdown-divider/dropdown-divider.js +14 -0
- package/dist/collection/components/dropdown-header/dropdown-header.css +8 -0
- package/dist/collection/components/dropdown-header/dropdown-header.js +15 -0
- package/dist/collection/components/editable-field/editable-field.js +7 -2
- package/dist/collection/components/footer/footer.css +1 -1
- package/dist/collection/components/form-field/form-field.css +1 -2
- package/dist/collection/components/form-field/form-field.js +0 -17
- package/dist/collection/components/grid/grid.js +75 -13
- package/dist/collection/components/grid-column/grid-column.css +5 -0
- package/dist/collection/components/grid-column/grid-column.js +70 -4
- package/dist/collection/components/grid-custom-cell/grid-custom-cell.js +45 -0
- package/dist/collection/components/grid-pagination/grid-pagination.js +4 -4
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/horizontal-stepper/horizontal-stepper.js +7 -2
- package/dist/collection/components/input/input.css +48 -0
- package/dist/collection/components/input/input.js +40 -4
- package/dist/collection/components/mat-icon/mat-icon.css +1 -1
- package/dist/collection/components/mat-icon/mat-icon.js +7 -2
- package/dist/collection/components/modal/modal-interface.js +1 -0
- package/dist/collection/components/modal/modal.css +26 -7
- package/dist/collection/components/modal/modal.js +35 -7
- package/dist/collection/components/nav-item/nav-item.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +4 -4
- package/dist/collection/components/radio/radio.component.js +9 -4
- package/dist/collection/components/radio/radio.css +44 -19
- package/dist/collection/components/radio-group/radio-group.css +5 -1
- package/dist/collection/components/radio-group/radio-group.js +10 -5
- package/dist/collection/components/select/select.css +81 -77
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select-option/select-option.css +79 -75
- package/dist/collection/components/select-option/select-option.js +6 -7
- package/dist/collection/components/spinner/spinner-interface.js +1 -0
- package/dist/collection/components/spinner/spinner.js +8 -3
- package/dist/collection/components/switch/switch.css +53 -16
- package/dist/collection/components/switch/switch.js +55 -6
- package/dist/collection/components/tab/tab.js +5 -5
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/textarea/textarea.css +4 -0
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/tooltip/tooltip.css +3 -0
- package/dist/collection/components/tooltip/tooltip.js +310 -92
- package/dist/collection/utils/helpers.js +4 -0
- package/dist/esm/component-6b4d470f.js +1072 -0
- package/dist/esm/helpers-e2993152.js +77 -0
- package/dist/esm/{index-c619b1fa.js → index-b982604a.js} +165 -88
- package/dist/esm/loader.js +3 -3
- package/dist/{cjs/wcs-action-bar_47.cjs.entry.js → esm/lodash-d6d9d079.js} +12610 -22791
- package/dist/esm/popper-5f42e560.js +1729 -0
- package/dist/esm/select-arrow-73ac4016.js +34 -0
- package/dist/esm/wcs-action-bar.entry.js +20 -0
- package/dist/esm/wcs-app.entry.js +2 -2
- package/dist/esm/wcs-badge.entry.js +23 -0
- package/dist/esm/wcs-button.entry.js +82 -0
- package/dist/esm/wcs-card-body.entry.js +15 -0
- package/dist/esm/wcs-card.entry.js +16 -0
- package/dist/esm/wcs-checkbox.entry.js +43 -0
- package/dist/esm/wcs-com-nav-category.entry.js +59 -0
- package/dist/esm/wcs-com-nav-submenu.entry.js +65 -0
- package/dist/esm/wcs-com-nav.entry.js +15 -0
- package/dist/esm/wcs-divider.entry.js +15 -0
- package/dist/esm/wcs-dropdown-divider.entry.js +15 -0
- package/dist/esm/wcs-dropdown-header.entry.js +15 -0
- package/dist/esm/wcs-dropdown-item.entry.js +19 -0
- package/dist/esm/wcs-dropdown.entry.js +86 -0
- package/dist/esm/wcs-editable-field.entry.js +221 -0
- package/dist/esm/wcs-error_2.entry.js +132 -0
- package/dist/esm/wcs-field-content.entry.js +12 -0
- package/dist/esm/wcs-field-label.entry.js +12 -0
- package/dist/esm/wcs-field.entry.js +15 -0
- package/dist/esm/wcs-footer.entry.js +15 -0
- package/dist/esm/wcs-galactic-menu.entry.js +54 -0
- package/dist/esm/wcs-galactic.entry.js +37 -0
- package/dist/esm/wcs-grid-column.entry.js +73 -0
- package/dist/esm/wcs-grid-custom-cell.entry.js +12 -0
- package/dist/esm/wcs-grid-pagination.entry.js +4 -4
- package/dist/esm/wcs-grid.entry.js +328 -0
- package/dist/esm/wcs-header.entry.js +21 -0
- package/dist/esm/wcs-hint.entry.js +16 -0
- package/dist/esm/wcs-horizontal-stepper.entry.js +110 -0
- package/dist/esm/wcs-icon.entry.js +2 -2
- package/dist/esm/wcs-input.entry.js +224 -0
- package/dist/esm/wcs-label.entry.js +16 -0
- package/dist/esm/wcs-list-item-properties.entry.js +15 -0
- package/dist/esm/wcs-list-item-property.entry.js +15 -0
- package/dist/esm/wcs-list-item.entry.js +19 -0
- package/dist/esm/wcs-mat-icon.entry.js +69 -0
- package/dist/esm/wcs-modal.entry.js +46 -0
- package/dist/esm/wcs-nav-item.entry.js +19 -0
- package/dist/esm/wcs-nav.entry.js +15 -0
- package/dist/esm/wcs-progress-bar.entry.js +43 -0
- package/dist/esm/wcs-progress-radial.entry.js +26 -0
- package/dist/esm/wcs-radio-group.entry.js +61 -0
- package/dist/esm/wcs-radio.entry.js +45 -0
- package/dist/esm/wcs-select_2.entry.js +4911 -0
- package/dist/esm/wcs-spinner.entry.js +17 -0
- package/dist/esm/wcs-switch.entry.js +38 -0
- package/dist/esm/wcs-tab.entry.js +16 -0
- package/dist/esm/wcs-tabs.entry.js +155 -0
- package/dist/esm/wcs-textarea.entry.js +220 -0
- package/dist/esm/wcs-tooltip.entry.js +1631 -0
- package/dist/esm/wcs.js +3 -3
- package/dist/types/components/badge/badge-interface.d.ts +2 -0
- package/dist/types/components/badge/badge.d.ts +3 -2
- package/dist/types/components/button/button.d.ts +7 -3
- package/dist/types/components/card/card-interface.d.ts +1 -0
- package/dist/types/components/card/card.d.ts +2 -1
- package/dist/types/components/checkbox/checkbox.d.ts +4 -0
- package/dist/types/components/com-nav-category/com-nav-category.d.ts +7 -0
- package/dist/types/components/com-nav-submenu/com-nav-submenu.d.ts +7 -0
- package/dist/types/components/dropdown/dropdown-interface.d.ts +1 -0
- package/dist/types/components/dropdown/dropdown.d.ts +13 -16
- package/dist/types/components/dropdown-divider/dropdown-divider.d.ts +3 -0
- package/dist/types/components/dropdown-header/dropdown-header.d.ts +3 -0
- package/dist/types/components/editable-field/editable-field-interface.d.ts +1 -0
- package/dist/types/components/editable-field/editable-field.d.ts +2 -2
- package/dist/types/components/form-field/form-field.d.ts +0 -4
- package/dist/types/components/grid/grid.d.ts +18 -0
- package/dist/types/components/grid-column/grid-column.d.ts +6 -1
- package/dist/types/components/grid-custom-cell/grid-custom-cell.d.ts +12 -0
- package/dist/types/components/horizontal-stepper/horizontal-stepper-interface.d.ts +1 -0
- package/dist/types/components/horizontal-stepper/horizontal-stepper.d.ts +2 -2
- package/dist/types/components/input/input.d.ts +8 -0
- package/dist/types/components/mat-icon/mat-icon-interface.d.ts +1 -0
- package/dist/types/components/mat-icon/mat-icon.d.ts +2 -2
- package/dist/types/components/modal/modal-interface.d.ts +1 -0
- package/dist/types/components/modal/modal.d.ts +7 -1
- package/dist/types/components/radio/radio.component.d.ts +2 -1
- package/dist/types/components/radio-group/radio-group-interface.d.ts +1 -0
- package/dist/types/components/radio-group/radio-group.d.ts +2 -2
- package/dist/types/components/select-option/select-option.d.ts +2 -0
- package/dist/types/components/spinner/spinner-interface.d.ts +1 -0
- package/dist/types/components/spinner/spinner.d.ts +2 -1
- package/dist/types/components/switch/switch-interface.d.ts +1 -0
- package/dist/types/components/switch/switch.d.ts +10 -2
- package/dist/types/components/tooltip/tooltip.d.ts +70 -6
- package/dist/types/components.d.ts +253 -41
- package/dist/types/interfaces.d.ts +22 -0
- package/dist/types/stencil-public-runtime.d.ts +189 -186
- package/dist/types/utils/helpers.d.ts +1 -0
- package/dist/wcs/p-03b2e238.entry.js +1 -0
- package/dist/wcs/p-08a7e84d.entry.js +1 -0
- package/dist/wcs/p-16dfbae8.js +127 -0
- package/dist/wcs/p-1dce7e63.entry.js +1 -0
- package/dist/wcs/p-1f5aed36.entry.js +1 -0
- package/dist/wcs/p-214236db.entry.js +1 -0
- package/dist/wcs/p-22813c8e.entry.js +1 -0
- package/dist/wcs/p-26b5c0a3.entry.js +1 -0
- package/dist/wcs/p-2e6265dc.entry.js +1 -0
- package/dist/wcs/p-384068f7.entry.js +1 -0
- package/dist/wcs/p-41037455.entry.js +1 -0
- package/dist/wcs/p-474d6601.entry.js +1 -0
- package/dist/wcs/p-4e9e226d.entry.js +1 -0
- package/dist/wcs/p-55fdc284.entry.js +1 -0
- package/dist/wcs/p-5b35b232.entry.js +1 -0
- package/dist/wcs/p-600a9cc0.entry.js +1 -0
- package/dist/wcs/p-60b51967.entry.js +1 -0
- package/dist/wcs/p-65c5ccc5.entry.js +1 -0
- package/dist/wcs/p-688fea65.entry.js +1 -0
- package/dist/wcs/p-716d5921.entry.js +1 -0
- package/dist/wcs/p-7206e492.entry.js +1 -0
- package/dist/wcs/p-7219c04b.js +1 -0
- package/dist/wcs/p-7c26f650.entry.js +1 -0
- package/dist/wcs/p-8137f075.entry.js +1 -0
- package/dist/wcs/p-8864a491.entry.js +1 -0
- package/dist/wcs/p-8c8740e3.entry.js +1 -0
- package/dist/wcs/p-91a2de07.entry.js +1 -0
- package/dist/wcs/p-94a31f64.entry.js +1 -0
- package/dist/wcs/p-9619f77a.entry.js +1 -0
- package/dist/wcs/p-979dfd78.entry.js +1 -0
- package/dist/wcs/p-9ba52bc4.entry.js +1 -0
- package/dist/wcs/p-a1ee1551.entry.js +1 -0
- package/dist/wcs/p-a92d369e.entry.js +1 -0
- package/dist/wcs/p-a978c1e3.entry.js +1 -0
- package/dist/wcs/p-adef7aaf.js +1 -0
- package/dist/wcs/p-b5ffbea8.entry.js +1 -0
- package/dist/wcs/p-b7184d59.entry.js +1 -0
- package/dist/wcs/p-bbf1ef42.entry.js +1 -0
- package/dist/wcs/p-c7d6d3e1.entry.js +15 -0
- package/dist/wcs/p-cf4d7a83.js +1 -0
- package/dist/wcs/p-d3c9a644.js +1 -0
- package/dist/wcs/p-db68379f.entry.js +1 -0
- package/dist/wcs/p-dbbc3f58.entry.js +1 -0
- package/dist/wcs/p-dc817204.entry.js +1 -0
- package/dist/wcs/p-e0163de8.entry.js +1 -0
- package/dist/wcs/p-e4236d32.entry.js +1 -0
- package/dist/wcs/p-e43358e4.entry.js +1 -0
- package/dist/wcs/p-e9ce507c.entry.js +1 -0
- package/dist/wcs/p-ecbe5165.entry.js +6 -0
- package/dist/wcs/p-f430a227.entry.js +1 -0
- package/dist/wcs/p-f46e6c3c.js +1 -0
- package/dist/wcs/p-f96bb0bf.entry.js +1 -0
- package/dist/wcs/p-f9944bde.entry.js +1 -0
- package/dist/wcs/p-fa173947.entry.js +1 -0
- package/dist/wcs/p-fb1577b5.entry.js +1 -0
- package/dist/wcs/p-febe9ccc.entry.js +1 -0
- package/dist/wcs/p-ff6d0dfd.entry.js +1 -0
- package/dist/wcs/wcs.css +1 -1
- package/dist/wcs/wcs.esm.js +1 -1
- package/loader/index.d.ts +0 -1
- package/package.json +25 -22
- package/dist/types/interface.d.ts +0 -3
- package/dist/wcs/p-16dca526.entry.js +0 -1
- package/dist/wcs/p-4f228fcb.entry.js +0 -134
- package/dist/wcs/p-66520e5a.entry.js +0 -1
- package/dist/wcs/p-d31287c6.entry.js +0 -1
- package/dist/wcs/p-f73f235b.js +0 -1
- package/schematics/.gitignore +0 -18
- package/schematics/.npmignore +0 -4
- package/schematics/collection.json +0 -9
- package/schematics/src/ng-add/files/fonts/avenir-black.woff +0 -0
- package/schematics/src/ng-add/files/fonts/avenir-book.woff +0 -0
- package/schematics/src/ng-add/files/fonts/avenir-lighter.woff +0 -0
- package/schematics/src/ng-add/files/fonts/avenir-medium.woff +0 -0
- package/schematics/src/ng-add/files/sncf-logo.png +0 -0
- package/schematics/src/ng-add/index.d.ts +0 -3
- package/schematics/src/ng-add/index.js +0 -119
- package/schematics/src/ng-add/index.js.map +0 -1
- package/schematics/src/ng-add/schema.json +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(function(n,t){(function(){var u,e="Expected a function",i="__lodash_hash_undefined__",f="__lodash_placeholder__",o=32,c=128,a=1/0,v=9007199254740991,l=NaN,s=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",256]],p="[object Arguments]",y="[object Array]",w="[object Boolean]",b="[object Date]",d="[object Error]",g="[object Function]",_="[object GeneratorFunction]",x="[object Map]",j="[object Number]",m="[object Object]",A="[object Promise]",R="[object RegExp]",E="[object Set]",$="[object String]",U="[object Symbol]",k="[object WeakMap]",S="[object ArrayBuffer]",I="[object DataView]",O="[object Float32Array]",D="[object Float64Array]",T="[object Int8Array]",z="[object Int16Array]",F="[object Int32Array]",L="[object Uint8Array]",C="[object Uint8ClampedArray]",N="[object Uint16Array]",Z="[object Uint32Array]",M=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,B=RegExp(P.source),V=RegExp(G.source),H=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nn=/[\\^$.*+?()[\]{}|]/g,rn=RegExp(nn.source),tn=/^\s+/,un=/\s/,en=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fn=/\{\n\/\* \[wrapped with (.+)\] \*/,on=/,? & /,cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,an=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,ln=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sn=/\w*$/,hn=/^[-+]0x[0-9a-f]+$/i,pn=/^0b[01]+$/i,yn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,dn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gn=/($^)/,_n=/['\n\r\u2028\u2029\\]/g,xn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",jn="a-z\\xdf-\\xf6\\xf8-\\xff",mn="A-Z\\xc0-\\xd6\\xd8-\\xde",An="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rn="["+An+"]",En="["+xn+"]",$n="\\d+",Un="["+jn+"]",kn="[^\\ud800-\\udfff"+An+$n+"\\u2700-\\u27bf"+jn+mn+"]",Sn="\\ud83c[\\udffb-\\udfff]",In="[^\\ud800-\\udfff]",On="(?:\\ud83c[\\udde6-\\uddff]){2}",Dn="[\\ud800-\\udbff][\\udc00-\\udfff]",Tn="["+mn+"]",zn="(?:"+Un+"|"+kn+")",Fn="(?:"+Tn+"|"+kn+")",Ln="(?:['’](?:d|ll|m|re|s|t|ve))?",Cn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Nn="(?:"+En+"|"+Sn+")?",Zn="[\\ufe0e\\ufe0f]?",Mn=Zn+Nn+"(?:\\u200d(?:"+[In,On,Dn].join("|")+")"+Zn+Nn+")*",Wn="(?:"+["[\\u2700-\\u27bf]",On,Dn].join("|")+")"+Mn,qn="(?:"+[In+En+"?",En,On,Dn,"[\\ud800-\\udfff]"].join("|")+")",Pn=RegExp("['’]","g"),Gn=RegExp(En,"g"),Bn=RegExp(Sn+"(?="+Sn+")|"+qn+Mn,"g"),Vn=RegExp([Tn+"?"+Un+"+"+Ln+"(?="+[Rn,Tn,"$"].join("|")+")",Fn+"+"+Cn+"(?="+[Rn,Tn+zn,"$"].join("|")+")",Tn+"?"+zn+"+"+Ln,Tn+"+"+Cn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$n,Wn].join("|"),"g"),Hn=RegExp("[\\u200d\\ud800-\\udfff"+xn+"\\ufe0e\\ufe0f]"),Kn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Jn=-1,Qn={};Qn[O]=Qn[D]=Qn[T]=Qn[z]=Qn[F]=Qn[L]=Qn[C]=Qn[N]=Qn[Z]=!0,Qn[p]=Qn[y]=Qn[S]=Qn[w]=Qn[I]=Qn[b]=Qn[d]=Qn[g]=Qn[x]=Qn[j]=Qn[m]=Qn[R]=Qn[E]=Qn[$]=Qn[k]=!1;var Xn={};Xn[p]=Xn[y]=Xn[S]=Xn[I]=Xn[w]=Xn[b]=Xn[O]=Xn[D]=Xn[T]=Xn[z]=Xn[F]=Xn[x]=Xn[j]=Xn[m]=Xn[R]=Xn[E]=Xn[$]=Xn[U]=Xn[L]=Xn[C]=Xn[N]=Xn[Z]=!0,Xn[d]=Xn[g]=Xn[k]=!1;var nr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rr=parseFloat,tr=parseInt,ur="object"==typeof r&&r&&r.Object===Object&&r,er="object"==typeof self&&self&&self.Object===Object&&self,ir=ur||er||Function("return this")(),fr=t&&!t.nodeType&&t,or=fr&&n&&!n.nodeType&&n,cr=or&&or.exports===fr,ar=cr&&ur.process,vr=function(){try{return or&&or.require&&or.require("util").types||ar&&ar.binding&&ar.binding("util")}catch(n){}}(),lr=vr&&vr.isArrayBuffer,sr=vr&&vr.isDate,hr=vr&&vr.isMap,pr=vr&&vr.isRegExp,yr=vr&&vr.isSet,wr=vr&&vr.isTypedArray;function br(n,r,t){switch(t.length){case 0:return n.call(r);case 1:return n.call(r,t[0]);case 2:return n.call(r,t[0],t[1]);case 3:return n.call(r,t[0],t[1],t[2])}return n.apply(r,t)}function dr(n,r,t,u){for(var e=-1,i=null==n?0:n.length;++e<i;){var f=n[e];r(u,f,t(f),n)}return u}function gr(n,r){for(var t=-1,u=null==n?0:n.length;++t<u&&!1!==r(n[t],t,n););return n}function _r(n,r){for(var t=null==n?0:n.length;t--&&!1!==r(n[t],t,n););return n}function xr(n,r){for(var t=-1,u=null==n?0:n.length;++t<u;)if(!r(n[t],t,n))return!1;return!0}function jr(n,r){for(var t=-1,u=null==n?0:n.length,e=0,i=[];++t<u;){var f=n[t];r(f,t,n)&&(i[e++]=f)}return i}function mr(n,r){return!(null==n||!n.length)&&Dr(n,r,0)>-1}function Ar(n,r,t){for(var u=-1,e=null==n?0:n.length;++u<e;)if(t(r,n[u]))return!0;return!1}function Rr(n,r){for(var t=-1,u=null==n?0:n.length,e=Array(u);++t<u;)e[t]=r(n[t],t,n);return e}function Er(n,r){for(var t=-1,u=r.length,e=n.length;++t<u;)n[e+t]=r[t];return n}function $r(n,r,t,u){var e=-1,i=null==n?0:n.length;for(u&&i&&(t=n[++e]);++e<i;)t=r(t,n[e],e,n);return t}function Ur(n,r,t,u){var e=null==n?0:n.length;for(u&&e&&(t=n[--e]);e--;)t=r(t,n[e],e,n);return t}function kr(n,r){for(var t=-1,u=null==n?0:n.length;++t<u;)if(r(n[t],t,n))return!0;return!1}var Sr=Lr("length");function Ir(n,r,t){var u;return t(n,(function(n,t,e){if(r(n,t,e))return u=t,!1})),u}function Or(n,r,t,u){for(var e=n.length,i=t+(u?1:-1);u?i--:++i<e;)if(r(n[i],i,n))return i;return-1}function Dr(n,r,t){return r==r?function(n,r,t){for(var u=t-1,e=n.length;++u<e;)if(n[u]===r)return u;return-1}(n,r,t):Or(n,zr,t)}function Tr(n,r,t,u){for(var e=t-1,i=n.length;++e<i;)if(u(n[e],r))return e;return-1}function zr(n){return n!=n}function Fr(n,r){var t=null==n?0:n.length;return t?Zr(n,r)/t:l}function Lr(n){return function(r){return null==r?u:r[n]}}function Cr(n){return function(r){return null==n?u:n[r]}}function Nr(n,r,t,u,e){return e(n,(function(n,e,i){t=u?(u=!1,n):r(t,n,e,i)})),t}function Zr(n,r){for(var t,e=-1,i=n.length;++e<i;){var f=r(n[e]);f!==u&&(t=t===u?f:t+f)}return t}function Mr(n,r){for(var t=-1,u=Array(n);++t<n;)u[t]=r(t);return u}function Wr(n){return n?n.slice(0,ft(n)+1).replace(tn,""):n}function qr(n){return function(r){return n(r)}}function Pr(n,r){return Rr(r,(function(r){return n[r]}))}function Gr(n,r){return n.has(r)}function Br(n,r){for(var t=-1,u=n.length;++t<u&&Dr(r,n[t],0)>-1;);return t}function Vr(n,r){for(var t=n.length;t--&&Dr(r,n[t],0)>-1;);return t}function Hr(n,r){for(var t=n.length,u=0;t--;)n[t]===r&&++u;return u}var Kr=Cr({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Yr=Cr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Jr(n){return"\\"+nr[n]}function Qr(n){return Hn.test(n)}function Xr(n){var r=-1,t=Array(n.size);return n.forEach((function(n,u){t[++r]=[u,n]})),t}function nt(n,r){return function(t){return n(r(t))}}function rt(n,r){for(var t=-1,u=n.length,e=0,i=[];++t<u;){var o=n[t];o!==r&&o!==f||(n[t]=f,i[e++]=t)}return i}function tt(n){var r=-1,t=Array(n.size);return n.forEach((function(n){t[++r]=n})),t}function ut(n){var r=-1,t=Array(n.size);return n.forEach((function(n){t[++r]=[n,n]})),t}function et(n){return Qr(n)?function(n){for(var r=Bn.lastIndex=0;Bn.test(n);)++r;return r}(n):Sr(n)}function it(n){return Qr(n)?function(n){return n.match(Bn)||[]}(n):function(n){return n.split("")}(n)}function ft(n){for(var r=n.length;r--&&un.test(n.charAt(r)););return r}var ot=Cr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ct=function n(r){var t,un=(r=null==r?ir:ct.defaults(ir.Object(),r,ct.pick(ir,Yn))).Array,xn=r.Date,jn=r.Error,mn=r.Function,An=r.Math,Rn=r.Object,En=r.RegExp,$n=r.String,Un=r.TypeError,kn=un.prototype,Sn=Rn.prototype,In=r["__core-js_shared__"],On=mn.prototype.toString,Dn=Sn.hasOwnProperty,Tn=0,zn=(t=/[^.]+$/.exec(In&&In.keys&&In.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",Fn=Sn.toString,Ln=On.call(Rn),Cn=ir._,Nn=En("^"+On.call(Dn).replace(nn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zn=cr?r.Buffer:u,Mn=r.Symbol,Wn=r.Uint8Array,qn=Zn?Zn.allocUnsafe:u,Bn=nt(Rn.getPrototypeOf,Rn),Hn=Rn.create,nr=Sn.propertyIsEnumerable,ur=kn.splice,er=Mn?Mn.isConcatSpreadable:u,fr=Mn?Mn.iterator:u,or=Mn?Mn.toStringTag:u,ar=function(){try{var n=ci(Rn,"defineProperty");return n({},"",{}),n}catch(n){}}(),vr=r.clearTimeout!==ir.clearTimeout&&r.clearTimeout,Sr=xn&&xn.now!==ir.Date.now&&xn.now,Cr=r.setTimeout!==ir.setTimeout&&r.setTimeout,at=An.ceil,vt=An.floor,lt=Rn.getOwnPropertySymbols,st=Zn?Zn.isBuffer:u,ht=r.isFinite,pt=kn.join,yt=nt(Rn.keys,Rn),wt=An.max,bt=An.min,dt=xn.now,gt=r.parseInt,_t=An.random,xt=kn.reverse,jt=ci(r,"DataView"),mt=ci(r,"Map"),At=ci(r,"Promise"),Rt=ci(r,"Set"),Et=ci(r,"WeakMap"),$t=ci(Rn,"create"),Ut=Et&&new Et,kt={},St=Li(jt),It=Li(mt),Ot=Li(At),Dt=Li(Rt),Tt=Li(Et),zt=Mn?Mn.prototype:u,Ft=zt?zt.valueOf:u,Lt=zt?zt.toString:u;function Ct(n){if(ro(n)&&!Pf(n)&&!(n instanceof Wt)){if(n instanceof Mt)return n;if(Dn.call(n,"__wrapped__"))return Ci(n)}return new Mt(n)}var Nt=function(){function n(){}return function(r){if(!no(r))return{};if(Hn)return Hn(r);n.prototype=r;var t=new n;return n.prototype=u,t}}();function Zt(){}function Mt(n,r){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=u}function Wt(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=s,this.__views__=[]}function qt(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var u=n[r];this.set(u[0],u[1])}}function Pt(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var u=n[r];this.set(u[0],u[1])}}function Gt(n){var r=-1,t=null==n?0:n.length;for(this.clear();++r<t;){var u=n[r];this.set(u[0],u[1])}}function Bt(n){var r=-1,t=null==n?0:n.length;for(this.__data__=new Gt;++r<t;)this.add(n[r])}function Vt(n){var r=this.__data__=new Pt(n);this.size=r.size}function Ht(n,r){var t=Pf(n),u=!t&&qf(n),e=!t&&!u&&Hf(n),i=!t&&!u&&!e&&ao(n),f=t||u||e||i,o=f?Mr(n.length,$n):[],c=o.length;for(var a in n)!r&&!Dn.call(n,a)||f&&("length"==a||e&&("offset"==a||"parent"==a)||i&&("buffer"==a||"byteLength"==a||"byteOffset"==a)||yi(a,c))||o.push(a);return o}function Kt(n){var r=n.length;return r?n[Gu(0,r-1)]:u}function Yt(n,r){return Oi(Ee(n),iu(r,0,n.length))}function Jt(n){return Oi(Ee(n))}function Qt(n,r,t){(t!==u&&!Zf(n[r],t)||t===u&&!(r in n))&&uu(n,r,t)}function Xt(n,r,t){var e=n[r];Dn.call(n,r)&&Zf(e,t)&&(t!==u||r in n)||uu(n,r,t)}function nu(n,r){for(var t=n.length;t--;)if(Zf(n[t][0],r))return t;return-1}function ru(n,r,t,u){return vu(n,(function(n,e,i){r(u,n,t(n),i)})),u}function tu(n,r){return n&&$e(r,Oo(r),n)}function uu(n,r,t){"__proto__"==r&&ar?ar(n,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[r]=t}function eu(n,r){for(var t=-1,e=r.length,i=un(e),f=null==n;++t<e;)i[t]=f?u:$o(n,r[t]);return i}function iu(n,r,t){return n==n&&(t!==u&&(n=n<=t?n:t),r!==u&&(n=n>=r?n:r)),n}function fu(n,r,t,e,i,f){var o,c=1&r,a=2&r,v=4&r;if(t&&(o=i?t(n,e,i,f):t(n)),o!==u)return o;if(!no(n))return n;var l=Pf(n);if(l){if(o=function(n){var r=n.length,t=new n.constructor(r);return r&&"string"==typeof n[0]&&Dn.call(n,"index")&&(t.index=n.index,t.input=n.input),t}(n),!c)return Ee(n,o)}else{var s=li(n),h=s==g||s==_;if(Hf(n))return _e(n,c);if(s==m||s==p||h&&!i){if(o=a||h?{}:hi(n),!c)return a?function(n,r){return $e(n,vi(n),r)}(n,function(n,r){return n&&$e(r,Do(r),n)}(o,n)):function(n,r){return $e(n,ai(n),r)}(n,tu(o,n))}else{if(!Xn[s])return i?n:{};o=function(n,r,t){var u=n.constructor;switch(r){case S:return xe(n);case w:case b:return new u(+n);case I:return function(n,r){var t=r?xe(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}(n,t);case O:case D:case T:case z:case F:case L:case C:case N:case Z:return je(n,t);case x:return new u;case j:case $:return new u(n);case R:return function(n){var r=new n.constructor(n.source,sn.exec(n));return r.lastIndex=n.lastIndex,r}(n);case E:return new u;case U:return Ft?Rn(Ft.call(n)):{}}}(n,s,c)}}f||(f=new Vt);var y=f.get(n);if(y)return y;f.set(n,o),fo(n)?n.forEach((function(u){o.add(fu(u,r,t,u,n,f))})):to(n)&&n.forEach((function(u,e){o.set(e,fu(u,r,t,e,n,f))}));var d=l?u:(v?a?ri:ni:a?Do:Oo)(n);return gr(d||n,(function(u,e){d&&(u=n[e=u]),Xt(o,e,fu(u,r,t,e,n,f))})),o}function ou(n,r,t){var e=t.length;if(null==n)return!e;for(n=Rn(n);e--;){var i=t[e],f=n[i];if(f===u&&!(i in n)||!(0,r[i])(f))return!1}return!0}function cu(n,r,t){if("function"!=typeof n)throw new Un(e);return Ui((function(){n.apply(u,t)}),r)}function au(n,r,t,u){var e=-1,i=mr,f=!0,o=n.length,c=[],a=r.length;if(!o)return c;t&&(r=Rr(r,qr(t))),u?(i=Ar,f=!1):r.length>=200&&(i=Gr,f=!1,r=new Bt(r));n:for(;++e<o;){var v=n[e],l=null==t?v:t(v);if(v=u||0!==v?v:0,f&&l==l){for(var s=a;s--;)if(r[s]===l)continue n;c.push(v)}else i(r,l,u)||c.push(v)}return c}Ct.templateSettings={escape:H,evaluate:K,interpolate:Y,variable:"",imports:{_:Ct}},(Ct.prototype=Zt.prototype).constructor=Ct,(Mt.prototype=Nt(Zt.prototype)).constructor=Mt,(Wt.prototype=Nt(Zt.prototype)).constructor=Wt,qt.prototype.clear=function(){this.__data__=$t?$t(null):{},this.size=0},qt.prototype.delete=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r},qt.prototype.get=function(n){var r=this.__data__;if($t){var t=r[n];return t===i?u:t}return Dn.call(r,n)?r[n]:u},qt.prototype.has=function(n){var r=this.__data__;return $t?r[n]!==u:Dn.call(r,n)},qt.prototype.set=function(n,r){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=$t&&r===u?i:r,this},Pt.prototype.clear=function(){this.__data__=[],this.size=0},Pt.prototype.delete=function(n){var r=this.__data__,t=nu(r,n);return!(t<0||(t==r.length-1?r.pop():ur.call(r,t,1),--this.size,0))},Pt.prototype.get=function(n){var r=this.__data__,t=nu(r,n);return t<0?u:r[t][1]},Pt.prototype.has=function(n){return nu(this.__data__,n)>-1},Pt.prototype.set=function(n,r){var t=this.__data__,u=nu(t,n);return u<0?(++this.size,t.push([n,r])):t[u][1]=r,this},Gt.prototype.clear=function(){this.size=0,this.__data__={hash:new qt,map:new(mt||Pt),string:new qt}},Gt.prototype.delete=function(n){var r=fi(this,n).delete(n);return this.size-=r?1:0,r},Gt.prototype.get=function(n){return fi(this,n).get(n)},Gt.prototype.has=function(n){return fi(this,n).has(n)},Gt.prototype.set=function(n,r){var t=fi(this,n),u=t.size;return t.set(n,r),this.size+=t.size==u?0:1,this},Bt.prototype.add=Bt.prototype.push=function(n){return this.__data__.set(n,i),this},Bt.prototype.has=function(n){return this.__data__.has(n)},Vt.prototype.clear=function(){this.__data__=new Pt,this.size=0},Vt.prototype.delete=function(n){var r=this.__data__,t=r.delete(n);return this.size=r.size,t},Vt.prototype.get=function(n){return this.__data__.get(n)},Vt.prototype.has=function(n){return this.__data__.has(n)},Vt.prototype.set=function(n,r){var t=this.__data__;if(t instanceof Pt){var u=t.__data__;if(!mt||u.length<199)return u.push([n,r]),this.size=++t.size,this;t=this.__data__=new Gt(u)}return t.set(n,r),this.size=t.size,this};var vu=Se(du),lu=Se(gu,!0);function su(n,r){var t=!0;return vu(n,(function(n,u,e){return t=!!r(n,u,e)})),t}function hu(n,r,t){for(var e=-1,i=n.length;++e<i;){var f=n[e],o=r(f);if(null!=o&&(c===u?o==o&&!co(o):t(o,c)))var c=o,a=f}return a}function pu(n,r){var t=[];return vu(n,(function(n,u,e){r(n,u,e)&&t.push(n)})),t}function yu(n,r,t,u,e){var i=-1,f=n.length;for(t||(t=pi),e||(e=[]);++i<f;){var o=n[i];r>0&&t(o)?r>1?yu(o,r-1,t,u,e):Er(e,o):u||(e[e.length]=o)}return e}var wu=Ie(),bu=Ie(!0);function du(n,r){return n&&wu(n,r,Oo)}function gu(n,r){return n&&bu(n,r,Oo)}function _u(n,r){return jr(r,(function(r){return Jf(n[r])}))}function xu(n,r){for(var t=0,e=(r=we(r,n)).length;null!=n&&t<e;)n=n[Fi(r[t++])];return t&&t==e?n:u}function ju(n,r,t){var u=r(n);return Pf(n)?u:Er(u,t(n))}function mu(n){return null==n?n===u?"[object Undefined]":"[object Null]":or&&or in Rn(n)?function(n){var r=Dn.call(n,or),t=n[or];try{n[or]=u;var e=!0}catch(n){}var i=Fn.call(n);return e&&(r?n[or]=t:delete n[or]),i}(n):function(n){return Fn.call(n)}(n)}function Au(n,r){return n>r}function Ru(n,r){return null!=n&&Dn.call(n,r)}function Eu(n,r){return null!=n&&r in Rn(n)}function $u(n,r,t){for(var e=t?Ar:mr,i=n[0].length,f=n.length,o=f,c=un(f),a=1/0,v=[];o--;){var l=n[o];o&&r&&(l=Rr(l,qr(r))),a=bt(l.length,a),c[o]=!t&&(r||i>=120&&l.length>=120)?new Bt(o&&l):u}l=n[0];var s=-1,h=c[0];n:for(;++s<i&&v.length<a;){var p=l[s],y=r?r(p):p;if(p=t||0!==p?p:0,!(h?Gr(h,y):e(v,y,t))){for(o=f;--o;){var w=c[o];if(!(w?Gr(w,y):e(n[o],y,t)))continue n}h&&h.push(y),v.push(p)}}return v}function Uu(n,r,t){var e=null==(n=Ai(n,r=we(r,n)))?n:n[Fi(Ki(r))];return null==e?u:br(e,n,t)}function ku(n){return ro(n)&&mu(n)==p}function Su(n,r,t,e,i){return n===r||(null==n||null==r||!ro(n)&&!ro(r)?n!=n&&r!=r:function(n,r,t,e,i,f){var o=Pf(n),c=Pf(r),a=o?y:li(n),v=c?y:li(r),l=(a=a==p?m:a)==m,s=(v=v==p?m:v)==m,h=a==v;if(h&&Hf(n)){if(!Hf(r))return!1;o=!0,l=!1}if(h&&!l)return f||(f=new Vt),o||ao(n)?Qe(n,r,t,e,i,f):function(n,r,t,u,e,i,f){switch(t){case I:if(n.byteLength!=r.byteLength||n.byteOffset!=r.byteOffset)return!1;n=n.buffer,r=r.buffer;case S:return!(n.byteLength!=r.byteLength||!i(new Wn(n),new Wn(r)));case w:case b:case j:return Zf(+n,+r);case d:return n.name==r.name&&n.message==r.message;case R:case $:return n==r+"";case x:var o=Xr;case E:if(o||(o=tt),n.size!=r.size&&!(1&u))return!1;var c=f.get(n);if(c)return c==r;u|=2,f.set(n,r);var a=Qe(o(n),o(r),u,e,i,f);return f.delete(n),a;case U:if(Ft)return Ft.call(n)==Ft.call(r)}return!1}(n,r,a,t,e,i,f);if(!(1&t)){var g=l&&Dn.call(n,"__wrapped__"),_=s&&Dn.call(r,"__wrapped__");if(g||_){var A=g?n.value():n,k=_?r.value():r;return f||(f=new Vt),i(A,k,t,e,f)}}return!!h&&(f||(f=new Vt),function(n,r,t,e,i,f){var o=1&t,c=ni(n),a=c.length;if(a!=ni(r).length&&!o)return!1;for(var v=a;v--;){var l=c[v];if(!(o?l in r:Dn.call(r,l)))return!1}var s=f.get(n),h=f.get(r);if(s&&h)return s==r&&h==n;var p=!0;f.set(n,r),f.set(r,n);for(var y=o;++v<a;){var w=n[l=c[v]],b=r[l];if(e)var d=o?e(b,w,l,r,n,f):e(w,b,l,n,r,f);if(!(d===u?w===b||i(w,b,t,e,f):d)){p=!1;break}y||(y="constructor"==l)}if(p&&!y){var g=n.constructor,_=r.constructor;g==_||!("constructor"in n)||!("constructor"in r)||"function"==typeof g&&g instanceof g&&"function"==typeof _&&_ instanceof _||(p=!1)}return f.delete(n),f.delete(r),p}(n,r,t,e,i,f))}(n,r,t,e,Su,i))}function Iu(n,r,t,e){var i=t.length,f=i,o=!e;if(null==n)return!f;for(n=Rn(n);i--;){var c=t[i];if(o&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++i<f;){var a=(c=t[i])[0],v=n[a],l=c[1];if(o&&c[2]){if(v===u&&!(a in n))return!1}else{var s=new Vt;if(e)var h=e(v,l,a,n,r,s);if(!(h===u?Su(l,v,3,e,s):h))return!1}}return!0}function Ou(n){return!(!no(n)||(r=n,zn&&zn in r))&&(Jf(n)?Nn:yn).test(Li(n));var r}function Du(n){return"function"==typeof n?n:null==n?ec:"object"==typeof n?Pf(n)?Cu(n[0],n[1]):Lu(n):hc(n)}function Tu(n){if(!_i(n))return yt(n);var r=[];for(var t in Rn(n))Dn.call(n,t)&&"constructor"!=t&&r.push(t);return r}function zu(n,r){return n<r}function Fu(n,r){var t=-1,u=Bf(n)?un(n.length):[];return vu(n,(function(n,e,i){u[++t]=r(n,e,i)})),u}function Lu(n){var r=oi(n);return 1==r.length&&r[0][2]?ji(r[0][0],r[0][1]):function(t){return t===n||Iu(t,n,r)}}function Cu(n,r){return bi(n)&&xi(r)?ji(Fi(n),r):function(t){var e=$o(t,n);return e===u&&e===r?Uo(t,n):Su(r,e,3)}}function Nu(n,r,t,e,i){n!==r&&wu(r,(function(f,o){if(i||(i=new Vt),no(f))!function(n,r,t,e,i,f,o){var c=Ei(n,t),a=Ei(r,t),v=o.get(a);if(v)Qt(n,t,v);else{var l=f?f(c,a,t+"",n,r,o):u,s=l===u;if(s){var h=Pf(a),p=!h&&Hf(a),y=!h&&!p&&ao(a);l=a,h||p||y?Pf(c)?l=c:Vf(c)?l=Ee(c):p?(s=!1,l=_e(a,!0)):y?(s=!1,l=je(a,!0)):l=[]:eo(a)||qf(a)?(l=c,qf(c)?l=bo(c):no(c)&&!Jf(c)||(l=hi(a))):s=!1}s&&(o.set(a,l),i(l,a,e,f,o),o.delete(a)),Qt(n,t,l)}}(n,r,o,t,Nu,e,i);else{var c=e?e(Ei(n,o),f,o+"",n,r,i):u;c===u&&(c=f),Qt(n,o,c)}}),Do)}function Zu(n,r){var t=n.length;if(t)return yi(r+=r<0?t:0,t)?n[r]:u}function Mu(n,r,t){r=r.length?Rr(r,(function(n){return Pf(n)?function(r){return xu(r,1===n.length?n[0]:n)}:n})):[ec];var u=-1;return r=Rr(r,qr(ii())),function(n){var r=n.length;for(n.sort((function(n,r){return function(n,r,t){for(var u=-1,e=n.criteria,i=r.criteria,f=e.length,o=t.length;++u<f;){var c=me(e[u],i[u]);if(c)return u>=o?c:c*("desc"==t[u]?-1:1)}return n.index-r.index}(n,r,t)}));r--;)n[r]=n[r].value;return n}(Fu(n,(function(n){return{criteria:Rr(r,(function(r){return r(n)})),index:++u,value:n}})))}function Wu(n,r,t){for(var u=-1,e=r.length,i={};++u<e;){var f=r[u],o=xu(n,f);t(o,f)&&Yu(i,we(f,n),o)}return i}function qu(n,r,t,u){var e=u?Tr:Dr,i=-1,f=r.length,o=n;for(n===r&&(r=Ee(r)),t&&(o=Rr(n,qr(t)));++i<f;)for(var c=0,a=r[i],v=t?t(a):a;(c=e(o,v,c,u))>-1;)o!==n&&ur.call(o,c,1),ur.call(n,c,1);return n}function Pu(n,r){for(var t=n?r.length:0,u=t-1;t--;){var e=r[t];if(t==u||e!==i){var i=e;yi(e)?ur.call(n,e,1):ce(n,e)}}return n}function Gu(n,r){return n+vt(_t()*(r-n+1))}function Bu(n,r){var t="";if(!n||r<1||r>v)return t;do{r%2&&(t+=n),(r=vt(r/2))&&(n+=n)}while(r);return t}function Vu(n,r){return ki(mi(n,r,ec),n+"")}function Hu(n){return Kt(Mo(n))}function Ku(n,r){var t=Mo(n);return Oi(t,iu(r,0,t.length))}function Yu(n,r,t,e){if(!no(n))return n;for(var i=-1,f=(r=we(r,n)).length,o=f-1,c=n;null!=c&&++i<f;){var a=Fi(r[i]),v=t;if("__proto__"===a||"constructor"===a||"prototype"===a)return n;if(i!=o){var l=c[a];(v=e?e(l,a,c):u)===u&&(v=no(l)?l:yi(r[i+1])?[]:{})}Xt(c,a,v),c=c[a]}return n}var Ju=Ut?function(n,r){return Ut.set(n,r),n}:ec,Qu=ar?function(n,r){return ar(n,"toString",{configurable:!0,enumerable:!1,value:rc(r),writable:!0})}:ec;function Xu(n){return Oi(Mo(n))}function ne(n,r,t){var u=-1,e=n.length;r<0&&(r=-r>e?0:e+r),(t=t>e?e:t)<0&&(t+=e),e=r>t?0:t-r>>>0,r>>>=0;for(var i=un(e);++u<e;)i[u]=n[u+r];return i}function re(n,r){var t;return vu(n,(function(n,u,e){return!(t=r(n,u,e))})),!!t}function te(n,r,t){var u=0,e=null==n?u:n.length;if("number"==typeof r&&r==r&&e<=2147483647){for(;u<e;){var i=u+e>>>1,f=n[i];null!==f&&!co(f)&&(t?f<=r:f<r)?u=i+1:e=i}return e}return ue(n,r,ec,t)}function ue(n,r,t,e){var i=0,f=null==n?0:n.length;if(0===f)return 0;for(var o=(r=t(r))!=r,c=null===r,a=co(r),v=r===u;i<f;){var l=vt((i+f)/2),s=t(n[l]),h=s!==u,p=null===s,y=s==s,w=co(s);if(o)var b=e||y;else b=v?y&&(e||h):c?y&&h&&(e||!p):a?y&&h&&!p&&(e||!w):!p&&!w&&(e?s<=r:s<r);b?i=l+1:f=l}return bt(f,4294967294)}function ee(n,r){for(var t=-1,u=n.length,e=0,i=[];++t<u;){var f=n[t],o=r?r(f):f;if(!t||!Zf(o,c)){var c=o;i[e++]=0===f?0:f}}return i}function ie(n){return"number"==typeof n?n:co(n)?l:+n}function fe(n){if("string"==typeof n)return n;if(Pf(n))return Rr(n,fe)+"";if(co(n))return Lt?Lt.call(n):"";var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}function oe(n,r,t){var u=-1,e=mr,i=n.length,f=!0,o=[],c=o;if(t)f=!1,e=Ar;else if(i>=200){var a=r?null:Be(n);if(a)return tt(a);f=!1,e=Gr,c=new Bt}else c=r?[]:o;n:for(;++u<i;){var v=n[u],l=r?r(v):v;if(v=t||0!==v?v:0,f&&l==l){for(var s=c.length;s--;)if(c[s]===l)continue n;r&&c.push(l),o.push(v)}else e(c,l,t)||(c!==o&&c.push(l),o.push(v))}return o}function ce(n,r){return null==(n=Ai(n,r=we(r,n)))||delete n[Fi(Ki(r))]}function ae(n,r,t,u){return Yu(n,r,t(xu(n,r)),u)}function ve(n,r,t,u){for(var e=n.length,i=u?e:-1;(u?i--:++i<e)&&r(n[i],i,n););return t?ne(n,u?0:i,u?i+1:e):ne(n,u?i+1:0,u?e:i)}function le(n,r){var t=n;return t instanceof Wt&&(t=t.value()),$r(r,(function(n,r){return r.func.apply(r.thisArg,Er([n],r.args))}),t)}function se(n,r,t){var u=n.length;if(u<2)return u?oe(n[0]):[];for(var e=-1,i=un(u);++e<u;)for(var f=n[e],o=-1;++o<u;)o!=e&&(i[e]=au(i[e]||f,n[o],r,t));return oe(yu(i,1),r,t)}function he(n,r,t){for(var e=-1,i=n.length,f=r.length,o={};++e<i;)t(o,n[e],e<f?r[e]:u);return o}function pe(n){return Vf(n)?n:[]}function ye(n){return"function"==typeof n?n:ec}function we(n,r){return Pf(n)?n:bi(n,r)?[n]:zi(go(n))}var be=Vu;function de(n,r,t){var e=n.length;return t=t===u?e:t,!r&&t>=e?n:ne(n,r,t)}var ge=vr||function(n){return ir.clearTimeout(n)};function _e(n,r){if(r)return n.slice();var t=n.length,u=qn?qn(t):new n.constructor(t);return n.copy(u),u}function xe(n){var r=new n.constructor(n.byteLength);return new Wn(r).set(new Wn(n)),r}function je(n,r){var t=r?xe(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function me(n,r){if(n!==r){var t=n!==u,e=null===n,i=n==n,f=co(n),o=r!==u,c=null===r,a=r==r,v=co(r);if(!c&&!v&&!f&&n>r||f&&o&&a&&!c&&!v||e&&o&&a||!t&&a||!i)return 1;if(!e&&!f&&!v&&n<r||v&&t&&i&&!e&&!f||c&&t&&i||!o&&i||!a)return-1}return 0}function Ae(n,r,t,u){for(var e=-1,i=n.length,f=t.length,o=-1,c=r.length,a=wt(i-f,0),v=un(c+a),l=!u;++o<c;)v[o]=r[o];for(;++e<f;)(l||e<i)&&(v[t[e]]=n[e]);for(;a--;)v[o++]=n[e++];return v}function Re(n,r,t,u){for(var e=-1,i=n.length,f=-1,o=t.length,c=-1,a=r.length,v=wt(i-o,0),l=un(v+a),s=!u;++e<v;)l[e]=n[e];for(var h=e;++c<a;)l[h+c]=r[c];for(;++f<o;)(s||e<i)&&(l[h+t[f]]=n[e++]);return l}function Ee(n,r){var t=-1,u=n.length;for(r||(r=un(u));++t<u;)r[t]=n[t];return r}function $e(n,r,t,e){var i=!t;t||(t={});for(var f=-1,o=r.length;++f<o;){var c=r[f],a=e?e(t[c],n[c],c,t,n):u;a===u&&(a=n[c]),i?uu(t,c,a):Xt(t,c,a)}return t}function Ue(n,r){return function(t,u){var e=Pf(t)?dr:ru,i=r?r():{};return e(t,n,ii(u,2),i)}}function ke(n){return Vu((function(r,t){var e=-1,i=t.length,f=i>1?t[i-1]:u,o=i>2?t[2]:u;for(f=n.length>3&&"function"==typeof f?(i--,f):u,o&&wi(t[0],t[1],o)&&(f=i<3?u:f,i=1),r=Rn(r);++e<i;){var c=t[e];c&&n(r,c,e,f)}return r}))}function Se(n,r){return function(t,u){if(null==t)return t;if(!Bf(t))return n(t,u);for(var e=t.length,i=r?e:-1,f=Rn(t);(r?i--:++i<e)&&!1!==u(f[i],i,f););return t}}function Ie(n){return function(r,t,u){for(var e=-1,i=Rn(r),f=u(r),o=f.length;o--;){var c=f[n?o:++e];if(!1===t(i[c],c,i))break}return r}}function Oe(n){return function(r){var t=Qr(r=go(r))?it(r):u,e=t?t[0]:r.charAt(0),i=t?de(t,1).join(""):r.slice(1);return e[n]()+i}}function De(n){return function(r){return $r(Qo(Po(r).replace(Pn,"")),n,"")}}function Te(n){return function(){var r=arguments;switch(r.length){case 0:return new n;case 1:return new n(r[0]);case 2:return new n(r[0],r[1]);case 3:return new n(r[0],r[1],r[2]);case 4:return new n(r[0],r[1],r[2],r[3]);case 5:return new n(r[0],r[1],r[2],r[3],r[4]);case 6:return new n(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new n(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var t=Nt(n.prototype),u=n.apply(t,r);return no(u)?u:t}}function ze(n){return function(r,t,e){var i=Rn(r);if(!Bf(r)){var f=ii(t,3);r=Oo(r),t=function(n){return f(i[n],n,i)}}var o=n(r,t,e);return o>-1?i[f?r[o]:o]:u}}function Fe(n){return Xe((function(r){var t=r.length,i=t,f=Mt.prototype.thru;for(n&&r.reverse();i--;){var o=r[i];if("function"!=typeof o)throw new Un(e);if(f&&!c&&"wrapper"==ui(o))var c=new Mt([],!0)}for(i=c?i:t;++i<t;){var a=ui(o=r[i]),v="wrapper"==a?ti(o):u;c=v&&di(v[0])&&424==v[1]&&!v[4].length&&1==v[9]?c[ui(v[0])].apply(c,v[3]):1==o.length&&di(o)?c[a]():c.thru(o)}return function(){var n=arguments,u=n[0];if(c&&1==n.length&&Pf(u))return c.plant(u).value();for(var e=0,i=t?r[e].apply(this,n):u;++e<t;)i=r[e].call(this,i);return i}}))}function Le(n,r,t,e,i,f,o,a,v,l){var s=r&c,h=1&r,p=2&r,y=24&r,w=512&r,b=p?u:Te(n);return function u(){for(var c=arguments.length,d=un(c),g=c;g--;)d[g]=arguments[g];if(y)var _=ei(u),x=Hr(d,_);if(e&&(d=Ae(d,e,i,y)),f&&(d=Re(d,f,o,y)),c-=x,y&&c<l){var j=rt(d,_);return Pe(n,r,Le,u.placeholder,t,d,j,a,v,l-c)}var m=h?t:this,A=p?m[n]:n;return c=d.length,a?d=Ri(d,a):w&&c>1&&d.reverse(),s&&v<c&&(d.length=v),this&&this!==ir&&this instanceof u&&(A=b||Te(A)),A.apply(m,d)}}function Ce(n,r){return function(t,u){return function(n,r,t,u){return du(n,(function(n,e,i){r(u,t(n),e,i)})),u}(t,n,r(u),{})}}function Ne(n,r){return function(t,e){var i;if(t===u&&e===u)return r;if(t!==u&&(i=t),e!==u){if(i===u)return e;"string"==typeof t||"string"==typeof e?(t=fe(t),e=fe(e)):(t=ie(t),e=ie(e)),i=n(t,e)}return i}}function Ze(n){return Xe((function(r){return r=Rr(r,qr(ii())),Vu((function(t){var u=this;return n(r,(function(n){return br(n,u,t)}))}))}))}function Me(n,r){var t=(r=r===u?" ":fe(r)).length;if(t<2)return t?Bu(r,n):r;var e=Bu(r,at(n/et(r)));return Qr(r)?de(it(e),0,n).join(""):e.slice(0,n)}function We(n){return function(r,t,e){return e&&"number"!=typeof e&&wi(r,t,e)&&(t=e=u),r=ho(r),t===u?(t=r,r=0):t=ho(t),function(n,r,t,u){for(var e=-1,i=wt(at((r-n)/(t||1)),0),f=un(i);i--;)f[u?i:++e]=n,n+=t;return f}(r,t,e=e===u?r<t?1:-1:ho(e),n)}}function qe(n){return function(r,t){return"string"==typeof r&&"string"==typeof t||(r=wo(r),t=wo(t)),n(r,t)}}function Pe(n,r,t,e,i,f,c,a,v,l){var s=8&r;r|=s?o:64,4&(r&=~(s?64:o))||(r&=-4);var h=[n,r,i,s?f:u,s?c:u,s?u:f,s?u:c,a,v,l],p=t.apply(u,h);return di(n)&&$i(p,h),p.placeholder=e,Si(p,n,r)}function Ge(n){var r=An[n];return function(n,t){if(n=wo(n),(t=null==t?0:bt(po(t),292))&&ht(n)){var u=(go(n)+"e").split("e");return+((u=(go(r(u[0]+"e"+(+u[1]+t)))+"e").split("e"))[0]+"e"+(+u[1]-t))}return r(n)}}var Be=Rt&&1/tt(new Rt([,-0]))[1]==a?function(n){return new Rt(n)}:ac;function Ve(n){return function(r){var t=li(r);return t==x?Xr(r):t==E?ut(r):function(n,r){return Rr(r,(function(r){return[r,n[r]]}))}(r,n(r))}}function He(n,r,t,i,a,v,l,s){var h=2&r;if(!h&&"function"!=typeof n)throw new Un(e);var p=i?i.length:0;if(p||(r&=-97,i=a=u),l=l===u?l:wt(po(l),0),s=s===u?s:po(s),p-=a?a.length:0,64&r){var y=i,w=a;i=a=u}var b=h?u:ti(n),d=[n,r,t,i,a,y,w,v,l,s];if(b&&function(n,r){var t=n[1],u=r[1],e=t|u;if(!(e<131||(u==c&&8==t||u==c&&256==t&&n[7].length<=r[8]||384==u&&r[7].length<=r[8]&&8==t)))return n;1&u&&(n[2]=r[2],e|=1&t?0:4);var i=r[3];if(i){var o=n[3];n[3]=o?Ae(o,i,r[4]):i,n[4]=o?rt(n[3],f):r[4]}(i=r[5])&&(n[5]=(o=n[5])?Re(o,i,r[6]):i,n[6]=o?rt(n[5],f):r[6]),(i=r[7])&&(n[7]=i),u&c&&(n[8]=null==n[8]?r[8]:bt(n[8],r[8])),null==n[9]&&(n[9]=r[9]),n[0]=r[0],n[1]=e}(d,b),n=d[0],r=d[1],t=d[2],i=d[3],a=d[4],!(s=d[9]=d[9]===u?h?0:n.length:wt(d[9]-p,0))&&24&r&&(r&=-25),r&&1!=r)g=8==r||16==r?function(n,r,t){var e=Te(n);return function i(){for(var f=arguments.length,o=un(f),c=f,a=ei(i);c--;)o[c]=arguments[c];var v=f<3&&o[0]!==a&&o[f-1]!==a?[]:rt(o,a);return(f-=v.length)<t?Pe(n,r,Le,i.placeholder,u,o,v,u,u,t-f):br(this&&this!==ir&&this instanceof i?e:n,this,o)}}(n,r,s):r!=o&&33!=r||a.length?Le.apply(u,d):function(n,r,t,u){var e=1&r,i=Te(n);return function r(){for(var f=-1,o=arguments.length,c=-1,a=u.length,v=un(a+o),l=this&&this!==ir&&this instanceof r?i:n;++c<a;)v[c]=u[c];for(;o--;)v[c++]=arguments[++f];return br(l,e?t:this,v)}}(n,r,t,i);else var g=function(n,r,t){var u=1&r,e=Te(n);return function r(){return(this&&this!==ir&&this instanceof r?e:n).apply(u?t:this,arguments)}}(n,r,t);return Si((b?Ju:$i)(g,d),n,r)}function Ke(n,r,t,e){return n===u||Zf(n,Sn[t])&&!Dn.call(e,t)?r:n}function Ye(n,r,t,e,i,f){return no(n)&&no(r)&&(f.set(r,n),Nu(n,r,u,Ye,f),f.delete(r)),n}function Je(n){return eo(n)?u:n}function Qe(n,r,t,e,i,f){var o=1&t,c=n.length,a=r.length;if(c!=a&&!(o&&a>c))return!1;var v=f.get(n),l=f.get(r);if(v&&l)return v==r&&l==n;var s=-1,h=!0,p=2&t?new Bt:u;for(f.set(n,r),f.set(r,n);++s<c;){var y=n[s],w=r[s];if(e)var b=o?e(w,y,s,r,n,f):e(y,w,s,n,r,f);if(b!==u){if(b)continue;h=!1;break}if(p){if(!kr(r,(function(n,r){if(!Gr(p,r)&&(y===n||i(y,n,t,e,f)))return p.push(r)}))){h=!1;break}}else if(y!==w&&!i(y,w,t,e,f)){h=!1;break}}return f.delete(n),f.delete(r),h}function Xe(n){return ki(mi(n,u,Pi),n+"")}function ni(n){return ju(n,Oo,ai)}function ri(n){return ju(n,Do,vi)}var ti=Ut?function(n){return Ut.get(n)}:ac;function ui(n){for(var r=n.name+"",t=kt[r],u=Dn.call(kt,r)?t.length:0;u--;){var e=t[u],i=e.func;if(null==i||i==n)return e.name}return r}function ei(n){return(Dn.call(Ct,"placeholder")?Ct:n).placeholder}function ii(){var n=Ct.iteratee||ic;return n=n===ic?Du:n,arguments.length?n(arguments[0],arguments[1]):n}function fi(n,r){var t,u,e=n.__data__;return("string"==(u=typeof(t=r))||"number"==u||"symbol"==u||"boolean"==u?"__proto__"!==t:null===t)?e["string"==typeof r?"string":"hash"]:e.map}function oi(n){for(var r=Oo(n),t=r.length;t--;){var u=r[t],e=n[u];r[t]=[u,e,xi(e)]}return r}function ci(n,r){var t=function(n,r){return null==n?u:n[r]}(n,r);return Ou(t)?t:u}var ai=lt?function(n){return null==n?[]:(n=Rn(n),jr(lt(n),(function(r){return nr.call(n,r)})))}:wc,vi=lt?function(n){for(var r=[];n;)Er(r,ai(n)),n=Bn(n);return r}:wc,li=mu;function si(n,r,t){for(var u=-1,e=(r=we(r,n)).length,i=!1;++u<e;){var f=Fi(r[u]);if(!(i=null!=n&&t(n,f)))break;n=n[f]}return i||++u!=e?i:!!(e=null==n?0:n.length)&&Xf(e)&&yi(f,e)&&(Pf(n)||qf(n))}function hi(n){return"function"!=typeof n.constructor||_i(n)?{}:Nt(Bn(n))}function pi(n){return Pf(n)||qf(n)||!!(er&&n&&n[er])}function yi(n,r){var t=typeof n;return!!(r=null==r?v:r)&&("number"==t||"symbol"!=t&&bn.test(n))&&n>-1&&n%1==0&&n<r}function wi(n,r,t){if(!no(t))return!1;var u=typeof r;return!!("number"==u?Bf(t)&&yi(r,t.length):"string"==u&&r in t)&&Zf(t[r],n)}function bi(n,r){if(Pf(n))return!1;var t=typeof n;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=n&&!co(n))||Q.test(n)||!J.test(n)||null!=r&&n in Rn(r)}function di(n){var r=ui(n),t=Ct[r];if("function"!=typeof t||!(r in Wt.prototype))return!1;if(n===t)return!0;var u=ti(t);return!!u&&n===u[0]}(jt&&li(new jt(new ArrayBuffer(1)))!=I||mt&&li(new mt)!=x||At&&li(At.resolve())!=A||Rt&&li(new Rt)!=E||Et&&li(new Et)!=k)&&(li=function(n){var r=mu(n),t=r==m?n.constructor:u,e=t?Li(t):"";if(e)switch(e){case St:return I;case It:return x;case Ot:return A;case Dt:return E;case Tt:return k}return r});var gi=In?Jf:bc;function _i(n){var r=n&&n.constructor;return n===("function"==typeof r&&r.prototype||Sn)}function xi(n){return n==n&&!no(n)}function ji(n,r){return function(t){return null!=t&&t[n]===r&&(r!==u||n in Rn(t))}}function mi(n,r,t){return r=wt(r===u?n.length-1:r,0),function(){for(var u=arguments,e=-1,i=wt(u.length-r,0),f=un(i);++e<i;)f[e]=u[r+e];e=-1;for(var o=un(r+1);++e<r;)o[e]=u[e];return o[r]=t(f),br(n,this,o)}}function Ai(n,r){return r.length<2?n:xu(n,ne(r,0,-1))}function Ri(n,r){for(var t=n.length,e=bt(r.length,t),i=Ee(n);e--;){var f=r[e];n[e]=yi(f,t)?i[f]:u}return n}function Ei(n,r){if(("constructor"!==r||"function"!=typeof n[r])&&"__proto__"!=r)return n[r]}var $i=Ii(Ju),Ui=Cr||function(n,r){return ir.setTimeout(n,r)},ki=Ii(Qu);function Si(n,r,t){var u=r+"";return ki(n,function(n,r){var t=r.length;if(!t)return n;var u=t-1;return r[u]=(t>1?"& ":"")+r[u],r=r.join(t>2?", ":" "),n.replace(en,"{\n/* [wrapped with "+r+"] */\n")}(u,function(n,r){return gr(h,(function(t){var u="_."+t[0];r&t[1]&&!mr(n,u)&&n.push(u)})),n.sort()}(function(n){var r=n.match(fn);return r?r[1].split(on):[]}(u),t)))}function Ii(n){var r=0,t=0;return function(){var e=dt(),i=16-(e-t);if(t=e,i>0){if(++r>=800)return arguments[0]}else r=0;return n.apply(u,arguments)}}function Oi(n,r){var t=-1,e=n.length,i=e-1;for(r=r===u?e:r;++t<r;){var f=Gu(t,i),o=n[f];n[f]=n[t],n[t]=o}return n.length=r,n}var Di,Ti,zi=(Di=Tf((function(n){var r=[];return 46===n.charCodeAt(0)&&r.push(""),n.replace(X,(function(n,t,u,e){r.push(u?e.replace(vn,"$1"):t||n)})),r}),(function(n){return 500===Ti.size&&Ti.clear(),n})),Ti=Di.cache,Di);function Fi(n){if("string"==typeof n||co(n))return n;var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}function Li(n){if(null!=n){try{return On.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function Ci(n){if(n instanceof Wt)return n.clone();var r=new Mt(n.__wrapped__,n.__chain__);return r.__actions__=Ee(n.__actions__),r.__index__=n.__index__,r.__values__=n.__values__,r}var Ni=Vu((function(n,r){return Vf(n)?au(n,yu(r,1,Vf,!0)):[]})),Zi=Vu((function(n,r){var t=Ki(r);return Vf(t)&&(t=u),Vf(n)?au(n,yu(r,1,Vf,!0),ii(t,2)):[]})),Mi=Vu((function(n,r){var t=Ki(r);return Vf(t)&&(t=u),Vf(n)?au(n,yu(r,1,Vf,!0),u,t):[]}));function Wi(n,r,t){var u=null==n?0:n.length;if(!u)return-1;var e=null==t?0:po(t);return e<0&&(e=wt(u+e,0)),Or(n,ii(r,3),e)}function qi(n,r,t){var e=null==n?0:n.length;if(!e)return-1;var i=e-1;return t!==u&&(i=po(t),i=t<0?wt(e+i,0):bt(i,e-1)),Or(n,ii(r,3),i,!0)}function Pi(n){return null!=n&&n.length?yu(n,1):[]}function Gi(n){return n&&n.length?n[0]:u}var Bi=Vu((function(n){var r=Rr(n,pe);return r.length&&r[0]===n[0]?$u(r):[]})),Vi=Vu((function(n){var r=Ki(n),t=Rr(n,pe);return r===Ki(t)?r=u:t.pop(),t.length&&t[0]===n[0]?$u(t,ii(r,2)):[]})),Hi=Vu((function(n){var r=Ki(n),t=Rr(n,pe);return(r="function"==typeof r?r:u)&&t.pop(),t.length&&t[0]===n[0]?$u(t,u,r):[]}));function Ki(n){var r=null==n?0:n.length;return r?n[r-1]:u}var Yi=Vu(Ji);function Ji(n,r){return n&&n.length&&r&&r.length?qu(n,r):n}var Qi=Xe((function(n,r){var t=null==n?0:n.length,u=eu(n,r);return Pu(n,Rr(r,(function(n){return yi(n,t)?+n:n})).sort(me)),u}));function Xi(n){return null==n?n:xt.call(n)}var nf=Vu((function(n){return oe(yu(n,1,Vf,!0))})),rf=Vu((function(n){var r=Ki(n);return Vf(r)&&(r=u),oe(yu(n,1,Vf,!0),ii(r,2))})),tf=Vu((function(n){var r=Ki(n);return r="function"==typeof r?r:u,oe(yu(n,1,Vf,!0),u,r)}));function uf(n){if(!n||!n.length)return[];var r=0;return n=jr(n,(function(n){if(Vf(n))return r=wt(n.length,r),!0})),Mr(r,(function(r){return Rr(n,Lr(r))}))}function ef(n,r){if(!n||!n.length)return[];var t=uf(n);return null==r?t:Rr(t,(function(n){return br(r,u,n)}))}var ff=Vu((function(n,r){return Vf(n)?au(n,r):[]})),of=Vu((function(n){return se(jr(n,Vf))})),cf=Vu((function(n){var r=Ki(n);return Vf(r)&&(r=u),se(jr(n,Vf),ii(r,2))})),af=Vu((function(n){var r=Ki(n);return r="function"==typeof r?r:u,se(jr(n,Vf),u,r)})),vf=Vu(uf),lf=Vu((function(n){var r=n.length,t=r>1?n[r-1]:u;return t="function"==typeof t?(n.pop(),t):u,ef(n,t)}));function sf(n){var r=Ct(n);return r.__chain__=!0,r}function hf(n,r){return r(n)}var pf=Xe((function(n){var r=n.length,t=r?n[0]:0,e=this.__wrapped__,i=function(r){return eu(r,n)};return!(r>1||this.__actions__.length)&&e instanceof Wt&&yi(t)?((e=e.slice(t,+t+(r?1:0))).__actions__.push({func:hf,args:[i],thisArg:u}),new Mt(e,this.__chain__).thru((function(n){return r&&!n.length&&n.push(u),n}))):this.thru(i)})),yf=Ue((function(n,r,t){Dn.call(n,t)?++n[t]:uu(n,t,1)})),wf=ze(Wi),bf=ze(qi);function df(n,r){return(Pf(n)?gr:vu)(n,ii(r,3))}function gf(n,r){return(Pf(n)?_r:lu)(n,ii(r,3))}var _f=Ue((function(n,r,t){Dn.call(n,t)?n[t].push(r):uu(n,t,[r])})),xf=Vu((function(n,r,t){var u=-1,e="function"==typeof r,i=Bf(n)?un(n.length):[];return vu(n,(function(n){i[++u]=e?br(r,n,t):Uu(n,r,t)})),i})),jf=Ue((function(n,r,t){uu(n,t,r)}));function mf(n,r){return(Pf(n)?Rr:Fu)(n,ii(r,3))}var Af=Ue((function(n,r,t){n[t?0:1].push(r)}),(function(){return[[],[]]})),Rf=Vu((function(n,r){if(null==n)return[];var t=r.length;return t>1&&wi(n,r[0],r[1])?r=[]:t>2&&wi(r[0],r[1],r[2])&&(r=[r[0]]),Mu(n,yu(r,1),[])})),Ef=Sr||function(){return ir.Date.now()};function $f(n,r,t){return r=t?u:r,He(n,c,u,u,u,u,r=n&&null==r?n.length:r)}function Uf(n,r){var t;if("function"!=typeof r)throw new Un(e);return n=po(n),function(){return--n>0&&(t=r.apply(this,arguments)),n<=1&&(r=u),t}}var kf=Vu((function(n,r,t){var u=1;if(t.length){var e=rt(t,ei(kf));u|=o}return He(n,u,r,t,e)})),Sf=Vu((function(n,r,t){var u=3;if(t.length){var e=rt(t,ei(Sf));u|=o}return He(r,u,n,t,e)}));function If(n,r,t){var i,f,o,c,a,v,l=0,s=!1,h=!1,p=!0;if("function"!=typeof n)throw new Un(e);function y(r){var t=i,e=f;return i=f=u,l=r,c=n.apply(e,t)}function w(n){return l=n,a=Ui(d,r),s?y(n):c}function b(n){var t=n-v;return v===u||t>=r||t<0||h&&n-l>=o}function d(){var n=Ef();if(b(n))return g(n);a=Ui(d,function(n){var t=r-(n-v);return h?bt(t,o-(n-l)):t}(n))}function g(n){return a=u,p&&i?y(n):(i=f=u,c)}function _(){var n=Ef(),t=b(n);if(i=arguments,f=this,v=n,t){if(a===u)return w(v);if(h)return ge(a),a=Ui(d,r),y(v)}return a===u&&(a=Ui(d,r)),c}return r=wo(r)||0,no(t)&&(s=!!t.leading,o=(h="maxWait"in t)?wt(wo(t.maxWait)||0,r):o,p="trailing"in t?!!t.trailing:p),_.cancel=function(){a!==u&&ge(a),l=0,i=v=f=a=u},_.flush=function(){return a===u?c:g(Ef())},_}var Of=Vu((function(n,r){return cu(n,1,r)})),Df=Vu((function(n,r,t){return cu(n,wo(r)||0,t)}));function Tf(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new Un(e);var t=function(){var u=arguments,e=r?r.apply(this,u):u[0],i=t.cache;if(i.has(e))return i.get(e);var f=n.apply(this,u);return t.cache=i.set(e,f)||i,f};return t.cache=new(Tf.Cache||Gt),t}function zf(n){if("function"!=typeof n)throw new Un(e);return function(){var r=arguments;switch(r.length){case 0:return!n.call(this);case 1:return!n.call(this,r[0]);case 2:return!n.call(this,r[0],r[1]);case 3:return!n.call(this,r[0],r[1],r[2])}return!n.apply(this,r)}}Tf.Cache=Gt;var Ff=be((function(n,r){var t=(r=1==r.length&&Pf(r[0])?Rr(r[0],qr(ii())):Rr(yu(r,1),qr(ii()))).length;return Vu((function(u){for(var e=-1,i=bt(u.length,t);++e<i;)u[e]=r[e].call(this,u[e]);return br(n,this,u)}))})),Lf=Vu((function(n,r){var t=rt(r,ei(Lf));return He(n,o,u,r,t)})),Cf=Vu((function(n,r){var t=rt(r,ei(Cf));return He(n,64,u,r,t)})),Nf=Xe((function(n,r){return He(n,256,u,u,u,r)}));function Zf(n,r){return n===r||n!=n&&r!=r}var Mf=qe(Au),Wf=qe((function(n,r){return n>=r})),qf=ku(function(){return arguments}())?ku:function(n){return ro(n)&&Dn.call(n,"callee")&&!nr.call(n,"callee")},Pf=un.isArray,Gf=lr?qr(lr):function(n){return ro(n)&&mu(n)==S};function Bf(n){return null!=n&&Xf(n.length)&&!Jf(n)}function Vf(n){return ro(n)&&Bf(n)}var Hf=st||bc,Kf=sr?qr(sr):function(n){return ro(n)&&mu(n)==b};function Yf(n){if(!ro(n))return!1;var r=mu(n);return r==d||"[object DOMException]"==r||"string"==typeof n.message&&"string"==typeof n.name&&!eo(n)}function Jf(n){if(!no(n))return!1;var r=mu(n);return r==g||r==_||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Qf(n){return"number"==typeof n&&n==po(n)}function Xf(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function no(n){var r=typeof n;return null!=n&&("object"==r||"function"==r)}function ro(n){return null!=n&&"object"==typeof n}var to=hr?qr(hr):function(n){return ro(n)&&li(n)==x};function uo(n){return"number"==typeof n||ro(n)&&mu(n)==j}function eo(n){if(!ro(n)||mu(n)!=m)return!1;var r=Bn(n);if(null===r)return!0;var t=Dn.call(r,"constructor")&&r.constructor;return"function"==typeof t&&t instanceof t&&On.call(t)==Ln}var io=pr?qr(pr):function(n){return ro(n)&&mu(n)==R},fo=yr?qr(yr):function(n){return ro(n)&&li(n)==E};function oo(n){return"string"==typeof n||!Pf(n)&&ro(n)&&mu(n)==$}function co(n){return"symbol"==typeof n||ro(n)&&mu(n)==U}var ao=wr?qr(wr):function(n){return ro(n)&&Xf(n.length)&&!!Qn[mu(n)]},vo=qe(zu),lo=qe((function(n,r){return n<=r}));function so(n){if(!n)return[];if(Bf(n))return oo(n)?it(n):Ee(n);if(fr&&n[fr])return function(n){for(var r,t=[];!(r=n.next()).done;)t.push(r.value);return t}(n[fr]());var r=li(n);return(r==x?Xr:r==E?tt:Mo)(n)}function ho(n){return n?(n=wo(n))===a||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function po(n){var r=ho(n),t=r%1;return r==r?t?r-t:r:0}function yo(n){return n?iu(po(n),0,s):0}function wo(n){if("number"==typeof n)return n;if(co(n))return l;if(no(n)){var r="function"==typeof n.valueOf?n.valueOf():n;n=no(r)?r+"":r}if("string"!=typeof n)return 0===n?n:+n;n=Wr(n);var t=pn.test(n);return t||wn.test(n)?tr(n.slice(2),t?2:8):hn.test(n)?l:+n}function bo(n){return $e(n,Do(n))}function go(n){return null==n?"":fe(n)}var _o=ke((function(n,r){if(_i(r)||Bf(r))$e(r,Oo(r),n);else for(var t in r)Dn.call(r,t)&&Xt(n,t,r[t])})),xo=ke((function(n,r){$e(r,Do(r),n)})),jo=ke((function(n,r,t,u){$e(r,Do(r),n,u)})),mo=ke((function(n,r,t,u){$e(r,Oo(r),n,u)})),Ao=Xe(eu),Ro=Vu((function(n,r){n=Rn(n);var t=-1,e=r.length,i=e>2?r[2]:u;for(i&&wi(r[0],r[1],i)&&(e=1);++t<e;)for(var f=r[t],o=Do(f),c=-1,a=o.length;++c<a;){var v=o[c],l=n[v];(l===u||Zf(l,Sn[v])&&!Dn.call(n,v))&&(n[v]=f[v])}return n})),Eo=Vu((function(n){return n.push(u,Ye),br(zo,u,n)}));function $o(n,r,t){var e=null==n?u:xu(n,r);return e===u?t:e}function Uo(n,r){return null!=n&&si(n,r,Eu)}var ko=Ce((function(n,r,t){null!=r&&"function"!=typeof r.toString&&(r=Fn.call(r)),n[r]=t}),rc(ec)),So=Ce((function(n,r,t){null!=r&&"function"!=typeof r.toString&&(r=Fn.call(r)),Dn.call(n,r)?n[r].push(t):n[r]=[t]}),ii),Io=Vu(Uu);function Oo(n){return Bf(n)?Ht(n):Tu(n)}function Do(n){return Bf(n)?Ht(n,!0):function(n){if(!no(n))return function(n){var r=[];if(null!=n)for(var t in Rn(n))r.push(t);return r}(n);var r=_i(n),t=[];for(var u in n)("constructor"!=u||!r&&Dn.call(n,u))&&t.push(u);return t}(n)}var To=ke((function(n,r,t){Nu(n,r,t)})),zo=ke((function(n,r,t,u){Nu(n,r,t,u)})),Fo=Xe((function(n,r){var t={};if(null==n)return t;var u=!1;r=Rr(r,(function(r){return r=we(r,n),u||(u=r.length>1),r})),$e(n,ri(n),t),u&&(t=fu(t,7,Je));for(var e=r.length;e--;)ce(t,r[e]);return t})),Lo=Xe((function(n,r){return null==n?{}:function(n,r){return Wu(n,r,(function(r,t){return Uo(n,t)}))}(n,r)}));function Co(n,r){if(null==n)return{};var t=Rr(ri(n),(function(n){return[n]}));return r=ii(r),Wu(n,t,(function(n,t){return r(n,t[0])}))}var No=Ve(Oo),Zo=Ve(Do);function Mo(n){return null==n?[]:Pr(n,Oo(n))}var Wo=De((function(n,r,t){return r=r.toLowerCase(),n+(t?qo(r):r)}));function qo(n){return Jo(go(n).toLowerCase())}function Po(n){return(n=go(n))&&n.replace(dn,Kr).replace(Gn,"")}var Go=De((function(n,r,t){return n+(t?"-":"")+r.toLowerCase()})),Bo=De((function(n,r,t){return n+(t?" ":"")+r.toLowerCase()})),Vo=Oe("toLowerCase"),Ho=De((function(n,r,t){return n+(t?"_":"")+r.toLowerCase()})),Ko=De((function(n,r,t){return n+(t?" ":"")+Jo(r)})),Yo=De((function(n,r,t){return n+(t?" ":"")+r.toUpperCase()})),Jo=Oe("toUpperCase");function Qo(n,r,t){return n=go(n),(r=t?u:r)===u?function(n){return Kn.test(n)}(n)?function(n){return n.match(Vn)||[]}(n):function(n){return n.match(cn)||[]}(n):n.match(r)||[]}var Xo=Vu((function(n,r){try{return br(n,u,r)}catch(n){return Yf(n)?n:new jn(n)}})),nc=Xe((function(n,r){return gr(r,(function(r){r=Fi(r),uu(n,r,kf(n[r],n))})),n}));function rc(n){return function(){return n}}var tc=Fe(),uc=Fe(!0);function ec(n){return n}function ic(n){return Du("function"==typeof n?n:fu(n,1))}var fc=Vu((function(n,r){return function(t){return Uu(t,n,r)}})),oc=Vu((function(n,r){return function(t){return Uu(n,t,r)}}));function cc(n,r,t){var u=Oo(r),e=_u(r,u);null!=t||no(r)&&(e.length||!u.length)||(t=r,r=n,n=this,e=_u(r,Oo(r)));var i=!(no(t)&&"chain"in t&&!t.chain),f=Jf(n);return gr(e,(function(t){var u=r[t];n[t]=u,f&&(n.prototype[t]=function(){var r=this.__chain__;if(i||r){var t=n(this.__wrapped__),e=t.__actions__=Ee(this.__actions__);return e.push({func:u,args:arguments,thisArg:n}),t.__chain__=r,t}return u.apply(n,Er([this.value()],arguments))})})),n}function ac(){}var vc=Ze(Rr),lc=Ze(xr),sc=Ze(kr);function hc(n){return bi(n)?Lr(Fi(n)):function(n){return function(r){return xu(r,n)}}(n)}var pc=We(),yc=We(!0);function wc(){return[]}function bc(){return!1}var dc,gc=Ne((function(n,r){return n+r}),0),_c=Ge("ceil"),xc=Ne((function(n,r){return n/r}),1),jc=Ge("floor"),mc=Ne((function(n,r){return n*r}),1),Ac=Ge("round"),Rc=Ne((function(n,r){return n-r}),0);return Ct.after=function(n,r){if("function"!=typeof r)throw new Un(e);return n=po(n),function(){if(--n<1)return r.apply(this,arguments)}},Ct.ary=$f,Ct.assign=_o,Ct.assignIn=xo,Ct.assignInWith=jo,Ct.assignWith=mo,Ct.at=Ao,Ct.before=Uf,Ct.bind=kf,Ct.bindAll=nc,Ct.bindKey=Sf,Ct.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Pf(n)?n:[n]},Ct.chain=sf,Ct.chunk=function(n,r,t){r=(t?wi(n,r,t):r===u)?1:wt(po(r),0);var e=null==n?0:n.length;if(!e||r<1)return[];for(var i=0,f=0,o=un(at(e/r));i<e;)o[f++]=ne(n,i,i+=r);return o},Ct.compact=function(n){for(var r=-1,t=null==n?0:n.length,u=0,e=[];++r<t;){var i=n[r];i&&(e[u++]=i)}return e},Ct.concat=function(){var n=arguments.length;if(!n)return[];for(var r=un(n-1),t=arguments[0],u=n;u--;)r[u-1]=arguments[u];return Er(Pf(t)?Ee(t):[t],yu(r,1))},Ct.cond=function(n){var r=null==n?0:n.length,t=ii();return n=r?Rr(n,(function(n){if("function"!=typeof n[1])throw new Un(e);return[t(n[0]),n[1]]})):[],Vu((function(t){for(var u=-1;++u<r;){var e=n[u];if(br(e[0],this,t))return br(e[1],this,t)}}))},Ct.conforms=function(n){return function(n){var r=Oo(n);return function(t){return ou(t,n,r)}}(fu(n,1))},Ct.constant=rc,Ct.countBy=yf,Ct.create=function(n,r){var t=Nt(n);return null==r?t:tu(t,r)},Ct.curry=function n(r,t,e){var i=He(r,8,u,u,u,u,u,t=e?u:t);return i.placeholder=n.placeholder,i},Ct.curryRight=function n(r,t,e){var i=He(r,16,u,u,u,u,u,t=e?u:t);return i.placeholder=n.placeholder,i},Ct.debounce=If,Ct.defaults=Ro,Ct.defaultsDeep=Eo,Ct.defer=Of,Ct.delay=Df,Ct.difference=Ni,Ct.differenceBy=Zi,Ct.differenceWith=Mi,Ct.drop=function(n,r,t){var e=null==n?0:n.length;return e?ne(n,(r=t||r===u?1:po(r))<0?0:r,e):[]},Ct.dropRight=function(n,r,t){var e=null==n?0:n.length;return e?ne(n,0,(r=e-(r=t||r===u?1:po(r)))<0?0:r):[]},Ct.dropRightWhile=function(n,r){return n&&n.length?ve(n,ii(r,3),!0,!0):[]},Ct.dropWhile=function(n,r){return n&&n.length?ve(n,ii(r,3),!0):[]},Ct.fill=function(n,r,t,e){var i=null==n?0:n.length;return i?(t&&"number"!=typeof t&&wi(n,r,t)&&(t=0,e=i),function(n,r,t,e){var i=n.length;for((t=po(t))<0&&(t=-t>i?0:i+t),(e=e===u||e>i?i:po(e))<0&&(e+=i),e=t>e?0:yo(e);t<e;)n[t++]=r;return n}(n,r,t,e)):[]},Ct.filter=function(n,r){return(Pf(n)?jr:pu)(n,ii(r,3))},Ct.flatMap=function(n,r){return yu(mf(n,r),1)},Ct.flatMapDeep=function(n,r){return yu(mf(n,r),a)},Ct.flatMapDepth=function(n,r,t){return t=t===u?1:po(t),yu(mf(n,r),t)},Ct.flatten=Pi,Ct.flattenDeep=function(n){return null!=n&&n.length?yu(n,a):[]},Ct.flattenDepth=function(n,r){return null!=n&&n.length?yu(n,r=r===u?1:po(r)):[]},Ct.flip=function(n){return He(n,512)},Ct.flow=tc,Ct.flowRight=uc,Ct.fromPairs=function(n){for(var r=-1,t=null==n?0:n.length,u={};++r<t;){var e=n[r];u[e[0]]=e[1]}return u},Ct.functions=function(n){return null==n?[]:_u(n,Oo(n))},Ct.functionsIn=function(n){return null==n?[]:_u(n,Do(n))},Ct.groupBy=_f,Ct.initial=function(n){return null!=n&&n.length?ne(n,0,-1):[]},Ct.intersection=Bi,Ct.intersectionBy=Vi,Ct.intersectionWith=Hi,Ct.invert=ko,Ct.invertBy=So,Ct.invokeMap=xf,Ct.iteratee=ic,Ct.keyBy=jf,Ct.keys=Oo,Ct.keysIn=Do,Ct.map=mf,Ct.mapKeys=function(n,r){var t={};return r=ii(r,3),du(n,(function(n,u,e){uu(t,r(n,u,e),n)})),t},Ct.mapValues=function(n,r){var t={};return r=ii(r,3),du(n,(function(n,u,e){uu(t,u,r(n,u,e))})),t},Ct.matches=function(n){return Lu(fu(n,1))},Ct.matchesProperty=function(n,r){return Cu(n,fu(r,1))},Ct.memoize=Tf,Ct.merge=To,Ct.mergeWith=zo,Ct.method=fc,Ct.methodOf=oc,Ct.mixin=cc,Ct.negate=zf,Ct.nthArg=function(n){return n=po(n),Vu((function(r){return Zu(r,n)}))},Ct.omit=Fo,Ct.omitBy=function(n,r){return Co(n,zf(ii(r)))},Ct.once=function(n){return Uf(2,n)},Ct.orderBy=function(n,r,t,e){return null==n?[]:(Pf(r)||(r=null==r?[]:[r]),Pf(t=e?u:t)||(t=null==t?[]:[t]),Mu(n,r,t))},Ct.over=vc,Ct.overArgs=Ff,Ct.overEvery=lc,Ct.overSome=sc,Ct.partial=Lf,Ct.partialRight=Cf,Ct.partition=Af,Ct.pick=Lo,Ct.pickBy=Co,Ct.property=hc,Ct.propertyOf=function(n){return function(r){return null==n?u:xu(n,r)}},Ct.pull=Yi,Ct.pullAll=Ji,Ct.pullAllBy=function(n,r,t){return n&&n.length&&r&&r.length?qu(n,r,ii(t,2)):n},Ct.pullAllWith=function(n,r,t){return n&&n.length&&r&&r.length?qu(n,r,u,t):n},Ct.pullAt=Qi,Ct.range=pc,Ct.rangeRight=yc,Ct.rearg=Nf,Ct.reject=function(n,r){return(Pf(n)?jr:pu)(n,zf(ii(r,3)))},Ct.remove=function(n,r){var t=[];if(!n||!n.length)return t;var u=-1,e=[],i=n.length;for(r=ii(r,3);++u<i;){var f=n[u];r(f,u,n)&&(t.push(f),e.push(u))}return Pu(n,e),t},Ct.rest=function(n,r){if("function"!=typeof n)throw new Un(e);return Vu(n,r=r===u?r:po(r))},Ct.reverse=Xi,Ct.sampleSize=function(n,r,t){return r=(t?wi(n,r,t):r===u)?1:po(r),(Pf(n)?Yt:Ku)(n,r)},Ct.set=function(n,r,t){return null==n?n:Yu(n,r,t)},Ct.setWith=function(n,r,t,e){return e="function"==typeof e?e:u,null==n?n:Yu(n,r,t,e)},Ct.shuffle=function(n){return(Pf(n)?Jt:Xu)(n)},Ct.slice=function(n,r,t){var e=null==n?0:n.length;return e?(t&&"number"!=typeof t&&wi(n,r,t)?(r=0,t=e):(r=null==r?0:po(r),t=t===u?e:po(t)),ne(n,r,t)):[]},Ct.sortBy=Rf,Ct.sortedUniq=function(n){return n&&n.length?ee(n):[]},Ct.sortedUniqBy=function(n,r){return n&&n.length?ee(n,ii(r,2)):[]},Ct.split=function(n,r,t){return t&&"number"!=typeof t&&wi(n,r,t)&&(r=t=u),(t=t===u?s:t>>>0)?(n=go(n))&&("string"==typeof r||null!=r&&!io(r))&&!(r=fe(r))&&Qr(n)?de(it(n),0,t):n.split(r,t):[]},Ct.spread=function(n,r){if("function"!=typeof n)throw new Un(e);return r=null==r?0:wt(po(r),0),Vu((function(t){var u=t[r],e=de(t,0,r);return u&&Er(e,u),br(n,this,e)}))},Ct.tail=function(n){var r=null==n?0:n.length;return r?ne(n,1,r):[]},Ct.take=function(n,r,t){return n&&n.length?ne(n,0,(r=t||r===u?1:po(r))<0?0:r):[]},Ct.takeRight=function(n,r,t){var e=null==n?0:n.length;return e?ne(n,(r=e-(r=t||r===u?1:po(r)))<0?0:r,e):[]},Ct.takeRightWhile=function(n,r){return n&&n.length?ve(n,ii(r,3),!1,!0):[]},Ct.takeWhile=function(n,r){return n&&n.length?ve(n,ii(r,3)):[]},Ct.tap=function(n,r){return r(n),n},Ct.throttle=function(n,r,t){var u=!0,i=!0;if("function"!=typeof n)throw new Un(e);return no(t)&&(u="leading"in t?!!t.leading:u,i="trailing"in t?!!t.trailing:i),If(n,r,{leading:u,maxWait:r,trailing:i})},Ct.thru=hf,Ct.toArray=so,Ct.toPairs=No,Ct.toPairsIn=Zo,Ct.toPath=function(n){return Pf(n)?Rr(n,Fi):co(n)?[n]:Ee(zi(go(n)))},Ct.toPlainObject=bo,Ct.transform=function(n,r,t){var u=Pf(n),e=u||Hf(n)||ao(n);if(r=ii(r,4),null==t){var i=n&&n.constructor;t=e?u?new i:[]:no(n)&&Jf(i)?Nt(Bn(n)):{}}return(e?gr:du)(n,(function(n,u,e){return r(t,n,u,e)})),t},Ct.unary=function(n){return $f(n,1)},Ct.union=nf,Ct.unionBy=rf,Ct.unionWith=tf,Ct.uniq=function(n){return n&&n.length?oe(n):[]},Ct.uniqBy=function(n,r){return n&&n.length?oe(n,ii(r,2)):[]},Ct.uniqWith=function(n,r){return r="function"==typeof r?r:u,n&&n.length?oe(n,u,r):[]},Ct.unset=function(n,r){return null==n||ce(n,r)},Ct.unzip=uf,Ct.unzipWith=ef,Ct.update=function(n,r,t){return null==n?n:ae(n,r,ye(t))},Ct.updateWith=function(n,r,t,e){return e="function"==typeof e?e:u,null==n?n:ae(n,r,ye(t),e)},Ct.values=Mo,Ct.valuesIn=function(n){return null==n?[]:Pr(n,Do(n))},Ct.without=ff,Ct.words=Qo,Ct.wrap=function(n,r){return Lf(ye(r),n)},Ct.xor=of,Ct.xorBy=cf,Ct.xorWith=af,Ct.zip=vf,Ct.zipObject=function(n,r){return he(n||[],r||[],Xt)},Ct.zipObjectDeep=function(n,r){return he(n||[],r||[],Yu)},Ct.zipWith=lf,Ct.entries=No,Ct.entriesIn=Zo,Ct.extend=xo,Ct.extendWith=jo,cc(Ct,Ct),Ct.add=gc,Ct.attempt=Xo,Ct.camelCase=Wo,Ct.capitalize=qo,Ct.ceil=_c,Ct.clamp=function(n,r,t){return t===u&&(t=r,r=u),t!==u&&(t=(t=wo(t))==t?t:0),r!==u&&(r=(r=wo(r))==r?r:0),iu(wo(n),r,t)},Ct.clone=function(n){return fu(n,4)},Ct.cloneDeep=function(n){return fu(n,5)},Ct.cloneDeepWith=function(n,r){return fu(n,5,r="function"==typeof r?r:u)},Ct.cloneWith=function(n,r){return fu(n,4,r="function"==typeof r?r:u)},Ct.conformsTo=function(n,r){return null==r||ou(n,r,Oo(r))},Ct.deburr=Po,Ct.defaultTo=function(n,r){return null==n||n!=n?r:n},Ct.divide=xc,Ct.endsWith=function(n,r,t){n=go(n),r=fe(r);var e=n.length,i=t=t===u?e:iu(po(t),0,e);return(t-=r.length)>=0&&n.slice(t,i)==r},Ct.eq=Zf,Ct.escape=function(n){return(n=go(n))&&V.test(n)?n.replace(G,Yr):n},Ct.escapeRegExp=function(n){return(n=go(n))&&rn.test(n)?n.replace(nn,"\\$&"):n},Ct.every=function(n,r,t){var e=Pf(n)?xr:su;return t&&wi(n,r,t)&&(r=u),e(n,ii(r,3))},Ct.find=wf,Ct.findIndex=Wi,Ct.findKey=function(n,r){return Ir(n,ii(r,3),du)},Ct.findLast=bf,Ct.findLastIndex=qi,Ct.findLastKey=function(n,r){return Ir(n,ii(r,3),gu)},Ct.floor=jc,Ct.forEach=df,Ct.forEachRight=gf,Ct.forIn=function(n,r){return null==n?n:wu(n,ii(r,3),Do)},Ct.forInRight=function(n,r){return null==n?n:bu(n,ii(r,3),Do)},Ct.forOwn=function(n,r){return n&&du(n,ii(r,3))},Ct.forOwnRight=function(n,r){return n&&gu(n,ii(r,3))},Ct.get=$o,Ct.gt=Mf,Ct.gte=Wf,Ct.has=function(n,r){return null!=n&&si(n,r,Ru)},Ct.hasIn=Uo,Ct.head=Gi,Ct.identity=ec,Ct.includes=function(n,r,t,u){n=Bf(n)?n:Mo(n),t=t&&!u?po(t):0;var e=n.length;return t<0&&(t=wt(e+t,0)),oo(n)?t<=e&&n.indexOf(r,t)>-1:!!e&&Dr(n,r,t)>-1},Ct.indexOf=function(n,r,t){var u=null==n?0:n.length;if(!u)return-1;var e=null==t?0:po(t);return e<0&&(e=wt(u+e,0)),Dr(n,r,e)},Ct.inRange=function(n,r,t){return r=ho(r),t===u?(t=r,r=0):t=ho(t),function(n,r,t){return n>=bt(r,t)&&n<wt(r,t)}(n=wo(n),r,t)},Ct.invoke=Io,Ct.isArguments=qf,Ct.isArray=Pf,Ct.isArrayBuffer=Gf,Ct.isArrayLike=Bf,Ct.isArrayLikeObject=Vf,Ct.isBoolean=function(n){return!0===n||!1===n||ro(n)&&mu(n)==w},Ct.isBuffer=Hf,Ct.isDate=Kf,Ct.isElement=function(n){return ro(n)&&1===n.nodeType&&!eo(n)},Ct.isEmpty=function(n){if(null==n)return!0;if(Bf(n)&&(Pf(n)||"string"==typeof n||"function"==typeof n.splice||Hf(n)||ao(n)||qf(n)))return!n.length;var r=li(n);if(r==x||r==E)return!n.size;if(_i(n))return!Tu(n).length;for(var t in n)if(Dn.call(n,t))return!1;return!0},Ct.isEqual=function(n,r){return Su(n,r)},Ct.isEqualWith=function(n,r,t){var e=(t="function"==typeof t?t:u)?t(n,r):u;return e===u?Su(n,r,u,t):!!e},Ct.isError=Yf,Ct.isFinite=function(n){return"number"==typeof n&&ht(n)},Ct.isFunction=Jf,Ct.isInteger=Qf,Ct.isLength=Xf,Ct.isMap=to,Ct.isMatch=function(n,r){return n===r||Iu(n,r,oi(r))},Ct.isMatchWith=function(n,r,t){return t="function"==typeof t?t:u,Iu(n,r,oi(r),t)},Ct.isNaN=function(n){return uo(n)&&n!=+n},Ct.isNative=function(n){if(gi(n))throw new jn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ou(n)},Ct.isNil=function(n){return null==n},Ct.isNull=function(n){return null===n},Ct.isNumber=uo,Ct.isObject=no,Ct.isObjectLike=ro,Ct.isPlainObject=eo,Ct.isRegExp=io,Ct.isSafeInteger=function(n){return Qf(n)&&n>=-9007199254740991&&n<=v},Ct.isSet=fo,Ct.isString=oo,Ct.isSymbol=co,Ct.isTypedArray=ao,Ct.isUndefined=function(n){return n===u},Ct.isWeakMap=function(n){return ro(n)&&li(n)==k},Ct.isWeakSet=function(n){return ro(n)&&"[object WeakSet]"==mu(n)},Ct.join=function(n,r){return null==n?"":pt.call(n,r)},Ct.kebabCase=Go,Ct.last=Ki,Ct.lastIndexOf=function(n,r,t){var e=null==n?0:n.length;if(!e)return-1;var i=e;return t!==u&&(i=(i=po(t))<0?wt(e+i,0):bt(i,e-1)),r==r?function(n,r,t){for(var u=t+1;u--;)if(n[u]===r)return u;return u}(n,r,i):Or(n,zr,i,!0)},Ct.lowerCase=Bo,Ct.lowerFirst=Vo,Ct.lt=vo,Ct.lte=lo,Ct.max=function(n){return n&&n.length?hu(n,ec,Au):u},Ct.maxBy=function(n,r){return n&&n.length?hu(n,ii(r,2),Au):u},Ct.mean=function(n){return Fr(n,ec)},Ct.meanBy=function(n,r){return Fr(n,ii(r,2))},Ct.min=function(n){return n&&n.length?hu(n,ec,zu):u},Ct.minBy=function(n,r){return n&&n.length?hu(n,ii(r,2),zu):u},Ct.stubArray=wc,Ct.stubFalse=bc,Ct.stubObject=function(){return{}},Ct.stubString=function(){return""},Ct.stubTrue=function(){return!0},Ct.multiply=mc,Ct.nth=function(n,r){return n&&n.length?Zu(n,po(r)):u},Ct.noConflict=function(){return ir._===this&&(ir._=Cn),this},Ct.noop=ac,Ct.now=Ef,Ct.pad=function(n,r,t){n=go(n);var u=(r=po(r))?et(n):0;if(!r||u>=r)return n;var e=(r-u)/2;return Me(vt(e),t)+n+Me(at(e),t)},Ct.padEnd=function(n,r,t){n=go(n);var u=(r=po(r))?et(n):0;return r&&u<r?n+Me(r-u,t):n},Ct.padStart=function(n,r,t){n=go(n);var u=(r=po(r))?et(n):0;return r&&u<r?Me(r-u,t)+n:n},Ct.parseInt=function(n,r,t){return t||null==r?r=0:r&&(r=+r),gt(go(n).replace(tn,""),r||0)},Ct.random=function(n,r,t){if(t&&"boolean"!=typeof t&&wi(n,r,t)&&(r=t=u),t===u&&("boolean"==typeof r?(t=r,r=u):"boolean"==typeof n&&(t=n,n=u)),n===u&&r===u?(n=0,r=1):(n=ho(n),r===u?(r=n,n=0):r=ho(r)),n>r){var e=n;n=r,r=e}if(t||n%1||r%1){var i=_t();return bt(n+i*(r-n+rr("1e-"+((i+"").length-1))),r)}return Gu(n,r)},Ct.reduce=function(n,r,t){var u=Pf(n)?$r:Nr,e=arguments.length<3;return u(n,ii(r,4),t,e,vu)},Ct.reduceRight=function(n,r,t){var u=Pf(n)?Ur:Nr,e=arguments.length<3;return u(n,ii(r,4),t,e,lu)},Ct.repeat=function(n,r,t){return r=(t?wi(n,r,t):r===u)?1:po(r),Bu(go(n),r)},Ct.replace=function(){var n=arguments,r=go(n[0]);return n.length<3?r:r.replace(n[1],n[2])},Ct.result=function(n,r,t){var e=-1,i=(r=we(r,n)).length;for(i||(i=1,n=u);++e<i;){var f=null==n?u:n[Fi(r[e])];f===u&&(e=i,f=t),n=Jf(f)?f.call(n):f}return n},Ct.round=Ac,Ct.runInContext=n,Ct.sample=function(n){return(Pf(n)?Kt:Hu)(n)},Ct.size=function(n){if(null==n)return 0;if(Bf(n))return oo(n)?et(n):n.length;var r=li(n);return r==x||r==E?n.size:Tu(n).length},Ct.snakeCase=Ho,Ct.some=function(n,r,t){var e=Pf(n)?kr:re;return t&&wi(n,r,t)&&(r=u),e(n,ii(r,3))},Ct.sortedIndex=function(n,r){return te(n,r)},Ct.sortedIndexBy=function(n,r,t){return ue(n,r,ii(t,2))},Ct.sortedIndexOf=function(n,r){var t=null==n?0:n.length;if(t){var u=te(n,r);if(u<t&&Zf(n[u],r))return u}return-1},Ct.sortedLastIndex=function(n,r){return te(n,r,!0)},Ct.sortedLastIndexBy=function(n,r,t){return ue(n,r,ii(t,2),!0)},Ct.sortedLastIndexOf=function(n,r){if(null!=n&&n.length){var t=te(n,r,!0)-1;if(Zf(n[t],r))return t}return-1},Ct.startCase=Ko,Ct.startsWith=function(n,r,t){return n=go(n),t=null==t?0:iu(po(t),0,n.length),r=fe(r),n.slice(t,t+r.length)==r},Ct.subtract=Rc,Ct.sum=function(n){return n&&n.length?Zr(n,ec):0},Ct.sumBy=function(n,r){return n&&n.length?Zr(n,ii(r,2)):0},Ct.template=function(n,r,t){var e=Ct.templateSettings;t&&wi(n,r,t)&&(r=u),n=go(n),r=jo({},r,e,Ke);var i,f,o=jo({},r.imports,e.imports,Ke),c=Oo(o),a=Pr(o,c),v=0,l=r.interpolate||gn,s="__p += '",h=En((r.escape||gn).source+"|"+l.source+"|"+(l===Y?ln:gn).source+"|"+(r.evaluate||gn).source+"|$","g"),p="//# sourceURL="+(Dn.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Jn+"]")+"\n";n.replace(h,(function(r,t,u,e,o,c){return u||(u=e),s+=n.slice(v,c).replace(_n,Jr),t&&(i=!0,s+="' +\n__e("+t+") +\n'"),o&&(f=!0,s+="';\n"+o+";\n__p += '"),u&&(s+="' +\n((__t = ("+u+")) == null ? '' : __t) +\n'"),v=c+r.length,r})),s+="';\n";var y=Dn.call(r,"variable")&&r.variable;if(y){if(an.test(y))throw new jn("Invalid `variable` option passed into `_.template`")}else s="with (obj) {\n"+s+"\n}\n";s=(f?s.replace(M,""):s).replace(W,"$1").replace(q,"$1;"),s="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(f?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+s+"return __p\n}";var w=Xo((function(){return mn(c,p+"return "+s).apply(u,a)}));if(w.source=s,Yf(w))throw w;return w},Ct.times=function(n,r){if((n=po(n))<1||n>v)return[];var t=s,u=bt(n,s);r=ii(r),n-=s;for(var e=Mr(u,r);++t<n;)r(t);return e},Ct.toFinite=ho,Ct.toInteger=po,Ct.toLength=yo,Ct.toLower=function(n){return go(n).toLowerCase()},Ct.toNumber=wo,Ct.toSafeInteger=function(n){return n?iu(po(n),-9007199254740991,v):0===n?n:0},Ct.toString=go,Ct.toUpper=function(n){return go(n).toUpperCase()},Ct.trim=function(n,r,t){if((n=go(n))&&(t||r===u))return Wr(n);if(!n||!(r=fe(r)))return n;var e=it(n),i=it(r);return de(e,Br(e,i),Vr(e,i)+1).join("")},Ct.trimEnd=function(n,r,t){if((n=go(n))&&(t||r===u))return n.slice(0,ft(n)+1);if(!n||!(r=fe(r)))return n;var e=it(n);return de(e,0,Vr(e,it(r))+1).join("")},Ct.trimStart=function(n,r,t){if((n=go(n))&&(t||r===u))return n.replace(tn,"");if(!n||!(r=fe(r)))return n;var e=it(n);return de(e,Br(e,it(r))).join("")},Ct.truncate=function(n,r){var t=30,e="...";if(no(r)){var i="separator"in r?r.separator:i;t="length"in r?po(r.length):t,e="omission"in r?fe(r.omission):e}var f=(n=go(n)).length;if(Qr(n)){var o=it(n);f=o.length}if(t>=f)return n;var c=t-et(e);if(c<1)return e;var a=o?de(o,0,c).join(""):n.slice(0,c);if(i===u)return a+e;if(o&&(c+=a.length-c),io(i)){if(n.slice(c).search(i)){var v,l=a;for(i.global||(i=En(i.source,go(sn.exec(i))+"g")),i.lastIndex=0;v=i.exec(l);)var s=v.index;a=a.slice(0,s===u?c:s)}}else if(n.indexOf(fe(i),c)!=c){var h=a.lastIndexOf(i);h>-1&&(a=a.slice(0,h))}return a+e},Ct.unescape=function(n){return(n=go(n))&&B.test(n)?n.replace(P,ot):n},Ct.uniqueId=function(n){var r=++Tn;return go(n)+r},Ct.upperCase=Yo,Ct.upperFirst=Jo,Ct.each=df,Ct.eachRight=gf,Ct.first=Gi,cc(Ct,(dc={},du(Ct,(function(n,r){Dn.call(Ct.prototype,r)||(dc[r]=n)})),dc),{chain:!1}),Ct.VERSION="4.17.21",gr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Ct[n].placeholder=Ct})),gr(["drop","take"],(function(n,r){Wt.prototype[n]=function(t){t=t===u?1:wt(po(t),0);var e=this.__filtered__&&!r?new Wt(this):this.clone();return e.__filtered__?e.__takeCount__=bt(t,e.__takeCount__):e.__views__.push({size:bt(t,s),type:n+(e.__dir__<0?"Right":"")}),e},Wt.prototype[n+"Right"]=function(r){return this.reverse()[n](r).reverse()}})),gr(["filter","map","takeWhile"],(function(n,r){var t=r+1,u=1==t||3==t;Wt.prototype[n]=function(n){var r=this.clone();return r.__iteratees__.push({iteratee:ii(n,3),type:t}),r.__filtered__=r.__filtered__||u,r}})),gr(["head","last"],(function(n,r){var t="take"+(r?"Right":"");Wt.prototype[n]=function(){return this[t](1).value()[0]}})),gr(["initial","tail"],(function(n,r){var t="drop"+(r?"":"Right");Wt.prototype[n]=function(){return this.__filtered__?new Wt(this):this[t](1)}})),Wt.prototype.compact=function(){return this.filter(ec)},Wt.prototype.find=function(n){return this.filter(n).head()},Wt.prototype.findLast=function(n){return this.reverse().find(n)},Wt.prototype.invokeMap=Vu((function(n,r){return"function"==typeof n?new Wt(this):this.map((function(t){return Uu(t,n,r)}))})),Wt.prototype.reject=function(n){return this.filter(zf(ii(n)))},Wt.prototype.slice=function(n,r){n=po(n);var t=this;return t.__filtered__&&(n>0||r<0)?new Wt(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),r!==u&&(t=(r=po(r))<0?t.dropRight(-r):t.take(r-n)),t)},Wt.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Wt.prototype.toArray=function(){return this.take(s)},du(Wt.prototype,(function(n,r){var t=/^(?:filter|find|map|reject)|While$/.test(r),e=/^(?:head|last)$/.test(r),i=Ct[e?"take"+("last"==r?"Right":""):r],f=e||/^find/.test(r);i&&(Ct.prototype[r]=function(){var r=this.__wrapped__,o=e?[1]:arguments,c=r instanceof Wt,a=o[0],v=c||Pf(r),l=function(n){var r=i.apply(Ct,Er([n],o));return e&&s?r[0]:r};v&&t&&"function"==typeof a&&1!=a.length&&(c=v=!1);var s=this.__chain__,h=!!this.__actions__.length,p=f&&!s,y=c&&!h;if(!f&&v){r=y?r:new Wt(this);var w=n.apply(r,o);return w.__actions__.push({func:hf,args:[l],thisArg:u}),new Mt(w,s)}return p&&y?n.apply(this,o):(w=this.thru(l),p?e?w.value()[0]:w.value():w)})})),gr(["pop","push","shift","sort","splice","unshift"],(function(n){var r=kn[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",u=/^(?:pop|shift)$/.test(n);Ct.prototype[n]=function(){var n=arguments;if(u&&!this.__chain__){var e=this.value();return r.apply(Pf(e)?e:[],n)}return this[t]((function(t){return r.apply(Pf(t)?t:[],n)}))}})),du(Wt.prototype,(function(n,r){var t=Ct[r];if(t){var u=t.name+"";Dn.call(kt,u)||(kt[u]=[]),kt[u].push({name:r,func:t})}})),kt[Le(u,2).name]=[{name:"wrapper",func:u}],Wt.prototype.clone=function(){var n=new Wt(this.__wrapped__);return n.__actions__=Ee(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ee(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ee(this.__views__),n},Wt.prototype.reverse=function(){if(this.__filtered__){var n=new Wt(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Wt.prototype.value=function(){var n=this.__wrapped__.value(),r=this.__dir__,t=Pf(n),u=r<0,e=t?n.length:0,i=function(n,r,t){for(var u=-1,e=t.length;++u<e;){var i=t[u],f=i.size;switch(i.type){case"drop":n+=f;break;case"dropRight":r-=f;break;case"take":r=bt(r,n+f);break;case"takeRight":n=wt(n,r-f)}}return{start:n,end:r}}(0,e,this.__views__),f=i.start,o=i.end,c=o-f,a=u?o:f-1,v=this.__iteratees__,l=v.length,s=0,h=bt(c,this.__takeCount__);if(!t||!u&&e==c&&h==c)return le(n,this.__actions__);var p=[];n:for(;c--&&s<h;){for(var y=-1,w=n[a+=r];++y<l;){var b=v[y],d=b.type,g=(0,b.iteratee)(w);if(2==d)w=g;else if(!g){if(1==d)continue n;break n}}p[s++]=w}return p},Ct.prototype.at=pf,Ct.prototype.chain=function(){return sf(this)},Ct.prototype.commit=function(){return new Mt(this.value(),this.__chain__)},Ct.prototype.next=function(){this.__values__===u&&(this.__values__=so(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Ct.prototype.plant=function(n){for(var r,t=this;t instanceof Zt;){var e=Ci(t);e.__index__=0,e.__values__=u,r?i.__wrapped__=e:r=e;var i=e;t=t.__wrapped__}return i.__wrapped__=n,r},Ct.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Wt){var r=n;return this.__actions__.length&&(r=new Wt(this)),(r=r.reverse()).__actions__.push({func:hf,args:[Xi],thisArg:u}),new Mt(r,this.__chain__)}return this.thru(Xi)},Ct.prototype.toJSON=Ct.prototype.valueOf=Ct.prototype.value=function(){return le(this.__wrapped__,this.__actions__)},Ct.prototype.first=Ct.prototype.head,fr&&(Ct.prototype[fr]=function(){return this}),Ct}();or?((or.exports=ct)._=ct,fr._=ct):ir._=ct}).call(r)}(n={path:undefined,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports);export{t as l}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o,H as s,g as i}from"./p-f46e6c3c.js";import{S as r}from"./p-7219c04b.js";import{c as e}from"./p-cf4d7a83.js";import{c as p}from"./p-d3c9a644.js";let a=class{constructor(o){t(this,o),this.noArrow=!1,this.mode="stroked",this.shape="normal",this.disabled=!1,this.placement="bottom-end",this.expanded=!1}placementChange(){this.popper.setOptions(Object.assign(Object.assign({},this.popper.state.options),{placement:this.placement})).then((()=>this.popper.update()))}componentDidLoad(){const t=this.el.shadowRoot.querySelector("wcs-button"),o=t.shadowRoot.querySelector("button");this.buttonTextColor=window.getComputedStyle(o).color;const s=this.el.shadowRoot.querySelector(".popover");this.popper=p(t,s,{placement:this.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),this.el.shadowRoot.querySelector(".arrow").style.fill=this.buttonTextColor,this.fixForFirefoxBelow63()}fixForFirefoxBelow63(){const t=this.el.querySelectorAll("wcs-dropdown-item"),o=this.el.querySelector(".container");t.length>0&&o&&t.forEach((t=>{this.el.removeChild(t),o.appendChild(t)}))}onButtonClick(t){this.expanded=!this.expanded}onWindowClickEvent(t){const o=e(t,this.el);this.expanded&&!o&&(this.expanded=!1)}dropdownItemClick(t){this.expanded=!1}componentDidRender(){this.popper&&this.popper.update(),this.noArrow||(this.el.shadowRoot.querySelector(".arrow").style.fill=this.buttonTextColor)}render(){return o(s,null,o("wcs-button",{mode:this.mode,shape:this.shape,disabled:this.disabled,onClick:t=>this.onButtonClick(t)},o("div",{class:"wcs-button-content-wrapper"},o("slot",{name:"placeholder"}),this.noArrow?null:o(r,{up:this.expanded}))),o("div",{class:(this.expanded?"show ":"")+"popover"},o("div",{id:"arrow","data-popper-arrow":!0}),o("div",{class:"container"},o("slot",{name:"item"}))))}get el(){return i(this)}static get watchers(){return{placement:["placementChange"]}}};a.style=':host{display:flex}wcs-button{--wcs-button-padding:8px 10px 8px 16px !important}:host([no-arrow]) wcs-button{--wcs-button-padding:8px 16px 8px 16px !important}:host([shape=small]) wcs-button{--wcs-button-padding:2px 10px 2px 16px !important}:host([shape=small][no-arrow]) wcs-button{--wcs-button-padding:2px 16px 2px 16px !important}.wcs-button-content-wrapper{display:flex}.popover{display:none;border:1px solid #d7d7d7;border-radius:var(--wcs-border-radius);background-color:var(--wcs-white);z-index:9999}.show{display:block}.container{border-radius:inherit;overflow:hidden;padding:calc(var(--wcs-padding) / 2) 0;background-color:var(--wcs-white)}#arrow,#arrow::before{position:absolute;width:8px;height:8px;background:inherit;border:solid 1px #d7d7d7}#arrow{visibility:hidden;z-index:-1}#arrow::before{visibility:visible;content:"";transform:rotate(45deg)}.popover[data-popper-placement^=top]>#arrow{bottom:-5px}.popover[data-popper-placement^=bottom]>#arrow{top:-6px}.popover[data-popper-placement^=left]>#arrow{right:-4px}.popover[data-popper-placement^=right]>#arrow{left:-6px}';export{a as wcs_dropdown}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,g as a}from"./p-f46e6c3c.js";let r=class{constructor(t){e(this,t)}render(){return[t("slot",{name:"header"}),t("slot",{name:"sidebar"}),t("slot",{name:"content"})]}get el(){return a(this)}};r.style=':host{background-color:#f2f2f2;margin:0;display:grid;grid-template-areas:"header header" "sidebar content";grid-template-columns:min-content auto;overflow-y:hidden}::slotted(main){padding:8px;grid-area:content;overflow-y:scroll;height:calc(100vh - 64px)}::slotted(wcs-header){grid-area:header}@media screen and (max-width: 768px){:host{grid-template-areas:"header" "sidebar" "content";grid-template-columns:auto}::slotted(header){position:relative}::slotted(main){overflow-y:visible;height:initial}}';export{r as wcs_app}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as s,H as a}from"./p-f46e6c3c.js";let c=class{constructor(s){r(this,s)}render(){return s(a,{slot:"item"})}};c.style=":host{display:block;margin:var(--wcs-base-margin) calc(var(--wcs-base-margin) * 2);overflow:hidden;border-top:1px solid var(--wcs-text-light);width:calc(100% - var(--wcs-base-margin) * 4)}";export{c as wcs_dropdown_divider}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{h as t,r,c as i,H as e,g as n}from"./p-f46e6c3c.js";import{l as o}from"./p-adef7aaf.js";import{S as s}from"./p-7219c04b.js";import{b as c}from"./p-cf4d7a83.js";import{M as a}from"./p-16dfbae8.js";
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */var u=function(){return(u=Object.assign||function(t){for(var r,i=1,e=arguments.length;i<e;i++)for(var n in r=arguments[i])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t}).apply(this,arguments)};function l(t,r){var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(i[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(e=Object.getOwnPropertySymbols(t);n<e.length;n++)r.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(t,e[n])&&(i[e[n]]=t[e[n]])}return i}function f(t){var r="function"==typeof Symbol&&Symbol.iterator,i=r&&t[r],e=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(t,r){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var e,n,o=i.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(e=o.next()).done;)s.push(e.value)}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s}function p(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(d(arguments[r]));return t}var h={};function v(t){return Object.keys(t)}function m(t,r,i){void 0===i&&(i=".");var e=w(t,i),n=w(r,i);return I(n)?!!I(e)&&n===e:I(e)?e in n:v(e).every((function(t){return t in n&&m(e[t],n[t])}))}function y(t){try{return I(t)||"number"==typeof t?""+t:t.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function g(t,r){try{return T(t)?t:t.toString().split(r)}catch(r){throw new Error("'"+t+"' is not a valid state path.")}}function w(t,r){return"object"==typeof(i=t)&&"value"in i&&"context"in i&&"event"in i&&"_event"in i?t.value:T(t)?b(t):"string"!=typeof t?t:b(g(t,r));var i}function b(t){if(1===t.length)return t[0];for(var r={},i=r,e=0;e<t.length-1;e++)e===t.length-2?i[t[e]]=t[e+1]:(i[t[e]]={},i=i[t[e]]);return r}function x(t,r){for(var i={},e=v(t),n=0;n<e.length;n++){var o=e[n];i[o]=r(t[o],o,t,n)}return i}function S(t,r,i){var e,n,o={};try{for(var s=f(v(t)),c=s.next();!c.done;c=s.next()){var a=c.value,u=t[a];i(u)&&(o[a]=r(u,a,t))}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return o}var k=function(t){return function(r){var i,e,n=r;try{for(var o=f(t),s=o.next();!s.done;s=o.next())n=n[s.value]}catch(t){i={error:t}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return n}};function O(t){return t?I(t)?[[t]]:z(v(t).map((function(r){var i=t[r];return"string"==typeof i||i&&Object.keys(i).length?O(t[r]).map((function(t){return[r].concat(t)})):[[r]]}))):[[]]}function z(t){var r;return(r=[]).concat.apply(r,p(t))}function C(t){return T(t)?t:[t]}function E(t){return void 0===t?[]:C(t)}function j(t,r,i){var e,n;if(L(t))return t(r,i.data);var o={};try{for(var s=f(Object.keys(t)),c=s.next();!c.done;c=s.next()){var a=c.value,u=t[a];o[a]=L(u)?u(r,i.data):u}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return o}function _(t){return t instanceof Promise||!(null===t||!L(t)&&"object"!=typeof t||!L(t.then))}function N(t,r){var i,e,n=d([[],[]],2),o=n[0],s=n[1];try{for(var c=f(t),a=c.next();!a.done;a=c.next()){var u=a.value;r(u)?o.push(u):s.push(u)}}catch(t){i={error:t}}finally{try{a&&!a.done&&(e=c.return)&&e.call(c)}finally{if(i)throw i.error}}return[o,s]}function M(t,r){return x(t.states,(function(t,i){if(t){var e=(I(r)?void 0:r[i])||(t?t.current:void 0);if(e)return{current:e,states:M(t,e)}}}))}function T(t){return Array.isArray(t)}function L(t){return"function"==typeof t}function I(t){return"string"==typeof t}function D(t,r){if(t)return I(t)?{type:"xstate.guard",name:t,predicate:r?r[t]:void 0}:L(t)?{type:"xstate.guard",name:t.name,predicate:t}:t}function V(t){try{return"subscribe"in t&&L(t.subscribe)}catch(t){return!1}}var A,P,J=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function U(t){try{return"__xstatenode"in t}catch(t){return!1}}function B(t,r){return I(t)||"number"==typeof t?u({type:t},r):t}function K(t,r){if(!I(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var i=B(t);return u({name:i.type,data:i,$$type:"scxml",type:"external"},r)}function W(t,r){return C(r).map((function(r){return void 0===r||"string"==typeof r||U(r)?{target:r,event:t}:u(u({},r),{event:t})}))}function $(t,r,i,e,n){var o=t.options.guards,s={state:n,cond:r,_event:e};if("xstate.guard"===r.type)return r.predicate(i,e.data,s);var c=o[r.type];if(!c)throw new Error("Guard '"+r.type+"' is not implemented on machine '"+t.id+"'.");return c(i,e.data,s)}function F(t){return"string"==typeof t?{type:t}:t}!function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(A||(A={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(P||(P={}));var R=A.Start,H=A.Stop,Y=A.Raise,q=A.Send,G=A.Cancel,Q=A.NullEvent,X=A.Assign,Z=A.Log,tt=A.Invoke,rt=A.ErrorPlatform,it=A.ErrorCustom,et=A.Update,nt=A.Choose,ot=A.Pure,st=K({type:A.Init});function ct(t,r){return r&&r[t]||void 0}function at(t,r){var i;if(I(t)||"number"==typeof t){var e=ct(t,r);i=L(e)?{type:t,exec:e}:e||{type:t,exec:void 0}}else if(L(t))i={type:t.name||t.toString(),exec:t};else if(L(e=ct(t.type,r)))i=u(u({},t),{exec:e});else if(e){var n=e.type||t.type;i=u(u(u({},e),t),{type:n})}else i=t;return Object.defineProperty(i,"toString",{value:function(){return i.type},enumerable:!1,configurable:!0}),i}var ut=function(t,r){return t?(T(t)?t:[t]).map((function(t){return at(t,r)})):[]};function lt(t){var r=at(t);return u(u({id:I(t)?t:r.id},r),{type:r.type})}function ft(t){return I(t)?{type:Y,event:t}:dt(t,{to:P.Internal})}function dt(t,r){return{to:r?r.to:void 0,type:q,event:L(t)?t:B(t),delay:r?r.delay:void 0,id:r&&void 0!==r.id?r.id:L(t)?t.name:y(t)}}function pt(t,r){var i=A.DoneState+"."+t;return{type:i,data:r,toString:function(){return i}}}function ht(t,r){var i=A.DoneInvoke+"."+t;return{type:i,data:r,toString:function(){return i}}}function vt(t,r){var i=A.ErrorPlatform+"."+t;return{type:i,data:r,toString:function(){return i}}}function mt(t,r,i,e,n){var o=d(N(n,(function(t){return t.type===X})),2),s=o[0],c=o[1],a=s.length?function(t,r,i,e){return t?i.reduce((function(t,i){var n,o,s=i.assignment,c={state:e,action:i,_event:r},a={};if(L(s))a=s(t,r.data,c);else try{for(var u=f(v(s)),l=u.next();!l.done;l=u.next()){var d=l.value,p=s[d];a[d]=L(p)?p(t,r.data,c):p}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return Object.assign({},t,a)}),t):t}(i,e,s,r):i;return[z(c.map((function(i){var n;switch(i.type){case Y:return{type:Y,_event:K(i.event)};case q:return function(t,r,i,e){var n,o={_event:i},s=K(L(t.event)?t.event(r,i.data,o):t.event);if(I(t.delay)){var c=e&&e[t.delay];n=L(c)?c(r,i.data,o):c}else n=L(t.delay)?t.delay(r,i.data,o):t.delay;var a=L(t.to)?t.to(r,i.data,o):t.to;return u(u({},t),{to:a,_event:s,event:s.data,delay:n})}(i,a,e,t.options.delays);case Z:return function(t,r,i){return u(u({},t),{value:I(t.expr)?t.expr:t.expr(r,i.data,{_event:i})})}(i,a,e);case nt:if(!(s=null===(n=i.conds.find((function(i){var n=D(i.cond,t.options.guards);return!n||$(t,n,a,e,r)})))||void 0===n?void 0:n.actions))return[];var o=mt(t,r,a,e,ut(E(s),t.options.actions));return a=o[1],o[0];case ot:var s;return(s=i.get(a,e.data))?(o=mt(t,r,a,e,ut(E(s),t.options.actions)),a=o[1],o[0]):[];case H:return function(t,r,i){var e=L(t.activity)?t.activity(r,i.data):t.activity;return{type:A.Stop,activity:"string"==typeof e?{id:e}:e}}(i,a,e);default:return at(i,t.options.actions)}}))),a]}var yt=function(t){return"atomic"===t.type||"final"===t.type};function gt(t){return v(t.states).map((function(r){return t.states[r]}))}function wt(t){var r=[t];return yt(t)?r:r.concat(z(gt(t).map(wt)))}function bt(t,r){var i,e,n,o,s,c,a,u,l=St(new Set(t)),d=new Set(r);try{for(var p=f(d),h=p.next();!h.done;h=p.next())for(var v=(O=h.value).parent;v&&!d.has(v);)d.add(v),v=v.parent}catch(t){i={error:t}}finally{try{h&&!h.done&&(e=p.return)&&e.call(p)}finally{if(i)throw i.error}}var m=St(d);try{for(var y=f(d),g=y.next();!g.done;g=y.next())if("compound"!==(O=g.value).type||m.get(O)&&m.get(O).length){if("parallel"===O.type)try{for(var w=(s=void 0,f(gt(O))),b=w.next();!b.done;b=w.next()){var x=b.value;"history"!==x.type&&(d.has(x)||(d.add(x),l.get(x)?l.get(x).forEach((function(t){return d.add(t)})):x.initialStateNodes.forEach((function(t){return d.add(t)}))))}}catch(t){s={error:t}}finally{try{b&&!b.done&&(c=w.return)&&c.call(w)}finally{if(s)throw s.error}}}else l.get(O)?l.get(O).forEach((function(t){return d.add(t)})):O.initialStateNodes.forEach((function(t){return d.add(t)}))}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}try{for(var S=f(d),k=S.next();!k.done;k=S.next()){var O;for(v=(O=k.value).parent;v&&!d.has(v);)d.add(v),v=v.parent}}catch(t){a={error:t}}finally{try{k&&!k.done&&(u=S.return)&&u.call(S)}finally{if(a)throw a.error}}return d}function xt(t,r){var i=r.get(t);if(!i)return{};if("compound"===t.type){var e=i[0];if(!e)return{};if(yt(e))return e.key}var n={};return i.forEach((function(t){n[t.key]=xt(t,r)})),n}function St(t){var r,i,e=new Map;try{for(var n=f(t),o=n.next();!o.done;o=n.next()){var s=o.value;e.has(s)||e.set(s,[]),s.parent&&(e.has(s.parent)||e.set(s.parent,[]),e.get(s.parent).push(s))}}catch(t){r={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}return e}function kt(t,r){return xt(t,St(bt([t],r)))}function Ot(t,r){return Array.isArray(t)?t.some((function(t){return t===r})):t instanceof Set&&t.has(r)}function zt(t,r){return"compound"===r.type?gt(r).some((function(r){return"final"===r.type&&Ot(t,r)})):"parallel"===r.type&>(r).every((function(r){return zt(t,r)}))}function Ct(t,r){if(t===r)return!0;if(void 0===t||void 0===r)return!1;if(I(t)||I(r))return t===r;var i=v(t),e=v(r);return i.length===e.length&&i.every((function(i){return Ct(t[i],r[i])}))}var Et=function(){function t(t){var r=this;this.actions=[],this.activities=h,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||h,this.meta=t.meta||{},this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,Object.defineProperty(this,"nextEvents",{get:function(){return z(p(new Set(r.configuration.map((function(t){return t.ownEvents})))))}})}return t.from=function(r,i){return r instanceof t?r.context!==i?new t({value:r.value,context:i,_event:r._event,_sessionid:null,historyValue:r.historyValue,history:r.history,actions:[],activities:r.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):r:new t({value:r,context:i,_event:st,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(r){return new t(r)},t.inert=function(r,i){return r instanceof t?r.actions.length?new t({value:r.value,context:i,_event:st,_sessionid:null,historyValue:r.historyValue,history:r.history,activities:r.activities,configuration:r.configuration,transitions:[],children:{}}):r:t.from(r,i)},t.prototype.toStrings=function(t,r){var i=this;if(void 0===t&&(t=this.value),void 0===r&&(r="."),I(t))return[t];var e=v(t);return e.concat.apply(e,p(e.map((function(e){return i.toStrings(t[e],r).map((function(t){return e+r+t}))}))))},t.prototype.toJSON=function(){return l(this,["configuration","transitions"])},t.prototype.matches=function(t){return m(t,this.value)},t}(),jt=function(t,r){return r(t)};function _t(t){return{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},toJSON:function(){return{id:t}}}}function Nt(t){return u(u({type:tt},t),{toJSON:function(){var r,i=l(t,["onDone","onError"]);return u(u({},i),{type:tt,src:(r=t.src,"string"==typeof r?{type:r,toString:function(){return r}}:r)})}})}var Mt={},Tt=function(t){return"#"===t[0]},Lt=function(){function t(r,i,e){var n=this;this.config=r,this.context=e,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},i),this.parent=this.options._parent,this.key=this.config.key||this.options._key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||p([this.machine.key],this.path).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&v(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.initial=this.config.initial,this.states=this.config.states?x(this.config.states,(function(r,i){var e,o=new t(r,{_parent:n,_key:i});return Object.assign(n.idMap,u(((e={})[o.id]=o,e),o.idMap)),o})):Mt;var o=0;!function t(r){var i,e;r.order=o++;try{for(var n=f(gt(r)),s=n.next();!s.done;s=n.next())t(s.value)}catch(t){i={error:t}}finally{try{s&&!s.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(t){return""===t.event})):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=E(this.config.entry||this.config.onEntry).map((function(t){return at(t)})),this.onExit=E(this.config.exit||this.config.onExit).map((function(t){return at(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=E(this.config.invoke).map((function(t,r){var i,e;if(U(t))return n.machine.options.services=u(((i={})[t.id]=t,i),n.machine.options.services),Nt({src:t.id,id:t.id});if(I(t.src))return Nt(u(u({},t),{id:t.id||t.src,src:t.src}));if(U(t.src)||L(t.src)){var o=n.id+":invocation["+r+"]";return n.machine.options.services=u(((e={})[o]=t.src,e),n.machine.options.services),Nt(u(u({id:o},t),{src:o}))}var s=t.src;return Nt(u(u({id:s.type},t),{src:s}))})),this.activities=E(this.config.activities).concat(this.invoke).map((function(t){return lt(t)})),this.transition=this.transition.bind(this)}return t.prototype._init=function(){this.__cache.transitions||wt(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(r,i){void 0===i&&(i=this.context);var e=this.options,n=e.activities,o=e.guards,s=e.services,c=e.delays;return new t(this.config,{actions:u(u({},e.actions),r.actions),activities:u(u({},n),r.activities),guards:u(u({},o),r.guards),services:u(u({},s),r.services),delays:u(u({},c),r.delays)},i)},t.prototype.withContext=function(r){return new t(this.config,this.options,r)},Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:x(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){return this.__cache.on?this.__cache.on:this.__cache.on=this.transitions.reduce((function(t,r){return t[r.eventType]=t[r.eventType]||[],t[r.eventType].push(r),t}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var r=""===t,i=this.transitions.filter((function(i){var e=i.eventType===t;return r?e:e||"*"===i.eventType}));return this.__cache.candidates[t]=i,i},t.prototype.getDelayedTransitions=function(){var t=this,r=this.config.after;if(!r)return[];var i=function(r,i){var e,n,o=(e=L(r)?t.id+":delay["+i+"]":r,A.After+"("+e+")"+((n=t.id)?"#"+n:""));return t.onEntry.push(dt(o,{delay:r})),t.onExit.push({type:G,sendId:o}),o};return(T(r)?r.map((function(t,r){var e=i(t.delay,r);return u(u({},t),{event:e})})):z(v(r).map((function(t,e){var n=r[t],o=I(n)?{target:n}:n,s=isNaN(+t)?t:+t,c=i(s,e);return E(o).map((function(t){return u(u({},t),{event:c,delay:s})}))})))).map((function(r){var i=r.delay;return u(u({},t.formatTransition(r)),{delay:i})}))},t.prototype.getStateNodes=function(t){var r,i=this;if(!t)return[];var e=t instanceof Et?t.value:w(t,this.delimiter);if(I(e)){var n=this.getStateNode(e).initial;return void 0!==n?this.getStateNodes(((r={})[e]=n,r)):[this.states[e]]}var o=v(e);return o.map((function(t){return i.getStateNode(t)})).concat(o.reduce((function(t,r){var n=i.getStateNode(r).getStateNodes(e[r]);return t.concat(n)}),[]))},t.prototype.handles=function(t){var r=y(t);return this.events.includes(r)},t.prototype.resolveState=function(t){var r=Array.from(bt([],this.getStateNodes(t.value)));return new Et(u(u({},t),{value:this.resolve(t.value),configuration:r,done:zt(r,this)}))},t.prototype.transitionLeafNode=function(t,r,i){var e=this.getStateNode(t).next(r,i);return e&&e.transitions.length?e:this.next(r,i)},t.prototype.transitionCompoundNode=function(t,r,i){var e=v(t),n=this.getStateNode(e[0])._transition(t[e[0]],r,i);return n&&n.transitions.length?n:this.next(r,i)},t.prototype.transitionParallelNode=function(t,r,i){var e,n,o={};try{for(var s=f(v(t)),c=s.next();!c.done;c=s.next()){var a=c.value,u=t[a];if(u){var l=this.getStateNode(a)._transition(u,r,i);l&&(o[a]=l)}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}var d=v(o).map((function(t){return o[t]})),p=z(d.map((function(t){return t.transitions})));if(!d.some((function(t){return t.transitions.length>0})))return this.next(r,i);var h=z(d.map((function(t){return t.entrySet}))),m=z(v(o).map((function(t){return o[t].configuration})));return{transitions:p,entrySet:h,exitSet:z(d.map((function(t){return t.exitSet}))),configuration:m,source:r,actions:z(v(o).map((function(t){return o[t].actions})))}},t.prototype._transition=function(t,r,i){return I(t)?this.transitionLeafNode(t,r,i):1===v(t).length?this.transitionCompoundNode(t,r,i):this.transitionParallelNode(t,r,i)},t.prototype.next=function(t,r){var i,e,n,o=this,s=r.name,c=[],a=[];try{for(var u=f(this.getCandidates(s)),l=u.next();!l.done;l=u.next()){var d=l.value,h=d.cond,v=d.in,y=t.context,g=!v||(I(v)&&Tt(v)?t.matches(w(this.getStateNodeById(v).path,this.delimiter)):m(w(v,this.delimiter),k(this.path.slice(0,-2))(t.value))),b=!1;try{b=!h||$(this.machine,h,y,r,t)}catch(t){throw new Error("Unable to evaluate guard '"+(h.name||h.type)+"' in transition for event '"+s+"' in state node '"+this.id+"':\n"+t.message)}if(b&&g){void 0!==d.target&&(a=d.target),c.push.apply(c,p(d.actions)),n=d;break}}}catch(t){i={error:t}}finally{try{l&&!l.done&&(e=u.return)&&e.call(u)}finally{if(i)throw i.error}}if(n){if(!a.length)return{transitions:[n],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:c};var x=z(a.map((function(r){return o.getRelativeStateNodes(r,t.historyValue)}))),S=!!n.internal;return{transitions:[n],entrySet:S?[]:z(x.map((function(t){return o.nodesFromChild(t)}))),exitSet:S?[]:[this],configuration:x,source:t,actions:c}}},t.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var r=[],i=t;i&&i!==this;)r.push(i),i=i.parent;return r.push(this),r},t.prototype.escapes=function(t){if(this===t)return!1;for(var r=this.parent;r;){if(r===t)return!1;r=r.parent}return!0},t.prototype.getActions=function(t,r,i,e){var n,o,s,c,a=bt([],e?this.getStateNodes(e.value):[this]),u=t.configuration.length?bt(a,t.configuration):a;try{for(var l=f(u),h=l.next();!h.done;h=l.next())Ot(a,y=h.value)||t.entrySet.push(y)}catch(t){n={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}try{for(var v=f(a),m=v.next();!m.done;m=v.next()){var y;Ot(u,y=m.value)&&!Ot(t.exitSet,y.parent)||t.exitSet.push(y)}}catch(t){s={error:t}}finally{try{m&&!m.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var g=z(t.entrySet.map((function(e){var n=[];if("final"!==e.type)return n;var o=e.parent;if(!o.parent)return n;n.push(pt(e.id,e.doneData),pt(o.id,e.doneData?j(e.doneData,r,i):void 0));var s=o.parent;return"parallel"===s.type&>(s).every((function(r){return zt(t.configuration,r)}))&&n.push(pt(s.id)),n})));t.exitSet.sort((function(t,r){return r.order-t.order})),t.entrySet.sort((function(t,r){return t.order-r.order}));var w=new Set(t.entrySet),b=new Set(t.exitSet),x=d([z(Array.from(w).map((function(t){return p(t.activities.map((function(t){return function(t){var r=lt(t);return{type:A.Start,activity:r,exec:void 0}}(t)})),t.onEntry)}))).concat(g.map(ft)),z(Array.from(b).map((function(t){return p(t.onExit,t.activities.map((function(t){return function(t){var r=L(t)?t:lt(t);return{type:A.Stop,activity:r,exec:void 0}}(t)})))})))],2),S=x[0];return ut(x[1].concat(t.actions).concat(S),this.machine.options.actions)},t.prototype.transition=function(t,r,i){void 0===t&&(t=this.initialState);var e,n=K(r);if(t instanceof Et)e=void 0===i?t:this.resolveState(Et.from(t,i));else{var o=I(t)?this.resolve(b(this.getResolvedPath(t))):this.resolve(t);e=this.resolveState(Et.from(o,i||this.machine.context))}if(this.strict&&!this.events.includes(n.name)&&!/^(done|error)\./.test(n.name))throw new Error("Machine '"+this.id+"' does not accept event '"+n.name+"'");var s=this._transition(e.value,e,n)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:e,actions:[]},c=bt([],this.getStateNodes(e.value)),a=s.configuration.length?bt(c,s.configuration):c;return s.configuration=p(a),this.resolveTransition(s,e,n)},t.prototype.resolveRaisedTransition=function(t,r,i){var e,n=t.actions;return(t=this.transition(t,r))._event=i,t.event=i.data,(e=t.actions).unshift.apply(e,p(n)),t},t.prototype.resolveTransition=function(t,r,i,e){var n,o,s=this;void 0===i&&(i=st),void 0===e&&(e=this.machine.context);var c=t.configuration,a=!r||t.transitions.length>0?kt(this.machine,c):void 0,l=r?r.historyValue?r.historyValue:t.source?this.machine.historyValue(r.value):void 0:void 0,p=r?r.context:e,h=this.getActions(t,p,i,r),v=r?u({},r.activities):{};try{for(var m=f(h),y=m.next();!y.done;y=m.next()){var g=y.value;g.type===R?v[g.activity.id||g.activity.type]=g:g.type===H&&(v[g.activity.id||g.activity.type]=!1)}}catch(t){n={error:t}}finally{try{y&&!y.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}var w,b,x=d(mt(this,r,p,i,h),2),S=x[0],k=x[1],O=d(N(S,(function(t){return t.type===Y||t.type===q&&t.to===P.Internal})),2),z=O[0],C=O[1],E=S.filter((function(t){var r;return t.type===R&&(null===(r=t.activity)||void 0===r?void 0:r.type)===tt})).reduce((function(t,r){return t[r.activity.id]=function(t,r,i,e){var n,o=F(t.src),s=null===(n=null==r?void 0:r.options.services)||void 0===n?void 0:n[o.type],c=t.data?j(t.data,i,e):void 0,a=s?function(t,r,i){var e=_t(r);return e.deferred=!0,U(t)&&(e.state=jt(void 0,(function(){return(i?t.withContext(i):t).initialState}))),e}(s,t.id,c):_t(t.id);return a.meta=t,a}(r.activity,s.machine,k,i),t}),r?u({},r.children):{}),_=a?t.configuration:r?r.configuration:[],T=_.reduce((function(t,r){return void 0!==r.meta&&(t[r.id]=r.meta),t}),{}),L=zt(_,this),I=new Et({value:a||r.value,context:k,_event:i,_sessionid:r?r._sessionid:null,historyValue:a?l?(w=l,b=a,{current:b,states:M(w,b)}):void 0:r?r.historyValue:void 0,history:!a||t.source?r:void 0,actions:a?C:[],activities:a?v:r?r.activities:{},meta:a?T:r?r.meta:void 0,events:[],configuration:_,transitions:t.transitions,children:E,done:L}),D=p!==k;I.changed=i.name===et||D;var V=I.history;if(V&&delete V.history,!a)return I;var A=I;if(!L)for((this._transient||c.some((function(t){return t._transient})))&&(A=this.resolveRaisedTransition(A,{type:Q},i));z.length;){var J=z.shift();A=this.resolveRaisedTransition(A,J._event,i)}var B=A.changed||(V?!!A.actions.length||D||typeof V.value!=typeof A.value||!Ct(A.value,V.value):void 0);return A.changed=B,A.history=V,A},t.prototype.getStateNode=function(t){if(Tt(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '"+t+"' from '"+this.id+"'; no child states exist.");var r=this.states[t];if(!r)throw new Error("Child state '"+t+"' does not exist on '"+this.id+"'");return r},t.prototype.getStateNodeById=function(t){var r=Tt(t)?t.slice("#".length):t;if(r===this.id)return this;var i=this.machine.idMap[r];if(!i)throw new Error("Child state node '#"+r+"' does not exist on machine '"+this.id+"'");return i},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&Tt(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var r=g(t,this.delimiter).slice(),i=this;r.length;){var e=r.shift();if(!e.length)break;i=i.getStateNode(e)}return i},t.prototype.resolve=function(t){var r,i=this;if(!t)return this.initialStateValue||Mt;switch(this.type){case"parallel":return x(this.initialStateValue,(function(r,e){return r?i.getStateNode(e).resolve(t[e]||r):Mt}));case"compound":if(I(t)){var e=this.getStateNode(t);return"parallel"===e.type||"compound"===e.type?((r={})[t]=e.initialStateValue,r):t}return v(t).length?x(t,(function(t,r){return t?i.getStateNode(r).resolve(t):Mt})):this.initialStateValue||{};default:return t||Mt}},t.prototype.getResolvedPath=function(t){if(Tt(t)){var r=this.machine.idMap[t.slice("#".length)];if(!r)throw new Error("Unable to find state node '"+t+"'");return r.path}return g(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,r;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)r=S(this.states,(function(t){return t.initialStateValue||Mt}),(function(t){return!("history"===t.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '"+this.initial+"' not found on '"+this.key+"'");r=yt(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}return this.__cache.initialStateValue=r,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,r){var i=this.getStateNodes(t);return this.resolveTransition({configuration:i,entrySet:i,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,r)},Object.defineProperty(t.prototype,"initialState",{get:function(){this._init();var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '"+this.id+"'.");return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var r=this.config;t=I(r.target)&&Tt(r.target)?b(this.machine.getStateNodeById(r.target).path.slice(this.path.length-1)):r.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,r,i){return void 0===i&&(i=!0),i?"history"===t.type?t.resolveHistory(r):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;return yt(this)?[this]:"compound"!==this.type||this.initial?z(O(this.initialStateValue).map((function(r){return t.getFromRelativePath(r)}))):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var r=d(t),i=r[0],e=r.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '"+i+"' from node with no states");var n=this.getStateNode(i);if("history"===n.type)return n.resolveHistory();if(!this.states[i])throw new Error("Child state '"+i+"' does not exist on '"+this.id+"'");return this.states[i].getFromRelativePath(e)},t.prototype.historyValue=function(t){if(v(this.states).length)return{current:t||this.initialStateValue,states:S(this.states,(function(r,i){if(!t)return r.historyValue();var e=I(t)?void 0:t[i];return r.historyValue(e||r.initialStateValue)}),(function(t){return!t.history}))}},t.prototype.resolveHistory=function(t){var r=this;if("history"!==this.type)return[this];var i=this.parent;if(!t){var e=this.target;return e?z(O(e).map((function(t){return i.getFromRelativePath(t)}))):i.initialStateNodes}var n,o=(n=i.path,"states",function(t){var r,i,e=t;try{for(var o=f(n),s=o.next();!s.done;s=o.next())e=e.states[s.value]}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e})(t).current;return I(o)?[i.getStateNode(o)]:z(O(o).map((function(t){return"deep"===r.history?i.getFromRelativePath(t):[i.states[t[0]]]})))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,r=z(v(this.states).map((function(r){return t.states[r].stateIds})));return[this.id].concat(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var t,r,i,e;if(this.__cache.events)return this.__cache.events;var n=this.states,o=new Set(this.ownEvents);if(n)try{for(var s=f(v(n)),c=s.next();!c.done;c=s.next()){var a=n[c.value];if(a.states)try{for(var u=(i=void 0,f(a.events)),l=u.next();!l.done;l=u.next())o.add(""+l.value)}catch(t){i={error:t}}finally{try{l&&!l.done&&(e=u.return)&&e.call(u)}finally{if(i)throw i.error}}}}catch(r){t={error:r}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var r=this;if(void 0!==t)return t.map((function(t){if(!I(t))return t;var i=t[0]===r.delimiter;if(i&&!r.parent)return r.getStateNodeByPath(t.slice(1));var e=i?r.key+t:t;if(!r.parent)return r.getStateNodeByPath(e);try{return r.parent.getStateNodeByPath(e)}catch(t){throw new Error("Invalid transition definition for state node '"+r.id+"':\n"+t.message)}}))},t.prototype.formatTransition=function(t){var r=this,i=function(t){if(void 0!==t&&""!==t)return E(t)}(t.target),e="internal"in t?t.internal:!i||i.some((function(t){return I(t)&&t[0]===r.delimiter})),n=this.machine.options.guards,o=this.resolveTarget(i),s=u(u({},t),{actions:ut(E(t.actions)),cond:D(t.cond,n),target:o,source:this,internal:e,eventType:t.event,toJSON:function(){return u(u({},s),{target:s.target?s.target.map((function(t){return"#"+t.id})):void 0,source:"#"+r.id})}});return s},t.prototype.formatTransitions=function(){var t,r,i,e=this;if(this.config.on)if(Array.isArray(this.config.on))i=this.config.on;else{var n=this.config.on,o=n["*"],s=void 0===o?[]:o,c=l(n,["*"]);i=z(v(c).map((function(t){return W(t,c[t])})).concat(W("*",s)))}else i=[];var a=this.config.always?W("",this.config.always):[],u=this.config.onDone?W(String(pt(this.id)),this.config.onDone):[],d=z(this.invoke.map((function(t){var r=[];return t.onDone&&r.push.apply(r,p(W(String(ht(t.id)),t.onDone))),t.onError&&r.push.apply(r,p(W(String(vt(t.id)),t.onError))),r}))),h=this.after,m=z(p(u,d,i,a).map((function(t){return E(t).map((function(t){return e.formatTransition(t)}))})));try{for(var y=f(h),g=y.next();!g.done;g=y.next())m.push(g.value)}catch(r){t={error:r}}finally{try{g&&!g.done&&(r=y.return)&&r.call(y)}finally{if(t)throw t.error}}return m},t}(),It={deferEvents:!1},Dt=function(){function t(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=u(u({},It),t)}return t.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents)return void this.schedule(t);this.process(t)}this.flushEvents()},t.prototype.schedule=function(t){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()}else this.queue.push(t)},t.prototype.clear=function(){this.queue=[]},t.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},t.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(t){throw this.clear(),t}finally{this.processingEvent=!1}},t}(),Vt=new Map,At=0;function Pt(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0}var Jt,Ut={sync:!1,autoForward:!1};!function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"}(Jt||(Jt={}));var Bt=function(){function t(r,i){var e=this;void 0===i&&(i=t.defaultOptions),this.machine=r,this.scheduler=new Dt,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Jt.NotStarted,this.children=new Map,this.forwardTo=new Set,this.init=this.start,this.send=function(t,r){if(T(t))return e.batch(t),e.state;var i=K(B(t,r));if(e.status===Jt.Stopped)return e.state;if(e.status!==Jt.Running&&!e.options.deferEvents)throw new Error('Event "'+i.name+'" was sent to uninitialized service "'+e.machine.id+'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: '+JSON.stringify(i.data));return e.scheduler.schedule((function(){e.forward(i);var t=e.nextState(i);e.update(t,i)})),e._state},this.sendTo=function(t,r){var i,n=e.parent&&(r===P.Parent||e.parent.id===r),o=n?e.parent:I(r)?e.children.get(r)||function(t){return Vt.get(t)}(r):(i=r)&&"function"==typeof i.send?r:void 0;if(o)o.send("machine"in o?u(u({},t),{name:t.name===it?""+vt(e.id):t.name,origin:e.sessionId}):t.data);else if(!n)throw new Error("Unable to send event to child '"+r+"' from service '"+e.id+"'.")};var n=u(u({},t.defaultOptions),i),o=n.clock,s=n.logger,c=n.parent,a=n.id;this.id=void 0!==a?a:r.id,this.logger=s,this.clock=o,this.parent=c,this.options=n,this.scheduler=new Dt({deferEvents:this.options.deferEvents}),this.sessionId="x:"+At++}return Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:jt(this,(function(){return t._initialState=t.machine.initialState,t._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(t,r){var i,e;try{for(var n=f(t.actions),o=n.next();!o.done;o=n.next())this.exec(o.value,t,r)}catch(t){i={error:t}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(i)throw i.error}}},t.prototype.update=function(t,r){var i,e,n,o,s,c,a,u,l=this;if(t._sessionid=this.sessionId,this._state=t,this.options.execute&&this.execute(this.state),this.children.forEach((function(t){l.state.children[t.id]=t})),this.devTools&&this.devTools.send(r.data,t),t.event)try{for(var d=f(this.eventListeners),p=d.next();!p.done;p=d.next())(0,p.value)(t.event)}catch(t){i={error:t}}finally{try{p&&!p.done&&(e=d.return)&&e.call(d)}finally{if(i)throw i.error}}try{for(var h=f(this.listeners),v=h.next();!v.done;v=h.next())(0,v.value)(t,t.event)}catch(t){n={error:t}}finally{try{v&&!v.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}try{for(var m=f(this.contextListeners),y=m.next();!y.done;y=m.next())(0,y.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(t){s={error:t}}finally{try{y&&!y.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}var g=zt(t.configuration||[],this.machine);if(this.state.configuration&&g){var w=t.configuration.find((function(t){return"final"===t.type&&t.parent===l.machine})),b=w&&w.doneData?j(w.doneData,t.context,r):void 0;try{for(var x=f(this.doneListeners),S=x.next();!S.done;S=x.next())(0,S.value)(ht(this.id,b))}catch(t){a={error:t}}finally{try{S&&!S.done&&(u=x.return)&&u.call(x)}finally{if(a)throw a.error}}this.stop()}},t.prototype.onTransition=function(t){return this.listeners.add(t),this.status===Jt.Running&&t(this.state,this.state.event),this},t.prototype.subscribe=function(t,r,i){var e,n=this;if(!t)return{unsubscribe:function(){}};var o=i;return"function"==typeof t?e=t:(e=t.next.bind(t),o=t.complete.bind(t)),this.listeners.add(e),this.status===Jt.Running&&e(this.state),o&&this.onDone(o),{unsubscribe:function(){e&&n.listeners.delete(e),o&&n.doneListeners.delete(o)}}},t.prototype.onEvent=function(t){return this.eventListeners.add(t),this},t.prototype.onSend=function(t){return this.sendListeners.add(t),this},t.prototype.onChange=function(t){return this.contextListeners.add(t),this},t.prototype.onStop=function(t){return this.stopListeners.add(t),this},t.prototype.onDone=function(t){return this.doneListeners.add(t),this},t.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},t.prototype.start=function(t){var r=this;if(this.status===Jt.Running)return this;Vt.set(this.sessionId,this),this.initialized=!0,this.status=Jt.Running;var i=void 0===t?this.initialState:jt(this,(function(){return!I(i=t)&&"value"in i&&"history"in i?r.machine.resolveState(t):r.machine.resolveState(Et.from(t,r.machine.context));var i}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){r.update(i,st)})),this},t.prototype.stop=function(){var t,r,i,e,n,o,s,c,a,u,l=this;try{for(var d=f(this.listeners),p=d.next();!p.done;p=d.next())this.listeners.delete(x=p.value)}catch(r){t={error:r}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}try{for(var h=f(this.stopListeners),m=h.next();!m.done;m=h.next())(x=m.value)(),this.stopListeners.delete(x)}catch(t){i={error:t}}finally{try{m&&!m.done&&(e=h.return)&&e.call(h)}finally{if(i)throw i.error}}try{for(var y=f(this.contextListeners),g=y.next();!g.done;g=y.next())this.contextListeners.delete(x=g.value)}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}try{for(var w=f(this.doneListeners),b=w.next();!b.done;b=w.next()){var x;this.doneListeners.delete(x=b.value)}}catch(t){s={error:t}}finally{try{b&&!b.done&&(c=w.return)&&c.call(w)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.state.configuration.forEach((function(t){var r,i;try{for(var e=f(t.definition.exit),n=e.next();!n.done;n=e.next())l.exec(n.value,l.state)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}})),this.children.forEach((function(t){L(t.stop)&&t.stop()}));try{for(var S=f(v(this.delayedEventsMap)),k=S.next();!k.done;k=S.next())this.clock.clearTimeout(this.delayedEventsMap[k.value])}catch(t){a={error:t}}finally{try{k&&!k.done&&(u=S.return)&&u.call(S)}finally{if(a)throw a.error}}return this.scheduler.clear(),this.initialized=!1,this.status=Jt.Stopped,Vt.delete(this.sessionId),this},t.prototype.batch=function(t){var r=this;if(this.status===Jt.NotStarted&&this.options.deferEvents);else if(this.status!==Jt.Running)throw new Error(t.length+' event(s) were sent to uninitialized service "'+this.machine.id+'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.');this.scheduler.schedule((function(){var i,e,n=r.state,o=!1,s=[],c=function(t){var i=K(t);r.forward(i),n=jt(r,(function(){return r.machine.transition(n,i)})),s.push.apply(s,p(n.actions.map((function(t){return i=n,e=(r=t).exec,u(u({},r),{exec:void 0!==e?function(){return e(i.context,i.event,{action:r,state:i,_event:i._event})}:void 0});var r,i,e})))),o=o||!!n.changed};try{for(var a=f(t),l=a.next();!l.done;l=a.next())c(l.value)}catch(t){i={error:t}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(i)throw i.error}}n.changed=o,n.actions=s,r.update(n,K(t[t.length-1]))}))},t.prototype.sender=function(t){return this.send.bind(this,t)},t.prototype.nextState=function(t){var r=this,i=K(t);if(0===i.name.indexOf(rt)&&!this.state.nextEvents.some((function(t){return 0===t.indexOf(rt)})))throw i.data.data;return jt(this,(function(){return r.machine.transition(r.state,i)}))},t.prototype.forward=function(t){var r,i;try{for(var e=f(this.forwardTo),n=e.next();!n.done;n=e.next()){var o=n.value,s=this.children.get(o);if(!s)throw new Error("Unable to forward event '"+t+"' from interpreter '"+this.id+"' to nonexistant child '"+o+"'.");s.send(t)}}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}},t.prototype.defer=function(t){var r=this;this.delayedEventsMap[t.id]=this.clock.setTimeout((function(){t.to?r.sendTo(t._event,t.to):r.send(t._event)}),t.delay)},t.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},t.prototype.exec=function(t,r,i){void 0===i&&(i=this.machine.options.actions);var e=r.context,n=r._event,o=t.exec||ct(t.type,i),s=L(o)?o:o?o.exec:t.exec;if(s)try{return s(e,n.data,{action:t,state:this.state,_event:n})}catch(t){throw this.parent&&this.parent.send({type:"xstate.error",data:t}),t}switch(t.type){case q:var c=t;if("number"==typeof c.delay)return void this.defer(c);c.to?this.sendTo(c._event,c.to):this.send(c._event);break;case G:this.cancel(t.sendId);break;case R:var a=t.activity;if(!this.state.activities[a.id||a.type])break;if(a.type===A.Invoke){var u=F(a.src),l=this.machine.options.services?this.machine.options.services[u.type]:void 0,f=a.id,d=a.data,p="autoForward"in a?a.autoForward:!!a.forward;if(!l)return;var h=d?j(d,e,n):void 0,v=L(l)?l(e,n.data,{data:h,src:u}):l;_(v)?this.spawnPromise(Promise.resolve(v),f):L(v)?this.spawnCallback(v,f):V(v)?this.spawnObservable(v,f):U(v)&&this.spawnMachine(h?v.withContext(h):v,{id:f,autoForward:p})}else this.spawnActivity(a);break;case H:this.stopChild(t.activity.id);break;case Z:var m=t.label,y=t.value;m?this.logger(m,y):this.logger(y)}},t.prototype.removeChild=function(t){this.children.delete(t),this.forwardTo.delete(t),delete this.state.children[t]},t.prototype.stopChild=function(t){var r=this.children.get(t);r&&(this.removeChild(t),L(r.stop)&&r.stop())},t.prototype.spawn=function(t,r,i){if(_(t))return this.spawnPromise(Promise.resolve(t),r);if(L(t))return this.spawnCallback(t,r);if(function(t){try{return"function"==typeof t.send}catch(t){return!1}}(e=t)&&"id"in e)return this.spawnActor(t);if(V(t))return this.spawnObservable(t,r);if(U(t))return this.spawnMachine(t,u(u({},i),{id:r}));throw new Error('Unable to spawn entity "'+r+'" of type "'+typeof t+'".');var e},t.prototype.spawnMachine=function(r,i){var e=this;void 0===i&&(i={});var n=new t(r,u(u({},this.options),{parent:this,id:i.id||r.id})),o=u(u({},Ut),i);o.sync&&n.onTransition((function(t){e.send(et,{state:t,id:n.id})}));var s=n;return this.children.set(n.id,s),o.autoForward&&this.forwardTo.add(n.id),n.onDone((function(t){e.removeChild(n.id),e.send(K(t,{origin:n.id}))})).start(),s},t.prototype.spawnPromise=function(t,r){var i=this,e=!1;t.then((function(t){e||(i.removeChild(r),i.send(K(ht(r,t),{origin:r})))}),(function(t){if(!e){i.removeChild(r);var n=vt(r,t);try{i.send(K(n,{origin:r}))}catch(t){i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}}));var n={id:r,send:function(){},subscribe:function(r,i,e){var n=function(t,r,i){if("object"==typeof t)return t;var e=function(){};return{next:t,error:r||e,complete:i||e}}(r,i,e),o=!1;return t.then((function(t){o||(n.next(t),o||n.complete())}),(function(t){o||n.error(t)})),{unsubscribe:function(){return o=!0}}},stop:function(){e=!0},toJSON:function(){return{id:r}}};return this.children.set(r,n),n},t.prototype.spawnCallback=function(t,r){var i,e=this,n=!1,o=new Set,s=new Set;try{i=t((function(t){s.forEach((function(r){return r(t)})),n||e.send(K(t,{origin:r}))}),(function(t){o.add(t)}))}catch(t){this.send(vt(r,t))}if(_(i))return this.spawnPromise(i,r);var c={id:r,send:function(t){return o.forEach((function(r){return r(t)}))},subscribe:function(t){return s.add(t),{unsubscribe:function(){s.delete(t)}}},stop:function(){n=!0,L(i)&&i()},toJSON:function(){return{id:r}}};return this.children.set(r,c),c},t.prototype.spawnObservable=function(t,r){var i=this,e=t.subscribe((function(t){i.send(K(t,{origin:r}))}),(function(t){i.removeChild(r),i.send(K(vt(r,t),{origin:r}))}),(function(){i.removeChild(r),i.send(K(ht(r),{origin:r}))})),n={id:r,send:function(){},subscribe:function(r,i,e){return t.subscribe(r,i,e)},stop:function(){return e.unsubscribe()},toJSON:function(){return{id:r}}};return this.children.set(r,n),n},t.prototype.spawnActor=function(t){return this.children.set(t.id,t),t},t.prototype.spawnActivity=function(t){var r=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(r){var i=r(this.state.context,t);this.spawnEffect(t.id,i)}},t.prototype.spawnEffect=function(t,r){this.children.set(t,{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:r||void 0,toJSON:function(){return{id:t}}})},t.prototype.attachDev=function(){var t=Pt();if(this.options.devTools&&t&&t.__REDUX_DEVTOOLS_EXTENSION__){var r="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect(u(u({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},r),{features:u({jump:!1,skip:!1},r?r.features:void 0)}),this.machine),this.devTools.init(this.state)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[J]=function(){return this},t.defaultOptions=function(t){return{execute:!0,deferEvents:!0,clock:{setTimeout:function(t,r){return setTimeout(t,r)},clearTimeout:function(t){return clearTimeout(t)}},logger:t.console.log.bind(console),devTools:!1}}("undefined"!=typeof self?self:global),t.interpret=Kt,t}();function Kt(t,r){return new Bt(t,r)}const Wt=({disabled:r,option:i,onRemove:e})=>{const n={};return i.chipColor&&(n.color=i.chipColor),i.chipBackgroundColor&&(n["background-color"]=i.chipBackgroundColor),t("label",{class:"wcs-select-chip",style:n,onClick:t=>t.stopImmediatePropagation()},t("div",null,i.displayText),r?null:t("div",{onClick:()=>e(i)},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"12",viewBox:"0 0 20 12",class:"chip"},t("path",{d:"M2,0 6,4 10,0 12,2 8,6 12,10 10,12 6,8 2,12 0,10 4,6 0,2 2,0",fill:i.chipColor,transform:"translate(8 0)"}))))},$t={key:"select",initial:"closed",states:{closed:{entry:["close"],on:{CLICK:"opened",OPEN:"opened",OPTION_CLICKED:{actions:["selectOption"]}}},opened:{entry:["open"],on:{CLICK:"closed",CLOSE:"closed",OPTION_CLICKED:{actions:["selectOption"]}}}}};let Ft=class{constructor(t){r(this,t),this.wcsChange=i(this,"wcsChange",7),this.wcsFocus=i(this,"wcsFocus",7),this.wcsBlur=i(this,"wcsBlur",7),this.expanded=!1,this.hasLoaded=!1,this.disabled=!1,this.multiple=!1,this.chips=!1,this.compareWith=(t,r)=>o.isEqual(t,r),this.overlayDirection="bottom"}async open(){this.stateService.send("OPEN")}async close(){this.stateService.send("CLOSE")}onValueChangeHandler(t){this.updateSelectedValue(t),this.emitChange(this.value)}updateSelectedValue(t){t||this.reset(),this.multiple?(Array.isArray(t)||(t=[t]),this.values=[],this.options.forEach((r=>{const i=!!t&&-1!==t.findIndex((t=>this.compareWith(r.value,t)));i&&this.values.push({value:r.value,displayText:r.innerText,chipColor:r.chipColor,chipBackgroundColor:r.chipBackgroundColor}),r.selected=i})),this.displayText=0!==this.values.length?this.values.map((t=>t.displayText)).join(", "):void 0):this.options.forEach((r=>{const i=this.compareWith(r.value,t);i&&(this.displayText=r.innerText),r.selected=i}))}reset(){this.values=[],this.displayText=void 0,this.options.forEach((t=>{t.selected=!1}))}componentDidLoad(){this.optionsEl=this.el.shadowRoot.querySelector(".wcs-select-options"),this.controlEl=this.el.shadowRoot.querySelector(".wcs-select-control");const t=function(t,r,i){void 0===i&&(i=t.context);var e="function"==typeof i?i():i;return new Lt(t,r,e)}($t,this.initMachineOptions());this.stateService=Kt(t),this.multiple&&(this.values=[]),this.addRippleEffect(),this.stateService.start(),null===this.optionsEl.querySelector("slot")&&(this.replaceOptions_firefoxBefore63(),this.listenDomUpdate_firefoxBefore63()),void 0!==this.value&&this.updateSelectedValue(this.value),this.hasLoaded=!0}emitChange(t){this.wcsChange.emit({value:t})}replaceOptions_firefoxBefore63(){Array.from(this.el.querySelectorAll("wcs-select-option")).forEach((t=>{t.parentNode===this.el&&(this.el.removeChild(t),this.optionsEl.appendChild(t))}))}listenDomUpdate_firefoxBefore63(){new MutationObserver((t=>{for(const r of t)"childList"===r.type&&this.replaceOptions_firefoxBefore63()})).observe(this.el,{childList:!0})}componentWillUpdate(){this.multiple&&this.options.forEach((t=>t.multiple=!0))}get options(){var t;const r=null===(t=this.el)||void 0===t?void 0:t.querySelectorAll("wcs-select-option");return r&&0!==r.length?r:[]}initMachineOptions(){return{actions:{open:()=>{this.disabled||(this.updateOverlayDirection(),this.expanded=!0,this.focused=!0)},close:()=>{this.focused=!0,this.expanded=!1},selectOption:(t,r)=>{"OPTION_CLICKED"===r.type&&this.handleClickEvent(r.value)}},guards:{enabled:()=>!this.disabled}}}updateOverlayDirection(){const t=+getComputedStyle(this.el).getPropertyValue("--wcs-select-overlay-max-height").replace(/\D/g,""),r=+getComputedStyle(this.el).getPropertyValue("--wcs-select-option-height").replace(/\D/g,""),i=this.el.getBoundingClientRect(),e=Math.floor(t/r),n=window.innerHeight-(i.y+i.height+(this.options.length>e?t+1:this.options.length*r+1));this.overlayDirection=n<0?"top":"bottom"}updateOverlayMargin(){this.controlEl&&this.optionsEl&&(this.optionsEl.style.marginTop="top"===this.overlayDirection?"-"+this.controlEl.getBoundingClientRect().height+"px":"0")}handleClickEvent(t){this.multiple?this.handleClickOnMultiple(t):this.handleNormalClick(t)}handleClickOnMultiple(t){const r=this.values.findIndex((r=>r.value===t.value));if(-1===r){const{value:r,displayText:i,chipColor:e,chipBackgroundColor:n}=t;this.values.push({value:r,displayText:i,chipColor:e,chipBackgroundColor:n}),t.source.selected=!0}else t.source.selected=!1,this.values.splice(r,1);this.updateValueWithValues()}updateValueWithValues(){this.value=this.values.map((t=>t.value)),this.displayText=0!==this.values.length?this.values.map((t=>t.displayText)).join(", "):void 0}handleNormalClick(t){this.options.forEach((t=>{t.selected&&(t.selected=!1)})),t.source.selected=!0,this.value=t.value,this.displayText=t.displayText,this.stateService.send("CLOSE")}disconnectedCallback(){this.stateService.stop()}addRippleEffect(){new a(this.controlEl).unbounded=!1}get hasValue(){return void 0!==this.displayText}onMouseDown(t){const r=c(t.target)&&(t.offsetX>t.target.clientWidth||t.offsetY>t.target.clientHeight),i=t.composedPath().filter((t=>"svg"===t.nodeName&&t.classList.contains("chip"))).length>0;r||i||this.stateService.send("CLICK")}onWindowClickEvent(t){const r=-1!==t.composedPath().map((t=>t.nodeName)).indexOf("WCS-SELECT");this.expanded&&!r&&this.stateService.send("CLOSE")}selectedOptionChanged(t){this.sendOptionClickedToStateMachine(t.detail)}sendOptionClickedToStateMachine(t){this.stateService.send({type:"OPTION_CLICKED",value:t})}onSlotchange(){this.updateSelectedValue(this.value)}removeChip(t){this.options.forEach((r=>{r.value===t.value&&this.sendOptionClickedToStateMachine(Object.assign(Object.assign({},t),{source:r}))}))}render(){return this.hasLoaded&&this.updateStyles(),this.updateOverlayMargin(),t(e,Object.assign({class:this.expanded?"expanded ":"",overlayDirection:this.overlayDirection},this.focusedAttributes()),t("div",{class:"wcs-select-control"},this.hasValue?this.chips?this.values.map((r=>t(Wt,{disabled:this.disabled,option:r,onRemove:this.removeChip.bind(this)}))):t("label",{class:"wcs-select-value"},this.displayText):t("label",{class:"wcs-select-placeholder"},this.placeholder),t(s,{up:this.expanded})),t("div",{class:"wcs-select-options"},t("slot",{name:"wcs-select-option",onSlotchange:this.onSlotchange.bind(this)})))}updateStyles(){this.optionsEl.setAttribute("style",`width: ${Math.ceil(this.el.offsetWidth-2)}px;`)}focusedAttributes(){return this.disabled?{}:{tabIndex:0}}get el(){return n(this)}static get watchers(){return{value:["onValueChangeHandler"]}}};Ft.style='@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}:host{--wcs-select-ligther-percentage:40;--wcs-select-border-radius:var(--wcs-border-radius);--wcs-select-background-color:var(--wcs-light);--wcs-select-placeholder-color:var(--wcs-text-medium);--wcs-select-value-color:var(--wcs-primary);--wcs-select-border-color:transparent;--wcs-select-overlay-max-height:360px;--wcs-select-option-height:42px;display:block;position:relative;outline:none;user-select:none}:host svg{flex-shrink:0}:host .arrow{fill:var(--wcs-select-value-color)}:host .chip{fill:var(--wcs-contrast);opacity:calc((100 - var(--wcs-select-ligther-percentage)) / 100)}:host .chip:hover{opacity:100}:host([class~=expanded][overlaydirection=top]) .wcs-select-control{border:var(--wcs-select-border-color) solid 1px;border-top-left-radius:0;border-top-right-radius:0}:host([class~=expanded][overlaydirection=bottom]) .wcs-select-control{border:var(--wcs-select-border-color) solid 1px;border-bottom-left-radius:0;border-bottom-right-radius:0}:host(.expanded){--wcs-select-border-color:var(--wcs-text-light)}:host(.expanded) .wcs-select-options{display:block}:host(:not(.expanded):focus) .wcs-select-control{border:var(--wcs-primary) solid 1px}:host([disabled]) .wcs-select-control,:host([disabled]) label{cursor:default;pointer-events:none}:host([disabled]) label{color:var(--wcs-text-disabled)}:host([disabled]) .arrow{fill:var(--wcs-text-medium)}label{padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);font-weight:500;cursor:pointer;color:var(--wcs-select-color);transition:color 125ms ease-in;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([chips]) .wcs-select-control{flex-wrap:wrap}.wcs-select-control{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;overflow:hidden;display:flex;align-items:center;padding-right:var(--wcs-text-padding);background-color:var(--wcs-select-background-color);border-radius:var(--wcs-select-border-radius);border:var(--wcs-select-border-color) solid 1px;font-size:1rem;line-height:1.5;cursor:pointer}.wcs-select-control::before,.wcs-select-control::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.wcs-select-control::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.wcs-select-control::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.wcs-select-control.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.wcs-select-control.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.wcs-select-control.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.wcs-select-control.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.wcs-select-control.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.wcs-select-control::before,.wcs-select-control::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.wcs-select-control.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.wcs-select-control::before,.wcs-select-control::after{background-color:#999;background-color:var(--mdc-ripple-color, #999)}.wcs-select-control:hover::before,.wcs-select-control.mdc-ripple-surface--hover::before{opacity:0.1;opacity:var(--mdc-ripple-hover-opacity, 0.1)}.wcs-select-control.mdc-ripple-upgraded--background-focused::before,.wcs-select-control:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.wcs-select-control:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.wcs-select-control:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.3;opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-select-control.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.3)}.wcs-select-placeholder{color:var(--wcs-select-placeholder-color);font-style:italic;font-weight:400}.wcs-select-value{color:var(--wcs-select-value-color);font-weight:var(--wcs-font-weight-form-value)}.wcs-select-chip{color:var(--wcs-contrast);background-color:var(--wcs-base);border-radius:0.75rem;display:flex;align-items:center;margin:calc(var(--wcs-base-margin) / 2);padding:calc((var(--wcs-padding) - 8px) / 2) var(--wcs-padding);overflow:initial}:host([overlaydirection=top]) .wcs-select-options{-webkit-transform:translateY(-100%);transform:translateY(-100%);border-left:var(--wcs-select-border-color) solid 1px;border-right:var(--wcs-select-border-color) solid 1px;border-top:var(--wcs-select-border-color) solid 1px;border-top-right-radius:var(--wcs-border-radius);border-top-left-radius:var(--wcs-border-radius)}:host([overlaydirection=bottom]) .wcs-select-options{border-left:var(--wcs-select-border-color) solid 1px;border-right:var(--wcs-select-border-color) solid 1px;border-bottom:var(--wcs-select-border-color) solid 1px;border-bottom-right-radius:var(--wcs-border-radius);border-bottom-left-radius:var(--wcs-border-radius)}.wcs-select-options{display:none;position:absolute;z-index:1;margin:0;max-height:var(--wcs-select-overlay-max-height);overflow-y:auto;background-color:var(--wcs-white);color:var(--wcs-text-medium)}';let Rt=class{constructor(t){r(this,t),this.wcsSelectOptionClick=i(this,"wcsSelectOptionClick",7),this.disabled=!1,this.selected=!1,this.multiple=!1}componentWillLoad(){void 0===this.value&&(this.value=this.el.innerText||"")}componentDidLoad(){this.mdcRipple=new a(this.el)}onMouseDown(t){this.disabled||(t.stopPropagation(),this.wcsSelectOptionClick.emit({source:this.el,value:this.value,displayText:this.el.innerText}))}render(){return t(e,{slot:"wcs-select-option"},this.multiple&&t("wcs-checkbox",{checked:this.selected}),t("slot",null))}get el(){return n(this)}};Rt.style='@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}wcs-select-option{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity;overflow:hidden;display:flex;padding:0 var(--wcs-padding);height:var(--wcs-select-option-height);line-height:42px;cursor:pointer;user-select:none;font-weight:500;font-size:1rem;color:var(--wcs-black)}wcs-select-option::before,wcs-select-option::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}wcs-select-option::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}wcs-select-option::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}wcs-select-option.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}wcs-select-option.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}wcs-select-option.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}wcs-select-option.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}wcs-select-option.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}wcs-select-option::before,wcs-select-option::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}wcs-select-option.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}wcs-select-option::before,wcs-select-option::after{background-color:#999;background-color:var(--mdc-ripple-color, #999)}wcs-select-option:hover::before,wcs-select-option.mdc-ripple-surface--hover::before{opacity:0.1;opacity:var(--mdc-ripple-hover-opacity, 0.1)}wcs-select-option.mdc-ripple-upgraded--background-focused::before,wcs-select-option:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}wcs-select-option:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}wcs-select-option:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.3;opacity:var(--mdc-ripple-press-opacity, 0.3)}wcs-select-option.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.3)}wcs-select-option:hover{color:var(--wcs-primary);background-color:var(--wcs-light)}wcs-select-option[disabled]{cursor:default;pointer-events:none;color:var(--wcs-text-disabled)}wcs-select-option[selected]{color:var(--wcs-primary);background-color:var(--wcs-light)}wcs-select-option[multiple] wcs-checkbox{pointer-events:none;margin-right:10px}wcs-select-option[multiple]:hover wcs-checkbox{--wcs-checkbox-border-color:var(--wcs-primary)}';export{Ft as wcs_select,Rt as wcs_select_option}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return"clientWidth"in e&&"clientHeight"in e}function n(e){return!!e.shadowRoot&&!!e.attachShadow}const t=(e,n)=>{const t=e._original||e;return{_original:e,emit:i(t.emit.bind(t),n)}},i=(e,n=0)=>{let t;return(...i)=>{clearTimeout(t),t=setTimeout(e,n,...i)}},o=(e,n=[])=>{const t={};return n.forEach((n=>{e.hasAttribute(n)&&(null!==e.getAttribute(n)&&(t[n]=e.getAttribute(n)),e.removeAttribute(n))})),t},r=e=>{const n=e.closest("wcs-form-field");return n?n.querySelector("wcs-label"):null},s=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),a=(e,n)=>e.x>=n.getBoundingClientRect().x&&e.x<=n.getBoundingClientRect().x+n.getBoundingClientRect().width&&e.y>=n.getBoundingClientRect().y&&e.y<=n.getBoundingClientRect().y+n.getBoundingClientRect().height,u=(e,n)=>e.target instanceof Node&&n.contains(e.target);export{a,e as b,u as c,t as d,r as f,n as h,o as i,s as r}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t="top",n="bottom",e="right",r="left",o=[t,n,e,r],i=o.reduce((function(t,n){return t.concat([n+"-start",n+"-end"])}),[]),a=[].concat(o,["auto"]).reduce((function(t,n){return t.concat([n,n+"-start",n+"-end"])}),[]),u=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function f(t){return t?(t.nodeName||"").toLowerCase():null}function c(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function p(t){return t instanceof c(t).Element||t instanceof Element}function d(t){return t instanceof c(t).HTMLElement||t instanceof HTMLElement}function s(t){return"undefined"!=typeof ShadowRoot&&(t instanceof c(t).ShadowRoot||t instanceof ShadowRoot)}const l={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},o=n.elements[t];d(o)&&f(o)&&(Object.assign(o.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?o.removeAttribute(t):o.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],o=n.attributes[t]||{},i=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});d(r)&&f(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]};function v(t){return t.split("-")[0]}var b=Math.round;function h(t,n){void 0===n&&(n=!1);var e=t.getBoundingClientRect(),r=1,o=1;return d(t)&&n&&(r=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1),{width:b(e.width/r),height:b(e.height/o),top:b(e.top/o),right:b(e.right/r),bottom:b(e.bottom/o),left:b(e.left/r),x:b(e.left/r),y:b(e.top/o)}}function m(t){var n=h(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function y(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&s(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function w(t){return c(t).getComputedStyle(t)}function O(t){return["table","td","th"].indexOf(f(t))>=0}function g(t){return((p(t)?t.ownerDocument:t.document)||window.document).documentElement}function x(t){return"html"===f(t)?t:t.assignedSlot||t.parentNode||(s(t)?t.host:null)||g(t)}function j(t){return d(t)&&"fixed"!==w(t).position?t.offsetParent:null}function M(t){for(var n=c(t),e=j(t);e&&O(e)&&"static"===w(e).position;)e=j(e);return e&&("html"===f(e)||"body"===f(e)&&"static"===w(e).position)?n:e||function(t){var n=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&d(t)&&"fixed"===w(t).position)return null;for(var e=x(t);d(e)&&["html","body"].indexOf(f(e))<0;){var r=w(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function k(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var E=Math.max,q=Math.min,B=Math.round;function P(t,n,e){return E(t,q(n,e))}function R(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function S(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}var W={top:"auto",right:"auto",bottom:"auto",left:"auto"};function L(o){var i,a=o.popper,u=o.popperRect,f=o.placement,p=o.offsets,d=o.position,s=o.gpuAcceleration,l=o.adaptive,v=o.roundOffsets,b=!0===v?function(t){var n=t.y,e=window.devicePixelRatio||1;return{x:B(B(t.x*e)/e)||0,y:B(B(n*e)/e)||0}}(p):"function"==typeof v?v(p):p,h=b.x,m=void 0===h?0:h,y=b.y,O=void 0===y?0:y,x=p.hasOwnProperty("x"),j=p.hasOwnProperty("y"),k=r,E=t,q=window;if(l){var P=M(a),R="clientHeight",S="clientWidth";P===c(a)&&"static"!==w(P=g(a)).position&&(R="scrollHeight",S="scrollWidth"),P=P,f===t&&(E=n,O-=P[R]-u.height,O*=s?1:-1),f===r&&(k=e,m-=P[S]-u.width,m*=s?1:-1)}var L,T=Object.assign({position:d},l&&W);return Object.assign({},T,s?((L={})[E]=j?"0":"",L[k]=x?"0":"",L.transform=(q.devicePixelRatio||1)<2?"translate("+m+"px, "+O+"px)":"translate3d("+m+"px, "+O+"px, 0)",L):((i={})[E]=j?O+"px":"",i[k]=x?m+"px":"",i.transform="",i))}var T={passive:!0},H={left:"right",right:"left",bottom:"top",top:"bottom"};function I(t){return t.replace(/left|right|bottom|top/g,(function(t){return H[t]}))}var A={start:"end",end:"start"};function z(t){return t.replace(/start|end/g,(function(t){return A[t]}))}function C(t){var n=c(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function D(t){return h(g(t)).left+C(t).scrollLeft}function U(t){var n=w(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function V(t){return["html","body","#document"].indexOf(f(t))>=0?t.ownerDocument.body:d(t)&&U(t)?t:V(x(t))}function _(t,n){var e;void 0===n&&(n=[]);var r=V(t),o=r===(null==(e=t.ownerDocument)?void 0:e.body),i=c(r),a=o?[i].concat(i.visualViewport||[],U(r)?r:[]):r,u=n.concat(a);return o?u:u.concat(_(x(a)))}function F(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function G(t,n){return"viewport"===n?F(function(t){var n=c(t),e=g(t),r=n.visualViewport,o=e.clientWidth,i=e.clientHeight,a=0,u=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:o,height:i,x:a+D(t),y:u}}(t)):d(n)?function(t){var n=h(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(n):F(function(t){var n,e=g(t),r=C(t),o=null==(n=t.ownerDocument)?void 0:n.body,i=E(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=E(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+D(t),f=-r.scrollTop;return"rtl"===w(o||e).direction&&(u+=E(e.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:f}}(g(t)))}function J(t){return t.split("-")[1]}function K(o){var i,a=o.reference,u=o.element,f=o.placement,c=f?v(f):null,p=f?J(f):null,d=a.x+a.width/2-u.width/2,s=a.y+a.height/2-u.height/2;switch(c){case t:i={x:d,y:a.y-u.height};break;case n:i={x:d,y:a.y+a.height};break;case e:i={x:a.x+a.width,y:s};break;case r:i={x:a.x-u.width,y:s};break;default:i={x:a.x,y:a.y}}var l=c?k(c):null;if(null!=l){var b="y"===l?"height":"width";switch(p){case"start":i[l]=i[l]-(a[b]/2-u[b]/2);break;case"end":i[l]=i[l]+(a[b]/2-u[b]/2)}}return i}function N(r,i){void 0===i&&(i={});var a=i.placement,u=void 0===a?r.placement:a,c=i.boundary,s=void 0===c?"clippingParents":c,l=i.rootBoundary,v=void 0===l?"viewport":l,b=i.elementContext,m=void 0===b?"popper":b,O=i.altBoundary,j=void 0!==O&&O,k=i.padding,B=void 0===k?0:k,P=R("number"!=typeof B?B:S(B,o)),W=r.elements.reference,L=r.rects.popper,T=r.elements[j?"popper"===m?"reference":"popper":m],H=function(t,n,e){var r="clippingParents"===n?function(t){var n=_(x(t)),e=["absolute","fixed"].indexOf(w(t).position)>=0&&d(t)?M(t):t;return p(e)?n.filter((function(t){return p(t)&&y(t,e)&&"body"!==f(t)})):[]}(t):[].concat(n),o=[].concat(r,[e]),i=o.reduce((function(n,e){var r=G(t,e);return n.top=E(r.top,n.top),n.right=q(r.right,n.right),n.bottom=q(r.bottom,n.bottom),n.left=E(r.left,n.left),n}),G(t,o[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(p(T)?T:T.contextElement||g(r.elements.popper),s,v),I=h(W),A=K({reference:I,element:L,strategy:"absolute",placement:u}),z=F(Object.assign({},L,A)),C="popper"===m?z:I,D={top:H.top-C.top+P.top,bottom:C.bottom-H.bottom+P.bottom,left:H.left-C.left+P.left,right:C.right-H.right+P.right},U=r.modifiersData.offset;if("popper"===m&&U){var V=U[u];Object.keys(D).forEach((function(r){var o=[e,n].indexOf(r)>=0?1:-1,i=[t,n].indexOf(r)>=0?"y":"x";D[r]+=V[i]*o}))}return D}function Q(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,u=n.padding,f=n.flipVariations,c=n.allowedAutoPlacements,p=void 0===c?a:c,d=J(n.placement),s=d?f?i:i.filter((function(t){return J(t)===d})):o,l=s.filter((function(t){return p.indexOf(t)>=0}));0===l.length&&(l=s);var b=l.reduce((function(n,o){return n[o]=N(t,{placement:o,boundary:e,rootBoundary:r,padding:u})[v(o)],n}),{});return Object.keys(b).sort((function(t,n){return b[t]-b[n]}))}function X(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function Y(o){return[t,e,n,r].some((function(t){return o[t]>=0}))}function Z(t,n,e){void 0===e&&(e=!1);var r,o,i=d(n),a=d(n)&&function(t){var n=t.getBoundingClientRect();return 1!==(n.width/t.offsetWidth||1)||1!==(n.height/t.offsetHeight||1)}(n),u=g(n),p=h(t,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==f(n)||U(u))&&(s=(r=n)!==c(r)&&d(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:C(r)),d(n)?((l=h(n,!0)).x+=n.clientLeft,l.y+=n.clientTop):u&&(l.x=D(u))),{x:p.left+s.scrollLeft-l.x,y:p.top+s.scrollTop-l.y,width:p.width,height:p.height}}function $(t){var n=new Map,e=new Set,r=[];function o(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&o(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||o(t)})),r}var tt={placement:"bottom",modifiers:[],strategy:"absolute"};function nt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function et(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?tt:r;return function(t,n,r){void 0===r&&(r=o);var i,a,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},tt,o),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},c=[],d=!1,s={state:f,setOptions:function(r){l(),f.options=Object.assign({},o,f.options,r),f.scrollParents={reference:p(t)?_(t):t.contextElement?_(t.contextElement):[],popper:_(n)};var i,a,d=function(t){var n=$(t);return u.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((i=[].concat(e,f.options.modifiers),a=i.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(a).map((function(t){return a[t]}))));return f.orderedModifiers=d.filter((function(t){return t.enabled})),f.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:f,name:t.name,instance:s,options:void 0===n?{}:n});c.push(r||function(){})}})),s.update()},forceUpdate:function(){if(!d){var t=f.elements,n=t.reference,e=t.popper;if(nt(n,e)){f.rects={reference:Z(n,M(e),"fixed"===f.options.strategy),popper:m(e)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(t){return f.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var o=f.orderedModifiers[r],i=o.fn,a=o.options;"function"==typeof i&&(f=i({state:f,options:void 0===a?{}:a,name:o.name,instance:s})||f)}else f.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(t){s.forceUpdate(),t(f)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(i())}))}))),a}),destroy:function(){l(),d=!0}};if(!nt(t,n))return s;function l(){c.forEach((function(t){return t()})),c=[]}return s.setOptions(r).then((function(t){!d&&r.onFirstUpdate&&r.onFirstUpdate(t)})),s}}var rt=et({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,o=r.scroll,i=void 0===o||o,a=r.resize,u=void 0===a||a,f=c(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return i&&p.forEach((function(t){t.addEventListener("scroll",e.update,T)})),u&&f.addEventListener("resize",e.update,T),function(){i&&p.forEach((function(t){t.removeEventListener("scroll",e.update,T)})),u&&f.removeEventListener("resize",e.update,T)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=K({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,o=void 0===r||r,i=e.adaptive,a=void 0===i||i,u=e.roundOffsets,f=void 0===u||u,c={placement:v(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,L(Object.assign({},c,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:f})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,L(Object.assign({},c,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},l,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(n){var o=n.state,i=n.name,u=n.options.offset,f=void 0===u?[0,0]:u,c=a.reduce((function(n,i){return n[i]=function(n,o,i){var a=v(n),u=[r,t].indexOf(a)>=0?-1:1,f="function"==typeof i?i(Object.assign({},o,{placement:n})):i,c=f[0],p=f[1];return c=c||0,p=(p||0)*u,[r,e].indexOf(a)>=0?{x:p,y:c}:{x:c,y:p}}(i,o.rects,f),n}),{}),p=c[o.placement],d=p.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=p.x,o.modifiersData.popperOffsets.y+=d),o.modifiersData[i]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(o){var i=o.state,a=o.options,u=o.name;if(!i.modifiersData[u]._skip){for(var f=a.mainAxis,c=void 0===f||f,p=a.altAxis,d=void 0===p||p,s=a.fallbackPlacements,l=a.padding,b=a.boundary,h=a.rootBoundary,m=a.altBoundary,y=a.flipVariations,w=void 0===y||y,O=a.allowedAutoPlacements,g=i.options.placement,x=v(g),j=s||(x!==g&&w?function(t){if("auto"===v(t))return[];var n=I(t);return[z(t),n,z(n)]}(g):[I(g)]),M=[g].concat(j).reduce((function(t,n){return t.concat("auto"===v(n)?Q(i,{placement:n,boundary:b,rootBoundary:h,padding:l,flipVariations:w,allowedAutoPlacements:O}):n)}),[]),k=i.rects.reference,E=i.rects.popper,q=new Map,B=!0,P=M[0],R=0;R<M.length;R++){var S=M[R],W=v(S),L="start"===J(S),T=[t,n].indexOf(W)>=0,H=T?"width":"height",A=N(i,{placement:S,boundary:b,rootBoundary:h,altBoundary:m,padding:l}),C=T?L?e:r:L?n:t;k[H]>E[H]&&(C=I(C));var D=I(C),U=[];if(c&&U.push(A[W]<=0),d&&U.push(A[C]<=0,A[D]<=0),U.every((function(t){return t}))){P=S,B=!1;break}q.set(S,U)}if(B)for(var V=function(t){var n=M.find((function(n){var e=q.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return P=n,"break"},_=w?3:1;_>0&&"break"!==V(_);_--);i.placement!==P&&(i.modifiersData[u]._skip=!0,i.placement=P,i.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var i=o.state,a=o.options,u=o.name,f=a.mainAxis,c=void 0===f||f,p=a.altAxis,d=void 0!==p&&p,s=a.tether,l=void 0===s||s,b=a.tetherOffset,h=void 0===b?0:b,y=N(i,{boundary:a.boundary,rootBoundary:a.rootBoundary,padding:a.padding,altBoundary:a.altBoundary}),w=v(i.placement),O=J(i.placement),g=!O,x=k(w),j="x"===x?"y":"x",B=i.modifiersData.popperOffsets,R=i.rects.reference,S=i.rects.popper,W="function"==typeof h?h(Object.assign({},i.rects,{placement:i.placement})):h,L={x:0,y:0};if(B){if(c||d){var T="y"===x?t:r,H="y"===x?n:e,I="y"===x?"height":"width",A=B[x],z=B[x]+y[T],C=B[x]-y[H],D=l?-S[I]/2:0,U="start"===O?R[I]:S[I],V="start"===O?-S[I]:-R[I],_=i.elements.arrow,F=l&&_?m(_):{width:0,height:0},G=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=G[T],Q=G[H],X=P(0,R[I],F[I]),Y=g?R[I]/2-D-X-K-W:U-X-K-W,Z=g?-R[I]/2+D+X+Q+W:V+X+Q+W,$=i.elements.arrow&&M(i.elements.arrow),tt=i.modifiersData.offset?i.modifiersData.offset[i.placement][x]:0,nt=B[x]+Y-tt-($?"y"===x?$.clientTop||0:$.clientLeft||0:0),et=B[x]+Z-tt;if(c){var rt=P(l?q(z,nt):z,A,l?E(C,et):C);B[x]=rt,L[x]=rt-A}if(d){var ot=B[j],it=ot+y["x"===x?t:r],at=ot-y["x"===x?n:e],ut=P(l?q(it,nt):it,ot,l?E(at,et):at);B[j]=ut,L[j]=ut-ot}}i.modifiersData[u]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(i){var a,u=i.state,f=i.name,c=i.options,p=u.elements.arrow,d=u.modifiersData.popperOffsets,s=v(u.placement),l=k(s),b=[r,e].indexOf(s)>=0?"height":"width";if(p&&d){var h=function(t,n){return R("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:S(t,o))}(c.padding,u),y=m(p),w="y"===l?t:r,O="y"===l?n:e,g=u.rects.reference[b]+u.rects.reference[l]-d[l]-u.rects.popper[b],x=d[l]-u.rects.reference[l],j=M(p),E=j?"y"===l?j.clientHeight||0:j.clientWidth||0:0,q=E/2-y[b]/2+(g/2-x/2),B=P(h[w],q,E-y[b]-h[O]);u.modifiersData[f]=((a={})[l]=B,a.centerOffset=B-q,a)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&y(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,o=n.rects.popper,i=n.modifiersData.preventOverflow,a=N(n,{elementContext:"reference"}),u=N(n,{altBoundary:!0}),f=X(a,r),c=X(u,o,i),p=Y(f),d=Y(c);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:d},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":d})}}]});export{l as a,rt as c}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as i}from"./p-f46e6c3c.js";let n=class{constructor(e){t(this,e)}render(){return e(i,null,e("div",{class:"container"},e("div",{class:"container-left"},e("div",{class:"app-name"},this.appName,e("slot",{name:"app-name"})),e("div",{class:"menu-bar"},e("slot",null))),e("div",null,e("slot",{name:"actions"}))))}};n.style=':host{display:block;position:relative;height:75px;border-bottom:solid 1px var(--wcs-text-light)}:host .container{margin:0 auto;height:100%;display:flex;align-items:center;flex-direction:row;justify-content:space-between;max-width:var(--wcs-com-content-max-width)}:host .container-left{display:flex;height:100%;align-items:center;flex-direction:row}:host .app-name{font-weight:300;font-size:1.5rem;line-height:1.25;color:var(--wcs-gray)}:host .menu-bar{display:flex;align-items:center;height:100%;margin-left:50px}:host .menu-bar ::slotted(*:not(:first-child)){margin-left:40px}:host ::slotted(a){display:flex;align-items:center;height:100%;font-size:16px;cursor:pointer;font-weight:500;color:var(--wcs-gray);text-decoration:none}:host ::slotted(a):after{font-family:icons;padding-left:var(--wcs-base-margin);font-size:0.6rem;content:"\\f107";line-height:1;box-sizing:border-box}';export{n as wcs_com_nav}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as r}from"./p-f46e6c3c.js";let a=class{constructor(e){t(this,e)}hostData(){return{slot:"header"}}__stencil_render(){return e("header",null,e("slot",{name:"logo"}),e("slot",{name:"title"}),e("slot",{name:"actions"}))}render(){return e(r,this.hostData(),this.__stencil_render())}};a.style="header{box-shadow:0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);display:flex;align-items:center;background:var(--wcs-gray);padding:8px 8px 8px 16px;height:48px;z-index:1}::slotted(img){width:70px;height:36.8px;margin-right:16px}::slotted(h1){color:var(--wcs-white);margin:0;font-weight:500;font-size:1.5rem}::slotted([slot=actions]){margin-left:auto}";export{a as wcs_header}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as l,h as s,H as r}from"./p-f46e6c3c.js";let e=class{constructor(s){l(this,s)}render(){return s(r,{slot:"label"},s("slot",null))}};export{e as wcs_field_label}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as s}from"./p-f46e6c3c.js";let t=class{constructor(s){r(this,s)}render(){return s("slot",null)}};t.style=":host{flex:1 1 auto;padding:var(--wcs-padding)}";export{t as wcs_card_body}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as L,h as M,H as w,g as j}from"./p-f46e6c3c.js";let u=class{constructor(M){L(this,M),this.show=!1}render(){return M(w,null,M("div",{class:"container"},M("div",{class:"container-left"},M("img",{src:s,id:"sncf-logo",alt:"Logo SNCF"}),M("span",null,this.text)),M("div",{class:"menu"},M("slot",null))))}get el(){return j(this)}};const s="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdmcgdmVyc2lvbj0iMS4wIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMzIgMzIiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KCTxsaW5lYXJHcmFkaWVudCBpZD0iU1ZHX0dSQURJRU5UIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAiIHkxPSIxNiIgeDI9IjMxLjk1OTMiIHkyPSIxNiI+DQoJCTxzdG9wICBvZmZzZXQ9IjAiIHN0eWxlPSJzdG9wLWNvbG9yOiM4MzJGNzAiLz4NCgkJPHN0b3AgIG9mZnNldD0iMC4yNDcyIiBzdHlsZT0ic3RvcC1jb2xvcjojQUMyODdDIi8+DQoJCTxzdG9wICBvZmZzZXQ9IjAuODE0NiIgc3R5bGU9InN0b3AtY29sb3I6I0RGMjUzMCIvPg0KCQk8c3RvcCAgb2Zmc2V0PSIxIiBzdHlsZT0ic3RvcC1jb2xvcjojREYyNTMwIi8+DQoJPC9saW5lYXJHcmFkaWVudD4NCgk8cGF0aCBmaWxsPSJ1cmwoI1NWR19HUkFESUVOVCkiIGQ9Ik0wLjYsNy43QzAuMiw3LjcsMCw3LjgsMCw4LjJ2MTUuN2MwLDAuMywwLjIsMC41LDAuNSwwLjVoMjhjMC4zLDAsMC41LDAsMC42LTAuNGMwLDAsMi44LTguOSwyLjktOSBjMC4xLTAuMywwLTAuNS0wLjMtMC43QzIyLjYsOC41LDguOSw3LjYsMi44LDcuNkMxLjksNy42LDEuMSw3LjYsMC42LDcuN3oiLz4NCgk8cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNNi40LDE3LjdjLTEtMC41LTEuNy0wLjgtMS42LTEuM0M1LDE1LjgsNi4xLDE1LjYsNywxNS42YzAuNSwwLDAuOCwwLjEsMS4yLDAuMmwwLjMtMS4xIGMtMC41LTAuMS0wLjgtMC4xLTEuNC0wLjFjLTEuOSwwLTMuNiwwLjUtNCwxLjZjLTAuNSwxLjMsMC45LDIsMi4yLDIuNmMxLDAuNSwxLjgsMC45LDEuNSwxLjVjLTAuMiwwLjUtMC45LDAuNy0yLDAuNyBjLTAuOSwwLTItMC4zLTIuOS0wLjdsLTAuNSwxLjFjMC42LDAuMywyLDAuNywzLjEsMC43YzIuMSwwLDMuNS0wLjUsNC4xLTEuN0M5LjMsMTkuMSw3LjcsMTguMyw2LjQsMTcuN3oiLz4NCgk8cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNOS4zLDE5LjZDOS4zLDE5LjcsOS4zLDE5LjcsOS4zLDE5LjZjMC4xLDAsMC4xLDAsMC4xLDBjMCwwLDEtMy4yLDEtMy4yYzEuMSwxLjUsMi4xLDMuNSwyLjcsNS42aDEuNyBsMC45LTIuN2MwLDAsMCwwLDAuMSwwYzAsMCwwLDAsMC4xLDBjMC4zLDEuNywxLjksMi44LDQuMywyLjhjMS41LDAsMi45LTAuNCwzLjItMC42bDAuOS0yLjhoMy40bDAuMy0xLjFoLTMuNGwwLjYtMS44aDQuMSBsMC40LTEuMWgtNS43bC0xLjksNi4xYy0wLjQsMC4xLTAuOSwwLjItMS41LDAuMmMtMS4xLDAtMi4xLTAuMy0yLjYtMC45Yy0wLjQtMC41LTAuNS0xLTAuNC0xLjdjMC4yLTEuNiwxLjgtMi42LDMuOC0yLjYgYzAuNCwwLDAuOSwwLDEuMywwLjFsMC40LTEuMmMtMC41LTAuMS0xLjEtMC4xLTEuNy0wLjFjLTEuOCwwLTMuNCwwLjYtNC40LDEuN2MwLDAtMC4xLDAtMC4xLDBjMCwwLTAuMSwwLDAsMGwwLjUtMS42aC0xLjUgTDE0LDE5LjhjLTAuNS0xLjUtMS42LTMuNS0yLjktNS4xSDkuNWwtMS4yLDMuN0M4LjksMTguOCw5LjEsMTkuMiw5LjMsMTkuNnoiLz4NCjwvc3ZnPg0K";u.style=":host{display:block;background-color:var(--wcs-gray)}.container{height:32px;align-items:center;justify-content:space-between;color:var(--wcs-white);font-size:14px;display:flex;max-width:var(--wcs-com-content-max-width);margin:0 auto}.container #sncf-logo{height:32px;margin-right:20px}.container .container-left{display:flex;align-items:center}";export{u as wcs_galactic}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e}from"./p-f46e6c3c.js";let o=class{constructor(e){t(this,e),this.text=""}render(){return e("a",{href:this.href,class:"wcs-nav-item-container"},e("slot",null),e("span",{class:"wcs-nav-item-text"},this.text))}};o.style="wcs-nav-item{display:block;cursor:pointer}wcs-nav-item a{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;text-align:center;background-color:transparent;border:none;text-decoration:none;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;height:5rem;font-size:0.75rem;color:var(--wcs-contrast)}wcs-nav-item a:not(.active){border-bottom:1px solid rgba(255, 255, 255, 0.2)}@media (max-width: 1199px){wcs-nav-item a{display:flex;flex:1;height:3.25rem;font-size:0.625rem;color:var(--wcs-text-medium)}}wcs-nav-item i{margin-bottom:0.5rem;display:inline-block}@media (max-width: 1199px){wcs-nav-item i{margin-bottom:0.25rem;display:inline-block}}@media (min-width: 1200px){wcs-nav-item[slot=bottom] a{border-top:1px solid rgba(255, 255, 255, 0.2);border-bottom:none}}.wcs-nav-item-text{font-weight:500}.active,wcs-nav-item:hover,wcs-nav-item:focus-within{background-blend-mode:multiply;background-color:rgba(0, 0, 0, 0.15);}@media (max-width: 1199px){.active,wcs-nav-item:hover,wcs-nav-item:focus-within{background-color:unset}.active a,wcs-nav-item:hover a,wcs-nav-item:focus-within a{color:var(--wcs-primary)}}";export{o as wcs_nav_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as n}from"./p-f46e6c3c.js";let o=class{constructor(e){t(this,e)}render(){return e(n,null,e("div",{class:"container"},e("div",null,e("slot",null)),e("div",{class:"end"},e("div",null,e("slot",{name:"end-left"})),e("div",null,e("slot",{name:"end-right"})))))}};o.style=":host{display:block;width:100%;background-color:var(--wcs-gray);color:white}:host .end{margin-top:calc(2 * var(--wcs-base-margin));width:100%;display:flex;justify-content:space-between;align-items:center}:host .end slot[name=end-left]::slotted(a){color:var(--wcs-text-disabled);text-decoration:none;font-size:14px;font-weight:500;margin-right:35px}:host .end slot[name=end-left]::slotted(a:hover){color:var(--wcs-white)}:host .container{margin:0 auto;max-width:var(--wcs-com-content-max-width);display:flex;flex-direction:column;padding:20px}";export{o as wcs_footer}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{r as n,h as t,H as e,g as o}from"./p-f46e6c3c.js";import{a as i,c as r}from"./p-d3c9a644.js";
|
|
2
|
+
/**!
|
|
3
|
+
* tippy.js v6.3.7
|
|
4
|
+
* (c) 2017-2021 atomiks
|
|
5
|
+
* MIT License
|
|
6
|
+
*/var u={passive:!0,capture:!0},a=function(){return document.body};function c(n,t,e){if(Array.isArray(n)){var o=n[t];return null==o?Array.isArray(e)?e[t]:e:o}return n}function f(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1}function s(n,t){return"function"==typeof n?n.apply(void 0,t):n}function d(n,t){return 0===t?n:function(o){clearTimeout(e),e=setTimeout((function(){n(o)}),t)};var e}function p(n){return[].concat(n)}function l(n,t){-1===n.indexOf(t)&&n.push(t)}function v(n){return[].slice.call(n)}function m(n){return Object.keys(n).reduce((function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t}),{})}function h(){return document.createElement("div")}function b(n){return["Element","Fragment"].some((function(t){return f(n,t)}))}function y(n,t){n.forEach((function(n){n&&(n.style.transitionDuration=t+"ms")}))}function g(n,t){n.forEach((function(n){n&&n.setAttribute("data-state",t)}))}function w(n,t,e){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){n[o](t,e)}))}function O(n,t){for(var e=t;e;){var o;if(n.contains(e))return!0;e=null==e.getRootNode||null==(o=e.getRootNode())?void 0:o.host}return!1}var j={isTouch:!1},T=0;function x(){j.isTouch||(j.isTouch=!0,window.performance&&document.addEventListener("mousemove",k))}function k(){var n=performance.now();n-T<20&&(j.isTouch=!1,document.removeEventListener("mousemove",k)),T=n}function C(){var n,t=document.activeElement;(n=t)&&n._tippy&&n._tippy.reference===n&&t.blur&&!t._tippy.state.isVisible&&t.blur()}var A=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),P=Object.assign({appendTo:a,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),S=Object.keys(P);function U(n){var t=(n.plugins||[]).reduce((function(t,e){var o,i=e.name;return i&&(t[i]=void 0!==n[i]?n[i]:null!=(o=P[i])?o:e.defaultValue),t}),{});return Object.assign({},n,t)}function H(n,t){var e=Object.assign({},t,{content:s(t.content,[n])},t.ignoreAttributes?{}:function(n,t){return(t?Object.keys(U(Object.assign({},P,{plugins:t}))):S).reduce((function(t,e){var o=(n.getAttribute("data-tippy-"+e)||"").trim();if(!o)return t;if("content"===e)t[e]=o;else try{t[e]=JSON.parse(o)}catch(n){t[e]=o}return t}),{})}(n,t.plugins));return e.aria=Object.assign({},P.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function W(n,t){n.innerHTML=t}function B(n){var t=h();return!0===n?t.className="tippy-arrow":(t.className="tippy-svg-arrow",b(n)?t.appendChild(n):W(t,n)),t}function E(n,t){b(t.content)?(W(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?W(n,t.content):n.textContent=t.content)}function F(n){var t=n.firstElementChild,e=v(t.children);return{box:t,content:e.find((function(n){return n.classList.contains("tippy-content")})),arrow:e.find((function(n){return n.classList.contains("tippy-arrow")||n.classList.contains("tippy-svg-arrow")})),backdrop:e.find((function(n){return n.classList.contains("tippy-backdrop")}))}}function M(n){var t=h(),e=h();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var o=h();function i(e,o){var i=F(t),r=i.box,u=i.content,a=i.arrow;o.theme?r.setAttribute("data-theme",o.theme):r.removeAttribute("data-theme"),"string"==typeof o.animation?r.setAttribute("data-animation",o.animation):r.removeAttribute("data-animation"),o.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?r.setAttribute("role",o.role):r.removeAttribute("role"),e.content===o.content&&e.allowHTML===o.allowHTML||E(u,n.props),o.arrow?a?e.arrow!==o.arrow&&(r.removeChild(a),r.appendChild(B(o.arrow))):r.appendChild(B(o.arrow)):a&&r.removeChild(a)}return o.className="tippy-content",o.setAttribute("data-state","hidden"),E(o,n.props),t.appendChild(e),e.appendChild(o),i(n.props,n.props),{popper:t,onUpdate:i}}M.$$tippy=!0;var D=1,L=[],R=[];function q(n,t){var e,o,i,b,T,x,k,C,S=H(n,Object.assign({},P,U(m(t)))),W=!1,B=!1,E=!1,M=!1,q=[],I=d(gn,S.interactiveDebounce),N=D++,$=(C=S.plugins).filter((function(n,t){return C.indexOf(n)===t})),z={id:N,reference:n,popper:h(),popperInstance:null,props:S,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:$,clearDelayTimeouts:function(){clearTimeout(e),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(!z.state.isDestroyed){rn("onBeforeUpdate",[z,t]),bn();var e=z.props,o=H(n,Object.assign({},e,m(t),{ignoreAttributes:!0}));z.props=o,hn(),e.interactiveDebounce!==o.interactiveDebounce&&(cn(),I=d(gn,o.interactiveDebounce)),e.triggerTarget&&!o.triggerTarget?p(e.triggerTarget).forEach((function(n){n.removeAttribute("aria-expanded")})):o.triggerTarget&&n.removeAttribute("aria-expanded"),an(),on(),_&&_(e,o),z.popperInstance&&(Tn(),kn().forEach((function(n){requestAnimationFrame(n._tippy.popperInstance.forceUpdate)}))),rn("onAfterUpdate",[z,t])}},setContent:function(n){z.setProps({content:n})},show:function(){var n=z.state.isVisible,t=z.state.isDestroyed,e=!z.state.isEnabled,o=j.isTouch&&!z.props.touch,i=c(z.props.duration,0,P.duration);if(!(n||t||e||o||Z().hasAttribute("disabled")||(rn("onShow",[z],!1),!1===z.props.onShow(z)))){if(z.state.isVisible=!0,Y()&&(V.style.visibility="visible"),on(),pn(),z.state.isMounted||(V.style.transition="none"),Y()){var r=tn();y([r.box,r.content],0)}var u,f,d;x=function(){var n;if(z.state.isVisible&&!M){if(M=!0,V.style.transition=z.props.moveTransition,Y()&&z.props.animation){var t=tn(),e=t.box,o=t.content;y([e,o],i),g([e,o],"visible")}un(),an(),l(R,z),null==(n=z.popperInstance)||n.forceUpdate(),rn("onMount",[z]),z.props.animation&&Y()&&function(n){vn(n,(function(){z.state.isShown=!0,rn("onShown",[z])}))}(i)}},f=z.props.appendTo,d=Z(),(u=z.props.interactive&&f===a||"parent"===f?d.parentNode:s(f,[d])).contains(V)||u.appendChild(V),z.state.isMounted=!0,Tn()}},hide:function(){var n=!z.state.isVisible,t=z.state.isDestroyed,e=!z.state.isEnabled,o=c(z.props.duration,1,P.duration);if(!(n||t||e)&&(rn("onHide",[z],!1),!1!==z.props.onHide(z))){if(z.state.isVisible=!1,z.state.isShown=!1,M=!1,W=!1,Y()&&(V.style.visibility="hidden"),cn(),ln(),on(!0),Y()){var i=tn(),r=i.box,u=i.content;z.props.animation&&(y([r,u],o),g([r,u],"hidden"))}un(),an(),z.props.animation?Y()&&function(n,t){vn(n,(function(){!z.state.isVisible&&V.parentNode&&V.parentNode.contains(V)&&t()}))}(o,z.unmount):z.unmount()}},hideWithInteractivity:function(n){nn().addEventListener("mousemove",I),l(L,I),I(n)},enable:function(){z.state.isEnabled=!0},disable:function(){z.hide(),z.state.isEnabled=!1},unmount:function(){z.state.isVisible&&z.hide(),z.state.isMounted&&(xn(),kn().forEach((function(n){n._tippy.unmount()})),V.parentNode&&V.parentNode.removeChild(V),R=R.filter((function(n){return n!==z})),z.state.isMounted=!1,rn("onHidden",[z]))},destroy:function(){z.state.isDestroyed||(z.clearDelayTimeouts(),z.unmount(),bn(),delete n._tippy,z.state.isDestroyed=!0,rn("onDestroy",[z]))}};if(!S.render)return z;var J=S.render(z),V=J.popper,_=J.onUpdate;V.setAttribute("data-tippy-root",""),V.id="tippy-"+z.id,z.popper=V,n._tippy=z,V._tippy=z;var G=$.map((function(n){return n.fn(z)})),K=n.hasAttribute("aria-expanded");return hn(),an(),on(),rn("onCreate",[z]),S.showOnCreate&&Cn(),V.addEventListener("mouseenter",(function(){z.props.interactive&&z.state.isVisible&&z.clearDelayTimeouts()})),V.addEventListener("mouseleave",(function(){z.props.interactive&&z.props.trigger.indexOf("mouseenter")>=0&&nn().addEventListener("mousemove",I)})),z;function Q(){var n=z.props.touch;return Array.isArray(n)?n:[n,0]}function X(){return"hold"===Q()[0]}function Y(){var n;return!(null==(n=z.props.render)||!n.$$tippy)}function Z(){return k||n}function nn(){var n,t,e=Z().parentNode;return e&&null!=(t=p(e)[0])&&null!=(n=t.ownerDocument)&&n.body?t.ownerDocument:document}function tn(){return F(V)}function en(n){return z.state.isMounted&&!z.state.isVisible||j.isTouch||b&&"focus"===b.type?0:c(z.props.delay,n?0:1,P.delay)}function on(n){void 0===n&&(n=!1),V.style.pointerEvents=z.props.interactive&&!n?"":"none",V.style.zIndex=""+z.props.zIndex}function rn(n,t,e){var o;void 0===e&&(e=!0),G.forEach((function(e){e[n]&&e[n].apply(e,t)})),e&&(o=z.props)[n].apply(o,t)}function un(){var t=z.props.aria;if(t.content){var e="aria-"+t.content,o=V.id;p(z.props.triggerTarget||n).forEach((function(n){var t=n.getAttribute(e);if(z.state.isVisible)n.setAttribute(e,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?n.setAttribute(e,i):n.removeAttribute(e)}}))}}function an(){!K&&z.props.aria.expanded&&p(z.props.triggerTarget||n).forEach((function(n){z.props.interactive?n.setAttribute("aria-expanded",z.state.isVisible&&n===Z()?"true":"false"):n.removeAttribute("aria-expanded")}))}function cn(){nn().removeEventListener("mousemove",I),L=L.filter((function(n){return n!==I}))}function fn(t){if(!j.isTouch||!E&&"mousedown"!==t.type){var e=t.composedPath&&t.composedPath()[0]||t.target;if(!z.props.interactive||!O(V,e)){if(p(z.props.triggerTarget||n).some((function(n){return O(n,e)}))){if(j.isTouch)return;if(z.state.isVisible&&z.props.trigger.indexOf("click")>=0)return}else rn("onClickOutside",[z,t]);!0===z.props.hideOnClick&&(z.clearDelayTimeouts(),z.hide(),B=!0,setTimeout((function(){B=!1})),z.state.isMounted||ln())}}}function sn(){E=!0}function dn(){E=!1}function pn(){var n=nn();n.addEventListener("mousedown",fn,!0),n.addEventListener("touchend",fn,u),n.addEventListener("touchstart",dn,u),n.addEventListener("touchmove",sn,u)}function ln(){var n=nn();n.removeEventListener("mousedown",fn,!0),n.removeEventListener("touchend",fn,u),n.removeEventListener("touchstart",dn,u),n.removeEventListener("touchmove",sn,u)}function vn(n,t){var e=tn().box;function o(n){n.target===e&&(w(e,"remove",o),t())}if(0===n)return t();w(e,"remove",T),w(e,"add",o),T=o}function mn(t,e,o){void 0===o&&(o=!1),p(z.props.triggerTarget||n).forEach((function(n){n.addEventListener(t,e,o),q.push({node:n,eventType:t,handler:e,options:o})}))}function hn(){var n;X()&&(mn("touchstart",yn,{passive:!0}),mn("touchend",wn,{passive:!0})),(n=z.props.trigger,n.split(/\s+/).filter(Boolean)).forEach((function(n){if("manual"!==n)switch(mn(n,yn),n){case"mouseenter":mn("mouseleave",wn);break;case"focus":mn(A?"focusout":"blur",On);break;case"focusin":mn("focusout",On)}}))}function bn(){q.forEach((function(n){n.node.removeEventListener(n.eventType,n.handler,n.options)})),q=[]}function yn(n){var t,e=!1;if(z.state.isEnabled&&!jn(n)&&!B){var o="focus"===(null==(t=b)?void 0:t.type);b=n,k=n.currentTarget,an(),!z.state.isVisible&&f(n,"MouseEvent")&&L.forEach((function(t){return t(n)})),"click"===n.type&&(z.props.trigger.indexOf("mouseenter")<0||W)&&!1!==z.props.hideOnClick&&z.state.isVisible?e=!0:Cn(n),"click"===n.type&&(W=!e),e&&!o&&An(n)}}function gn(n){var t=n.target,e=Z().contains(t)||V.contains(t);"mousemove"===n.type&&e||function(n,t){var e=t.clientX,o=t.clientY;return n.every((function(n){var t=n.popperRect,i=n.popperState,r=n.props.interactiveBorder,u=i.placement.split("-")[0],a=i.modifiersData.offset;return!a||t.top-o+("bottom"===u?a.top.y:0)>r||o-t.bottom-("top"===u?a.bottom.y:0)>r||t.left-e+("right"===u?a.left.x:0)>r||e-t.right-("left"===u?a.right.x:0)>r}))}(kn().concat(V).map((function(n){var t,e=null==(t=n._tippy.popperInstance)?void 0:t.state;return e?{popperRect:n.getBoundingClientRect(),popperState:e,props:S}:null})).filter(Boolean),n)&&(cn(),An(n))}function wn(n){jn(n)||z.props.trigger.indexOf("click")>=0&&W||(z.props.interactive?z.hideWithInteractivity(n):An(n))}function On(n){z.props.trigger.indexOf("focusin")<0&&n.target!==Z()||z.props.interactive&&n.relatedTarget&&V.contains(n.relatedTarget)||An(n)}function jn(n){return!!j.isTouch&&X()!==n.type.indexOf("touch")>=0}function Tn(){xn();var t=z.props,e=t.popperOptions,o=t.placement,i=t.offset,u=t.getReferenceClientRect,a=t.moveTransition,c=Y()?F(V).arrow:null,f=u?{getBoundingClientRect:u,contextElement:u.contextElement||Z()}:n,s=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(n){var t=n.state;if(Y()){var e=tn().box;["placement","reference-hidden","escaped"].forEach((function(n){"placement"===n?e.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+n]?e.setAttribute("data-"+n,""):e.removeAttribute("data-"+n)})),t.attributes.popper={}}}}];Y()&&c&&s.push({name:"arrow",options:{element:c,padding:3}}),s.push.apply(s,(null==e?void 0:e.modifiers)||[]),z.popperInstance=r(f,V,Object.assign({},e,{placement:o,onFirstUpdate:x,modifiers:s}))}function xn(){z.popperInstance&&(z.popperInstance.destroy(),z.popperInstance=null)}function kn(){return v(V.querySelectorAll("[data-tippy-root]"))}function Cn(n){z.clearDelayTimeouts(),n&&rn("onTrigger",[z,n]),pn();var t=en(!0),o=Q(),i=o[1];j.isTouch&&"hold"===o[0]&&i&&(t=i),t?e=setTimeout((function(){z.show()}),t):z.show()}function An(n){if(z.clearDelayTimeouts(),rn("onUntrigger",[z,n]),z.state.isVisible){if(!(z.props.trigger.indexOf("mouseenter")>=0&&z.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(n.type)>=0&&W)){var t=en(!1);t?o=setTimeout((function(){z.state.isVisible&&z.hide()}),t):i=requestAnimationFrame((function(){z.hide()}))}}else ln()}}function I(n,t){void 0===t&&(t={});var e=P.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",x,u),window.addEventListener("blur",C);var o,i=Object.assign({},t,{plugins:e}),r=(o=n,b(o)?[o]:function(n){return f(n,"NodeList")}(o)?v(o):Array.isArray(o)?o:v(document.querySelectorAll(o))).reduce((function(n,t){var e=t&&q(t,i);return e&&n.push(e),n}),[]);return b(n)?r[0]:r}I.defaultProps=P,I.setDefaultProps=function(n){Object.keys(n).forEach((function(t){P[t]=n[t]}))},I.currentInput=j,Object.assign({},i,{effect:function(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow)}}),I.setDefaultProps({render:M});let N=class{constructor(t){n(this,t),this.position="bottom",this.interactive=!1,this.maxWidth=350,this.delay=0,this.duration=[300,250],this.trigger="mouseenter focus",this.theme="wcs"}componentWillLoad(){this.tippyInstance=I(document.getElementById(this.for),{theme:this.theme,allowHTML:!0,content:this.el.innerHTML,maxWidth:this.maxWidth,placement:this.position,delay:this.delay,duration:this.duration,interactive:this.interactive,trigger:this.trigger})}updateProps(){this.tippyInstance.setProps({interactive:this.interactive,placement:this.position,maxWidth:this.maxWidth,theme:this.theme,delay:this.delay,duration:this.duration,trigger:this.trigger})}updateTippyContent(){this.tippyInstance.setProps({content:this.el.innerHTML})}async hide(){this.tippyInstance.hide()}async show(){this.tippyInstance.show()}async disable(){this.tippyInstance.disable()}async enable(){this.tippyInstance.enable()}disconnectedCallback(){this.tippyInstance.destroy()}render(){return t(e,null,t("slot",{onSlotchange:()=>this.updateTippyContent()}))}get el(){return o(this)}static get watchers(){return{interactive:["updateProps"],position:["updateProps"],maxWidth:["updateProps"],theme:["updateProps"],delay:["updateProps"],duration:["updateProps"],trigger:["updateProps"]}}};N.style=":host{display:none}";export{N as wcs_tooltip}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as s,c as r,H as n,g as o}from"./p-f46e6c3c.js";const e=({state:s})=>t("svg",{style:{marginLeft:"auto"},xmlns:"http://www.w3.org/2000/svg",width:"24",height:"20",viewBox:"0 0 24 20"},t("style",{type:"text/css"},"\n .arrow-group {\n transform-origin: 50% 51%;\n transition: transform 175ms ease-in-out;\n }\n .arrow{\n transition: fill 175ms ease-in-out;\n fill: var(--wcs-text-light);\n }\n .asc {\n transform: scaleY(1) translateY(-6px);\n }\n .desc {\n transform: scaleY(-1) translateY(-6px);\n }\n .active {\n fill: var(--wcs-primary);\n }\n\n "),t("g",{fill:"none",class:"asc arrow-group"},t("path",{class:("asc"===s?"active":"")+" arrow",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),t("path",{d:"M0 0h24v24H0z",fill:"none"})),t("g",{fill:"none",class:"desc arrow-group"},t("path",{class:("desc"===s?"active":"")+" arrow",d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),t("path",{d:"M0 0h24v24H0z",fill:"none"})));let i=class{constructor(t){s(this,t),this.wcsSortChange=r(this,"wcsSortChange",7),this.wcsHiddenChange=r(this,"wcsHiddenChange",7),this.sort=!1,this.sortOrder="none",this.customCells=!1,this.hidden=!1}parseMyObjectProp(t){this.wcsHiddenChange.emit(t)}sortOrderChange(t){this.emitSortConfig()}emitSortConfig(){this.sort&&this.wcsSortChange.emit({column:this.el,order:this.sortOrder,sortFn:this.sortFn})}render(){return t(n,{onClick:this.onSortClick.bind(this),slot:"grid-column"},t("th",{style:{width:this.width},class:this.sort?"pointer":""},t("div",{class:"grid-column-th-content"},t("span",null,this.name),this.sort?t(e,{state:this.sortOrder}):"")))}onSortClick(){this.sortOrder="none"===this.sortOrder||"desc"===this.sortOrder?"asc":"desc"}get el(){return o(this)}static get watchers(){return{hidden:["parseMyObjectProp"],sortOrder:["sortOrderChange"]}}};i.style=":host{--wcs-grid-column-border-left:solid 1px var(--wcs-text-light);display:contents}:host th{color:var(--wcs-gray-dark);background-color:var(--wcs-light);border-left:var(--wcs-grid-column-border-left);padding:calc(var(--wcs-padding) / 2) var(--wcs-padding);text-align:left}:host th .grid-column-th-content{display:inline-flex;flex-direction:row}:host th .grid-column-th-content span{user-select:none}:host .pointer{cursor:pointer}:host([sort-order=asc]) img{transform:scaleY(1)}:host([sort-order=desc]) img{transform:scaleY(-1)}:host([sort-order=none]) img{display:none}:host([sort-order=none]) th:hover img{display:inline-block}:host([hidden]){display:none !important}";export{i as wcs_grid_column}
|