@limetech/lime-elements 40.11.3 → 40.12.1
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 +21 -0
- package/dist/cjs/{checkbox.template-CoNVC4Nf.js → checkbox.template-_WUgtMJy.js} +2 -2
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-breadcrumbs_6.cjs.entry.js +5 -10
- package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +8 -3
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -2
- package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-viewer.cjs.entry.js +81 -47
- package/dist/cjs/limel-form.cjs.entry.js +7 -7
- package/dist/cjs/limel-helper-line_3.cjs.entry.js +3 -3
- package/dist/cjs/limel-list-item.cjs.entry.js +1 -1
- package/dist/cjs/limel-select.cjs.entry.js +8 -3
- package/dist/cjs/limel-side-panel.cjs.entry.js +72 -5
- package/dist/cjs/limel-text-editor.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/checkbox/checkbox.template.js +2 -2
- package/dist/collection/components/chip-set/chip-set.js +8 -3
- package/dist/collection/components/code-editor/code-editor.js +1 -2
- package/dist/collection/components/color-picker/color-picker.js +3 -3
- package/dist/collection/components/date-picker/date-picker.js +2 -2
- package/dist/collection/components/helper-line/helper-line.css +10 -14
- package/dist/collection/components/helper-line/helper-line.js +9 -6
- package/dist/collection/components/input-field/input-field.js +7 -12
- package/dist/collection/components/select/select.template.js +8 -3
- package/dist/collection/components/side-panel/side-panel.css +118 -6
- package/dist/collection/components/side-panel/side-panel.js +120 -77
- package/dist/collection/components/text-editor/text-editor.js +2 -2
- package/dist/esm/{checkbox.template-IDyv2bgn.js → checkbox.template-BFL4SMzl.js} +2 -2
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-breadcrumbs_6.entry.js +5 -10
- package/dist/esm/limel-checkbox.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +8 -3
- package/dist/esm/limel-code-editor.entry.js +1 -2
- package/dist/esm/limel-color-picker.entry.js +1 -1
- package/dist/esm/limel-file-viewer.entry.js +81 -47
- package/dist/esm/limel-form.entry.js +7 -7
- package/dist/esm/limel-helper-line_3.entry.js +3 -3
- package/dist/esm/limel-list-item.entry.js +1 -1
- package/dist/esm/limel-select.entry.js +8 -3
- package/dist/esm/limel-side-panel.entry.js +72 -5
- package/dist/esm/limel-text-editor.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-06850418.entry.js +1 -0
- package/dist/lime-elements/p-0e662a3c.entry.js +1 -0
- package/dist/lime-elements/p-1qqvOwzC.js +1 -0
- package/dist/lime-elements/p-236743f1.entry.js +1 -0
- package/dist/lime-elements/p-2528f75e.entry.js +159 -0
- package/dist/lime-elements/{p-cf6fab84.entry.js → p-43c36a02.entry.js} +1 -1
- package/dist/lime-elements/{p-ae2e5e87.entry.js → p-49eb2f64.entry.js} +1 -1
- package/dist/lime-elements/p-4f58c6b3.entry.js +1 -0
- package/dist/lime-elements/p-5a15606a.entry.js +1 -0
- package/dist/lime-elements/{p-7a2e0e18.entry.js → p-675a7469.entry.js} +1 -1
- package/dist/lime-elements/{p-9b1934fb.entry.js → p-90286e5c.entry.js} +1 -1
- package/dist/lime-elements/p-92fab922.entry.js +23 -0
- package/dist/lime-elements/{p-14aff731.entry.js → p-c492af1b.entry.js} +1 -1
- package/dist/types/components/chip-set/chip-set.d.ts +2 -0
- package/dist/types/components/color-picker/color-picker.d.ts +10 -3
- package/dist/types/components/date-picker/date-picker.d.ts +11 -2
- package/dist/types/components/helper-line/helper-line.d.ts +7 -3
- package/dist/types/components/input-field/input-field.d.ts +10 -2
- package/dist/types/components/side-panel/side-panel.d.ts +35 -73
- package/dist/types/components.d.ts +108 -260
- package/package.json +6 -6
- package/dist/lime-elements/p-25d0d06b.entry.js +0 -159
- package/dist/lime-elements/p-33b58741.entry.js +0 -1
- package/dist/lime-elements/p-732e7807.entry.js +0 -23
- package/dist/lime-elements/p-82c65f70.entry.js +0 -1
- package/dist/lime-elements/p-9ed21407.entry.js +0 -1
- package/dist/lime-elements/p-DqQOawxc.js +0 -1
- package/dist/lime-elements/p-b69af611.entry.js +0 -1
- package/dist/lime-elements/p-ec74a07a.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as i,H as o,a}from"./p-BU9IJqli.js";import{E as r}from"./p-Bu6-QXrA.js";import{c as s}from"./p-BrjD-ITe.js";const n=[],l={newTab:"up_right_arrow",expand:"expand"};function c(e){if(e.href&&"newTab"===e.type)return"_blank"}function d(e){e.stopPropagation()}const h=class{constructor(o){e(this,o),this.close=t(this,"close",7),this.selectAction=t(this,"selectAction",7),this.changeWidth=t(this,"changeWidth",7),this.selectStackEntry=t(this,"selectStackEntry",7),this.closeLabel="Close",this.stack=[],this.actions=[],this.resizeLabel="Resize",this.closeOnEscape=!0,this.fullScreen=!1,this.closeButtonId=s(),this.actionIdPrefix=s(),this.backIdPrefix=s(),this.focusCloseButtonAfterRender=!1,this.renderAction=(e,t)=>{const o=`${this.actionIdPrefix}-${t}`;return i(e.href?"a":"button",{class:e.type,id:o,href:e.href,target:c(e),"aria-label":e.label,onClick:this.handleClickAction(e)},i("limel-icon",{name:l[e.type],"aria-hidden":"true"}),i("limel-tooltip",{elementId:o,label:e.label,helperLabel:e.helperLabel}))},this.renderBack=(e,t)=>{var o;const a=`${this.backIdPrefix}-${t}`;return i("button",{class:"back",id:a,style:{width:null===(o=this.panel)||void 0===o?void 0:o.style.width},"aria-label":e.heading,onClick:this.handleClickBack(t)},i("span",{class:"back-toolbar"}),i("span",{class:"back-band",style:{"background-color":e.color}}),i("limel-tooltip",{elementId:a,label:e.heading,helperLabel:e.subheading,openDirection:"left"}))},this.stopContentEvents=e=>{null==e||e.addEventListener("close",d),null==e||e.addEventListener("changeWidth",d)},this.restoreFocus=()=>{const e=!document.activeElement||document.activeElement===document.body;if(this.host.isConnected||!e)return;const t=this.focusedBefore;this.focusedBefore=void 0,(null==t?void 0:t.isConnected)&&t.focus()},this.setPanel=e=>{this.panel=e},this.setMinLimit=e=>{this.minLimit=e},this.setMaxLimit=e=>{this.maxLimit=e},this.handleKeyDown=e=>{this.closeOnEscape&&e.key===r&&!e.defaultPrevented&&this.isLastOpened()&&(e.preventDefault(),this.close.emit())},this.handleChangeSize=e=>{this.rememberWidthBeforeResize(),this.setWidth(e.detail)},this.handleEndResize=()=>{if(!this.isResizing())return;const e=this.widthBeforeResize;this.widthBeforeResize=void 0,this.keepClampedWidth(),this.updateWidthRange(),this.emitWidthIfChanged(e)},this.handleSizeChange=e=>{e.every(this.isMeasured)||this.updateWidthRange()},this.isMeasured=e=>{var t;return e.target===this.panel&&Math.round(e.borderBoxSize[0].inlineSize)===(null===(t=this.widthRange)||void 0===t?void 0:t.now)},this.updateWidthRange=()=>{this.isResizing()||(this.widthRange=this.measureWidthRange())},this.handleClickAction=e=>t=>{var i;this.selectAction.emit({id:null!==(i=e.id)&&void 0!==i?i:e.type,event:t})},this.handleClickBack=e=>()=>{this.selectStackEntry.emit(e)},this.handleClickClose=()=>{this.close.emit()}}connectedCallback(){n.push(this),window.addEventListener("keydown",this.handleKeyDown),this.rememberFocusedElement(),this.observeWidth()}componentDidLoad(){this.observeWidth(),this.moveFocusIntoPanel()}disconnectedCallback(){this.widthBeforeResize=void 0,this.stopObservingWidth(),window.removeEventListener("keydown",this.handleKeyDown),this.removeFromOpenPanels(),queueMicrotask(this.restoreFocus)}handleBacksChange(){this.focusCloseButtonAfterRender=this.isFocusedBackRemoved()}componentDidRender(){var e;this.focusCloseButtonAfterRender&&(this.focusCloseButtonAfterRender=!1,null===(e=this.host.shadowRoot.querySelector("button.close"))||void 0===e||e.focus())}render(){return i(o,{key:"ca07c3557df3be7e026a95da296689e1e3c0cf41"},i("section",{key:"610a8b47c7b34a6d4cb4d253d40cff889ea4c73d",ref:this.setPanel,role:"dialog","aria-label":this.label,tabindex:"-1"},this.renderHandle(),i("div",{key:"c9ddb80456ac82cb39801943b55fcd4de3928852",class:"content"},i("div",{key:"f1430da0610a4fe71363ead5c7730d627a8a935c",class:"toolbar"},this.renderCloseButton(),this.renderActions()),this.renderHeader(),this.renderBody())),this.renderStack(),i("span",{key:"c7d204c8b323f88962508a4c54493717fe347c8e","data-limit":"min",ref:this.setMinLimit}),i("span",{key:"2a7fa787fd0d4c777f90b2ef7dff1d9316108416","data-limit":"max",ref:this.setMaxLimit}))}renderCloseButton(){return i("button",{class:"close",id:this.closeButtonId,"aria-label":this.closeLabel,onClick:this.handleClickClose},i("limel-icon",{name:"multiply","aria-hidden":"true"}),i("limel-tooltip",{elementId:this.closeButtonId,label:this.closeLabel}))}renderActions(){if(0!==this.actions.length)return i("div",{class:"actions"},this.actions.map(((e,t)=>this.renderAction(e,t))))}renderStack(){const e=this.stack.slice(0,-1);if(!this.fullScreen&&0!==e.length)return i("div",{class:"stack"},e.map(((e,t)=>this.renderBack(e,t))))}isFocusedBackRemoved(){const e=[...this.host.shadowRoot.querySelectorAll(".back")].indexOf(this.host.shadowRoot.activeElement);return-1!==e&&(this.fullScreen||e>=this.stack.length-1)}renderHeader(){const e=this.stack.at(-1);if(e)return i("limel-header",{class:{header:!0,"has-color":!!e.color},style:{"--header-background-color":e.color},icon:e.icon,heading:e.heading,subheading:e.subheading},i("div",{class:"header-actions",slot:"actions",ref:this.stopContentEvents},i("slot",{name:"header-actions"})))}renderHandle(){var e,t,o;if(!this.fullScreen)return i("limel-resize-handle",{class:"handle",label:this.resizeLabel,value:null===(e=this.widthRange)||void 0===e?void 0:e.now,min:null===(t=this.widthRange)||void 0===t?void 0:t.min,max:null===(o=this.widthRange)||void 0===o?void 0:o.max,onChangeSize:this.handleChangeSize,onEndResize:this.handleEndResize})}renderBody(){return i("div",{class:"body",ref:this.stopContentEvents},i("slot",null))}stopContentEventAtHost(e){e.target!==this.host&&e.stopImmediatePropagation()}moveFocusIntoPanel(){this.panel.focus({preventScroll:!0})}rememberFocusedElement(){const e=function(){var e;let t=document.activeElement;for(;null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement;)t=t.shadowRoot.activeElement;return t}();e&&e!==document.body&&(this.focusedBefore=e)}removeFromOpenPanels(){const e=n.indexOf(this);-1!==e&&n.splice(e,1)}isLastOpened(){return n.at(-1)===this}setWidth(e){for(const t of this.getPanelBoxes())t.style.width=`${e}px`}getPanelBoxes(){const e=this.host.shadowRoot.querySelectorAll(".back");return[this.panel,...e]}rememberWidthBeforeResize(){this.isResizing()||(this.widthBeforeResize=this.currentWidth())}isResizing(){return void 0!==this.widthBeforeResize}keepClampedWidth(){this.setWidth(this.currentWidth())}emitWidthIfChanged(e){const t=this.currentWidth();t!==e&&this.changeWidth.emit(t)}observeWidth(){if(this.stopObservingWidth(),this.panel){this.widthObserver=new ResizeObserver(this.handleSizeChange);for(const e of[this.panel,this.minLimit,this.maxLimit])e&&this.widthObserver.observe(e)}}stopObservingWidth(){var e;null===(e=this.widthObserver)||void 0===e||e.disconnect(),this.widthObserver=void 0}measureWidthRange(){const e=this.minLimit.offsetWidth,t=Math.max(e,this.maxLimit.offsetWidth);return{now:Math.round(this.currentWidth()),min:Math.round(e),max:Math.round(t)}}currentWidth(){return this.panel.offsetWidth}get host(){return a(this)}static get watchers(){return{stack:[{handleBacksChange:0}],fullScreen:[{handleBacksChange:0}]}}};h.style='@charset "UTF-8";:host(limel-side-panel){--_side-panel-width:var(--side-panel-width, 37.5rem);--_side-panel-min-width:var(--side-panel-min-width, 25rem);--_side-panel-top-inset:var(--side-panel-top-inset, 0px);--_side-panel-right-inset:var(--side-panel-right-inset, 0px);--_side-panel-bottom-inset:var(--side-panel-bottom-inset, 0px);--_side-panel-z-index:var(--side-panel-z-index, 6);--_side-panel-dropdown-z-index:var(--dropdown-z-index);--_side-panel-popover-z-index:var(--popover-z-index);--_side-panel-tooltip-z-index:var(--tooltip-z-index)}@keyframes show-side-panel{0%{transform:translate3d(12.5rem, 0, 0) scale(0.95);opacity:0}60%{opacity:1}100%{transform:translate3d(0, 0, 0) scale(1)}}section{position:absolute;top:var(--_side-panel-top-inset);right:var(--_side-panel-right-inset);bottom:var(--_side-panel-bottom-inset);margin:0.5rem;width:var(--_side-panel-width);min-width:min(var(--_side-panel-min-width), 100% - 1rem);max-width:min(100% - 1rem - 3rem, 60%);max-height:100%;border-radius:1rem;z-index:var(--_side-panel-z-index);display:flex;flex-direction:column;isolation:isolate;box-shadow:var(--shadow-depth-64);transform-origin:left center;transition:background-color 0.5s ease, transform 0.3s ease, opacity 0.2s ease, right 0.2s ease;animation:show-side-panel 0.46s cubic-bezier(0.08, 0.54, 0.06, 1.11) forwards}section:focus{outline:none}@media (prefers-reduced-motion){section{animation:none;transition:none}}.content,.stack{--dropdown-z-index:var( --_side-panel-dropdown-z-index, calc(var(--_side-panel-z-index) + 1) );--popover-z-index:var( --_side-panel-popover-z-index, calc(var(--_side-panel-z-index) + 1) );--tooltip-z-index:var( --_side-panel-tooltip-z-index, calc(var(--_side-panel-z-index) + 1) )}:host([full-screen]) section{left:0;width:100%;min-width:100%;max-width:100%;margin:0}:host([full-screen]) section,:host([full-screen]) .content{border-radius:0}.content{display:flex;flex-direction:column;flex-grow:1;min-height:0;overflow:hidden;border-radius:1rem;background-color:rgb(var(--contrast-100))}.toolbar{flex-shrink:0;display:flex;align-items:center;gap:0.25rem;box-sizing:border-box;min-height:2.375rem;padding:0.25rem 0.125rem;background-color:rgb(var(--contrast-300))}.actions{display:flex;align-items:center;gap:0.25rem;margin-left:auto}.actions>*{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent}.actions>*:hover,.actions>*:focus,.actions>*:focus-visible{will-change:color, background-color, box-shadow, transform}.actions>*:hover,.actions>*:focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}.actions>*:hover{box-shadow:var(--button-shadow-hovered)}.actions>*:active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}.actions>*:hover,.actions>*:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}.actions>*:focus{outline:none}.actions>*:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.actions>*{isolation:isolate;position:relative;display:flex;justify-content:center;align-items:center;width:1.875rem;height:1.875rem;border-radius:50%}.actions>* limel-icon{width:1.25rem;transition:transform 0.2s ease, color 0.2s ease}.actions>*{--_side-panel-action-background-color:rgb(var(--contrast-300))}.actions>*:hover,.actions>*:focus-visible{--_side-panel-action-background-color:var( --lime-elevated-surface-background-color )}.actions>*:hover limel-icon{color:var(--mdc-theme-primary)}.newTab limel-icon{transition:transform 0.2s ease;transform:scale(0.8);z-index:3}.newTab:before{z-index:2}.newTab:after{z-index:1}.newTab:before,.newTab:after{content:"";transition:transform 0.2s ease, outline-color 0.2s ease;position:absolute;width:0.875rem;height:0.875rem;outline:1.5px solid rgb(var(--contrast-900));border-radius:1px;background-color:var(--_side-panel-action-background-color)}.newTab:hover limel-icon{transform:translate3d(-0.1rem, 0.1rem, 0) scale(1)}.newTab:hover:before{transform:translate3d(0.125rem, -0.125rem, 0);outline-color:rgb(var(--contrast-1000));box-shadow:var(--shadow-depth-8)}.newTab:hover:after{transform:translate3d(-0.15rem, 0.15rem, 0) scale(0.9);outline-color:rgb(var(--contrast-700))}.expand:after{transition:transform 0.2s ease;content:"";position:absolute;z-index:1;background-color:var(--_side-panel-action-background-color);width:0.75rem;height:0.75rem}.expand:hover:after{transform:scale(0.5)}.expand:hover limel-icon{transform:scale(1.18)}.close{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent}.close:hover,.close:focus,.close:focus-visible{will-change:color, background-color, box-shadow, transform}.close:hover,.close:focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}.close:hover{box-shadow:var(--button-shadow-hovered)}.close:active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}.close:hover,.close:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}.close:focus{outline:none}.close:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.close{isolation:isolate;position:relative;display:flex;justify-content:center;align-items:center;width:1.875rem;height:1.875rem;border-radius:50%}.close limel-icon{width:1.25rem;transition:transform 0.2s ease, color 0.2s ease}.close:before,.close:after{content:"";position:absolute;z-index:-1;inset:0;border-radius:50%;opacity:0;transition-delay:0.1s}.close:before{transition:transform 0.3s ease, opacity 0.3s ease;background-color:rgb(var(--color-orange-dark))}.close:after{transition:transform 0.6s ease, opacity 0.6s ease;background-color:rgb(var(--color-orange-light))}.close:hover limel-icon{color:rgb(var(--color-white));transform:scale(0.7) rotate(90deg)}.close:hover:before{opacity:1;transform:scale(0.4)}.close:hover:after{opacity:0.4;transform:scale(0.6)}.header{--side-panel-header-text-color:var(--limel-theme-on-surface-color);--header-top-right-left-border-radius:0;flex-shrink:0;min-height:2.5rem;padding:0.125rem 0.75rem 0.125rem 0.25rem;background-color:var(--header-background-color, rgb(var(--contrast-200)))}.header-actions{display:flex;align-items:center;gap:0.25rem;flex-shrink:0;max-width:50%;overflow:hidden;box-sizing:border-box;max-height:calc(1.25rem + 1rem + 2 * 0.25rem);padding:0.25rem;margin:-0.25rem -0.25rem -0.25rem auto;color:var(--side-panel-header-text-color);text-shadow:none}.has-color{--side-panel-header-text-color:rgb(var(--color-white));--header-heading-color:var(--side-panel-header-text-color);--header-subheading-color:var(--side-panel-header-text-color);text-shadow:0 0 1px rgba(var(--color-black), 0.2), 0 0 0.25rem rgba(var(--color-black), 0.2)}.body{flex-grow:1;min-height:0;display:flex;flex-direction:column;overflow:hidden auto}.handle{position:absolute;z-index:1;top:calc(2.375rem + 0.5rem);bottom:1rem;left:calc(0.5rem / -2);width:0.5rem}[data-limit]{position:absolute;visibility:hidden;pointer-events:none;height:0}[data-limit=min]{width:min(var(--_side-panel-min-width), 100% - 1rem)}[data-limit=max]{width:min(100% - 1rem - 3rem, 60%)}.stack{position:absolute;inset:0;z-index:calc(var(--_side-panel-z-index) - 1);pointer-events:none}.back{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;position:absolute;top:var(--_side-panel-top-inset);right:var(--_side-panel-right-inset);bottom:var(--_side-panel-bottom-inset);margin:0.5rem;width:var(--_side-panel-width);min-width:min(var(--_side-panel-min-width), 100% - 1rem);max-width:min(100% - 1rem - 3rem, 60%);max-height:100%;border-radius:1rem}.back:focus{outline:none}.back:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.back{pointer-events:auto;cursor:pointer;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;background-color:rgb(var(--contrast-100));box-shadow:var(--shadow-depth-16);transform-origin:left center;transition:transform 0.3s ease, box-shadow 0.2s ease, background-color 0.2s ease, right 0.2s ease}@media (prefers-reduced-motion){.back{transition:none}}.back:nth-last-child(1){transform:translate3d(-1.4rem, 0, 0) scale(0.98)}.back:nth-last-child(2){transform:translate3d(-2.3rem, 0, 0) scale(0.96)}.back:nth-last-child(3){transform:translate3d(-3rem, 0, 0) scale(0.94)}.back:nth-last-child(n+4){transform:translate3d(-3.4rem, 0, 0) scale(0.92)}.back:hover{box-shadow:var(--shadow-depth-64)}.back:hover,.back:focus-visible{right:calc(var(--_side-panel-right-inset) + 0.25rem);background-color:var(--lime-elevated-surface-background-color)}.stack:has(.back:hover) .back:nth-last-child(2){transform:translate3d(-2.6rem, 0, 0) scale(0.96)}.stack:has(.back:hover) .back:nth-last-child(3){transform:translate3d(-3.8rem, 0, 0) scale(0.94)}.stack:has(.back:hover) .back:nth-last-child(n+4){transform:translate3d(-4.9rem, 0, 0) scale(0.92)}.back-toolbar,.back-band{flex-shrink:0}.back-toolbar{height:2.375rem;background-color:rgb(var(--contrast-300))}.back-band{height:2.5rem;background-color:rgb(var(--contrast-200))}';export{h as limel_side_panel}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as r,F as i,a as s}from"./p-BU9IJqli.js";import{t as o}from"./p-w3yKYfBQ.js";import{d as n,u as a,r as l,a as c,v as u,b as h}from"./p-_UXAljNc.js";import{I as f}from"./p-N9vxZMhe.js";import"./p-ChagAaNf.js";import"./p-B85MJLTf.js";function p(t,e){const r=t||e;return r&&{pdf:"pdf",jpg:"image",jpeg:"image",heic:"image",bmp:"image",png:"image",gif:"image",svg:"image",svgz:"image",ep:"image",eps:"image",avi:"video",flv:"video",h264:"video",mov:"video",mp4:"video",mwv:"video",mkv:"video",mp3:"audio",wav:"audio",wma:"audio",ogg:"audio",txt:"text",json:"text",html:"text",xml:"text",eml:"email",doc:"office",docx:"office",odt:"office",dot:"office",dotx:"office",docm:"office",dotm:"office",pot:"office",ppt:"office",pptx:"office",odp:"office",potx:"office",potm:"office",pps:"office",ppsx:"office",ppsm:"office",pptm:"office",ppam:"office",pages:"office",xls:"office",xlsx:"office",xlsm:"office",xlsb:"office",ods:"office",csv:"office",numbers:"office"}[r.split(".").pop().toLowerCase()]||"unknown"}class d{constructor(t){this.requestFullscreen=()=>{this.enter&&this.enter()},this.exitFullscreen=()=>{this.exit&&this.exit.bind(window.document)()},this.toggle=()=>{const t=window.document;t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement?this.exitFullscreen():this.requestFullscreen()},this.enter=t.requestFullscreen||t.msRequestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullscreen,this.enter&&(this.enter=this.enter.bind(t));const e=window.document;this.exit=e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen}isSupported(){return!!this.enter}}const m=new TextEncoder,g=t=>32===t||9===t,b=new Uint8Array(256);for(let t=0;t<64;t++)b["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(t)]=t;function w(t){let e=t.length;for(;e>0&&"="===t.charAt(e-1);)e--;e%4==1&&e--;const r=e%4,i=3*Math.floor(e/4)+(r?r-1:0),s=new ArrayBuffer(i),o=new Uint8Array(s);let n=0;for(let r=0;r<e;r+=4){let e=b[t.charCodeAt(r)],s=b[t.charCodeAt(r+1)],a=b[t.charCodeAt(r+2)],l=b[t.charCodeAt(r+3)];o[n++]=e<<2|s>>4,n<i&&(o[n++]=(15&s)<<4|a>>2),n<i&&(o[n++]=(3&a)<<6|63&l)}return s}const v=new Map([["iso88598i","iso-8859-8"],["iso88598e","iso-8859-8"],["shiftjis","shift_jis"],["windows31j","shift_jis"],["mskanji","shift_jis"],["eucjp","euc-jp"],["iso2022jp","iso-2022-jp"],["iso2022jp1","iso-2022-jp"],["iso2022jp2","iso-2022-jp"],["junet","iso-2022-jp"],["euckr","euc-kr"],["uhc","euc-kr"],["tis620","windows-874"]]),y=new Map([["932","shift_jis"],["936","gbk"],["949","euc-kr"],["950","big5"],["874","windows-874"],["51932","euc-jp"],["50220","iso-2022-jp"],["50221","iso-2022-jp"],["50222","iso-2022-jp"]]),x=/^(?:cp|windows|ms|ibm)(\d+)$/,q=new Set(["unicode-1-1-utf-8 unicode11utf8 unicode20utf8 utf-8 utf8 x-unicode20utf8","866 cp866 csibm866 ibm866","csisolatin2 iso-8859-2 iso-ir-101 iso8859-2 iso88592 iso_8859-2 iso_8859-2:1987 l2 latin2","csisolatin3 iso-8859-3 iso-ir-109 iso8859-3 iso88593 iso_8859-3 iso_8859-3:1988 l3 latin3","csisolatin4 iso-8859-4 iso-ir-110 iso8859-4 iso88594 iso_8859-4 iso_8859-4:1988 l4 latin4","csisolatincyrillic cyrillic iso-8859-5 iso-ir-144 iso8859-5 iso88595 iso_8859-5 iso_8859-5:1988","arabic asmo-708 csiso88596e csiso88596i csisolatinarabic ecma-114 iso-8859-6 iso-8859-6-e","iso-8859-6-i iso-ir-127 iso8859-6 iso88596 iso_8859-6 iso_8859-6:1987","csisolatingreek ecma-118 elot_928 greek greek8 iso-8859-7 iso-ir-126 iso8859-7 iso88597 iso_8859-7","iso_8859-7:1987 sun_eu_greek","csiso88598e csisolatinhebrew hebrew iso-8859-8 iso-8859-8-e iso-ir-138 iso8859-8 iso88598 iso_8859-8","iso_8859-8:1988 visual","csiso88598i iso-8859-8-i logical","csisolatin6 iso-8859-10 iso-ir-157 iso8859-10 iso885910 l6 latin6","iso-8859-13 iso8859-13 iso885913","iso-8859-14 iso8859-14 iso885914","csisolatin9 iso-8859-15 iso8859-15 iso885915 iso_8859-15 l9","iso-8859-16","cskoi8r koi koi8 koi8-r koi8_r","koi8-ru koi8-u","csmacintosh mac macintosh x-mac-roman","dos-874 iso-8859-11 iso8859-11 iso885911 tis-620 windows-874","cp1250 windows-1250 x-cp1250","cp1251 windows-1251 x-cp1251","ansi_x3.4-1968 ascii cp1252 cp819 csisolatin1 ibm819 iso-8859-1 iso-ir-100 iso8859-1 iso88591","iso_8859-1 iso_8859-1:1987 l1 latin1 us-ascii windows-1252 x-cp1252","cp1253 windows-1253 x-cp1253","cp1254 csisolatin5 iso-8859-9 iso-ir-148 iso8859-9 iso88599 iso_8859-9 iso_8859-9:1989 l5 latin5","windows-1254 x-cp1254","cp1255 windows-1255 x-cp1255","cp1256 windows-1256 x-cp1256","cp1257 windows-1257 x-cp1257","cp1258 windows-1258 x-cp1258","x-mac-cyrillic x-mac-ukrainian","chinese csgb2312 csiso58gb231280 gb2312 gb_2312 gb_2312-80 gbk iso-ir-58 x-gbk","gb18030","big5 big5-hkscs cn-big5 csbig5 x-x-big5","cseucpkdfmtjapanese euc-jp x-euc-jp","csiso2022jp iso-2022-jp","csshiftjis ms932 ms_kanji shift-jis shift_jis sjis windows-31j x-sjis","cseuckr csksc56011987 euc-kr iso-ir-149 korean ks_c_5601-1987 ks_c_5601-1989 ksc5601 ksc_5601","windows-949","csiso2022kr hz-gb-2312 iso-2022-cn iso-2022-cn-ext iso-2022-kr replacement","unicodefffe utf-16be","csunicode iso-10646-ucs-2 ucs-2 unicode unicodefeff utf-16 utf-16le","x-user-defined"].join(" ").split(" ")),k=new Map;function E(t){if(!q.has(t))return null;let e=k.get(t);if(void 0===e){e=null;try{e=new TextDecoder(t)}catch{}k.set(t,e)}return e}const A=new TextDecoder;function D(t){const e=E(t=(t||"utf8").trim().toLowerCase());if(e)return e;const r=function(t){return t.replace(/^(?:x-ms-|x-|cs)/,"").replace(/[\s._-]+/g,"")}(t),i=r.match(x);return E(i&&y.get(i[1])||v.get(r)||r)}function S(t){return D(t)||E("windows-1252")||A}function L(t,e=A){const r=t instanceof Uint8Array?t:new Uint8Array(t);return function(t){for(let e=0;e<t.length;){const r=t[e];if(r<128){e++;continue}let i;if(r>=194&&r<=223)i=1;else if(r>=224&&r<=239)i=2;else{if(!(r>=240&&r<=244))return!1;i=3}if(e+i>=t.length)return!1;const s=t[e+1];if(s<(224===r?160:240===r?144:128)||s>(237===r?159:244===r?143:191))return!1;for(let r=2;r<=i;r++)if(128!=(192&t[e+r]))return!1;e+=i+1}return!0}(r)?e.decode(r):S("windows-1252").decode(r)}function T(t,e){const r=D(e);return r?r.decode(t):L(t)}const j=/charset\s*=\s*["']?\s*([^\s"';>]+)/,R=new Set(["utf-16le","utf-16be"]);async function U(t){if("arrayBuffer"in t)return await t.arrayBuffer();const e=new FileReader;return new Promise(((r,i)=>{e.onload=()=>{r(e.result)},e.onerror=()=>{i(e.error)},e.readAsArrayBuffer(t)}))}function N(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-97+10:t>=65&&t<=70?t-65+10:-1}function B(t){return t.replace(/[\r\n]+/g," ")}function C(t,e,r){let i,s=t.indexOf("*");if(s>=0&&(t=t.slice(0,s)),"Q"===(e=e.toUpperCase())){r=r.replace(/=\s+([0-9a-fA-F])/g,"=$1").replace(/[_\s]/g," ");let t=m.encode(r),e=[];for(let r=0,i=t.length;r<i;r++){let s=t[r];if(r<=i-2&&61===s){let i=N(t[r+1]),s=N(t[r+2]);if(i>=0&&s>=0){e.push(i<<4|s),r+=2;continue}}e.push(s)}i=new ArrayBuffer(e.length);let s=new DataView(i);for(let t=0,r=e.length;t<r;t++)s.setUint8(t,e[t])}else i="B"===e?w(r.replace(/[^a-zA-Z0-9\+\/=]+/g,"")):m.encode(r);return B(T(i,t))}const $="=\\?([^?\\s]+)\\?([QqBb])\\?([^?]*)\\?=",V=new RegExp($,"g"),z=/^[ \t\r\n]+$/,I=new RegExp(`^(?:${$}\\s*)+$`);function _(t,e){const r=t.encoding.toUpperCase();return t.charset===e.charset&&r===e.encoding.toUpperCase()&&("B"!==r||t.encodedText.length%4==0&&!/=$/.test(t.encodedText))}function O(t,e){let r="",i=null;for(let s=0;s<t.length;s++){const o=t[s];if(void 0===o.text)i&&e&&_(i,o)?i.encodedText+=o.encodedText:(i&&(r+=C(i.charset,i.encoding,i.encodedText)),i={charset:o.charset,encoding:o.encoding,encodedText:o.encodedText});else{const e=t[s+1];if(i&&e&&void 0===e.text&&z.test(o.text))continue;i&&(r+=C(i.charset,i.encoding,i.encodedText),i=null),r+=o.text}}return i&&(r+=C(i.charset,i.encoding,i.encodedText)),r}function G(t){const e=function(t){const e=[];V.lastIndex=0;let r,i=0;for(;r=V.exec(t);)r.index>i&&e.push({text:t.substring(i,r.index)}),e.push({charset:r[1],encoding:r[2],encodedText:r[3]}),i=r.index+r[0].length;return i<t.length&&e.push({text:t.substring(i)}),e}((t||"").toString()),r=O(e,!0);return r.indexOf("�")<0?r:O(e,!1)}function M(t,e){e=e||"utf-8";let r=[];for(let e=0;e<t.length;e++){let i=t.charAt(e);const s="%"===i?N(t.charCodeAt(e+1)):-1,o=s>=0?N(t.charCodeAt(e+2)):-1;if(o>=0)r.push(s<<4|o),e+=2;else if(i.charCodeAt(0)>126){const t=m.encode(i);for(let e=0;e<t.length;e++)r.push(t[e])}else r.push(i.charCodeAt(0))}const i=new ArrayBuffer(r.length),s=new DataView(i);for(let t=0,e=r.length;t<e;t++)s.setUint8(t,r[t]);return T(i,e)}class H{constructor(){this.chunks=[],this.runBuffer=null,this.runStart=0,this.runEnd=0,this.pendingLineBreak=null}continuesRun(t){return t.buffer===this.runBuffer&&t.byteOffset===this.runEnd}flushRun(){this.runBuffer&&this.runEnd>this.runStart&&this.chunks.push(new Uint8Array(this.runBuffer,this.runStart,this.runEnd-this.runStart)),this.runBuffer=null}update(t,e){const r=this.pendingLineBreak;r&&this.continuesRun(r)&&t.buffer===this.runBuffer&&t.byteOffset===this.runEnd+r.byteLength||(this.flushRun(),r&&this.chunks.push(r),this.runBuffer=t.buffer,this.runStart=t.byteOffset),this.runEnd=t.byteOffset+t.byteLength,this.pendingLineBreak=e}finalize(t=!1){const e=this.pendingLineBreak;return!t&&e&&(this.continuesRun(e)?this.runEnd+=e.byteLength:(this.flushRun(),this.chunks.push(e))),this.flushRun(),U(new Blob(this.chunks,{type:"application/octet-stream"}))}}class P{constructor(t=102400){this.maxChunkSize=t,this.buffer=null,this.bufferPos=0,this.chunks=[]}writeByte(t){(!this.buffer||this.bufferPos>=this.buffer.length)&&(this.flush(),this.buffer??=new Uint8Array(this.maxChunkSize)),this.buffer[this.bufferPos++]=t}writeBytes(t,e=0,r=t.length){for(;e<r;){(!this.buffer||this.bufferPos>=this.buffer.length)&&(this.flush(),this.buffer??=new Uint8Array(this.maxChunkSize));const i=Math.min(r-e,this.buffer.length-this.bufferPos);this.buffer.set(t.subarray(e,e+i),this.bufferPos),this.bufferPos+=i,e+=i}}append(t){t.length>=this.maxChunkSize/2?(this.flush(),this.chunks.push(t)):this.writeBytes(t)}flush(){this.buffer&&this.bufferPos&&(this.chunks.push(this.buffer.slice(0,this.bufferPos)),this.bufferPos=0)}finalize(){return this.flush(),U(new Blob(this.chunks,{type:"application/octet-stream"}))}}class F{constructor(t){this.decoder=(t=t||{}).decoder||new TextDecoder,this.maxChunkSize=102400,this.output=new P,this.remainder=""}pushChunk(t){t.length&&this.output.append(new Uint8Array(w(t)))}flushRemainder(){this.pushChunk(this.remainder),this.remainder=""}update(t){let e,r=this.decoder.decode(t).replace(/[^a-zA-Z0-9+/=]+/g,""),i=0;for(;(e=r.indexOf("=",i))>=0;)this.remainder+=r.substring(i,e),this.flushRemainder(),i=e+1;if(this.remainder+=r.substring(i),this.remainder.length>=this.maxChunkSize){const t=4*Math.floor(this.remainder.length/4);this.pushChunk(this.remainder.substring(0,t)),this.remainder=this.remainder.substring(t)}}finalize(){return this.flushRemainder(),this.output.finalize()}}class J{constructor(){this.output=new P,this.pendingLineBreak=null}writeLineBreak(){this.pendingLineBreak&&this.output.writeBytes(this.pendingLineBreak)}update(t,e){this.writeLineBreak();let r=t.length;for(;r>0&&g(t[r-1]);)r--;const i=r>0&&61===t[r-1];i&&r--;let s=0;for(let e=0;e<r;e++){if(61!==t[e]||e+2>=r)continue;const i=N(t[e+1]),o=N(t[e+2]);i<0||o<0||(this.output.writeBytes(t,s,e),this.output.writeByte(i<<4|o),e+=2,s=e+1)}this.output.writeBytes(t,s,r),this.pendingLineBreak=i?null:e}finalize(t=!1){return t||this.writeLineBreak(),this.output.finalize()}}const Y=new TextDecoder("utf-8",{ignoreBOM:!0}),Z=t=>{let e=0,r=t.length;for(;e<r&&g(t.charCodeAt(e));)e++;for(;r>e&&g(t.charCodeAt(r-1));)r--;return t.slice(e,r)},Q=/^[!-9;-~]+[ \t]*:/,K=new Set(["content-type","content-transfer-encoding","content-disposition","content-id","content-description"]);class W{constructor(t){if(this.options=t,this.postalMime=t.postalMime,this.postalMime.partCount++,this.postalMime.partCount>t.maxPartCount)throw new Error(`Maximum MIME part count of ${t.maxPartCount} parts exceeded`);if(this.childNodes=[],this.finalizedChildCount=0,t.parentNode){if(this.parentNode=t.parentNode,this.depth=this.parentNode.depth+1,this.depth>t.maxNestingDepth)throw new Error(`Maximum MIME nesting depth of ${t.maxNestingDepth} levels exceeded`);t.parentNode.childNodes.push(this)}else this.depth=0;this.state="header",this.headerLines=[],this.lastLineBlank=!1;const e="digest"===(t.parentMultipartType||null)?"message/rfc822":"text/plain";this.contentType={value:e,parsed:{value:e,params:{}},multipart:!1},this.contentTransferEncoding={value:"8bit",encoding:""},this.contentDisposition={value:"",parsed:{value:"",params:{}}},this.headers=[],this.rawHeaderLines=[],this.contentDecoder=null,this.content=null}setupContentDecoder(t){this.contentDecoder=/base64/i.test(t)?new F:/quoted-printable/i.test(t)?new J:new H}async finalize(t=!1){if("finished"===this.state)return;"header"===this.state&&this.endHeaders();let e=this.postalMime.boundaries;for(let t=e.length-1;t>=0;t--)if(e[t].node===this){e.splice(t,1);break}await this.finalizeChildNodes(t),this.content=this.contentDecoder?await this.contentDecoder.finalize(t):null,this.contentDecoder=null,this.state="finished"}async finalizeChildNodes(t=!1){for(;this.finalizedChildCount<this.childNodes.length;)await this.childNodes[this.finalizedChildCount++].finalize(t)}stripComments(t){let e="",r=0,i=!1,s=!1,o=-1,n=!1,a=!1;const l=t=>{e+=t,a=" "===t||"\t"===t};for(let c=0;c<t.length;c++){const u=t.charAt(c);if(i)0===r&&l(u),i=!1;else if("\\"!==u)if('"'!==u||0!==r){if(!s){if("("===u&&(!n||!e.length||a)){0===r&&(o=c),r++;continue}if(")"===u&&r>0){r--;continue}0===r&&("="===u?n=!0:";"===u&&(n=!1))}0===r&&l(u)}else s=!s,l(u);else i=!0,0===r&&l(u)}return 0===r||t.indexOf(";",o)<0?e:t}parseStructuredHeader(t){t=this.stripComments(t);let e,r={value:"",params:{}},i=!1,s="",o="value",n="",a=!1,l=!1,c=!1;const u=()=>{s.length&&(s+=n),n=""},h=t=>{u(),s+=t},f=()=>{const t=s;return s="",n="",a=!1,t},p=(t,e)=>{t&&!Object.prototype.hasOwnProperty.call(r.params,t)&&(r.params[t]=e)},d=()=>{const t=f();!1===i?r.value=t:p(i,t)},m=()=>{p(f().trim().toLowerCase(),"")};for(let r=0,p=t.length;r<p;r++)switch(e=t.charAt(r),o){case"key":if("="===e){i=f().trim().toLowerCase(),o="value";break}if(";"===e){m();break}s+=e;break;case"value":if(a&&";"!==e){c=!1;break}if(c)h(e);else{if(l&&"\\"===e){c=!0;continue}l&&e===l?(l=!1,a=!0):l||'"'!==e?l||";"!==e?l||" "!==e&&"\t"!==e?h(e):n+=e:(d(),o="key"):(l=e,u())}c=!1}return"value"===o?d():m(),r.value&&(r.value=r.value.toLowerCase()),function(t){let e=new Map;Object.keys(t.params).forEach((r=>{let i=r.match(/\*((\d+)\*?)?$/);if(!i)return;let s=r.slice(0,i.index).toLowerCase(),o=Number(i[2])||0,n=e.get(s);n||(n={charset:null,values:[]},e.set(s,n));let a=t.params[r],l="*"===i[0].charAt(i[0].length-1);0===o&&l&&(i=a.match(/^([^']*)'[^']*'(.*)$/))&&(n.charset=i[1]||"utf-8",a=i[2]),n.values.push({nr:o,value:a,encoded:l}),delete t.params[r]})),e.forEach(((e,r)=>{if(Object.prototype.hasOwnProperty.call(t.params,r))return;let i="",s="";for(let t of e.values.sort(((t,e)=>t.nr-e.nr)))t.encoded?s+=t.value:(s&&(i+=M(s,e.charset),s=""),i+=t.value);s&&(i+=M(s,e.charset)),t.params[r]=i}))}(r),r}decodeFlowedText(t,e){const r=[];let i=!1,s=0;const o=t.split("\n");for(let t=0;t<o.length;t++){const n=o[t];let a=0;for(;62===n.charCodeAt(a);)a++;const l=32===n.charCodeAt(a)?a+1:a,c=n.slice(l),u="-- "===c;i&&a===s&&!u?(e&&(r[r.length-1]=r[r.length-1].slice(0,-1)),r.push(c)):(t&&r.push("\n"),r.push(a?n:c)),i=!u&&c.endsWith(" "),s=a}return r.join("")}getTextContent(){if(!this.content)return"";let t=function(t,e,r){const i=new Uint8Array(t);if(e)return T(i,e);const s=r?function(t){const e=A.decode(t.subarray(0,1024)).toLowerCase();let r=0;for(;(r=e.indexOf("<meta",r))>=0;){let t=e.indexOf(">",r);t<0&&(t=e.length);const i=j.exec(e.slice(r,t));if(i)return i[1];r=t}return null}(i):null,o=s?D(s):null;return!o||R.has(o.encoding)?L(i):("x-user-defined"===o.encoding?S("windows-1252"):o).decode(i)}(this.content,this.contentType.parsed.params.charset,"text/html"===this.contentType.parsed.value).replace(/\r\n/g,"\n");return/^flowed$/i.test(this.contentType.parsed.params.format)&&(t=this.decodeFlowedText(t,/^yes$/i.test(this.contentType.parsed.params.delsp))),t}processHeaders(){let t=[];for(let e of this.headerLines)t.length&&/^[ \t]/.test(e)?t[t.length-1].push(e):t.push([e]);let e=new Set;for(let r of t){let t=r.join("\n"),i=t.indexOf(":"),s=Z(i<0?t:t.slice(0,i));this.rawHeaderLines.push({key:s.toLowerCase(),line:t});let o=r.join("");i=o.indexOf(":");let n=Z(i<0?o:o.slice(0,i)),a=i<0?"":Z(B(o.slice(i+1)));this.headers.push({key:n.toLowerCase(),originalKey:n,value:a});const l=n.toLowerCase();if(K.has(l)&&!e.has(l))switch(e.add(l),l){case"content-type":this.contentType.value=a;break;case"content-transfer-encoding":this.contentTransferEncoding.value=a;break;case"content-disposition":this.contentDisposition.value=a;break;case"content-id":this.contentId=a;break;case"content-description":this.contentDescription=a}}this.contentType.parsed=this.parseStructuredHeader(this.contentType.value),this.contentType.multipart=!!/^multipart\//i.test(this.contentType.parsed.value)&&this.contentType.parsed.value.slice(this.contentType.parsed.value.indexOf("/")+1),this.contentType.multipart&&!this.contentType.parsed.params.boundary&&(this.contentType.parsed.value="text/plain",this.contentType.multipart=!1),this.contentType.multipart&&this.postalMime.boundaries.push({value:m.encode(this.contentType.parsed.params.boundary),node:this}),this.contentDisposition.parsed=this.parseStructuredHeader(this.contentDisposition.value),this.contentTransferEncoding.encoding=(this.stripComments(this.contentTransferEncoding.value).toLowerCase().match(/[\w-]+/)||[""])[0],this.setupContentDecoder(this.contentTransferEncoding.encoding)}endHeaders(){this.state="body",this.processHeaders()}feed(t,e){switch(this.state){case"header":{if(!t.length)return this.endHeaders(),!1;if(this.postalMime.headerSize+=t.length,this.postalMime.headerSize>this.options.maxHeadersSize)throw new Error(`Maximum header size of ${this.options.maxHeadersSize} bytes exceeded`);const e=L(t,Y);if(this.lastLineBlank&&!g(t[0])&&!Q.test(e))return this.headerLines.pop(),this.endHeaders(),!0;this.headerLines.push(e),this.lastLineBlank=(t=>t.every(g))(t);break}case"body":this.contentDecoder&&this.contentDecoder.update(t,e)}return!1}}const X={"Æ":"Æ","Æ":"Æ","&":"&","&":"&","Á":"Á","Á":"Á","Ă":"Ă","Â":"Â","Â":"Â","А":"А","𝔄":"𝔄","À":"À","À":"À","Α":"Α","Ā":"Ā","⩓":"⩓","Ą":"Ą","𝔸":"𝔸","⁡":"","Å":"Å","Å":"Å","𝒜":"𝒜","≔":"≔","Ã":"Ã","Ã":"Ã","Ä":"Ä","Ä":"Ä","∖":"∖","⫧":"⫧","⌆":"⌆","Б":"Б","∵":"∵","ℬ":"ℬ","Β":"Β","𝔅":"𝔅","𝔹":"𝔹","˘":"˘","ℬ":"ℬ","≎":"≎","Ч":"Ч","©":"©","©":"©","Ć":"Ć","⋒":"⋒","ⅅ":"ⅅ","ℭ":"ℭ","Č":"Č","Ç":"Ç","Ç":"Ç","Ĉ":"Ĉ","∰":"∰","Ċ":"Ċ","¸":"¸","·":"·","ℭ":"ℭ","Χ":"Χ","⊙":"⊙","⊖":"⊖","⊕":"⊕","⊗":"⊗","∲":"∲","”":"”","’":"’","∷":"∷","⩴":"⩴","≡":"≡","∯":"∯","∮":"∮","ℂ":"ℂ","∐":"∐","∳":"∳","⨯":"⨯","𝒞":"𝒞","⋓":"⋓","≍":"≍","ⅅ":"ⅅ","⤑":"⤑","Ђ":"Ђ","Ѕ":"Ѕ","Џ":"Џ","‡":"‡","↡":"↡","⫤":"⫤","Ď":"Ď","Д":"Д","∇":"∇","Δ":"Δ","𝔇":"𝔇","´":"´","˙":"˙","˝":"˝","`":"`","˜":"˜","⋄":"⋄","ⅆ":"ⅆ","𝔻":"𝔻","¨":"¨","⃜":"⃜","≐":"≐","∯":"∯","¨":"¨","⇓":"⇓","⇐":"⇐","⇔":"⇔","⫤":"⫤","⟸":"⟸","⟺":"⟺","⟹":"⟹","⇒":"⇒","⊨":"⊨","⇑":"⇑","⇕":"⇕","∥":"∥","↓":"↓","⤓":"⤓","⇵":"⇵","̑":"̑","⥐":"⥐","⥞":"⥞","↽":"↽","⥖":"⥖","⥟":"⥟","⇁":"⇁","⥗":"⥗","⊤":"⊤","↧":"↧","⇓":"⇓","𝒟":"𝒟","Đ":"Đ","Ŋ":"Ŋ","Ð":"Ð","Ð":"Ð","É":"É","É":"É","Ě":"Ě","Ê":"Ê","Ê":"Ê","Э":"Э","Ė":"Ė","𝔈":"𝔈","È":"È","È":"È","∈":"∈","Ē":"Ē","◻":"◻","▫":"▫","Ę":"Ę","𝔼":"𝔼","Ε":"Ε","⩵":"⩵","≂":"≂","⇌":"⇌","ℰ":"ℰ","⩳":"⩳","Η":"Η","Ë":"Ë","Ë":"Ë","∃":"∃","ⅇ":"ⅇ","Ф":"Ф","𝔉":"𝔉","◼":"◼","▪":"▪","𝔽":"𝔽","∀":"∀","ℱ":"ℱ","ℱ":"ℱ","Ѓ":"Ѓ",">":">",">":">","Γ":"Γ","Ϝ":"Ϝ","Ğ":"Ğ","Ģ":"Ģ","Ĝ":"Ĝ","Г":"Г","Ġ":"Ġ","𝔊":"𝔊","⋙":"⋙","𝔾":"𝔾","≥":"≥","⋛":"⋛","≧":"≧","⪢":"⪢","≷":"≷","⩾":"⩾","≳":"≳","𝒢":"𝒢","≫":"≫","Ъ":"Ъ","ˇ":"ˇ","^":"^","Ĥ":"Ĥ","ℌ":"ℌ","ℋ":"ℋ","ℍ":"ℍ","─":"─","ℋ":"ℋ","Ħ":"Ħ","≎":"≎","≏":"≏","Е":"Е","IJ":"IJ","Ё":"Ё","Í":"Í","Í":"Í","Î":"Î","Î":"Î","И":"И","İ":"İ","ℑ":"ℑ","Ì":"Ì","Ì":"Ì","ℑ":"ℑ","Ī":"Ī","ⅈ":"ⅈ","⇒":"⇒","∬":"∬","∫":"∫","⋂":"⋂","⁣":"","⁢":"","Į":"Į","𝕀":"𝕀","Ι":"Ι","ℐ":"ℐ","Ĩ":"Ĩ","І":"І","Ï":"Ï","Ï":"Ï","Ĵ":"Ĵ","Й":"Й","𝔍":"𝔍","𝕁":"𝕁","𝒥":"𝒥","Ј":"Ј","Є":"Є","Х":"Х","Ќ":"Ќ","Κ":"Κ","Ķ":"Ķ","К":"К","𝔎":"𝔎","𝕂":"𝕂","𝒦":"𝒦","Љ":"Љ","<":"<","<":"<","Ĺ":"Ĺ","Λ":"Λ","⟪":"⟪","ℒ":"ℒ","↞":"↞","Ľ":"Ľ","Ļ":"Ļ","Л":"Л","⟨":"⟨","←":"←","⇤":"⇤","⇆":"⇆","⌈":"⌈","⟦":"⟦","⥡":"⥡","⇃":"⇃","⥙":"⥙","⌊":"⌊","↔":"↔","⥎":"⥎","⊣":"⊣","↤":"↤","⥚":"⥚","⊲":"⊲","⧏":"⧏","⊴":"⊴","⥑":"⥑","⥠":"⥠","↿":"↿","⥘":"⥘","↼":"↼","⥒":"⥒","⇐":"⇐","⇔":"⇔","⋚":"⋚","≦":"≦","≶":"≶","⪡":"⪡","⩽":"⩽","≲":"≲","𝔏":"𝔏","⋘":"⋘","⇚":"⇚","Ŀ":"Ŀ","⟵":"⟵","⟷":"⟷","⟶":"⟶","⟸":"⟸","⟺":"⟺","⟹":"⟹","𝕃":"𝕃","↙":"↙","↘":"↘","ℒ":"ℒ","↰":"↰","Ł":"Ł","≪":"≪","⤅":"⤅","М":"М"," ":" ","ℳ":"ℳ","𝔐":"𝔐","∓":"∓","𝕄":"𝕄","ℳ":"ℳ","Μ":"Μ","Њ":"Њ","Ń":"Ń","Ň":"Ň","Ņ":"Ņ","Н":"Н","​":"","​":"","​":"","​":"","≫":"≫","≪":"≪","
":"\n","𝔑":"𝔑","⁠":""," ":" ","ℕ":"ℕ","⫬":"⫬","≢":"≢","≭":"≭","∦":"∦","∉":"∉","≠":"≠","≂̸":"≂̸","∄":"∄","≯":"≯","≱":"≱","≧̸":"≧̸","≫̸":"≫̸","≹":"≹","⩾̸":"⩾̸","≵":"≵","≎̸":"≎̸","≏̸":"≏̸","⋪":"⋪","⧏̸":"⧏̸","⋬":"⋬","≮":"≮","≰":"≰","≸":"≸","≪̸":"≪̸","⩽̸":"⩽̸","≴":"≴","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"⊀","⪯̸":"⪯̸","⋠":"⋠","∌":"∌","⋫":"⋫","⧐̸":"⧐̸","⋭":"⋭","⊏̸":"⊏̸","⋢":"⋢","⊐̸":"⊐̸","⋣":"⋣","⊂⃒":"⊂⃒","⊈":"⊈","⊁":"⊁","⪰̸":"⪰̸","⋡":"⋡","≿̸":"≿̸","⊃⃒":"⊃⃒","⊉":"⊉","≁":"≁","≄":"≄","≇":"≇","≉":"≉","∤":"∤","𝒩":"𝒩","Ñ":"Ñ","Ñ":"Ñ","Ν":"Ν","Œ":"Œ","Ó":"Ó","Ó":"Ó","Ô":"Ô","Ô":"Ô","О":"О","Ő":"Ő","𝔒":"𝔒","Ò":"Ò","Ò":"Ò","Ō":"Ō","Ω":"Ω","Ο":"Ο","𝕆":"𝕆","“":"“","‘":"‘","⩔":"⩔","𝒪":"𝒪","Ø":"Ø","Ø":"Ø","Õ":"Õ","Õ":"Õ","⨷":"⨷","Ö":"Ö","Ö":"Ö","‾":"‾","⏞":"⏞","⎴":"⎴","⏜":"⏜","∂":"∂","П":"П","𝔓":"𝔓","Φ":"Φ","Π":"Π","±":"±","ℌ":"ℌ","ℙ":"ℙ","⪻":"⪻","≺":"≺","⪯":"⪯","≼":"≼","≾":"≾","″":"″","∏":"∏","∷":"∷","∝":"∝","𝒫":"𝒫","Ψ":"Ψ",""":'"',""":'"',"𝔔":"𝔔","ℚ":"ℚ","𝒬":"𝒬","⤐":"⤐","®":"®","®":"®","Ŕ":"Ŕ","⟫":"⟫","↠":"↠","⤖":"⤖","Ř":"Ř","Ŗ":"Ŗ","Р":"Р","ℜ":"ℜ","∋":"∋","⇋":"⇋","⥯":"⥯","ℜ":"ℜ","Ρ":"Ρ","⟩":"⟩","→":"→","⇥":"⇥","⇄":"⇄","⌉":"⌉","⟧":"⟧","⥝":"⥝","⇂":"⇂","⥕":"⥕","⌋":"⌋","⊢":"⊢","↦":"↦","⥛":"⥛","⊳":"⊳","⧐":"⧐","⊵":"⊵","⥏":"⥏","⥜":"⥜","↾":"↾","⥔":"⥔","⇀":"⇀","⥓":"⥓","⇒":"⇒","ℝ":"ℝ","⥰":"⥰","⇛":"⇛","ℛ":"ℛ","↱":"↱","⧴":"⧴","Щ":"Щ","Ш":"Ш","Ь":"Ь","Ś":"Ś","⪼":"⪼","Š":"Š","Ş":"Ş","Ŝ":"Ŝ","С":"С","𝔖":"𝔖","↓":"↓","←":"←","→":"→","↑":"↑","Σ":"Σ","∘":"∘","𝕊":"𝕊","√":"√","□":"□","⊓":"⊓","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊔":"⊔","𝒮":"𝒮","⋆":"⋆","⋐":"⋐","⋐":"⋐","⊆":"⊆","≻":"≻","⪰":"⪰","≽":"≽","≿":"≿","∋":"∋","∑":"∑","⋑":"⋑","⊃":"⊃","⊇":"⊇","⋑":"⋑","Þ":"Þ","Þ":"Þ","™":"™","Ћ":"Ћ","Ц":"Ц","	":"\t","Τ":"Τ","Ť":"Ť","Ţ":"Ţ","Т":"Т","𝔗":"𝔗","∴":"∴","Θ":"Θ","  ":" "," ":" ","∼":"∼","≃":"≃","≅":"≅","≈":"≈","𝕋":"𝕋","⃛":"⃛","𝒯":"𝒯","Ŧ":"Ŧ","Ú":"Ú","Ú":"Ú","↟":"↟","⥉":"⥉","Ў":"Ў","Ŭ":"Ŭ","Û":"Û","Û":"Û","У":"У","Ű":"Ű","𝔘":"𝔘","Ù":"Ù","Ù":"Ù","Ū":"Ū","_":"_","⏟":"⏟","⎵":"⎵","⏝":"⏝","⋃":"⋃","⊎":"⊎","Ų":"Ų","𝕌":"𝕌","↑":"↑","⤒":"⤒","⇅":"⇅","↕":"↕","⥮":"⥮","⊥":"⊥","↥":"↥","⇑":"⇑","⇕":"⇕","↖":"↖","↗":"↗","ϒ":"ϒ","Υ":"Υ","Ů":"Ů","𝒰":"𝒰","Ũ":"Ũ","Ü":"Ü","Ü":"Ü","⊫":"⊫","⫫":"⫫","В":"В","⊩":"⊩","⫦":"⫦","⋁":"⋁","‖":"‖","‖":"‖","∣":"∣","|":"|","❘":"❘","≀":"≀"," ":" ","𝔙":"𝔙","𝕍":"𝕍","𝒱":"𝒱","⊪":"⊪","Ŵ":"Ŵ","⋀":"⋀","𝔚":"𝔚","𝕎":"𝕎","𝒲":"𝒲","𝔛":"𝔛","Ξ":"Ξ","𝕏":"𝕏","𝒳":"𝒳","Я":"Я","Ї":"Ї","Ю":"Ю","Ý":"Ý","Ý":"Ý","Ŷ":"Ŷ","Ы":"Ы","𝔜":"𝔜","𝕐":"𝕐","𝒴":"𝒴","Ÿ":"Ÿ","Ж":"Ж","Ź":"Ź","Ž":"Ž","З":"З","Ż":"Ż","​":"","Ζ":"Ζ","ℨ":"ℨ","ℤ":"ℤ","𝒵":"𝒵","á":"á","á":"á","ă":"ă","∾":"∾","∾̳":"∾̳","∿":"∿","â":"â","â":"â","´":"´","´":"´","а":"а","æ":"æ","æ":"æ","⁡":"","𝔞":"𝔞","à":"à","à":"à","ℵ":"ℵ","ℵ":"ℵ","α":"α","ā":"ā","⨿":"⨿","&":"&","&":"&","∧":"∧","⩕":"⩕","⩜":"⩜","⩘":"⩘","⩚":"⩚","∠":"∠","⦤":"⦤","∠":"∠","∡":"∡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"⦭","⦮":"⦮","⦯":"⦯","∟":"∟","⊾":"⊾","⦝":"⦝","∢":"∢","Å":"Å","⍼":"⍼","ą":"ą","𝕒":"𝕒","≈":"≈","⩰":"⩰","⩯":"⩯","≊":"≊","≋":"≋","'":"'","≈":"≈","≊":"≊","å":"å","å":"å","𝒶":"𝒶","*":"*","≈":"≈","≍":"≍","ã":"ã","ã":"ã","ä":"ä","ä":"ä","∳":"∳","⨑":"⨑","⫭":"⫭","≌":"≌","϶":"϶","‵":"‵","∽":"∽","⋍":"⋍","⊽":"⊽","⌅":"⌅","⌅":"⌅","⎵":"⎵","⎶":"⎶","≌":"≌","б":"б","„":"„","∵":"∵","∵":"∵","⦰":"⦰","϶":"϶","ℬ":"ℬ","β":"β","ℶ":"ℶ","≬":"≬","𝔟":"𝔟","⋂":"⋂","◯":"◯","⋃":"⋃","⨀":"⨀","⨁":"⨁","⨂":"⨂","⨆":"⨆","★":"★","▽":"▽","△":"△","⨄":"⨄","⋁":"⋁","⋀":"⋀","⤍":"⤍","⧫":"⧫","▪":"▪","▴":"▴","▾":"▾","◂":"◂","▸":"▸","␣":"␣","▒":"▒","░":"░","▓":"▓","█":"█","=⃥":"=⃥","≡⃥":"≡⃥","⌐":"⌐","𝕓":"𝕓","⊥":"⊥","⊥":"⊥","⋈":"⋈","╗":"╗","╔":"╔","╖":"╖","╓":"╓","═":"═","╦":"╦","╩":"╩","╤":"╤","╧":"╧","╝":"╝","╚":"╚","╜":"╜","╙":"╙","║":"║","╬":"╬","╣":"╣","╠":"╠","╫":"╫","╢":"╢","╟":"╟","⧉":"⧉","╕":"╕","╒":"╒","┐":"┐","┌":"┌","─":"─","╥":"╥","╨":"╨","┬":"┬","┴":"┴","⊟":"⊟","⊞":"⊞","⊠":"⊠","╛":"╛","╘":"╘","┘":"┘","└":"└","│":"│","╪":"╪","╡":"╡","╞":"╞","┼":"┼","┤":"┤","├":"├","‵":"‵","˘":"˘","¦":"¦","¦":"¦","𝒷":"𝒷","⁏":"⁏","∽":"∽","⋍":"⋍","\":"\\","⧅":"⧅","⟈":"⟈","•":"•","•":"•","≎":"≎","⪮":"⪮","≏":"≏","≏":"≏","ć":"ć","∩":"∩","⩄":"⩄","⩉":"⩉","⩋":"⩋","⩇":"⩇","⩀":"⩀","∩︀":"∩︀","⁁":"⁁","ˇ":"ˇ","⩍":"⩍","č":"č","ç":"ç","ç":"ç","ĉ":"ĉ","⩌":"⩌","⩐":"⩐","ċ":"ċ","¸":"¸","¸":"¸","⦲":"⦲","¢":"¢","¢":"¢","·":"·","𝔠":"𝔠","ч":"ч","✓":"✓","✓":"✓","χ":"χ","○":"○","⧃":"⧃","ˆ":"ˆ","≗":"≗","↺":"↺","↻":"↻","®":"®","Ⓢ":"Ⓢ","⊛":"⊛","⊚":"⊚","⊝":"⊝","≗":"≗","⨐":"⨐","⫯":"⫯","⧂":"⧂","♣":"♣","♣":"♣",":":":","≔":"≔","≔":"≔",",":",","@":"@","∁":"∁","∘":"∘","∁":"∁","ℂ":"ℂ","≅":"≅","⩭":"⩭","∮":"∮","𝕔":"𝕔","∐":"∐","©":"©","©":"©","℗":"℗","↵":"↵","✗":"✗","𝒸":"𝒸","⫏":"⫏","⫑":"⫑","⫐":"⫐","⫒":"⫒","⋯":"⋯","⤸":"⤸","⤵":"⤵","⋞":"⋞","⋟":"⋟","↶":"↶","⤽":"⤽","∪":"∪","⩈":"⩈","⩆":"⩆","⩊":"⩊","⊍":"⊍","⩅":"⩅","∪︀":"∪︀","↷":"↷","⤼":"⤼","⋞":"⋞","⋟":"⋟","⋎":"⋎","⋏":"⋏","¤":"¤","¤":"¤","↶":"↶","↷":"↷","⋎":"⋎","⋏":"⋏","∲":"∲","∱":"∱","⌭":"⌭","⇓":"⇓","⥥":"⥥","†":"†","ℸ":"ℸ","↓":"↓","‐":"‐","⊣":"⊣","⤏":"⤏","˝":"˝","ď":"ď","д":"д","ⅆ":"ⅆ","‡":"‡","⇊":"⇊","⩷":"⩷","°":"°","°":"°","δ":"δ","⦱":"⦱","⥿":"⥿","𝔡":"𝔡","⇃":"⇃","⇂":"⇂","⋄":"⋄","⋄":"⋄","♦":"♦","♦":"♦","¨":"¨","ϝ":"ϝ","⋲":"⋲","÷":"÷","÷":"÷","÷":"÷","⋇":"⋇","⋇":"⋇","ђ":"ђ","⌞":"⌞","⌍":"⌍","$":"$","𝕕":"𝕕","˙":"˙","≐":"≐","≑":"≑","∸":"∸","∔":"∔","⊡":"⊡","⌆":"⌆","↓":"↓","⇊":"⇊","⇃":"⇃","⇂":"⇂","⤐":"⤐","⌟":"⌟","⌌":"⌌","𝒹":"𝒹","ѕ":"ѕ","⧶":"⧶","đ":"đ","⋱":"⋱","▿":"▿","▾":"▾","⇵":"⇵","⥯":"⥯","⦦":"⦦","џ":"џ","⟿":"⟿","⩷":"⩷","≑":"≑","é":"é","é":"é","⩮":"⩮","ě":"ě","≖":"≖","ê":"ê","ê":"ê","≕":"≕","э":"э","ė":"ė","ⅇ":"ⅇ","≒":"≒","𝔢":"𝔢","⪚":"⪚","è":"è","è":"è","⪖":"⪖","⪘":"⪘","⪙":"⪙","⏧":"⏧","ℓ":"ℓ","⪕":"⪕","⪗":"⪗","ē":"ē","∅":"∅","∅":"∅","∅":"∅"," ":" "," ":" "," ":" ","ŋ":"ŋ"," ":" ","ę":"ę","𝕖":"𝕖","⋕":"⋕","⧣":"⧣","⩱":"⩱","ε":"ε","ε":"ε","ϵ":"ϵ","≖":"≖","≕":"≕","≂":"≂","⪖":"⪖","⪕":"⪕","=":"=","≟":"≟","≡":"≡","⩸":"⩸","⧥":"⧥","≓":"≓","⥱":"⥱","ℯ":"ℯ","≐":"≐","≂":"≂","η":"η","ð":"ð","ð":"ð","ë":"ë","ë":"ë","€":"€","!":"!","∃":"∃","ℰ":"ℰ","ⅇ":"ⅇ","≒":"≒","ф":"ф","♀":"♀","ffi":"ffi","ff":"ff","ffl":"ffl","𝔣":"𝔣","fi":"fi","fj":"fj","♭":"♭","fl":"fl","▱":"▱","ƒ":"ƒ","𝕗":"𝕗","∀":"∀","⋔":"⋔","⫙":"⫙","⨍":"⨍","½":"½","½":"½","⅓":"⅓","¼":"¼","¼":"¼","⅕":"⅕","⅙":"⅙","⅛":"⅛","⅔":"⅔","⅖":"⅖","¾":"¾","¾":"¾","⅗":"⅗","⅜":"⅜","⅘":"⅘","⅚":"⅚","⅝":"⅝","⅞":"⅞","⁄":"⁄","⌢":"⌢","𝒻":"𝒻","≧":"≧","⪌":"⪌","ǵ":"ǵ","γ":"γ","ϝ":"ϝ","⪆":"⪆","ğ":"ğ","ĝ":"ĝ","г":"г","ġ":"ġ","≥":"≥","⋛":"⋛","≥":"≥","≧":"≧","⩾":"⩾","⩾":"⩾","⪩":"⪩","⪀":"⪀","⪂":"⪂","⪄":"⪄","⋛︀":"⋛︀","⪔":"⪔","𝔤":"𝔤","≫":"≫","⋙":"⋙","ℷ":"ℷ","ѓ":"ѓ","≷":"≷","⪒":"⪒","⪥":"⪥","⪤":"⪤","≩":"≩","⪊":"⪊","⪊":"⪊","⪈":"⪈","⪈":"⪈","≩":"≩","⋧":"⋧","𝕘":"𝕘","`":"`","ℊ":"ℊ","≳":"≳","⪎":"⪎","⪐":"⪐",">":">",">":">","⪧":"⪧","⩺":"⩺","⋗":"⋗","⦕":"⦕","⩼":"⩼","⪆":"⪆","⥸":"⥸","⋗":"⋗","⋛":"⋛","⪌":"⪌","≷":"≷","≳":"≳","≩︀":"≩︀","≩︀":"≩︀","⇔":"⇔"," ":" ","½":"½","ℋ":"ℋ","ъ":"ъ","↔":"↔","⥈":"⥈","↭":"↭","ℏ":"ℏ","ĥ":"ĥ","♥":"♥","♥":"♥","…":"…","⊹":"⊹","𝔥":"𝔥","⤥":"⤥","⤦":"⤦","⇿":"⇿","∻":"∻","↩":"↩","↪":"↪","𝕙":"𝕙","―":"―","𝒽":"𝒽","ℏ":"ℏ","ħ":"ħ","⁃":"⁃","‐":"‐","í":"í","í":"í","⁣":"","î":"î","î":"î","и":"и","е":"е","¡":"¡","¡":"¡","⇔":"⇔","𝔦":"𝔦","ì":"ì","ì":"ì","ⅈ":"ⅈ","⨌":"⨌","∭":"∭","⧜":"⧜","℩":"℩","ij":"ij","ī":"ī","ℑ":"ℑ","ℐ":"ℐ","ℑ":"ℑ","ı":"ı","⊷":"⊷","Ƶ":"Ƶ","∈":"∈","℅":"℅","∞":"∞","⧝":"⧝","ı":"ı","∫":"∫","⊺":"⊺","ℤ":"ℤ","⊺":"⊺","⨗":"⨗","⨼":"⨼","ё":"ё","į":"į","𝕚":"𝕚","ι":"ι","⨼":"⨼","¿":"¿","¿":"¿","𝒾":"𝒾","∈":"∈","⋹":"⋹","⋵":"⋵","⋴":"⋴","⋳":"⋳","∈":"∈","⁢":"","ĩ":"ĩ","і":"і","ï":"ï","ï":"ï","ĵ":"ĵ","й":"й","𝔧":"𝔧","ȷ":"ȷ","𝕛":"𝕛","𝒿":"𝒿","ј":"ј","є":"є","κ":"κ","ϰ":"ϰ","ķ":"ķ","к":"к","𝔨":"𝔨","ĸ":"ĸ","х":"х","ќ":"ќ","𝕜":"𝕜","𝓀":"𝓀","⇚":"⇚","⇐":"⇐","⤛":"⤛","⤎":"⤎","≦":"≦","⪋":"⪋","⥢":"⥢","ĺ":"ĺ","⦴":"⦴","ℒ":"ℒ","λ":"λ","⟨":"⟨","⦑":"⦑","⟨":"⟨","⪅":"⪅","«":"«","«":"«","←":"←","⇤":"⇤","⤟":"⤟","⤝":"⤝","↩":"↩","↫":"↫","⤹":"⤹","⥳":"⥳","↢":"↢","⪫":"⪫","⤙":"⤙","⪭":"⪭","⪭︀":"⪭︀","⤌":"⤌","❲":"❲","{":"{","[":"[","⦋":"⦋","⦏":"⦏","⦍":"⦍","ľ":"ľ","ļ":"ļ","⌈":"⌈","{":"{","л":"л","⤶":"⤶","“":"“","„":"„","⥧":"⥧","⥋":"⥋","↲":"↲","≤":"≤","←":"←","↢":"↢","↽":"↽","↼":"↼","⇇":"⇇","↔":"↔","⇆":"⇆","⇋":"⇋","↭":"↭","⋋":"⋋","⋚":"⋚","≤":"≤","≦":"≦","⩽":"⩽","⩽":"⩽","⪨":"⪨","⩿":"⩿","⪁":"⪁","⪃":"⪃","⋚︀":"⋚︀","⪓":"⪓","⪅":"⪅","⋖":"⋖","⋚":"⋚","⪋":"⪋","≶":"≶","≲":"≲","⥼":"⥼","⌊":"⌊","𝔩":"𝔩","≶":"≶","⪑":"⪑","↽":"↽","↼":"↼","⥪":"⥪","▄":"▄","љ":"љ","≪":"≪","⇇":"⇇","⌞":"⌞","⥫":"⥫","◺":"◺","ŀ":"ŀ","⎰":"⎰","⎰":"⎰","≨":"≨","⪉":"⪉","⪉":"⪉","⪇":"⪇","⪇":"⪇","≨":"≨","⋦":"⋦","⟬":"⟬","⇽":"⇽","⟦":"⟦","⟵":"⟵","⟷":"⟷","⟼":"⟼","⟶":"⟶","↫":"↫","↬":"↬","⦅":"⦅","𝕝":"𝕝","⨭":"⨭","⨴":"⨴","∗":"∗","_":"_","◊":"◊","◊":"◊","⧫":"⧫","(":"(","⦓":"⦓","⇆":"⇆","⌟":"⌟","⇋":"⇋","⥭":"⥭","‎":"","⊿":"⊿","‹":"‹","𝓁":"𝓁","↰":"↰","≲":"≲","⪍":"⪍","⪏":"⪏","[":"[","‘":"‘","‚":"‚","ł":"ł","<":"<","<":"<","⪦":"⪦","⩹":"⩹","⋖":"⋖","⋋":"⋋","⋉":"⋉","⥶":"⥶","⩻":"⩻","⦖":"⦖","◃":"◃","⊴":"⊴","◂":"◂","⥊":"⥊","⥦":"⥦","≨︀":"≨︀","≨︀":"≨︀","∺":"∺","¯":"¯","¯":"¯","♂":"♂","✠":"✠","✠":"✠","↦":"↦","↦":"↦","↧":"↧","↤":"↤","↥":"↥","▮":"▮","⨩":"⨩","м":"м","—":"—","∡":"∡","𝔪":"𝔪","℧":"℧","µ":"µ","µ":"µ","∣":"∣","*":"*","⫰":"⫰","·":"·","·":"·","−":"−","⊟":"⊟","∸":"∸","⨪":"⨪","⫛":"⫛","…":"…","∓":"∓","⊧":"⊧","𝕞":"𝕞","∓":"∓","𝓂":"𝓂","∾":"∾","μ":"μ","⊸":"⊸","⊸":"⊸","⋙̸":"⋙̸","≫⃒":"≫⃒","≫̸":"≫̸","⇍":"⇍","⇎":"⇎","⋘̸":"⋘̸","≪⃒":"≪⃒","≪̸":"≪̸","⇏":"⇏","⊯":"⊯","⊮":"⊮","∇":"∇","ń":"ń","∠⃒":"∠⃒","≉":"≉","⩰̸":"⩰̸","≋̸":"≋̸","ʼn":"ʼn","≉":"≉","♮":"♮","♮":"♮","ℕ":"ℕ"," ":" "," ":" ","≎̸":"≎̸","≏̸":"≏̸","⩃":"⩃","ň":"ň","ņ":"ņ","≇":"≇","⩭̸":"⩭̸","⩂":"⩂","н":"н","–":"–","≠":"≠","⇗":"⇗","⤤":"⤤","↗":"↗","↗":"↗","≐̸":"≐̸","≢":"≢","⤨":"⤨","≂̸":"≂̸","∄":"∄","∄":"∄","𝔫":"𝔫","≧̸":"≧̸","≱":"≱","≱":"≱","≧̸":"≧̸","⩾̸":"⩾̸","⩾̸":"⩾̸","≵":"≵","≯":"≯","≯":"≯","⇎":"⇎","↮":"↮","⫲":"⫲","∋":"∋","⋼":"⋼","⋺":"⋺","∋":"∋","њ":"њ","⇍":"⇍","≦̸":"≦̸","↚":"↚","‥":"‥","≰":"≰","↚":"↚","↮":"↮","≰":"≰","≦̸":"≦̸","⩽̸":"⩽̸","⩽̸":"⩽̸","≮":"≮","≴":"≴","≮":"≮","⋪":"⋪","⋬":"⋬","∤":"∤","𝕟":"𝕟","¬":"¬","¬":"¬","∉":"∉","⋹̸":"⋹̸","⋵̸":"⋵̸","∉":"∉","⋷":"⋷","⋶":"⋶","∌":"∌","∌":"∌","⋾":"⋾","⋽":"⋽","∦":"∦","∦":"∦","⫽⃥":"⫽⃥","∂̸":"∂̸","⨔":"⨔","⊀":"⊀","⋠":"⋠","⪯̸":"⪯̸","⊀":"⊀","⪯̸":"⪯̸","⇏":"⇏","↛":"↛","⤳̸":"⤳̸","↝̸":"↝̸","↛":"↛","⋫":"⋫","⋭":"⋭","⊁":"⊁","⋡":"⋡","⪰̸":"⪰̸","𝓃":"𝓃","∤":"∤","∦":"∦","≁":"≁","≄":"≄","≄":"≄","∤":"∤","∦":"∦","⋢":"⋢","⋣":"⋣","⊄":"⊄","⫅̸":"⫅̸","⊈":"⊈","⊂⃒":"⊂⃒","⊈":"⊈","⫅̸":"⫅̸","⊁":"⊁","⪰̸":"⪰̸","⊅":"⊅","⫆̸":"⫆̸","⊉":"⊉","⊃⃒":"⊃⃒","⊉":"⊉","⫆̸":"⫆̸","≹":"≹","ñ":"ñ","ñ":"ñ","≸":"≸","⋪":"⋪","⋬":"⋬","⋫":"⋫","⋭":"⋭","ν":"ν","#":"#","№":"№"," ":" ","⊭":"⊭","⤄":"⤄","≍⃒":"≍⃒","⊬":"⊬","≥⃒":"≥⃒",">⃒":">⃒","⧞":"⧞","⤂":"⤂","≤⃒":"≤⃒","<⃒":"<⃒","⊴⃒":"⊴⃒","⤃":"⤃","⊵⃒":"⊵⃒","∼⃒":"∼⃒","⇖":"⇖","⤣":"⤣","↖":"↖","↖":"↖","⤧":"⤧","Ⓢ":"Ⓢ","ó":"ó","ó":"ó","⊛":"⊛","⊚":"⊚","ô":"ô","ô":"ô","о":"о","⊝":"⊝","ő":"ő","⨸":"⨸","⊙":"⊙","⦼":"⦼","œ":"œ","⦿":"⦿","𝔬":"𝔬","˛":"˛","ò":"ò","ò":"ò","⧁":"⧁","⦵":"⦵","Ω":"Ω","∮":"∮","↺":"↺","⦾":"⦾","⦻":"⦻","‾":"‾","⧀":"⧀","ō":"ō","ω":"ω","ο":"ο","⦶":"⦶","⊖":"⊖","𝕠":"𝕠","⦷":"⦷","⦹":"⦹","⊕":"⊕","∨":"∨","↻":"↻","⩝":"⩝","ℴ":"ℴ","ℴ":"ℴ","ª":"ª","ª":"ª","º":"º","º":"º","⊶":"⊶","⩖":"⩖","⩗":"⩗","⩛":"⩛","ℴ":"ℴ","ø":"ø","ø":"ø","⊘":"⊘","õ":"õ","õ":"õ","⊗":"⊗","⨶":"⨶","ö":"ö","ö":"ö","⌽":"⌽","∥":"∥","¶":"¶","¶":"¶","∥":"∥","⫳":"⫳","⫽":"⫽","∂":"∂","п":"п","%":"%",".":".","‰":"‰","⊥":"⊥","‱":"‱","𝔭":"𝔭","φ":"φ","ϕ":"ϕ","ℳ":"ℳ","☎":"☎","π":"π","⋔":"⋔","ϖ":"ϖ","ℏ":"ℏ","ℎ":"ℎ","ℏ":"ℏ","+":"+","⨣":"⨣","⊞":"⊞","⨢":"⨢","∔":"∔","⨥":"⨥","⩲":"⩲","±":"±","±":"±","⨦":"⨦","⨧":"⨧","±":"±","⨕":"⨕","𝕡":"𝕡","£":"£","£":"£","≺":"≺","⪳":"⪳","⪷":"⪷","≼":"≼","⪯":"⪯","≺":"≺","⪷":"⪷","≼":"≼","⪯":"⪯","⪹":"⪹","⪵":"⪵","⋨":"⋨","≾":"≾","′":"′","ℙ":"ℙ","⪵":"⪵","⪹":"⪹","⋨":"⋨","∏":"∏","⌮":"⌮","⌒":"⌒","⌓":"⌓","∝":"∝","∝":"∝","≾":"≾","⊰":"⊰","𝓅":"𝓅","ψ":"ψ"," ":" ","𝔮":"𝔮","⨌":"⨌","𝕢":"𝕢","⁗":"⁗","𝓆":"𝓆","ℍ":"ℍ","⨖":"⨖","?":"?","≟":"≟",""":'"',""":'"',"⇛":"⇛","⇒":"⇒","⤜":"⤜","⤏":"⤏","⥤":"⥤","∽̱":"∽̱","ŕ":"ŕ","√":"√","⦳":"⦳","⟩":"⟩","⦒":"⦒","⦥":"⦥","⟩":"⟩","»":"»","»":"»","→":"→","⥵":"⥵","⇥":"⇥","⤠":"⤠","⤳":"⤳","⤞":"⤞","↪":"↪","↬":"↬","⥅":"⥅","⥴":"⥴","↣":"↣","↝":"↝","⤚":"⤚","∶":"∶","ℚ":"ℚ","⤍":"⤍","❳":"❳","}":"}","]":"]","⦌":"⦌","⦎":"⦎","⦐":"⦐","ř":"ř","ŗ":"ŗ","⌉":"⌉","}":"}","р":"р","⤷":"⤷","⥩":"⥩","”":"”","”":"”","↳":"↳","ℜ":"ℜ","ℛ":"ℛ","ℜ":"ℜ","ℝ":"ℝ","▭":"▭","®":"®","®":"®","⥽":"⥽","⌋":"⌋","𝔯":"𝔯","⇁":"⇁","⇀":"⇀","⥬":"⥬","ρ":"ρ","ϱ":"ϱ","→":"→","↣":"↣","⇁":"⇁","⇀":"⇀","⇄":"⇄","⇌":"⇌","⇉":"⇉","↝":"↝","⋌":"⋌","˚":"˚","≓":"≓","⇄":"⇄","⇌":"⇌","‏":"","⎱":"⎱","⎱":"⎱","⫮":"⫮","⟭":"⟭","⇾":"⇾","⟧":"⟧","⦆":"⦆","𝕣":"𝕣","⨮":"⨮","⨵":"⨵",")":")","⦔":"⦔","⨒":"⨒","⇉":"⇉","›":"›","𝓇":"𝓇","↱":"↱","]":"]","’":"’","’":"’","⋌":"⋌","⋊":"⋊","▹":"▹","⊵":"⊵","▸":"▸","⧎":"⧎","⥨":"⥨","℞":"℞","ś":"ś","‚":"‚","≻":"≻","⪴":"⪴","⪸":"⪸","š":"š","≽":"≽","⪰":"⪰","ş":"ş","ŝ":"ŝ","⪶":"⪶","⪺":"⪺","⋩":"⋩","⨓":"⨓","≿":"≿","с":"с","⋅":"⋅","⊡":"⊡","⩦":"⩦","⇘":"⇘","⤥":"⤥","↘":"↘","↘":"↘","§":"§","§":"§",";":";","⤩":"⤩","∖":"∖","∖":"∖","✶":"✶","𝔰":"𝔰","⌢":"⌢","♯":"♯","щ":"щ","ш":"ш","∣":"∣","∥":"∥","­":"","­":"","σ":"σ","ς":"ς","ς":"ς","∼":"∼","⩪":"⩪","≃":"≃","≃":"≃","⪞":"⪞","⪠":"⪠","⪝":"⪝","⪟":"⪟","≆":"≆","⨤":"⨤","⥲":"⥲","←":"←","∖":"∖","⨳":"⨳","⧤":"⧤","∣":"∣","⌣":"⌣","⪪":"⪪","⪬":"⪬","⪬︀":"⪬︀","ь":"ь","/":"/","⧄":"⧄","⌿":"⌿","𝕤":"𝕤","♠":"♠","♠":"♠","∥":"∥","⊓":"⊓","⊓︀":"⊓︀","⊔":"⊔","⊔︀":"⊔︀","⊏":"⊏","⊑":"⊑","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊐":"⊐","⊒":"⊒","□":"□","□":"□","▪":"▪","▪":"▪","→":"→","𝓈":"𝓈","∖":"∖","⌣":"⌣","⋆":"⋆","☆":"☆","★":"★","ϵ":"ϵ","ϕ":"ϕ","¯":"¯","⊂":"⊂","⫅":"⫅","⪽":"⪽","⊆":"⊆","⫃":"⫃","⫁":"⫁","⫋":"⫋","⊊":"⊊","⪿":"⪿","⥹":"⥹","⊂":"⊂","⊆":"⊆","⫅":"⫅","⊊":"⊊","⫋":"⫋","⫇":"⫇","⫕":"⫕","⫓":"⫓","≻":"≻","⪸":"⪸","≽":"≽","⪰":"⪰","⪺":"⪺","⪶":"⪶","⋩":"⋩","≿":"≿","∑":"∑","♪":"♪","¹":"¹","¹":"¹","²":"²","²":"²","³":"³","³":"³","⊃":"⊃","⫆":"⫆","⪾":"⪾","⫘":"⫘","⊇":"⊇","⫄":"⫄","⟉":"⟉","⫗":"⫗","⥻":"⥻","⫂":"⫂","⫌":"⫌","⊋":"⊋","⫀":"⫀","⊃":"⊃","⊇":"⊇","⫆":"⫆","⊋":"⊋","⫌":"⫌","⫈":"⫈","⫔":"⫔","⫖":"⫖","⇙":"⇙","⤦":"⤦","↙":"↙","↙":"↙","⤪":"⤪","ß":"ß","ß":"ß","⌖":"⌖","τ":"τ","⎴":"⎴","ť":"ť","ţ":"ţ","т":"т","⃛":"⃛","⌕":"⌕","𝔱":"𝔱","∴":"∴","∴":"∴","θ":"θ","ϑ":"ϑ","ϑ":"ϑ","≈":"≈","∼":"∼"," ":" ","≈":"≈","∼":"∼","þ":"þ","þ":"þ","˜":"˜","×":"×","×":"×","⊠":"⊠","⨱":"⨱","⨰":"⨰","∭":"∭","⤨":"⤨","⊤":"⊤","⌶":"⌶","⫱":"⫱","𝕥":"𝕥","⫚":"⫚","⤩":"⤩","‴":"‴","™":"™","▵":"▵","▿":"▿","◃":"◃","⊴":"⊴","≜":"≜","▹":"▹","⊵":"⊵","◬":"◬","≜":"≜","⨺":"⨺","⨹":"⨹","⧍":"⧍","⨻":"⨻","⏢":"⏢","𝓉":"𝓉","ц":"ц","ћ":"ћ","ŧ":"ŧ","≬":"≬","↞":"↞","↠":"↠","⇑":"⇑","⥣":"⥣","ú":"ú","ú":"ú","↑":"↑","ў":"ў","ŭ":"ŭ","û":"û","û":"û","у":"у","⇅":"⇅","ű":"ű","⥮":"⥮","⥾":"⥾","𝔲":"𝔲","ù":"ù","ù":"ù","↿":"↿","↾":"↾","▀":"▀","⌜":"⌜","⌜":"⌜","⌏":"⌏","◸":"◸","ū":"ū","¨":"¨","¨":"¨","ų":"ų","𝕦":"𝕦","↑":"↑","↕":"↕","↿":"↿","↾":"↾","⊎":"⊎","υ":"υ","ϒ":"ϒ","υ":"υ","⇈":"⇈","⌝":"⌝","⌝":"⌝","⌎":"⌎","ů":"ů","◹":"◹","𝓊":"𝓊","⋰":"⋰","ũ":"ũ","▵":"▵","▴":"▴","⇈":"⇈","ü":"ü","ü":"ü","⦧":"⦧","⇕":"⇕","⫨":"⫨","⫩":"⫩","⊨":"⊨","⦜":"⦜","ϵ":"ϵ","ϰ":"ϰ","∅":"∅","ϕ":"ϕ","ϖ":"ϖ","∝":"∝","↕":"↕","ϱ":"ϱ","ς":"ς","⊊︀":"⊊︀","⫋︀":"⫋︀","⊋︀":"⊋︀","⫌︀":"⫌︀","ϑ":"ϑ","⊲":"⊲","⊳":"⊳","в":"в","⊢":"⊢","∨":"∨","⊻":"⊻","≚":"≚","⋮":"⋮","|":"|","|":"|","𝔳":"𝔳","⊲":"⊲","⊂⃒":"⊂⃒","⊃⃒":"⊃⃒","𝕧":"𝕧","∝":"∝","⊳":"⊳","𝓋":"𝓋","⫋︀":"⫋︀","⊊︀":"⊊︀","⫌︀":"⫌︀","⊋︀":"⊋︀","⦚":"⦚","ŵ":"ŵ","⩟":"⩟","∧":"∧","≙":"≙","℘":"℘","𝔴":"𝔴","𝕨":"𝕨","℘":"℘","≀":"≀","≀":"≀","𝓌":"𝓌","⋂":"⋂","◯":"◯","⋃":"⋃","▽":"▽","𝔵":"𝔵","⟺":"⟺","⟷":"⟷","ξ":"ξ","⟸":"⟸","⟵":"⟵","⟼":"⟼","⋻":"⋻","⨀":"⨀","𝕩":"𝕩","⨁":"⨁","⨂":"⨂","⟹":"⟹","⟶":"⟶","𝓍":"𝓍","⨆":"⨆","⨄":"⨄","△":"△","⋁":"⋁","⋀":"⋀","ý":"ý","ý":"ý","я":"я","ŷ":"ŷ","ы":"ы","¥":"¥","¥":"¥","𝔶":"𝔶","ї":"ї","𝕪":"𝕪","𝓎":"𝓎","ю":"ю","ÿ":"ÿ","ÿ":"ÿ","ź":"ź","ž":"ž","з":"з","ż":"ż","ℨ":"ℨ","ζ":"ζ","𝔷":"𝔷","ж":"ж","⇝":"⇝","𝕫":"𝕫","𝓏":"𝓏","‍":"","‌":""},tt=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function et(t){return t.trim().replace(/[<>"'?&]/g,(t=>{let e=t.charCodeAt(0).toString(16);return e.length<2&&(e="0"+e),"&#x"+e.toUpperCase()+";"}))}const rt=/[\n\r\u2028\u2029]/g;function it(t,e){let r=1/0,i=null;return s=>((s<r||i&&s>i.index)&&(e.lastIndex=s,i=e.exec(t),r=s),i)}function st(t,e,r){const i=t.lastIndexOf(">")+1;return t.slice(0,i).replace(e,r)+t.slice(i)}function ot(t,e,r,i){const s=[];let o=0,n=0;for(;;){e.lastIndex=n;const a=e.exec(t);if(!a)break;const l=a.index,c=t.indexOf(">",l);if(c<0)break;r.lastIndex=l;const u=r.exec(t);u?(s.push(t.slice(o,l),i(...u)),o=n=l+u[0].length):n=c+1}return s.push(t.slice(o)),s.join("")}function nt(t,e,r,i,s,o){const n=it(t,/>/g),a=it(t,i),l=it(t,rt),c=[];let u=0,h=0;for(;;){e.lastIndex=h;const i=e.exec(t);if(!i)break;const f=i.index;h=f+1;let p=f+i[0].length;if(r){const t=n(p);if(!t)break;p=t.index+1}const d=a(p);if(!d)break;const m=l(p);if(m&&m.index<d.index)continue;let g=d.index+d[0].length;if(s){const t=n(g);if(!t)break;g=t.index+1}c.push(t.slice(u,f),o),u=h=g}return c.push(t.slice(u)),c.join("")}function at(t,e){const r=t.search(rt),i=Math.min(r<0?t.length:r,t.lastIndexOf(">"));let s,o=-1;for(e.lastIndex=0;(s=e.exec(t))&&s.index<i;)o=s.index;return o<0?t:t.slice(t.indexOf(">",o)+1)}function lt(t,e){const r=function(t){return Math.max(t.lastIndexOf("\n"),t.lastIndexOf("\r"),t.lastIndexOf("\u2028"),t.lastIndexOf("\u2029"))}(t);e.lastIndex=r<0?0:t.lastIndexOf(">",r)+1;const i=e.exec(t);return i&&i.index<t.lastIndexOf(">")?t.slice(0,i.index):t}function ct(t){if("undefined"==typeof Intl)return t;const e=new Date(t);return isNaN(e.getTime())?t:new Intl.DateTimeFormat("default",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1}).format(e)}function ut(t){let e=[],r=(t,i)=>{if(i&&e.push(", "),t.group){let i=";";e.push(`${t.name}:`),t.group.forEach(r),e.push(i)}else e.push(function(t){return(t.name?[t.name,`<${t.address}>`]:[t.address]).join(" ")}(t))};return t.forEach(r),e.join("")}function ht(t){let e=[],r=(t,i)=>{if(i&&e.push('<span class="postal-email-address-separator">, </span>'),t.group){let i=`<span class="postal-email-address-group">${et(t.name)}:</span>`,s='<span class="postal-email-address-group">;</span>';e.push(i),t.group.forEach(r),e.push(s)}else e.push(function(t){return`<a href="mailto:${et(t.address)}" class="postal-email-address">${et(t.name||`<${t.address}>`)}</a>`}(t))};return t.forEach(r),e.join(" ")}const ft=/\s/,pt=/^("(?:[^"\\]|\\[\s\S])*"@\S+)(?:\s+([\s\S]+))?$/,dt=/^[^@\s]+@[^@\s]+$/,mt=/^[^@\s]+@\S+$/,gt=/\s*\b[^@\s]+@[^\s]+\b\s*/y;function bt(t){return 32===t||t>=9&&t<=13||160===t||5760===t||t>=8192&&t<=8202||8232===t||8233===t||8239===t||8287===t||12288===t||65279===t}function wt(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t}function vt(t,e){return wt(t.charCodeAt(e-1))!==wt(t.charCodeAt(e))}function yt(t,e,r){for(let i=e;i<r;i++)if(64===t.charCodeAt(i))return i;return-1}function xt(t){const e=t.length;let r=0;for(;r<e;){for(;r<e&&bt(t.charCodeAt(r));)r++;if(r>=e)break;const i=r;let s=r;for(;s<e&&!bt(t.charCodeAt(s));)s++;let o=yt(t,i,s);if(o>=0){let e=-1;for(let r=s;r>i;r--)if(vt(t,r)){e=r;break}let r=i;for(;e>=0&&o>=0;){if(o>r&&s>o+1&&e>o+1)for(let e=r;e<o;e++)if(vt(t,e)){if(e>i)return e;let r=i;for(;r>0&&bt(t.charCodeAt(r-1));)r--;return r}r=o+1,o=yt(t,r,s)}}r=s}return-1}function qt(t){const e=[];let r="",i="",s=0,o="",n="";for(let a=0,l=t.length;a<l;a++){const c=t.charAt(a);if(s)"\\"===c&&a<l-1?i+=t.charAt(++a):"("===c?(s++,i+=c):")"!==c||--s?i+=c:(e.push(i.trim()),i="","@"!==n&&"@"!==t.charAt(a+1)&&(r+=" ",n=" "));else{if(o){if("\\"===c&&'"'===o&&a<l-1){r+=c+t.charAt(++a),n=t.charAt(a);continue}c===o&&(o="")}else if('"'===c)o='"';else if("["===c)o="]";else if("("===c){s=1;continue}r+=c,n=c}}return s&&e.push(i.trim()),{address:r.trim(),comments:e.filter((t=>t))}}function kt(t,e){let r,i,s=!1,o="text",n=[],a={address:[],comment:[],group:[],text:[],textWasQuoted:[]},l=!1;const c={address:"",comment:"",group:"",text:""};for(r=0,i=t.length;r<i;r++){let e=t[r],i=r?t[r-1]:null;if("operator"===e.type)switch(e.value){case"<":o="address",l=!1;break;case"(":o="comment",l=!1;break;case":":o="group",s=!0,l=!1;break;case'"':l=!l,o="text";break;default:o="text",l=!1}else if(e.value){const s=r>1?t[r-2]:null,n="operator"===i?.type&&'"'===i.value&&!!i.noBreak&&"operator"===s?.type&&'"'===s.value;"address"===o&&(e.value=e.value.replace(/^[^<]*<\s*/,"")),i&&i.noBreak&&a[o].length&&(")"!==i.value||"@"===c[o]||"@"===e.value.charAt(0))?(a[o][a[o].length-1]+=e.value,"text"===o&&l&&(a.textWasQuoted[a.textWasQuoted.length-1]=!0)):(a[o].push(e.value),"text"===o&&a.textWasQuoted.push(l||n)),c[o]=e.value.charAt(e.value.length-1)}}if(!a.text.length&&a.comment.length&&(a.text=a.comment,a.comment=[]),s){const t=a.text.join(" ");let r=[];a.group.length&&Dt(a.group.join(","),e+1).forEach((t=>{if(t.group)for(const e of t.group)r.push(e);else r.push(t)})),n.push({name:G(t),group:r})}else{const t=[],i=[];for(const e of a.address){if(e.indexOf("(")<0){i.push(e);continue}const r=qt(e);for(const e of r.comments)t.push(e);r.address&&i.push(r.address)}if(a.address=i,!a.address.length&&a.text.length){for(r=a.text.length-1;r>=0;r--)if(!a.textWasQuoted[r]&&dt.test(a.text[r])){a.address=a.text.splice(r,1),a.textWasQuoted.splice(r,1);break}if(!a.address.length)for(r=a.text.length-1;r>=0;r--)if(!a.textWasQuoted[r]){const t=a.text[r],e=xt(t);if(e>=0){gt.lastIndex=e;const i=gt.exec(t);if(i){a.address=[i[0].trim()],a.text[r]=(t.slice(0,e)+" "+t.slice(e+i[0].length)).trim();break}}a.text[r]=t.trim()}}!a.text.length&&a.comment.length&&(a.text=a.comment,a.comment=[]),a.address.length>1&&(a.text=a.text.concat(a.address.splice(1)));const s=!a.address.length&&a.textWasQuoted.some((t=>t));let o=a.text.join(" "),l=a.address.join(" ");if(!l&&(u=o.trim(),I.test(u))){const t=G(o);if(!s&&function(t){let e=-1,r=-1;for(let i=0;i<t.length;i++){const s=t.charAt(i);if("<"===s)e=i+1,r=-1;else if(">"===s){if(r>=0&&r<i-1)return!0;e=-1,r=-1}else"@"===s&&e>=0&&r<0&&i>e&&(r=i)}return!1}(t)){const r=Dt(t,e+1);if(r.length)return r}return[{address:"",name:t}]}s&&o.indexOf("@")>=0&&(l=function(t){const e=t.lastIndexOf("@");if(e<0)return t;const r=t.substring(0,e);return/^[^\s"(),:;<>@[\\\]]+$/.test(r)||/^"(?:[^"\\]|\\[\s\S])*"$/.test(r)?t:'"'+r.replace(/["\\]/g,"\\$&")+'"@'+t.substring(e+1)}(o),o=""),({address:l,text:o}=function(t,e){if(!ft.test(t))return{address:t,text:e};let r;const i=t.match(pt);if(i){if(!i[2])return{address:t,text:e};t=i[1],r=[i[2]]}else{if(t.indexOf('"')>=0)return{address:t,text:e};const i=t.split(/\s+/);let s=i.findIndex((t=>dt.test(t)));if(s<0&&(s=i.findIndex((t=>mt.test(t)))),s<0)return{address:t,text:e};t=i.splice(s,1)[0],r=i}return{address:t,text:[e,...r].filter((t=>t)).join(" ")}}(l,o)),!o&&t.length&&(o=t.join(" "));const c=o||l||"",h={address:l||o||"",name:G(c)};h.address!==c&&h.address!==h.name||(h.address.match(/@/)?h.name="":h.address=""),n.push(h)}var u;return n}class Et{constructor(t){this.str=(t||"").toString(),this.operatorCurrent="",this.operatorExpecting="",this.node=null,this.escaped=!1,this.inDomainLiteral=!1,this.afterAt=!1,this.list=[],this.operators={'"':'"',"(":")","<":">",",":"",":":";",";":""}}tokenize(){let t=[];for(let t=0,e=this.str.length;t<e;t++){let r=this.str.charAt(t),i=t<e-1?this.str.charAt(t+1):null;this.checkChar(r,i)}return this.list.forEach((e=>{e.value=(e.value||"").toString().trim(),e.value&&t.push(e)})),t}checkChar(t,e){if(this.escaped||this.operatorExpecting||(!this.inDomainLiteral&&"["===t&&this.afterAt?this.inDomainLiteral=!0:!this.inDomainLiteral||"]"!==t&&","!==t&&";"!==t||(this.inDomainLiteral=!1)),this.escaped);else{if(t===this.operatorExpecting)return this.node={type:"operator",value:t},e&&![" ","\t","\r","\n",",",";"].includes(e)&&(this.node.noBreak=!0),this.list.push(this.node),this.node=null,")"!==t&&(this.afterAt=!1),this.operatorExpecting="",void(this.escaped=!1);if(!(this.operatorExpecting||this.inDomainLiteral&&":"===t)&&t in this.operators)return this.node={type:"operator",value:t},this.list.push(this.node),this.node=null,"("!==t&&(this.afterAt=!1),this.operatorExpecting=this.operators[t],void(this.escaped=!1);if(('"'===this.operatorExpecting||")"===this.operatorExpecting)&&"\\"===t)return void(this.escaped=!0)}this.node||(this.node={type:"text",value:""},this.list.push(this.node)),"\n"===t&&(t=" "),(t.charCodeAt(0)>=33||[" ","\t"].includes(t))&&(this.node.value+=t,this.operatorExpecting||" "===t||"\t"===t||(this.afterAt="@"===t)),this.escaped=!1}}const At=50;function Dt(t,e){if(e>At)return[];let r=new Et(t).tokenize(),i=[],s=[];const o=[];r.forEach((t=>{"operator"!==t.type||","!==t.value&&";"!==t.value?s.push(t):(s.length&&i.push(s),s=[])})),s.length&&i.push(s);for(const t of i)for(const r of kt(t,e))o.push(r);const n=[];for(let t=o.length-1;t>=0;t--){const e=o[t],r=n.length?n[n.length-1]:null;r&&""===e.address&&e.name&&!e.group&&r.address&&r.name?r.name=e.name+", "+r.name:n.push(e)}return n.reverse()}function St(t){return Dt(t,0)}function Lt(t){let e="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(t),s=i.byteLength,o=s%3,n=s-o;let a,l,c,u,h;for(let t=0;t<n;t+=3)h=i[t]<<16|i[t+1]<<8|i[t+2],a=(16515072&h)>>18,l=(258048&h)>>12,c=(4032&h)>>6,u=63&h,e+=r[a]+r[l]+r[c]+r[u];return 1===o?(h=i[n],a=(252&h)>>2,l=(3&h)<<4,e+=r[a]+r[l]+"=="):2===o&&(h=i[n]<<8|i[n+1],a=(64512&h)>>10,l=(1008&h)>>4,c=(15&h)<<2,e+=r[a]+r[l]+r[c]+"="),e}function Tt(t,e,r){return"subMessage"===t.type?"html"===e?function(t){let e=[];return t.from&&e.push(`<div class="postal-email-header-key">From</div><div class="postal-email-header-value">${ht([t.from])}</div>`),t.subject&&e.push(`<div class="postal-email-header-key">Subject</div><div class="postal-email-header-value postal-email-header-subject">${et(t.subject)}</div>`),t.date&&e.push(`<div class="postal-email-header-key">Date</div><div class="postal-email-header-value postal-email-header-date" data-date="${et(t.date)}">${et(ct(t.date))}</div>`),t.to&&t.to.length&&e.push(`<div class="postal-email-header-key">To</div><div class="postal-email-header-value">${ht(t.to)}</div>`),t.cc&&t.cc.length&&e.push(`<div class="postal-email-header-key">Cc</div><div class="postal-email-header-value">${ht(t.cc)}</div>`),t.bcc&&t.bcc.length&&e.push(`<div class="postal-email-header-key">Bcc</div><div class="postal-email-header-value">${ht(t.bcc)}</div>`),`<div class="postal-email-header">${e.length?'<div class="postal-email-header-row">':""}${e.join('</div>\n<div class="postal-email-header-row">')}${e.length?"</div>":""}</div>`}(t.value):function(t){let e=[];t.from&&e.push({key:"From",val:ut([t.from])}),t.subject&&e.push({key:"Subject",val:t.subject}),t.date&&e.push({key:"Date",val:ct(t.date)}),t.to&&t.to.length&&e.push({key:"To",val:ut(t.to)}),t.cc&&t.cc.length&&e.push({key:"Cc",val:ut(t.cc)}),t.bcc&&t.bcc.length&&e.push({key:"Bcc",val:ut(t.bcc)});let r=e.map((t=>t.key.length)).reduce(((t,e)=>e>t?e:t),0);const i=e.flatMap((t=>{let e=r-t.key.length,i=`${t.key}: ${" ".repeat(e)}`,s=`${" ".repeat(t.key.length+1)} ${" ".repeat(e)}`;return function(t,e){e=e||76;let r,i,s=0,o=(t=(t||"").toString()).length,n="";for(;s<o;){if(r=t.slice(s,s+e),r.length<e){n+=r;break}(i=r.match(/^[^\n\r]*(\r?\n|\r)/))?(r=i[0],n+=r,s+=r.length):((i=r.match(/(\s+)[^\s]*$/))&&i[0].length-(i[1]||"").length<r.length?r=r.slice(0,r.length-(i[0].length-(i[1]||"").length)):(i=t.slice(s+r.length).match(/^[^\s]+(\s*)/))&&(r+=i[0].slice(0,i[0].length-0)),n+=r,s+=r.length,s<o&&(n+="\r\n"))}return n}(t.val,80).split(/\r?\n/).map((t=>t.trim())).map(((t,e)=>`${e?s:i}${t}`))}));let s=i.map((t=>t.length)).reduce(((t,e)=>e>t?e:t),0),o="-".repeat(s);return`\n${o}\n${i.join("\n")}\n${o}\n`}(t.value):r?"html"===e?"<div>"+et(t.value).replace(/\n/g,"<br />")+"</div>":(i=st(i=nt(i=(i=t.value).replace(/\r?\n/g,""),/<!--/g,!1,/-->/g,!1," "),/<br\b[^>]*>/gi,"\n"),i=at(i=nt(i=st(i,/<\/?(p|div|table|tr|td|th)\b[^>]*>/gi,"\n\n"),/<script\b/gi,!0,/<\/script\b/gi,!0," "),/<body\b/gi),i=at(i,/<\/head\b/gi),i=lt(i=at(i,/<!doctype\b/gi),/<\/body\b/gi),i=st(i=ot(i=lt(i,/<\/html\b/gi),/<a\b/gi,/<a\b[^>]*href\s*=\s*["']?([^\s"']+)[^>]*>/iy,((t,e)=>` (${e}) `)),/<\/?(span|em|i|strong|b|u|a)\b[^>]*>/gi,""),i=st(i=ot(i,/<li\b/gi,/<li\b[^>]*>[\n\u0001\s]*/iy,(()=>"* ")),/<hr\b[^>]*>/g,"\n-------------\n"),function(t){return t.replace(/&(#\d+|#x[a-f0-9]+|[a-z]+\d*);?/gi,((t,e)=>{if("string"==typeof X[t])return X[t];if("#"!==e.charAt(0)||";"!==t.charAt(t.length-1))return t;let r;r="x"===e.charAt(1).toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10);let i="";return 0===r||r>=55296&&r<=57343||r>1114111?"�":(r=tt.get(r)??r,r>65535&&(r-=65536,i+=String.fromCharCode(r>>>10&1023|55296),r=56320|1023&r),i+=String.fromCharCode(r),i)}))}(i=(i=st(i,/<[^>]*>/g," ")).replace(/\u0001/g,"\n").replace(/[ \t]+/g," ").replace(/^\s+$/gm,"").replace(/\n\n+/g,"\n\n").replace(/^\n+/,"\n").replace(/\n+$/,"\n"))):t.value;var i}const jt=new Uint8Array([10]);function Rt(t,e,r){if(null==t)return e;if("number"!=typeof t||!Number.isInteger(t)||t<0)throw new TypeError(`${r} must be a non-negative integer`);return t}class Ut{static async parse(t,e){return new Ut(e).parse(t)}constructor(t){this.options=t||{},this.mimeOptions={maxNestingDepth:Rt(this.options.maxNestingDepth,256,"maxNestingDepth"),maxHeadersSize:Rt(this.options.maxHeadersSize,2097152,"maxHeadersSize"),maxPartCount:Rt(this.options.maxPartCount,1e4,"maxPartCount")},this.maxRfc822NestingDepth=Rt(this.options.maxRfc822NestingDepth,10,"maxRfc822NestingDepth"),this.rfc822NestingDepth=0,this.headerSize=0,this.partCount=0,this.root=this.currentNode=new W({postalMime:this,...this.mimeOptions}),this.boundaries=[],this.textContent={},this.textMap=new Map,this.textTypes=new Set,this.attachments=[],this.forceRfc822Attachments=!1,this.attachmentEncoding=(this.options.attachmentEncoding||"").toString().replace(/[-_\s]/g,"").trim().toLowerCase()||"arraybuffer",this.started=!1}async finalize(){await this.root.finalize()}async processLine(t,e,r){let i=this.boundaries;if(i.length&&t.length>2&&45===t[0]&&45===t[1])for(let e=i.length-1;e>=0;e--){let s=i[e];if(t.length<s.value.length+2)continue;let o=!0;for(let e=0;e<s.value.length;e++)if(t[e+2]!==s.value[e]){o=!1;break}if(!o)continue;let n=s.value.length+2,a=!1;t.length>=s.value.length+4&&45===t[s.value.length+2]&&45===t[s.value.length+3]&&(a=!0,n=s.value.length+4);let l=!0;for(let e=n;e<t.length;e++)if(!g(t[e])){l=!1;break}if(l)return a?(await s.node.finalize(!0),this.currentNode=s.node.parentNode||this.root):(await s.node.finalizeChildNodes(!0),this.currentNode=new W({postalMime:this,parentNode:s.node,parentMultipartType:s.node.contentType.multipart,...this.mimeOptions})),r?this.finalize():void 0}return this.currentNode.feed(t,e)?this.processLine(t,e,r):r?this.finalize():void 0}readLine(){let t=this.readPos,e=this.readPos;for(;this.readPos<this.av.length;){const r=this.av[this.readPos++];if(13!==r&&10!==r&&(e=this.readPos),10===r)return{bytes:new Uint8Array(this.buf,t,e-t),lineBreak:this.av.subarray(e,this.readPos),done:this.readPos>=this.av.length}}return{bytes:new Uint8Array(this.buf,t,e-t),lineBreak:jt,done:this.readPos>=this.av.length}}addTextEntry(t,e,r){let i=this.textMap.get(t);i||(i={},this.textMap.set(t,i));const s=i[e]||[];i[e]=s,s.push(r),this.textTypes.add(e)}async collectNode(t,e,r){if(t.contentType.multipart)"alternative"===t.contentType.multipart?e=t:"related"===t.contentType.multipart&&(r=!0);else{const i=this.isInlineMessageRfc822(t),s=i&&this.rfc822NestingDepth>=this.maxRfc822NestingDepth;i&&!s?await this.collectSubMessage(t):this.isInlineTextNode(t)?this.addTextEntry(e||t,"text/html"===t.contentType.parsed.value?"html":"plain",{type:"text",value:t.getTextContent()}):t.content&&this.collectAttachment(t,t.content,r,s)}for(let i of t.childNodes)await this.collectNode(i,e,r)}async collectSubMessage(t){const e=new Ut({...this.mimeOptions,maxRfc822NestingDepth:this.maxRfc822NestingDepth,attachmentEncoding:"arraybuffer"});e.rfc822NestingDepth=this.rfc822NestingDepth+1;const r=t.subMessage=await e.parse(t.content||new ArrayBuffer(0));!r.text&&r.html||this.addTextEntry(t,"plain",{type:"subMessage",value:r}),r.html&&this.addTextEntry(t,"html",{type:"subMessage",value:r}),e.textMap.forEach(((t,e)=>{this.textMap.set(e,t)}));for(let t of r.attachments)this.attachments.push(t)}collectAttachment(t,e,r,i){const s=t.contentDisposition.parsed.params.filename||t.contentType.parsed.params.name||null,o={filename:s?G(B(s)):null,mimeType:t.contentType.parsed.value,disposition:t.contentDisposition.parsed.value||null};switch(r&&t.contentId&&!i&&(o.related=!0),i&&(o.rfc822DepthExceeded=!0),t.contentDescription&&(o.description=G(t.contentDescription)),t.contentId&&(o.contentId=t.contentId),t.contentType.parsed.value){case"text/calendar":case"application/ics":{t.contentType.parsed.params.method&&(o.method=t.contentType.parsed.params.method.toString().toUpperCase().trim());const e=t.getTextContent();let r=e.length;for(;r>0&&10===e.charCodeAt(r-1);)r--;o.content=m.encode(e.slice(0,r)+"\n");break}default:o.content=e}this.attachments.push(o)}renderTextContent(){const t={};this.textMap.forEach((e=>{this.textTypes.forEach((r=>{const i=t[r]||[];t[r]=i;const s=e[r],o=s||e["html"===r?"plain":"html"]||[];for(const t of o)i.push(Tt(t,r,!s))}))})),Object.keys(t).forEach((e=>{this.textContent[e]=t[e].join("\n")}))}isInlineTextNode(t){if("attachment"===t.contentDisposition.parsed.value)return!1;switch(t.contentType.parsed.value){case"text/html":case"text/plain":return!0;default:return!1}}isInlineMessageRfc822(t){return!this.forceRfc822Attachments&&"message/rfc822"===t.contentType.parsed.value&&"inline"===(t.contentDisposition.parsed.value||(this.options.rfc822Attachments?"attachment":"inline"))}hasReportParts(){let t=!1,e=r=>{r.contentType.multipart||["message/delivery-status","message/feedback-report"].includes(r.contentType.parsed.value)&&(t=!0);for(let t of r.childNodes)e(t)};return e(this.root),t}async resolveStream(t){let e=0,r=[];const i=t.getReader();for(;;){const{done:t,value:s}=await i.read();if(t)break;r.push(s),e+=s.length}const s=new Uint8Array(e);let o=0;for(let t of r)s.set(t,o),o+=t.length;return s}async resolveInput(t){let e=t;var r;return(r=e)&&"function"==typeof r.getReader&&(e=await this.resolveStream(e)),e=e||new ArrayBuffer(0),"string"==typeof e&&(e=m.encode(e)),function(t){return t instanceof Blob||"[object Blob]"===Object.prototype.toString.call(t)}(e)&&(e=await U(e)),ArrayBuffer.isView(e)?e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):e}buildMessage(){const t=this.root.headers,e={headers:t.map((t=>({key:t.key,originalKey:t.originalKey,value:t.value})))};for(const r of["from","sender"]){const i=t.find((t=>t.key===r));if(i&&i.value){const t=St(i.value);t&&t.length&&(e[r]=t[0])}}for(const[r,i]of[["delivered-to","deliveredTo"],["return-path","returnPath"]]){const s=t.find((t=>t.key===r));if(s&&s.value){const t=St(s.value);t&&t.length&&t[0].address&&(e[i]=t[0].address)}}for(const[r,i]of[["to","to"],["cc","cc"],["bcc","bcc"],["reply-to","replyTo"]]){const s=[];for(const e of t)if(e.key===r&&e.value)for(const t of St(e.value))s.push(t);s.length&&(e[i]=s)}for(const[r,i]of[["subject","subject"],["message-id","messageId"],["in-reply-to","inReplyTo"],["references","references"]]){const s=t.find((t=>t.key===r));s&&s.value&&(e[i]=G(s.value))}let r=t.find((t=>"date"===t.key));if(r){let t=new Date(r.value);e.date="Invalid Date"===t.toString()?r.value:t.toISOString()}return this.textContent.html&&(e.html=this.textContent.html),this.textContent.plain&&(e.text=this.textContent.plain),e.attachments=this.attachments,e.headerLines=this.root.rawHeaderLines.slice(),e}encodeAttachments(){switch(this.attachmentEncoding){case"arraybuffer":break;case"base64":for(let t of this.attachments)t.content&&"string"!=typeof t.content&&(t.content=Lt(t.content),t.encoding="base64");break;case"utf8":{let t=new TextDecoder("utf8");for(let e of this.attachments)e.content&&"string"!=typeof e.content&&(e.content=t.decode(e.content),e.encoding="utf8");break}default:throw new Error("Unknown attachment encoding")}}async parse(t){if(this.started)throw new Error("Can not reuse parser, create a new PostalMime object");for(this.started=!0,this.buf=await this.resolveInput(t),this.av=new Uint8Array(this.buf),this.readPos=0;this.readPos<this.av.length;){const t=this.readLine();await this.processLine(t.bytes,t.lineBreak,t.done)}this.forceRfc822Attachments=Boolean(this.options.forceRfc822Attachments)||this.hasReportParts(),await this.collectNode(this.root,!1,!1),this.renderTextContent();const e=this.buildMessage();return this.encodeAttachments(),e}}var Nt,Bt,Ct,$t,Vt,zt,It;const _t=new Set(["image/png","image/jpeg","image/jpg","image/gif","image/webp","image/bmp","image/x-icon","image/vnd.microsoft.icon"]);const Ot=null!==(Bt=null===(Nt=n.protocols)||void 0===Nt?void 0:Nt.src)&&void 0!==Bt?Bt:[],Gt=Object.assign(Object.assign({},n),{clobberPrefix:"",protocols:Object.assign(Object.assign({},n.protocols),{src:[...Ot,"data"]}),attributes:Object.assign(Object.assign({},n.attributes),{table:[...null!==(Ct=n.attributes.table)&&void 0!==Ct?Ct:[],"cellPadding","cellSpacing","border","dir","width","height"],font:["color","size","face"],meta:["charset","content","name"],colgroup:[...null!==($t=n.attributes.colgroup)&&void 0!==$t?$t:[],"span"],col:[...null!==(Vt=n.attributes.col)&&void 0!==Vt?Vt:[],"width","span"],"*":[...null!==(zt=n.attributes["*"])&&void 0!==zt?zt:[],"style","className","id","dataRemoteSrc"]}),tagNames:[...null!==(It=n.tagNames)&&void 0!==It?It:[],"html","head","body","title","meta","style","colgroup","col","center","font"]});function Mt(t){const e=[/behavior\s*:/gi,/expression\s*\(/gi,/-moz-binding\s*:/gi,/vbscript\s*:/gi,/javascript\s*:/gi];let r=t;for(const t of e)r=r.replaceAll(t,"");return r=r.replaceAll(/@import\s+(?:url\([^)]{0,2000}\)|[^;]{0,2000});?/gi,""),r=r.replaceAll(/url\(\s{0,50}(?:"([^"]{0,2000})"|'([^']{0,2000})'|([^"')\s]{1,2000}))\s{0,50}\)/gi,((t,e,r,i)=>{var s,o;return(t=>{const e=t.trim().toLowerCase();return!!(e.startsWith("data:")||e.startsWith("cid:")||e.startsWith("#"))||!e.startsWith("//")&&!/^[a-z][a-z0-9+.-]*:/i.test(e)})((null!==(o=null!==(s=null!=e?e:r)&&void 0!==s?s:i)&&void 0!==o?o:"").trim())?t:'url("")'})),r}async function Ht(t){const e=await async function(t){try{const e=await fetch(t);if(!e.ok)throw new Error(`Failed to fetch email (${e.status} ${e.statusText})`);return await e.arrayBuffer()}catch(e){const r=e instanceof Error?e.message:String(e);throw new Error(`Failed to load email from ${t}: ${r}`,{cause:e})}}(t),r=await async function(t,e){try{return await Ut.parse(e,{attachmentEncoding:"arraybuffer"})}catch(e){const r=e instanceof Error?e.message:String(e);throw new Error(`Failed to parse email from ${t}: ${r}`,{cause:e})}}(t,e),i={subject:r.subject||void 0,from:Xt(r.from),to:Wt(r.to),cc:Wt(r.cc),date:Pt(r,"date")||r.date||void 0},{attachments:s,cidUrlById:o}=function(t){const e=[],r=new Map,i=t.attachments||[];for(const t of i){const i=Ft(t.contentId),o=Boolean(i)&&"attachment"!==t.disposition||t.related||"inline"===t.disposition,n=(s=t.content)instanceof ArrayBuffer?new Uint8Array(s):ArrayBuffer.isView(s)?new Uint8Array(s.buffer,s.byteOffset,s.byteLength):void 0;if(!o){e.push({filename:t.filename||void 0,mimeType:t.mimeType||void 0,size:null==n?void 0:n.byteLength});continue}const a=Boolean(n);if(!i||!a){e.push({filename:t.filename||void 0,mimeType:t.mimeType||"application/octet-stream",size:null==n?void 0:n.byteLength});continue}const l=Yt(t.mimeType,n,t.filename),c=Jt(n);r.set(i,`data:${l};base64,${c}`)}var s;return{attachments:e,cidUrlById:r}}(r);return s.length>0&&(i.attachments=s),await async function(t,e,r){const i=(e.html||"").trim();if(i){const e=function(t,e){return 0===e.size?t:t.replaceAll(/(src\s*=\s*["']?)cid:([^"'\s>]+)(["']?)/gi,((t,r,i,s)=>{const o=Ft(function(t){try{return decodeURIComponent(t)}catch(e){return t}}(i)),n=e.get(o);return n?`${r}${n}${s}`:t}))}(i,r);t.bodyHtml=await async function(t){const e=await a().use(l).use(c,Gt).use((()=>t=>{u(t,"element",(t=>{!function(t){var e;if((null==t?void 0:t.tagName)&&((null===(e=t.properties)||void 0===e?void 0:e.style)&&"string"==typeof t.properties.style&&(t.properties.style=Mt(t.properties.style)),"style"===t.tagName&&Array.isArray(t.children)))for(const e of t.children)"text"===(null==e?void 0:e.type)&&"string"==typeof e.value&&(e.value=Mt(e.value))}(t),function(t){var e;if(!(null==t?void 0:t.tagName)||"img"!==t.tagName)return;const r=null===(e=t.properties)||void 0===e?void 0:e.src;if("string"!=typeof r)return;const i=function(t){const e=t.trim();if(!e)return;if(!e.toLowerCase().startsWith("data:"))return;const r=function(t){var e;const r=/^data:([^;,]+)(?:;charset=[^;,]+)?(?:;base64)?,/i.exec(t);return(null===(e=null==r?void 0:r[1])||void 0===e?void 0:e.toLowerCase())||void 0}(e);return r&&_t.has(r)?e:void 0}(r);if(i)return t.properties.src=i,void delete t.properties.dataRemoteSrc;const s=function(t){const e=t.trim(),r=e.toLowerCase();if(r.startsWith("http://")||r.startsWith("https://"))return e}(r);if(s)return t.properties.dataRemoteSrc=s,void delete t.properties.src;delete t.properties.src}(t)}))})).use(h).process(t);return e.toString()}(e)}else t.bodyText=(e.text||"").trim()||void 0}(i,r,o),i}function Pt(t,e){const r=(t.headers||[]).find((t=>t.key===e.toLowerCase()));return(null==r?void 0:r.value)||void 0}function Ft(t){if(!t)return"";let e=t.trim();return e.toLowerCase().startsWith("cid:")&&(e=e.slice(4).trim()),e.startsWith("<")&&(e=e.slice(1)),e.endsWith(">")&&(e=e.slice(0,-1)),e.trim()}function Jt(t){if("function"==typeof btoa){let e="";for(const r of t)e+=String.fromCharCode(r);return btoa(e)}return Buffer.from(t).toString("base64")}function Yt(t,e,r){const i="string"==typeof t?t.trim().toLowerCase():"",s=function(t){var e,r,i,s,o;return null!==(o=null!==(s=null!==(i=null!==(r=null!==(e=function(t){if(Zt(t,[137,80,78,71,13,10,26,10]))return"image/png"}(t))&&void 0!==e?e:function(t){if(Zt(t,[255,216,255]))return"image/jpeg"}(t))&&void 0!==r?r:function(t){const e=Qt(t,0,6);if("GIF87a"===e||"GIF89a"===e)return"image/gif"}(t))&&void 0!==i?i:function(t){const e=Qt(t,0,4),r=Qt(t,8,12);if("RIFF"===e&&"WEBP"===r)return"image/webp"}(t))&&void 0!==s?s:function(t){if(Zt(t,[0,0,1,0]))return"image/x-icon"}(t))&&void 0!==o?o:function(t){if(t.length<5)return;const e=new TextDecoder("utf-8",{fatal:!1}).decode(t.slice(0,Math.min(t.length,256))).trimStart().toLowerCase();return e.startsWith("<svg")||e.startsWith("<?xml")&&e.includes("<svg")?"image/svg+xml":void 0}(t)}(e);if(i.startsWith("image/")){if(o=i,!(n=s)||o===n||"image/jpg"===o&&"image/jpeg"===n||"image/vnd.microsoft.icon"===o&&"image/x-icon"===n)return i;if(s)return s}var o,n;if(s)return s;const a=function(t){const e=null==t?void 0:t.trim().toLowerCase();if(!e||!e.includes("."))return;return{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",ico:"image/x-icon",bmp:"image/bmp"}[e.slice(e.lastIndexOf(".")+1)]}(r);return a||i||"application/octet-stream"}function Zt(t,e){return!(t.length<e.length)&&e.every(((e,r)=>t[r]===e))}function Qt(t,e,r){return t.length<r?"":String.fromCodePoint(...t.slice(e,r))}function Kt(t){return"string"==typeof t&&t.length>0}function Wt(t){if(!t)return;const e=(Array.isArray(t)?t:[t]).map((t=>Xt(t))).filter(Kt);return e.length>0?e.join(", "):void 0}function Xt(t){if(!t)return;if(Array.isArray(t))return Wt(t);if(t.group&&Array.isArray(t.group)){const e=(t.name||"").trim(),r=t.group.map((t=>Xt(t))).filter(Kt).join(", ");return e&&r?`${e}: ${r}`:e||r||void 0}const e=(t.name||"").trim(),r=(t.address||"").trim();if(e&&r){const t=function(t){if(!t)return"";if(!t.includes(",")&&!t.includes('"'))return t;return`"${t.replaceAll("\\","\\\\").replaceAll('"',String.raw`\"`)}"`}(e);return`${t} <${r}>`}return e||r||void 0}const te=class{constructor(s){t(this,s),this.action=e(this,"action",7),this.allowFullscreen=!1,this.allowOpenInNewTab=!1,this.allowDownload=!1,this.language="en",this.officeViewer="microsoft-office",this.isFullscreen=!1,this.loading=!0,this.fileUrl="",this.renderPdf=()=>[r("div",{class:"action-menu-for-pdf-files"},this.renderActionMenu()),r("iframe",{src:this.sanitizeUrl(this.fileUrl),loading:"lazy"})],this.renderImage=()=>{var t;return r(i,null,this.renderButtons(),r(f,{image:{src:this.sanitizeUrl(this.fileUrl),alt:null!==(t=this.alt)&&void 0!==t?t:"",referrerpolicy:"no-referrer"}}))},this.renderVideo=()=>r("video",{controls:!0},r("source",{src:this.sanitizeUrl(this.fileUrl)})),this.renderAudio=()=>r("audio",{controls:!0},r("source",{src:this.sanitizeUrl(this.fileUrl)})),this.renderText=()=>{const t=[this.renderNoFileSupportMessage(!1)];return[this.renderButtons(),r("object",{data:this.sanitizeUrl(this.fileUrl),type:"text/plain"},t)]},this.renderEmail=()=>this.email?[this.renderButtons(),r("limel-email-viewer",{email:this.email,fallbackUrl:this.sanitizeUrl(this.fileUrl),language:this.language},r("div",{slot:"fallback"},this.renderNoFileSupportMessage(!1)))]:this.renderFileNotFoundMessage(),this.renderOffice=()=>[r("div",{class:"action-menu-for-office-files"},this.renderActionMenu()),r("iframe",{src:this.getOfficeViewerUrl()+encodeURIComponent(this.sanitizeUrl(this.fileUrl))+"&embedded=true",loading:"lazy"})],this.isOfficeFileAccessibleViaURL=()=>"office"===this.fileType&&!(this.fileUrl.startsWith("http://")||this.fileUrl.startsWith("https://")),this.getOfficeViewerUrl=()=>({"microsoft-office":"https://view.officeapps.live.com/op/embed.aspx?src=","google-drive":"https://docs.google.com/gview?url="}[this.officeViewer]),this.renderNoFileSupportMessage=(t=!0)=>r("div",{class:"no-support",role:"alert"},r("h1",null,"⚠️"),r("p",null,this.getTranslation("file-viewer.message.unsupported-filetype")),r("p",{style:{textAlign:"center",margin:"0 auto"}},this.getTranslation("file-viewer.message.try-other-options")),t&&this.renderDownloadButton()),this.renderFileNotFoundMessage=()=>r("div",{class:"no-support",role:"alert"},r("h1",null,"⚠️"),r("p",null,this.getTranslation("file-viewer.message.file-not-found"))),this.renderButtons=()=>r("div",{class:"buttons"},this.renderActionMenu(),this.renderToggleFullscreenButton(),this.renderDownloadButton(),this.renderOpenInNewTabButton()),this.renderToggleFullscreenButton=()=>{if(!this.allowFullscreen||!this.fullscreen.isSupported())return;const t=this.isFullscreen?"multiply":"fit_to_width",e=this.getTranslation(this.isFullscreen?"file-viewer.exit-fullscreen":"file-viewer.open-in-fullscreen");return[r("button",{class:"button--toggle-fullscreen",id:"tooltip-toggle-fullscreen",role:"button",onClick:this.handleToggleFullscreen},r("limel-icon",{name:t}),r("limel-tooltip",{label:e,elementId:"tooltip-toggle-fullscreen",openDirection:"left"}))]},this.renderDownloadButton=()=>{var t;if(this.allowDownload&&!this.isFullscreen)return r("a",{class:"button--download",id:"tooltip-download",role:"button",download:null!==(t=this.filename)&&void 0!==t?t:"",href:this.sanitizeUrl(this.fileUrl),target:"_blank"},r("limel-icon",{name:"download_2"}),r("limel-tooltip",{label:this.getTranslation("file-viewer.download"),elementId:"tooltip-download",openDirection:"left"}))},this.renderOpenInNewTabButton=()=>{if(this.allowOpenInNewTab&&!this.isFullscreen)return r("a",{class:"button--new-tab",id:"tooltip-new-tab",role:"button",href:this.sanitizeUrl(this.fileUrl),target:"_blank",rel:"noopener noreferrer"},r("limel-icon",{name:"external_link"}),r("limel-tooltip",{label:this.getTranslation("file-viewer.open-in-new-tab"),elementId:"tooltip-new-tab",openDirection:"left"}))},this.renderActionMenu=()=>{if(this.actions&&!this.isFullscreen)return r("limel-menu",{class:"action-menu",items:this.actions,onSelect:this.emitOnAction,"open-direction":"left"},r("button",{class:"button--action",id:"tooltip-more",role:"button",slot:"trigger"},r("limel-icon",{name:"menu_2"}),r("limel-tooltip",{label:this.getTranslation("file-viewer.more-actions"),elementId:"tooltip-more",openDirection:"left"})))},this.createURL=async t=>{this.revokePdfBlobUrl();const e={pdf:this.loadPdf,email:this.loadEmail}[t]||this.loadDefault;try{await e()}finally{this.loading=!1}},this.loadPdf=async()=>{const t=await fetch(this.url);if(!t.ok)throw new Error(`Failed to load PDF (${t.status} ${t.statusText})`);const e=await t.blob();this.fileUrl=URL.createObjectURL(e),this.pdfBlobUrl=this.fileUrl},this.loadEmail=async()=>{try{this.email=await Ht(this.url),this.fileUrl=this.url}catch(t){this.email=void 0,this.fileUrl=""}},this.loadDefault=async()=>{this.fileUrl=this.url},this.handleToggleFullscreen=()=>{this.fullscreen.isSupported()&&(this.fullscreen.toggle(),this.isFullscreen=!this.isFullscreen)},this.emitOnAction=t=>{t.stopPropagation(),this.action.emit(t.detail)},this.fullscreen=new d(this.HostElement)}disconnectedCallback(){void 0!==this.revokeAnimationFrame&&cancelAnimationFrame(this.revokeAnimationFrame),this.revokeAnimationFrame=requestAnimationFrame((()=>{this.revokePdfBlobUrl(),this.revokeAnimationFrame=void 0}))}connectedCallback(){void 0!==this.revokeAnimationFrame&&(cancelAnimationFrame(this.revokeAnimationFrame),this.revokeAnimationFrame=void 0)}async componentWillLoad(){this.fileType=p(this.filename,this.url),await this.createURL(this.fileType)}render(){return this.isOfficeFileAccessibleViaURL?this.loading?r("limel-spinner",{size:"x-small",limeBranded:!1}):this.renderFileViewer():this.renderNoFileSupportMessage()}async watchUrl(t,e){t!==e&&(this.loading=!0,this.fileType=p(this.filename,this.fileUrl),await this.createURL(this.fileType))}renderFileViewer(){return({pdf:this.renderPdf,image:this.renderImage,video:this.renderVideo,audio:this.renderAudio,text:this.renderText,email:this.renderEmail,office:this.renderOffice}[this.fileType]||this.renderNoFileSupportMessage)()}revokePdfBlobUrl(){this.pdfBlobUrl&&(URL.revokeObjectURL(this.pdfBlobUrl),this.pdfBlobUrl=void 0)}sanitizeUrl(t){if(!(null==t?void 0:t.trim()))return"";try{const e=new URL(t,window.location.href);return["http:","https:","blob:"].includes(e.protocol)?e.href:""}catch(t){return""}}getTranslation(t){return o.get(t,this.language)}get HostElement(){return s(this)}static get watchers(){return{url:[{watchUrl:0}]}}};te.style='@charset "UTF-8";.buttons{position:absolute;z-index:1;bottom:0.25rem;right:0.25rem;display:flex;flex-direction:column;gap:0.25rem}@media (pointer: coarse){.buttons{gap:0.5rem}}.no-support{display:flex;flex-direction:column;gap:0.5rem;align-items:center;border:1px dashed rgb(var(--contrast-600));border-radius:0.5rem;padding:1.25rem}.no-support h1,.no-support p{margin:0}[class^=button--]{all:unset;transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-normal)}[class^=button--]:hover,[class^=button--]:focus,[class^=button--]:focus-visible{will-change:color, background-color, box-shadow, transform}[class^=button--]:hover,[class^=button--]:focus-visible{transform:translate3d(0, -0.04rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}[class^=button--]:active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}[class^=button--]:hover,[class^=button--]:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}[class^=button--]:focus{outline:none}[class^=button--]:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}[class^=button--]{display:flex;align-items:center;justify-content:center;border-radius:50%;width:var(--limel-file-viewer-size-of-buttons);height:var(--limel-file-viewer-size-of-buttons);background-color:rgba(var(--contrast-100), 0.8);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem)}[class^=button--] limel-icon{transition:color 0.2s ease;width:1.25rem;color:rgb(var(--contrast-1200))}[class^=button--]:hover limel-icon{color:rgb(var(--contrast-1400))}.action-menu-for-pdf-files,.action-menu-for-office-files{position:absolute;right:0.75rem}.action-menu-for-pdf-files{bottom:0.75rem}.action-menu-for-office-files{top:0.75rem}:host{--limel-file-viewer-size-of-buttons:2rem;isolation:isolate;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:100%}*{box-sizing:border-box}img,video,audio,object,iframe{max-height:100%;max-width:100%;box-sizing:border-box}iframe{border:none;width:100%;height:100%;min-height:20rem}img{min-width:7rem;object-fit:contain}video{width:100%;height:auto}audio{width:100%}object{width:100%;height:100%}object[type="application/pdf"]{min-height:20rem}object[type="text/plain"]{border-radius:0.25rem;padding-right:var(--limel-file-viewer-size-of-buttons);overflow-y:auto}:host(:fullscreen){background-color:rgb(var(--color-gray-darker))}:host(:fullscreen) object[type="text/plain"]{max-width:50rem;max-height:calc(100% - 2rem)}:host(:-webkit-full-screen){background-color:rgb(var(--color-gray-darker))}:host(:-webkit-full-screen) object[type="text/plain"]{max-width:50rem;max-height:calc(100% - 2rem)}';export{te as limel_file_viewer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as r,H as o}from"./p-BU9IJqli.js";const i=class{constructor(o){e(this,o),this.change=t(this,"change",7),this.disabled=!1,this.readonly=!1,this.invalid=!1,this.manualInput=!0,this.isOpen=!1,this.shouldFocus=!1,this.renderTooltip=()=>{if(!this.readonly&&this.tooltipLabel)return r("limel-tooltip",{label:this.tooltipLabel,elementId:"tooltip-button"})},this.renderPickerPalette=()=>this.readonly?this.renderPickerTrigger():r("limel-popover",{open:this.isOpen,openDirection:"bottom-start",onClose:this.onPopoverClose},this.renderPickerTrigger(),r("limel-color-picker-palette",{ref:this.setColorPickerPaletteElement,value:this.value,label:this.label,helperText:this.helperText,placeholder:this.placeholder,invalid:this.invalid,onChange:this.handleChange,required:this.required,palette:this.palette,columnCount:this.paletteColumnCount,manualInput:this.manualInput})),this.renderPickerTrigger=()=>r("button",{slot:"trigger",style:this.value?{"--background":this.value}:{},role:"button",onClick:this.openPopover,id:"tooltip-button",disabled:this.readonly||this.disabled}),this.setColorPickerPaletteElement=e=>{this.contentElement=e},this.openPopover=e=>{e.stopPropagation(),this.isOpen=!0,this.shouldFocus=this.isOpen},this.onPopoverClose=e=>{e.stopPropagation(),this.isOpen=!1},this.handleChange=e=>{e.stopPropagation(),this.change.emit(e.detail)}}disconnectedCallback(){this.isOpen=!1}componentDidRender(){var e;this.shouldFocus&&this.isOpen&&(this.shouldFocus=!1,null===(e=this.contentElement)||void 0===e||e.focus())}render(){return r(o,{key:"
|
|
1
|
+
import{r as e,c as t,h as r,H as o}from"./p-BU9IJqli.js";const i=class{constructor(o){e(this,o),this.change=t(this,"change",7),this.disabled=!1,this.readonly=!1,this.invalid=!1,this.manualInput=!0,this.isOpen=!1,this.shouldFocus=!1,this.renderTooltip=()=>{if(!this.readonly&&this.tooltipLabel)return r("limel-tooltip",{label:this.tooltipLabel,elementId:"tooltip-button"})},this.renderPickerPalette=()=>this.readonly?this.renderPickerTrigger():r("limel-popover",{open:this.isOpen,openDirection:"bottom-start",onClose:this.onPopoverClose},this.renderPickerTrigger(),r("limel-color-picker-palette",{ref:this.setColorPickerPaletteElement,value:this.value,label:this.label,helperText:this.helperText,placeholder:this.placeholder,invalid:this.invalid,onChange:this.handleChange,required:this.required,palette:this.palette,columnCount:this.paletteColumnCount,manualInput:this.manualInput})),this.renderPickerTrigger=()=>r("button",{slot:"trigger",style:this.value?{"--background":this.value}:{},role:"button",onClick:this.openPopover,id:"tooltip-button",disabled:this.readonly||this.disabled}),this.setColorPickerPaletteElement=e=>{this.contentElement=e},this.openPopover=e=>{e.stopPropagation(),this.isOpen=!0,this.shouldFocus=this.isOpen},this.onPopoverClose=e=>{e.stopPropagation(),this.isOpen=!1},this.handleChange=e=>{e.stopPropagation(),this.change.emit(e.detail)}}disconnectedCallback(){this.isOpen=!1}componentDidRender(){var e;this.shouldFocus&&this.isOpen&&(this.shouldFocus=!1,null===(e=this.contentElement)||void 0===e||e.focus())}render(){return r(o,{key:"0a72c17543d637294a9182c08e3ec97dc7869973"},this.renderTooltip(),this.renderPickerPalette(),r("limel-input-field",{key:"de48f11342ad0ca99e4af1af9f93ce0317ea995b",label:this.label,helperText:this.helperText,value:this.value,onChange:this.handleChange,required:this.required,readonly:this.readonly,disabled:this.disabled||!this.manualInput,invalid:this.invalid,placeholder:this.placeholder}))}};i.style='@charset "UTF-8";.picker-trigger[style="--background:lime-magenta;"]:after,.chosen-color-preview[style="--background:lime-magenta;"]:after{background-color:var(--lime-magenta)}.picker-trigger[style="--background:lime-blue;"]:after,.chosen-color-preview[style="--background:lime-blue;"]:after{background-color:var(--lime-blue)}.picker-trigger[style="--background:lime-orange;"]:after,.chosen-color-preview[style="--background:lime-orange;"]:after{background-color:var(--lime-orange)}.picker-trigger[style="--background:lime-green;"]:after,.chosen-color-preview[style="--background:lime-green;"]:after{background-color:var(--lime-green)}.picker-trigger[style="--background:lime-red;"]:after,.chosen-color-preview[style="--background:lime-red;"]:after{background-color:var(--lime-red)}.picker-trigger[style="--background:lime-dark-blue;"]:after,.chosen-color-preview[style="--background:lime-dark-blue;"]:after{background-color:var(--lime-dark-blue)}.picker-trigger[style="--background:lime-turquoise;"]:after,.chosen-color-preview[style="--background:lime-turquoise;"]:after{background-color:var(--lime-turquoise)}.picker-trigger[style="--background:lime-yellow;"]:after,.chosen-color-preview[style="--background:lime-yellow;"]:after{background-color:var(--lime-yellow)}.picker-trigger[style="--background:lime-light-grey;"]:after,.chosen-color-preview[style="--background:lime-light-grey;"]:after{background-color:var(--lime-light-grey)}:host(limel-color-picker){display:grid;gap:0.25rem;grid-template-columns:auto 1fr}button[slot=trigger]{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;box-sizing:border-box;position:relative;isolation:isolate;width:2.5rem;height:2.5rem;border-radius:0.5rem}button[slot=trigger]:not([disabled]):not([disabled=true]){transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-normal)}button[slot=trigger]:not([disabled]):not([disabled=true]):hover,button[slot=trigger]:not([disabled]):not([disabled=true]):focus,button[slot=trigger]:not([disabled]):not([disabled=true]):focus-visible{will-change:color, background-color, box-shadow, transform}button[slot=trigger]:not([disabled]):not([disabled=true]):hover,button[slot=trigger]:not([disabled]):not([disabled=true]):focus-visible{transform:translate3d(0, -0.04rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}button[slot=trigger]:not([disabled]):not([disabled=true]):active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}button[slot=trigger]:not([disabled]):not([disabled=true]):hover,button[slot=trigger]:not([disabled]):not([disabled=true]):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}button[slot=trigger]:not([disabled]):not([disabled=true]):focus{outline:none}button[slot=trigger]:not([disabled]):not([disabled=true]):focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}button[slot=trigger]:before,button[slot=trigger]:after{content:"";position:absolute;inset:0;border-radius:inherit}button[slot=trigger]:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns=\'http://www.w3.org/2000/svg\'%20viewBox=\'0%200%208%208\'%20style=\'fill-rule:evenodd;\'%3E%3Cpath%20fill=\'rgba(186,186,192,0.16)\'%20d=\'M0%200h4v4H0zM4%204h4v4H4z\'/%3E%3C/svg%3E");background-size:0.5rem;z-index:0}button[slot=trigger]:after{z-index:1;box-shadow:0 0 0 0.25rem rgb(var(--contrast-100)) inset;background:var(--background)}:host([readonly]:not([readonly=false])) limel-input-field{transform:translateX(calc(2.5rem / 4 * -1)) translateY(calc(2.5rem / 4))}:host([readonly]:not([readonly=false])) button[slot=trigger],:host([disabled]:not([disabled=false])) button[slot=trigger]{border:1px solid rgba(var(--contrast-700), 0.65)}';export{i as limel_color_picker}
|