@zanichelli/albe-web-components 19.0.0 → 19.0.2-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/{index-0d3de93e.js → index-e84fb4e1.js} +2 -2
  3. package/dist/cjs/index-e84fb4e1.js.map +1 -0
  4. package/dist/cjs/z-table.cjs.entry.js +1 -1
  5. package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
  6. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -1
  7. package/dist/cjs/z-tr.cjs.entry.js +1 -1
  8. package/dist/collection/components/table/z-tr/styles.css +5 -4
  9. package/dist/collection/components/z-toast-notification/index.js +2 -2
  10. package/dist/collection/components/z-toast-notification/index.js.map +1 -1
  11. package/dist/collection/components/z-toast-notification/index.stories.js +49 -0
  12. package/dist/collection/components/z-toast-notification/index.stories.js.map +1 -1
  13. package/dist/collection/components/z-toast-notification-list/index.stories.js +36 -12
  14. package/dist/collection/components/z-toast-notification-list/index.stories.js.map +1 -1
  15. package/dist/components/z-toast-notification.js +2 -2
  16. package/dist/components/z-toast-notification.js.map +1 -1
  17. package/dist/components/z-tr.js +1 -1
  18. package/dist/components/z-tr.js.map +1 -1
  19. package/dist/esm/{index-328b69a7.js → index-92064825.js} +2 -2
  20. package/dist/esm/index-92064825.js.map +1 -0
  21. package/dist/esm/z-table.entry.js +1 -1
  22. package/dist/esm/z-toast-notification.entry.js +2 -2
  23. package/dist/esm/z-toast-notification.entry.js.map +1 -1
  24. package/dist/esm/z-tr.entry.js +1 -1
  25. package/dist/types/components/z-toast-notification/index.stories.d.ts +12 -0
  26. package/dist/types/components/z-toast-notification-list/index.stories.d.ts +6 -0
  27. package/dist/web-components-library/{p-46ea0b2e.entry.js → p-250bcc68.entry.js} +3 -3
  28. package/dist/web-components-library/{p-46ea0b2e.entry.js.map → p-250bcc68.entry.js.map} +1 -1
  29. package/dist/web-components-library/p-2bf54364.js +2 -0
  30. package/dist/web-components-library/p-2bf54364.js.map +1 -0
  31. package/dist/web-components-library/{p-63d220da.entry.js → p-ce6e18f9.entry.js} +2 -2
  32. package/dist/web-components-library/{p-3284e37b.entry.js → p-dc156429.entry.js} +2 -2
  33. package/dist/web-components-library/web-components-library.esm.js +1 -1
  34. package/package.json +3 -2
  35. package/www/build/{p-46ea0b2e.entry.js → p-250bcc68.entry.js} +3 -3
  36. package/www/build/{p-46ea0b2e.entry.js.map → p-250bcc68.entry.js.map} +1 -1
  37. package/www/build/p-2bf54364.js +2 -0
  38. package/www/build/p-2bf54364.js.map +1 -0
  39. package/www/build/{p-63d220da.entry.js → p-ce6e18f9.entry.js} +2 -2
  40. package/www/build/{p-3284e37b.entry.js → p-dc156429.entry.js} +2 -2
  41. package/www/build/{p-5a26cc8b.js → p-ed876e2c.js} +1 -1
  42. package/www/build/web-components-library.esm.js +1 -1
  43. package/www/index.html +1 -1
  44. package/dist/cjs/index-0d3de93e.js.map +0 -1
  45. package/dist/esm/index-328b69a7.js.map +0 -1
  46. package/dist/web-components-library/p-43bc482a.js +0 -2
  47. package/dist/web-components-library/p-43bc482a.js.map +0 -1
  48. package/www/build/p-43bc482a.js +0 -2
  49. package/www/build/p-43bc482a.js.map +0 -1
  50. /package/dist/web-components-library/{p-63d220da.entry.js.map → p-ce6e18f9.entry.js.map} +0 -0
  51. /package/dist/web-components-library/{p-3284e37b.entry.js.map → p-dc156429.entry.js.map} +0 -0
  52. /package/www/build/{p-63d220da.entry.js.map → p-ce6e18f9.entry.js.map} +0 -0
  53. /package/www/build/{p-3284e37b.entry.js.map → p-dc156429.entry.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- export { Z as z_tr } from './index-328b69a7.js';
1
+ export { Z as z_tr } from './index-92064825.js';
2
2
  import './index-c8ceadeb.js';
3
3
  import './utils-6e2be2b6.js';
4
4
  import './index-2a6324f8.js';
@@ -72,3 +72,15 @@ export declare const SlottedButtonLongText: {
72
72
  };
73
73
  render: (args: ZToastNotification) => TemplateResult<1>;
74
74
  };
75
+ export declare const SlottedMessage: {
76
+ args: {
77
+ transition: ToastNotificationTransition.SLIDE_IN_DOWN;
78
+ };
79
+ render: (args: ZToastNotification) => TemplateResult<1>;
80
+ };
81
+ export declare const SlottedMessageLongText: {
82
+ args: {
83
+ transition: ToastNotificationTransition.SLIDE_IN_DOWN;
84
+ };
85
+ render: (args: ZToastNotification) => TemplateResult<1>;
86
+ };
@@ -79,3 +79,9 @@ export declare const BottomLeftSlideInRight: {
79
79
  };
80
80
  render: (args: ZToastNotificationList) => TemplateResult;
81
81
  };
82
+ export declare const TopLeftWithSlottedMessage: {
83
+ args: {
84
+ position: ToastNotificationPosition.TOP_LEFT;
85
+ };
86
+ render: (args: ZToastNotificationList) => TemplateResult;
87
+ };
@@ -1,8 +1,8 @@
1
1
  import{r as t,c as e,h as i,a as n,g as r}from"./p-75c4a726.js";import{r as s,g as o}from"./p-17af7fb2.js";import{c as a}from"./p-4573c419.js";var l={exports:{}};
2
- /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */(function(t,e){(function(e,i){t.exports=i()})(a,(function(){const{entries:t,setPrototypeOf:e,isFrozen:i,getPrototypeOf:n,getOwnPropertyDescriptor:r}=Object;let{freeze:s,seal:o,create:a}=Object;let{apply:l,construct:c}=typeof Reflect!=="undefined"&&Reflect;if(!s){s=function t(e){return e}}if(!o){o=function t(e){return e}}if(!l){l=function t(e,i,n){return e.apply(i,n)}}if(!c){c=function t(e,i){return new e(...i)}}const u=A(Array.prototype.forEach);const f=A(Array.prototype.lastIndexOf);const h=A(Array.prototype.pop);const d=A(Array.prototype.push);const p=A(Array.prototype.splice);const m=A(String.prototype.toLowerCase);const v=A(String.prototype.toString);const g=A(String.prototype.match);const y=A(String.prototype.replace);const w=A(String.prototype.indexOf);const b=A(String.prototype.trim);const x=A(Object.prototype.hasOwnProperty);const T=A(RegExp.prototype.test);const E=k(TypeError);function A(t){return function(e){if(e instanceof RegExp){e.lastIndex=0}for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++){n[r-1]=arguments[r]}return l(t,e,n)}}function k(t){return function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++){i[n]=arguments[n]}return c(t,i)}}function S(t,n){let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:m;if(e){e(t,null)}let s=n.length;while(s--){let e=n[s];if(typeof e==="string"){const t=r(e);if(t!==e){if(!i(n)){n[s]=t}e=t}}t[e]=true}return t}function R(t){for(let e=0;e<t.length;e++){const i=x(t,e);if(!i){t[e]=null}}return t}function _(e){const i=a(null);for(const[n,r]of t(e)){const t=x(e,n);if(t){if(Array.isArray(r)){i[n]=R(r)}else if(r&&typeof r==="object"&&r.constructor===Object){i[n]=_(r)}else{i[n]=r}}}return i}function I(t,e){while(t!==null){const i=r(t,e);if(i){if(i.get){return A(i.get)}if(typeof i.value==="function"){return A(i.value)}}t=n(t)}function i(){return null}return i}const D=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]);const M=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]);const z=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]);const O=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]);const P=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]);const C=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]);const N=s(["#text"]);const L=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]);const F=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]);const j=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]);const U=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]);const W=o(/\{\{[\w\W]*|[\w\W]*\}\}/gm);const X=o(/<%[\w\W]*|[\w\W]*%>/gm);const B=o(/\$\{[\w\W]*/gm);const H=o(/^data-[\-\w.\u00B7-\uFFFF]+$/);const Y=o(/^aria-[\-\w]+$/);const q=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);const $=o(/^(?:\w+script|data):/i);const G=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);const V=o(/^html$/i);const Z=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:Z,DATA_ATTR:H,DOCTYPE_NAME:V,ERB_EXPR:X,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:$,MUSTACHE_EXPR:W,TMPLIT_EXPR:B});const J={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12};const Q=function t(){return typeof window==="undefined"?null:window};const tt=function t(e,i){if(typeof e!=="object"||typeof e.createPolicy!=="function"){return null}let n=null;const r="data-tt-policy-suffix";if(i&&i.hasAttribute(r)){n=i.getAttribute(r)}const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(t){return t},createScriptURL(t){return t}})}catch(t){console.warn("TrustedTypes policy "+s+" could not be created.");return null}};const et=function t(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function it(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Q();const i=t=>it(t);i.version="3.2.6";i.removed=[];if(!e||!e.document||e.document.nodeType!==J.document||!e.Element){i.isSupported=false;return i}let{document:n}=e;const r=n;const o=r.currentScript;const{DocumentFragment:l,HTMLTemplateElement:c,Node:A,Element:k,NodeFilter:R,NamedNodeMap:W=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:X,DOMParser:B,trustedTypes:H}=e;const Y=k.prototype;const $=I(Y,"cloneNode");const G=I(Y,"remove");const Z=I(Y,"nextSibling");const nt=I(Y,"childNodes");const rt=I(Y,"parentNode");if(typeof c==="function"){const t=n.createElement("template");if(t.content&&t.content.ownerDocument){n=t.content.ownerDocument}}let st;let ot="";const{implementation:at,createNodeIterator:lt,createDocumentFragment:ct,getElementsByTagName:ut}=n;const{importNode:ft}=r;let ht=et();i.isSupported=typeof t==="function"&&typeof rt==="function"&&at&&at.createHTMLDocument!==undefined;const{MUSTACHE_EXPR:dt,ERB_EXPR:pt,TMPLIT_EXPR:mt,DATA_ATTR:vt,ARIA_ATTR:gt,IS_SCRIPT_OR_DATA:yt,ATTR_WHITESPACE:wt,CUSTOM_ELEMENT:bt}=K;let{IS_ALLOWED_URI:xt}=K;let Tt=null;const Et=S({},[...D,...M,...z,...P,...N]);let At=null;const kt=S({},[...L,...F,...j,...U]);let St=Object.seal(a(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));let Rt=null;let _t=null;let It=true;let Dt=true;let Mt=false;let zt=true;let Ot=false;let Pt=true;let Ct=false;let Nt=false;let Lt=false;let Ft=false;let jt=false;let Ut=false;let Wt=true;let Xt=false;const Bt="user-content-";let Ht=true;let Yt=false;let qt={};let $t=null;const Gt=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Vt=null;const Zt=S({},["audio","video","img","source","image","track"]);let Kt=null;const Jt=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);const Qt="http://www.w3.org/1998/Math/MathML";const te="http://www.w3.org/2000/svg";const ee="http://www.w3.org/1999/xhtml";let ie=ee;let ne=false;let re=null;const se=S({},[Qt,te,ee],v);let oe=S({},["mi","mo","mn","ms","mtext"]);let ae=S({},["annotation-xml"]);const le=S({},["title","style","font","a","script"]);let ce=null;const ue=["application/xhtml+xml","text/html"];const fe="text/html";let he=null;let de=null;const pe=n.createElement("form");const me=function t(e){return e instanceof RegExp||e instanceof Function};const ve=function t(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(de&&de===e){return}if(!e||typeof e!=="object"){e={}}e=_(e);ce=ue.indexOf(e.PARSER_MEDIA_TYPE)===-1?fe:e.PARSER_MEDIA_TYPE;he=ce==="application/xhtml+xml"?v:m;Tt=x(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,he):Et;At=x(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,he):kt;re=x(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,v):se;Kt=x(e,"ADD_URI_SAFE_ATTR")?S(_(Jt),e.ADD_URI_SAFE_ATTR,he):Jt;Vt=x(e,"ADD_DATA_URI_TAGS")?S(_(Zt),e.ADD_DATA_URI_TAGS,he):Zt;$t=x(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,he):Gt;Rt=x(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,he):_({});_t=x(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,he):_({});qt=x(e,"USE_PROFILES")?e.USE_PROFILES:false;It=e.ALLOW_ARIA_ATTR!==false;Dt=e.ALLOW_DATA_ATTR!==false;Mt=e.ALLOW_UNKNOWN_PROTOCOLS||false;zt=e.ALLOW_SELF_CLOSE_IN_ATTR!==false;Ot=e.SAFE_FOR_TEMPLATES||false;Pt=e.SAFE_FOR_XML!==false;Ct=e.WHOLE_DOCUMENT||false;Ft=e.RETURN_DOM||false;jt=e.RETURN_DOM_FRAGMENT||false;Ut=e.RETURN_TRUSTED_TYPE||false;Lt=e.FORCE_BODY||false;Wt=e.SANITIZE_DOM!==false;Xt=e.SANITIZE_NAMED_PROPS||false;Ht=e.KEEP_CONTENT!==false;Yt=e.IN_PLACE||false;xt=e.ALLOWED_URI_REGEXP||q;ie=e.NAMESPACE||ee;oe=e.MATHML_TEXT_INTEGRATION_POINTS||oe;ae=e.HTML_INTEGRATION_POINTS||ae;St=e.CUSTOM_ELEMENT_HANDLING||{};if(e.CUSTOM_ELEMENT_HANDLING&&me(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){St.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&me(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)){St.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"){St.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements}if(Ot){Dt=false}if(jt){Ft=true}if(qt){Tt=S({},N);At=[];if(qt.html===true){S(Tt,D);S(At,L)}if(qt.svg===true){S(Tt,M);S(At,F);S(At,U)}if(qt.svgFilters===true){S(Tt,z);S(At,F);S(At,U)}if(qt.mathMl===true){S(Tt,P);S(At,j);S(At,U)}}if(e.ADD_TAGS){if(Tt===Et){Tt=_(Tt)}S(Tt,e.ADD_TAGS,he)}if(e.ADD_ATTR){if(At===kt){At=_(At)}S(At,e.ADD_ATTR,he)}if(e.ADD_URI_SAFE_ATTR){S(Kt,e.ADD_URI_SAFE_ATTR,he)}if(e.FORBID_CONTENTS){if($t===Gt){$t=_($t)}S($t,e.FORBID_CONTENTS,he)}if(Ht){Tt["#text"]=true}if(Ct){S(Tt,["html","head","body"])}if(Tt.table){S(Tt,["tbody"]);delete Rt.tbody}if(e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}st=e.TRUSTED_TYPES_POLICY;ot=st.createHTML("")}else{if(st===undefined){st=tt(H,o)}if(st!==null&&typeof ot==="string"){ot=st.createHTML("")}}if(s){s(e)}de=e};const ge=S({},[...M,...z,...O]);const ye=S({},[...P,...C]);const we=function t(e){let i=rt(e);if(!i||!i.tagName){i={namespaceURI:ie,tagName:"template"}}const n=m(e.tagName);const r=m(i.tagName);if(!re[e.namespaceURI]){return false}if(e.namespaceURI===te){if(i.namespaceURI===ee){return n==="svg"}if(i.namespaceURI===Qt){return n==="svg"&&(r==="annotation-xml"||oe[r])}return Boolean(ge[n])}if(e.namespaceURI===Qt){if(i.namespaceURI===ee){return n==="math"}if(i.namespaceURI===te){return n==="math"&&ae[r]}return Boolean(ye[n])}if(e.namespaceURI===ee){if(i.namespaceURI===te&&!ae[r]){return false}if(i.namespaceURI===Qt&&!oe[r]){return false}return!ye[n]&&(le[n]||!ge[n])}if(ce==="application/xhtml+xml"&&re[e.namespaceURI]){return true}return false};const be=function t(e){d(i.removed,{element:e});try{rt(e).removeChild(e)}catch(t){G(e)}};const xe=function t(e,n){try{d(i.removed,{attribute:n.getAttributeNode(e),from:n})}catch(t){d(i.removed,{attribute:null,from:n})}n.removeAttribute(e);if(e==="is"){if(Ft||jt){try{be(n)}catch(t){}}else{try{n.setAttribute(e,"")}catch(t){}}}};const Te=function t(e){let i=null;let r=null;if(Lt){e="<remove></remove>"+e}else{const t=g(e,/^[\r\n\t ]+/);r=t&&t[0]}if(ce==="application/xhtml+xml"&&ie===ee){e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>"}const s=st?st.createHTML(e):e;if(ie===ee){try{i=(new B).parseFromString(s,ce)}catch(t){}}if(!i||!i.documentElement){i=at.createDocument(ie,"template",null);try{i.documentElement.innerHTML=ne?ot:s}catch(t){}}const o=i.body||i.documentElement;if(e&&r){o.insertBefore(n.createTextNode(r),o.childNodes[0]||null)}if(ie===ee){return ut.call(i,Ct?"html":"body")[0]}return Ct?i.documentElement:o};const Ee=function t(e){return lt.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)};const Ae=function t(e){return e instanceof X&&(typeof e.nodeName!=="string"||typeof e.textContent!=="string"||typeof e.removeChild!=="function"||!(e.attributes instanceof W)||typeof e.removeAttribute!=="function"||typeof e.setAttribute!=="function"||typeof e.namespaceURI!=="string"||typeof e.insertBefore!=="function"||typeof e.hasChildNodes!=="function")};const ke=function t(e){return typeof A==="function"&&e instanceof A};function Se(t,e,n){u(t,(t=>{t.call(i,e,n,de)}))}const Re=function t(e){let n=null;Se(ht.beforeSanitizeElements,e,null);if(Ae(e)){be(e);return true}const r=he(e.nodeName);Se(ht.uponSanitizeElement,e,{tagName:r,allowedTags:Tt});if(Pt&&e.hasChildNodes()&&!ke(e.firstElementChild)&&T(/<[/\w!]/g,e.innerHTML)&&T(/<[/\w!]/g,e.textContent)){be(e);return true}if(e.nodeType===J.progressingInstruction){be(e);return true}if(Pt&&e.nodeType===J.comment&&T(/<[/\w]/g,e.data)){be(e);return true}if(!Tt[r]||Rt[r]){if(!Rt[r]&&Ie(r)){if(St.tagNameCheck instanceof RegExp&&T(St.tagNameCheck,r)){return false}if(St.tagNameCheck instanceof Function&&St.tagNameCheck(r)){return false}}if(Ht&&!$t[r]){const t=rt(e)||e.parentNode;const i=nt(e)||e.childNodes;if(i&&t){const n=i.length;for(let r=n-1;r>=0;--r){const n=$(i[r],true);n.__removalCount=(e.__removalCount||0)+1;t.insertBefore(n,Z(e))}}}be(e);return true}if(e instanceof k&&!we(e)){be(e);return true}if((r==="noscript"||r==="noembed"||r==="noframes")&&T(/<\/no(script|embed|frames)/i,e.innerHTML)){be(e);return true}if(Ot&&e.nodeType===J.text){n=e.textContent;u([dt,pt,mt],(t=>{n=y(n,t," ")}));if(e.textContent!==n){d(i.removed,{element:e.cloneNode()});e.textContent=n}}Se(ht.afterSanitizeElements,e,null);return false};const _e=function t(e,i,r){if(Wt&&(i==="id"||i==="name")&&(r in n||r in pe)){return false}if(Dt&&!_t[i]&&T(vt,i));else if(It&&T(gt,i));else if(!At[i]||_t[i]){if(Ie(e)&&(St.tagNameCheck instanceof RegExp&&T(St.tagNameCheck,e)||St.tagNameCheck instanceof Function&&St.tagNameCheck(e))&&(St.attributeNameCheck instanceof RegExp&&T(St.attributeNameCheck,i)||St.attributeNameCheck instanceof Function&&St.attributeNameCheck(i))||i==="is"&&St.allowCustomizedBuiltInElements&&(St.tagNameCheck instanceof RegExp&&T(St.tagNameCheck,r)||St.tagNameCheck instanceof Function&&St.tagNameCheck(r)));else{return false}}else if(Kt[i]);else if(T(xt,y(r,wt,"")));else if((i==="src"||i==="xlink:href"||i==="href")&&e!=="script"&&w(r,"data:")===0&&Vt[e]);else if(Mt&&!T(yt,y(r,wt,"")));else if(r){return false}else;return true};const Ie=function t(e){return e!=="annotation-xml"&&g(e,bt)};const De=function t(e){Se(ht.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||Ae(e)){return}const r={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:At,forceKeepAttr:undefined};let s=n.length;while(s--){const t=n[s];const{name:o,namespaceURI:a,value:l}=t;const c=he(o);const f=l;let d=o==="value"?f:b(f);r.attrName=c;r.attrValue=d;r.keepAttr=true;r.forceKeepAttr=undefined;Se(ht.uponSanitizeAttribute,e,r);d=r.attrValue;if(Xt&&(c==="id"||c==="name")){xe(o,e);d=Bt+d}if(Pt&&T(/((--!?|])>)|<\/(style|title)/i,d)){xe(o,e);continue}if(r.forceKeepAttr){continue}if(!r.keepAttr){xe(o,e);continue}if(!zt&&T(/\/>/i,d)){xe(o,e);continue}if(Ot){u([dt,pt,mt],(t=>{d=y(d,t," ")}))}const p=he(e.nodeName);if(!_e(p,c,d)){xe(o,e);continue}if(st&&typeof H==="object"&&typeof H.getAttributeType==="function"){if(a);else{switch(H.getAttributeType(p,c)){case"TrustedHTML":{d=st.createHTML(d);break}case"TrustedScriptURL":{d=st.createScriptURL(d);break}}}}if(d!==f){try{if(a){e.setAttributeNS(a,o,d)}else{e.setAttribute(o,d)}if(Ae(e)){be(e)}else{h(i.removed)}}catch(t){xe(o,e)}}}Se(ht.afterSanitizeAttributes,e,null)};const Me=function t(e){let i=null;const n=Ee(e);Se(ht.beforeSanitizeShadowDOM,e,null);while(i=n.nextNode()){Se(ht.uponSanitizeShadowNode,i,null);Re(i);De(i);if(i.content instanceof l){t(i.content)}}Se(ht.afterSanitizeShadowDOM,e,null)};i.sanitize=function(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let n=null;let s=null;let o=null;let a=null;ne=!t;if(ne){t="\x3c!--\x3e"}if(typeof t!=="string"&&!ke(t)){if(typeof t.toString==="function"){t=t.toString();if(typeof t!=="string"){throw E("dirty is not a string, aborting")}}else{throw E("toString is not a function")}}if(!i.isSupported){return t}if(!Nt){ve(e)}i.removed=[];if(typeof t==="string"){Yt=false}if(Yt){if(t.nodeName){const e=he(t.nodeName);if(!Tt[e]||Rt[e]){throw E("root node is forbidden and cannot be sanitized in-place")}}}else if(t instanceof A){n=Te("\x3c!----\x3e");s=n.ownerDocument.importNode(t,true);if(s.nodeType===J.element&&s.nodeName==="BODY"){n=s}else if(s.nodeName==="HTML"){n=s}else{n.appendChild(s)}}else{if(!Ft&&!Ot&&!Ct&&t.indexOf("<")===-1){return st&&Ut?st.createHTML(t):t}n=Te(t);if(!n){return Ft?null:Ut?ot:""}}if(n&&Lt){be(n.firstChild)}const c=Ee(Yt?t:n);while(o=c.nextNode()){Re(o);De(o);if(o.content instanceof l){Me(o.content)}}if(Yt){return t}if(Ft){if(jt){a=ct.call(n.ownerDocument);while(n.firstChild){a.appendChild(n.firstChild)}}else{a=n}if(At.shadowroot||At.shadowrootmode){a=ft.call(r,a,true)}return a}let f=Ct?n.outerHTML:n.innerHTML;if(Ct&&Tt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&T(V,n.ownerDocument.doctype.name)){f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f}if(Ot){u([dt,pt,mt],(t=>{f=y(f,t," ")}))}return st&&Ut?st.createHTML(f):f};i.setConfig=function(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};ve(t);Nt=true};i.clearConfig=function(){de=null;Nt=false};i.isValidAttribute=function(t,e,i){if(!de){ve({})}const n=he(t);const r=he(e);return _e(n,r,i)};i.addHook=function(t,e){if(typeof e!=="function"){return}d(ht[t],e)};i.removeHook=function(t,e){if(e!==undefined){const i=f(ht[t],e);return i===-1?undefined:p(ht[t],i,1)[0]}return h(ht[t])};i.removeHooks=function(t){ht[t]=[]};i.removeAllHooks=function(){ht=et()};return i}var nt=it();return nt}))})(l);const c=l.exports;var u={exports:{}};
2
+ /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */(function(t,e){(function(e,i){t.exports=i()})(a,(function(){const{entries:t,setPrototypeOf:e,isFrozen:i,getPrototypeOf:n,getOwnPropertyDescriptor:r}=Object;let{freeze:s,seal:o,create:a}=Object;let{apply:l,construct:c}=typeof Reflect!=="undefined"&&Reflect;if(!s){s=function t(e){return e}}if(!o){o=function t(e){return e}}if(!l){l=function t(e,i,n){return e.apply(i,n)}}if(!c){c=function t(e,i){return new e(...i)}}const u=A(Array.prototype.forEach);const f=A(Array.prototype.lastIndexOf);const h=A(Array.prototype.pop);const d=A(Array.prototype.push);const p=A(Array.prototype.splice);const m=A(String.prototype.toLowerCase);const v=A(String.prototype.toString);const g=A(String.prototype.match);const y=A(String.prototype.replace);const b=A(String.prototype.indexOf);const w=A(String.prototype.trim);const x=A(Object.prototype.hasOwnProperty);const T=A(RegExp.prototype.test);const E=k(TypeError);function A(t){return function(e){if(e instanceof RegExp){e.lastIndex=0}for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++){n[r-1]=arguments[r]}return l(t,e,n)}}function k(t){return function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++){i[n]=arguments[n]}return c(t,i)}}function S(t,n){let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:m;if(e){e(t,null)}let s=n.length;while(s--){let e=n[s];if(typeof e==="string"){const t=r(e);if(t!==e){if(!i(n)){n[s]=t}e=t}}t[e]=true}return t}function R(t){for(let e=0;e<t.length;e++){const i=x(t,e);if(!i){t[e]=null}}return t}function _(e){const i=a(null);for(const[n,r]of t(e)){const t=x(e,n);if(t){if(Array.isArray(r)){i[n]=R(r)}else if(r&&typeof r==="object"&&r.constructor===Object){i[n]=_(r)}else{i[n]=r}}}return i}function I(t,e){while(t!==null){const i=r(t,e);if(i){if(i.get){return A(i.get)}if(typeof i.value==="function"){return A(i.value)}}t=n(t)}function i(){return null}return i}const D=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]);const M=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]);const z=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]);const O=s(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]);const P=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]);const C=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]);const N=s(["#text"]);const L=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]);const F=s(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]);const j=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]);const U=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]);const W=o(/\{\{[\w\W]*|[\w\W]*\}\}/gm);const X=o(/<%[\w\W]*|[\w\W]*%>/gm);const B=o(/\$\{[\w\W]*/gm);const H=o(/^data-[\-\w.\u00B7-\uFFFF]+$/);const Y=o(/^aria-[\-\w]+$/);const q=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);const $=o(/^(?:\w+script|data):/i);const G=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);const V=o(/^html$/i);const Z=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:Z,DATA_ATTR:H,DOCTYPE_NAME:V,ERB_EXPR:X,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:$,MUSTACHE_EXPR:W,TMPLIT_EXPR:B});const J={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12};const Q=function t(){return typeof window==="undefined"?null:window};const tt=function t(e,i){if(typeof e!=="object"||typeof e.createPolicy!=="function"){return null}let n=null;const r="data-tt-policy-suffix";if(i&&i.hasAttribute(r)){n=i.getAttribute(r)}const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(t){return t},createScriptURL(t){return t}})}catch(t){console.warn("TrustedTypes policy "+s+" could not be created.");return null}};const et=function t(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function it(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Q();const i=t=>it(t);i.version="3.2.6";i.removed=[];if(!e||!e.document||e.document.nodeType!==J.document||!e.Element){i.isSupported=false;return i}let{document:n}=e;const r=n;const o=r.currentScript;const{DocumentFragment:l,HTMLTemplateElement:c,Node:A,Element:k,NodeFilter:R,NamedNodeMap:W=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:X,DOMParser:B,trustedTypes:H}=e;const Y=k.prototype;const $=I(Y,"cloneNode");const G=I(Y,"remove");const Z=I(Y,"nextSibling");const nt=I(Y,"childNodes");const rt=I(Y,"parentNode");if(typeof c==="function"){const t=n.createElement("template");if(t.content&&t.content.ownerDocument){n=t.content.ownerDocument}}let st;let ot="";const{implementation:at,createNodeIterator:lt,createDocumentFragment:ct,getElementsByTagName:ut}=n;const{importNode:ft}=r;let ht=et();i.isSupported=typeof t==="function"&&typeof rt==="function"&&at&&at.createHTMLDocument!==undefined;const{MUSTACHE_EXPR:dt,ERB_EXPR:pt,TMPLIT_EXPR:mt,DATA_ATTR:vt,ARIA_ATTR:gt,IS_SCRIPT_OR_DATA:yt,ATTR_WHITESPACE:bt,CUSTOM_ELEMENT:wt}=K;let{IS_ALLOWED_URI:xt}=K;let Tt=null;const Et=S({},[...D,...M,...z,...P,...N]);let At=null;const kt=S({},[...L,...F,...j,...U]);let St=Object.seal(a(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));let Rt=null;let _t=null;let It=true;let Dt=true;let Mt=false;let zt=true;let Ot=false;let Pt=true;let Ct=false;let Nt=false;let Lt=false;let Ft=false;let jt=false;let Ut=false;let Wt=true;let Xt=false;const Bt="user-content-";let Ht=true;let Yt=false;let qt={};let $t=null;const Gt=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Vt=null;const Zt=S({},["audio","video","img","source","image","track"]);let Kt=null;const Jt=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);const Qt="http://www.w3.org/1998/Math/MathML";const te="http://www.w3.org/2000/svg";const ee="http://www.w3.org/1999/xhtml";let ie=ee;let ne=false;let re=null;const se=S({},[Qt,te,ee],v);let oe=S({},["mi","mo","mn","ms","mtext"]);let ae=S({},["annotation-xml"]);const le=S({},["title","style","font","a","script"]);let ce=null;const ue=["application/xhtml+xml","text/html"];const fe="text/html";let he=null;let de=null;const pe=n.createElement("form");const me=function t(e){return e instanceof RegExp||e instanceof Function};const ve=function t(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(de&&de===e){return}if(!e||typeof e!=="object"){e={}}e=_(e);ce=ue.indexOf(e.PARSER_MEDIA_TYPE)===-1?fe:e.PARSER_MEDIA_TYPE;he=ce==="application/xhtml+xml"?v:m;Tt=x(e,"ALLOWED_TAGS")?S({},e.ALLOWED_TAGS,he):Et;At=x(e,"ALLOWED_ATTR")?S({},e.ALLOWED_ATTR,he):kt;re=x(e,"ALLOWED_NAMESPACES")?S({},e.ALLOWED_NAMESPACES,v):se;Kt=x(e,"ADD_URI_SAFE_ATTR")?S(_(Jt),e.ADD_URI_SAFE_ATTR,he):Jt;Vt=x(e,"ADD_DATA_URI_TAGS")?S(_(Zt),e.ADD_DATA_URI_TAGS,he):Zt;$t=x(e,"FORBID_CONTENTS")?S({},e.FORBID_CONTENTS,he):Gt;Rt=x(e,"FORBID_TAGS")?S({},e.FORBID_TAGS,he):_({});_t=x(e,"FORBID_ATTR")?S({},e.FORBID_ATTR,he):_({});qt=x(e,"USE_PROFILES")?e.USE_PROFILES:false;It=e.ALLOW_ARIA_ATTR!==false;Dt=e.ALLOW_DATA_ATTR!==false;Mt=e.ALLOW_UNKNOWN_PROTOCOLS||false;zt=e.ALLOW_SELF_CLOSE_IN_ATTR!==false;Ot=e.SAFE_FOR_TEMPLATES||false;Pt=e.SAFE_FOR_XML!==false;Ct=e.WHOLE_DOCUMENT||false;Ft=e.RETURN_DOM||false;jt=e.RETURN_DOM_FRAGMENT||false;Ut=e.RETURN_TRUSTED_TYPE||false;Lt=e.FORCE_BODY||false;Wt=e.SANITIZE_DOM!==false;Xt=e.SANITIZE_NAMED_PROPS||false;Ht=e.KEEP_CONTENT!==false;Yt=e.IN_PLACE||false;xt=e.ALLOWED_URI_REGEXP||q;ie=e.NAMESPACE||ee;oe=e.MATHML_TEXT_INTEGRATION_POINTS||oe;ae=e.HTML_INTEGRATION_POINTS||ae;St=e.CUSTOM_ELEMENT_HANDLING||{};if(e.CUSTOM_ELEMENT_HANDLING&&me(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){St.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&me(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)){St.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"){St.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements}if(Ot){Dt=false}if(jt){Ft=true}if(qt){Tt=S({},N);At=[];if(qt.html===true){S(Tt,D);S(At,L)}if(qt.svg===true){S(Tt,M);S(At,F);S(At,U)}if(qt.svgFilters===true){S(Tt,z);S(At,F);S(At,U)}if(qt.mathMl===true){S(Tt,P);S(At,j);S(At,U)}}if(e.ADD_TAGS){if(Tt===Et){Tt=_(Tt)}S(Tt,e.ADD_TAGS,he)}if(e.ADD_ATTR){if(At===kt){At=_(At)}S(At,e.ADD_ATTR,he)}if(e.ADD_URI_SAFE_ATTR){S(Kt,e.ADD_URI_SAFE_ATTR,he)}if(e.FORBID_CONTENTS){if($t===Gt){$t=_($t)}S($t,e.FORBID_CONTENTS,he)}if(Ht){Tt["#text"]=true}if(Ct){S(Tt,["html","head","body"])}if(Tt.table){S(Tt,["tbody"]);delete Rt.tbody}if(e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw E('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}st=e.TRUSTED_TYPES_POLICY;ot=st.createHTML("")}else{if(st===undefined){st=tt(H,o)}if(st!==null&&typeof ot==="string"){ot=st.createHTML("")}}if(s){s(e)}de=e};const ge=S({},[...M,...z,...O]);const ye=S({},[...P,...C]);const be=function t(e){let i=rt(e);if(!i||!i.tagName){i={namespaceURI:ie,tagName:"template"}}const n=m(e.tagName);const r=m(i.tagName);if(!re[e.namespaceURI]){return false}if(e.namespaceURI===te){if(i.namespaceURI===ee){return n==="svg"}if(i.namespaceURI===Qt){return n==="svg"&&(r==="annotation-xml"||oe[r])}return Boolean(ge[n])}if(e.namespaceURI===Qt){if(i.namespaceURI===ee){return n==="math"}if(i.namespaceURI===te){return n==="math"&&ae[r]}return Boolean(ye[n])}if(e.namespaceURI===ee){if(i.namespaceURI===te&&!ae[r]){return false}if(i.namespaceURI===Qt&&!oe[r]){return false}return!ye[n]&&(le[n]||!ge[n])}if(ce==="application/xhtml+xml"&&re[e.namespaceURI]){return true}return false};const we=function t(e){d(i.removed,{element:e});try{rt(e).removeChild(e)}catch(t){G(e)}};const xe=function t(e,n){try{d(i.removed,{attribute:n.getAttributeNode(e),from:n})}catch(t){d(i.removed,{attribute:null,from:n})}n.removeAttribute(e);if(e==="is"){if(Ft||jt){try{we(n)}catch(t){}}else{try{n.setAttribute(e,"")}catch(t){}}}};const Te=function t(e){let i=null;let r=null;if(Lt){e="<remove></remove>"+e}else{const t=g(e,/^[\r\n\t ]+/);r=t&&t[0]}if(ce==="application/xhtml+xml"&&ie===ee){e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>"}const s=st?st.createHTML(e):e;if(ie===ee){try{i=(new B).parseFromString(s,ce)}catch(t){}}if(!i||!i.documentElement){i=at.createDocument(ie,"template",null);try{i.documentElement.innerHTML=ne?ot:s}catch(t){}}const o=i.body||i.documentElement;if(e&&r){o.insertBefore(n.createTextNode(r),o.childNodes[0]||null)}if(ie===ee){return ut.call(i,Ct?"html":"body")[0]}return Ct?i.documentElement:o};const Ee=function t(e){return lt.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)};const Ae=function t(e){return e instanceof X&&(typeof e.nodeName!=="string"||typeof e.textContent!=="string"||typeof e.removeChild!=="function"||!(e.attributes instanceof W)||typeof e.removeAttribute!=="function"||typeof e.setAttribute!=="function"||typeof e.namespaceURI!=="string"||typeof e.insertBefore!=="function"||typeof e.hasChildNodes!=="function")};const ke=function t(e){return typeof A==="function"&&e instanceof A};function Se(t,e,n){u(t,(t=>{t.call(i,e,n,de)}))}const Re=function t(e){let n=null;Se(ht.beforeSanitizeElements,e,null);if(Ae(e)){we(e);return true}const r=he(e.nodeName);Se(ht.uponSanitizeElement,e,{tagName:r,allowedTags:Tt});if(Pt&&e.hasChildNodes()&&!ke(e.firstElementChild)&&T(/<[/\w!]/g,e.innerHTML)&&T(/<[/\w!]/g,e.textContent)){we(e);return true}if(e.nodeType===J.progressingInstruction){we(e);return true}if(Pt&&e.nodeType===J.comment&&T(/<[/\w]/g,e.data)){we(e);return true}if(!Tt[r]||Rt[r]){if(!Rt[r]&&Ie(r)){if(St.tagNameCheck instanceof RegExp&&T(St.tagNameCheck,r)){return false}if(St.tagNameCheck instanceof Function&&St.tagNameCheck(r)){return false}}if(Ht&&!$t[r]){const t=rt(e)||e.parentNode;const i=nt(e)||e.childNodes;if(i&&t){const n=i.length;for(let r=n-1;r>=0;--r){const n=$(i[r],true);n.__removalCount=(e.__removalCount||0)+1;t.insertBefore(n,Z(e))}}}we(e);return true}if(e instanceof k&&!be(e)){we(e);return true}if((r==="noscript"||r==="noembed"||r==="noframes")&&T(/<\/no(script|embed|frames)/i,e.innerHTML)){we(e);return true}if(Ot&&e.nodeType===J.text){n=e.textContent;u([dt,pt,mt],(t=>{n=y(n,t," ")}));if(e.textContent!==n){d(i.removed,{element:e.cloneNode()});e.textContent=n}}Se(ht.afterSanitizeElements,e,null);return false};const _e=function t(e,i,r){if(Wt&&(i==="id"||i==="name")&&(r in n||r in pe)){return false}if(Dt&&!_t[i]&&T(vt,i));else if(It&&T(gt,i));else if(!At[i]||_t[i]){if(Ie(e)&&(St.tagNameCheck instanceof RegExp&&T(St.tagNameCheck,e)||St.tagNameCheck instanceof Function&&St.tagNameCheck(e))&&(St.attributeNameCheck instanceof RegExp&&T(St.attributeNameCheck,i)||St.attributeNameCheck instanceof Function&&St.attributeNameCheck(i))||i==="is"&&St.allowCustomizedBuiltInElements&&(St.tagNameCheck instanceof RegExp&&T(St.tagNameCheck,r)||St.tagNameCheck instanceof Function&&St.tagNameCheck(r)));else{return false}}else if(Kt[i]);else if(T(xt,y(r,bt,"")));else if((i==="src"||i==="xlink:href"||i==="href")&&e!=="script"&&b(r,"data:")===0&&Vt[e]);else if(Mt&&!T(yt,y(r,bt,"")));else if(r){return false}else;return true};const Ie=function t(e){return e!=="annotation-xml"&&g(e,wt)};const De=function t(e){Se(ht.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||Ae(e)){return}const r={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:At,forceKeepAttr:undefined};let s=n.length;while(s--){const t=n[s];const{name:o,namespaceURI:a,value:l}=t;const c=he(o);const f=l;let d=o==="value"?f:w(f);r.attrName=c;r.attrValue=d;r.keepAttr=true;r.forceKeepAttr=undefined;Se(ht.uponSanitizeAttribute,e,r);d=r.attrValue;if(Xt&&(c==="id"||c==="name")){xe(o,e);d=Bt+d}if(Pt&&T(/((--!?|])>)|<\/(style|title)/i,d)){xe(o,e);continue}if(r.forceKeepAttr){continue}if(!r.keepAttr){xe(o,e);continue}if(!zt&&T(/\/>/i,d)){xe(o,e);continue}if(Ot){u([dt,pt,mt],(t=>{d=y(d,t," ")}))}const p=he(e.nodeName);if(!_e(p,c,d)){xe(o,e);continue}if(st&&typeof H==="object"&&typeof H.getAttributeType==="function"){if(a);else{switch(H.getAttributeType(p,c)){case"TrustedHTML":{d=st.createHTML(d);break}case"TrustedScriptURL":{d=st.createScriptURL(d);break}}}}if(d!==f){try{if(a){e.setAttributeNS(a,o,d)}else{e.setAttribute(o,d)}if(Ae(e)){we(e)}else{h(i.removed)}}catch(t){xe(o,e)}}}Se(ht.afterSanitizeAttributes,e,null)};const Me=function t(e){let i=null;const n=Ee(e);Se(ht.beforeSanitizeShadowDOM,e,null);while(i=n.nextNode()){Se(ht.uponSanitizeShadowNode,i,null);Re(i);De(i);if(i.content instanceof l){t(i.content)}}Se(ht.afterSanitizeShadowDOM,e,null)};i.sanitize=function(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let n=null;let s=null;let o=null;let a=null;ne=!t;if(ne){t="\x3c!--\x3e"}if(typeof t!=="string"&&!ke(t)){if(typeof t.toString==="function"){t=t.toString();if(typeof t!=="string"){throw E("dirty is not a string, aborting")}}else{throw E("toString is not a function")}}if(!i.isSupported){return t}if(!Nt){ve(e)}i.removed=[];if(typeof t==="string"){Yt=false}if(Yt){if(t.nodeName){const e=he(t.nodeName);if(!Tt[e]||Rt[e]){throw E("root node is forbidden and cannot be sanitized in-place")}}}else if(t instanceof A){n=Te("\x3c!----\x3e");s=n.ownerDocument.importNode(t,true);if(s.nodeType===J.element&&s.nodeName==="BODY"){n=s}else if(s.nodeName==="HTML"){n=s}else{n.appendChild(s)}}else{if(!Ft&&!Ot&&!Ct&&t.indexOf("<")===-1){return st&&Ut?st.createHTML(t):t}n=Te(t);if(!n){return Ft?null:Ut?ot:""}}if(n&&Lt){we(n.firstChild)}const c=Ee(Yt?t:n);while(o=c.nextNode()){Re(o);De(o);if(o.content instanceof l){Me(o.content)}}if(Yt){return t}if(Ft){if(jt){a=ct.call(n.ownerDocument);while(n.firstChild){a.appendChild(n.firstChild)}}else{a=n}if(At.shadowroot||At.shadowrootmode){a=ft.call(r,a,true)}return a}let f=Ct?n.outerHTML:n.innerHTML;if(Ct&&Tt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&T(V,n.ownerDocument.doctype.name)){f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f}if(Ot){u([dt,pt,mt],(t=>{f=y(f,t," ")}))}return st&&Ut?st.createHTML(f):f};i.setConfig=function(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};ve(t);Nt=true};i.clearConfig=function(){de=null;Nt=false};i.isValidAttribute=function(t,e,i){if(!de){ve({})}const n=he(t);const r=he(e);return _e(n,r,i)};i.addHook=function(t,e){if(typeof e!=="function"){return}d(ht[t],e)};i.removeHook=function(t,e){if(e!==undefined){const i=f(ht[t],e);return i===-1?undefined:p(ht[t],i,1)[0]}return h(ht[t])};i.removeHooks=function(t){ht[t]=[]};i.removeAllHooks=function(){ht=et()};return i}var nt=it();return nt}))})(l);const c=l.exports;var u={exports:{}};
3
3
  /*! Hammer.JS - v2.0.7 - 2016-04-22
4
4
  * http://hammerjs.github.io/
5
5
  *
6
6
  * Copyright (c) 2016 Jorik Tangelder;
7
- * Licensed under the MIT license */(function(t){(function(e,i,n,r){var s=["","webkit","Moz","MS","ms","o"];var o=i.createElement("div");var a="function";var l=Math.round;var c=Math.abs;var u=Date.now;function f(t,e,i){return setTimeout(w(t,i),e)}function h(t,e,i){if(Array.isArray(t)){d(t,i[e],i);return true}return false}function d(t,e,i){var n;if(!t){return}if(t.forEach){t.forEach(e,i)}else if(t.length!==r){n=0;while(n<t.length){e.call(i,t[n],n,t);n++}}else{for(n in t){t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}}}function p(t,i,n){var r="DEPRECATED METHOD: "+i+"\n"+n+" AT \n";return function(){var i=new Error("get-stack-trace");var n=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace";var s=e.console&&(e.console.warn||e.console.log);if(s){s.call(e.console,r,n)}return t.apply(this,arguments)}}var m;if(typeof Object.assign!=="function"){m=function t(e){if(e===r||e===null){throw new TypeError("Cannot convert undefined or null to object")}var i=Object(e);for(var n=1;n<arguments.length;n++){var s=arguments[n];if(s!==r&&s!==null){for(var o in s){if(s.hasOwnProperty(o)){i[o]=s[o]}}}}return i}}else{m=Object.assign}var v=p((function t(e,i,n){var s=Object.keys(i);var o=0;while(o<s.length){if(!n||n&&e[s[o]]===r){e[s[o]]=i[s[o]]}o++}return e}),"extend","Use `assign`.");var g=p((function t(e,i){return v(e,i,true)}),"merge","Use `assign`.");function y(t,e,i){var n=e.prototype,r;r=t.prototype=Object.create(n);r.constructor=t;r._super=n;if(i){m(r,i)}}function w(t,e){return function i(){return t.apply(e,arguments)}}function b(t,e){if(typeof t==a){return t.apply(e?e[0]||r:r,e)}return t}function x(t,e){return t===r?e:t}function T(t,e,i){d(S(e),(function(e){t.addEventListener(e,i,false)}))}function E(t,e,i){d(S(e),(function(e){t.removeEventListener(e,i,false)}))}function A(t,e){while(t){if(t==e){return true}t=t.parentNode}return false}function k(t,e){return t.indexOf(e)>-1}function S(t){return t.trim().split(/\s+/g)}function R(t,e,i){if(t.indexOf&&!i){return t.indexOf(e)}else{var n=0;while(n<t.length){if(i&&t[n][i]==e||!i&&t[n]===e){return n}n++}return-1}}function _(t){return Array.prototype.slice.call(t,0)}function I(t,e,i){var n=[];var r=[];var s=0;while(s<t.length){var o=e?t[s][e]:t[s];if(R(r,o)<0){n.push(t[s])}r[s]=o;s++}if(i){if(!e){n=n.sort()}else{n=n.sort((function t(i,n){return i[e]>n[e]}))}}return n}function D(t,e){var i,n;var o=e[0].toUpperCase()+e.slice(1);var a=0;while(a<s.length){i=s[a];n=i?i+o:e;if(n in t){return n}a++}return r}var M=1;function z(){return M++}function O(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||e}var P=/mobile|tablet|ip(ad|hone|od)|android/i;var C="ontouchstart"in e;var N=D(e,"PointerEvent")!==r;var L=C&&P.test(navigator.userAgent);var F="touch";var j="pen";var U="mouse";var W="kinect";var X=25;var B=1;var H=2;var Y=4;var q=8;var $=1;var G=2;var V=4;var Z=8;var K=16;var J=G|V;var Q=Z|K;var tt=J|Q;var et=["x","y"];var it=["clientX","clientY"];function nt(t,e){var i=this;this.manager=t;this.callback=e;this.element=t.element;this.target=t.options.inputTarget;this.domHandler=function(e){if(b(t.options.enable,[t])){i.handler(e)}};this.init()}nt.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler);this.evTarget&&T(this.target,this.evTarget,this.domHandler);this.evWin&&T(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler);this.evTarget&&E(this.target,this.evTarget,this.domHandler);this.evWin&&E(O(this.element),this.evWin,this.domHandler)}};function rt(t){var e;var i=t.options.inputClass;if(i){e=i}else if(N){e=kt}else if(L){e=Ot}else if(!C){e=bt}else{e=Lt}return new e(t,st)}function st(t,e,i){var n=i.pointers.length;var r=i.changedPointers.length;var s=e&B&&n-r===0;var o=e&(Y|q)&&n-r===0;i.isFirst=!!s;i.isFinal=!!o;if(s){t.session={}}i.eventType=e;ot(t,i);t.emit("hammer.input",i);t.recognize(i);t.session.prevInput=i}function ot(t,e){var i=t.session;var n=e.pointers;var r=n.length;if(!i.firstInput){i.firstInput=ct(e)}if(r>1&&!i.firstMultiple){i.firstMultiple=ct(e)}else if(r===1){i.firstMultiple=false}var s=i.firstInput;var o=i.firstMultiple;var a=o?o.center:s.center;var l=e.center=ut(n);e.timeStamp=u();e.deltaTime=e.timeStamp-s.timeStamp;e.angle=pt(a,l);e.distance=dt(a,l);at(i,e);e.offsetDirection=ht(e.deltaX,e.deltaY);var f=ft(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=f.x;e.overallVelocityY=f.y;e.overallVelocity=c(f.x)>c(f.y)?f.x:f.y;e.scale=o?vt(o.pointers,n):1;e.rotation=o?mt(o.pointers,n):0;e.maxPointers=!i.prevInput?e.pointers.length:e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers;lt(i,e);var h=t.element;if(A(e.srcEvent.target,h)){h=e.srcEvent.target}e.target=h}function at(t,e){var i=e.center;var n=t.offsetDelta||{};var r=t.prevDelta||{};var s=t.prevInput||{};if(e.eventType===B||s.eventType===Y){r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0};n=t.offsetDelta={x:i.x,y:i.y}}e.deltaX=r.x+(i.x-n.x);e.deltaY=r.y+(i.y-n.y)}function lt(t,e){var i=t.lastInterval||e,n=e.timeStamp-i.timeStamp,s,o,a,l;if(e.eventType!=q&&(n>X||i.velocity===r)){var u=e.deltaX-i.deltaX;var f=e.deltaY-i.deltaY;var h=ft(n,u,f);o=h.x;a=h.y;s=c(h.x)>c(h.y)?h.x:h.y;l=ht(u,f);t.lastInterval=e}else{s=i.velocity;o=i.velocityX;a=i.velocityY;l=i.direction}e.velocity=s;e.velocityX=o;e.velocityY=a;e.direction=l}function ct(t){var e=[];var i=0;while(i<t.pointers.length){e[i]={clientX:l(t.pointers[i].clientX),clientY:l(t.pointers[i].clientY)};i++}return{timeStamp:u(),pointers:e,center:ut(e),deltaX:t.deltaX,deltaY:t.deltaY}}function ut(t){var e=t.length;if(e===1){return{x:l(t[0].clientX),y:l(t[0].clientY)}}var i=0,n=0,r=0;while(r<e){i+=t[r].clientX;n+=t[r].clientY;r++}return{x:l(i/e),y:l(n/e)}}function ft(t,e,i){return{x:e/t||0,y:i/t||0}}function ht(t,e){if(t===e){return $}if(c(t)>=c(e)){return t<0?G:V}return e<0?Z:K}function dt(t,e,i){if(!i){i=et}var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function pt(t,e,i){if(!i){i=et}var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.atan2(r,n)*180/Math.PI}function mt(t,e){return pt(e[1],e[0],it)+pt(t[1],t[0],it)}function vt(t,e){return dt(e[0],e[1],it)/dt(t[0],t[1],it)}var gt={mousedown:B,mousemove:H,mouseup:Y};var yt="mousedown";var wt="mousemove mouseup";function bt(){this.evEl=yt;this.evWin=wt;this.pressed=false;nt.apply(this,arguments)}y(bt,nt,{handler:function t(e){var i=gt[e.type];if(i&B&&e.button===0){this.pressed=true}if(i&H&&e.which!==1){i=Y}if(!this.pressed){return}if(i&Y){this.pressed=false}this.callback(this.manager,i,{pointers:[e],changedPointers:[e],pointerType:U,srcEvent:e})}});var xt={pointerdown:B,pointermove:H,pointerup:Y,pointercancel:q,pointerout:q};var Tt={2:F,3:j,4:U,5:W};var Et="pointerdown";var At="pointermove pointerup pointercancel";if(e.MSPointerEvent&&!e.PointerEvent){Et="MSPointerDown";At="MSPointerMove MSPointerUp MSPointerCancel"}function kt(){this.evEl=Et;this.evWin=At;nt.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}y(kt,nt,{handler:function t(e){var i=this.store;var n=false;var r=e.type.toLowerCase().replace("ms","");var s=xt[r];var o=Tt[e.pointerType]||e.pointerType;var a=o==F;var l=R(i,e.pointerId,"pointerId");if(s&B&&(e.button===0||a)){if(l<0){i.push(e);l=i.length-1}}else if(s&(Y|q)){n=true}if(l<0){return}i[l]=e;this.callback(this.manager,s,{pointers:i,changedPointers:[e],pointerType:o,srcEvent:e});if(n){i.splice(l,1)}}});var St={touchstart:B,touchmove:H,touchend:Y,touchcancel:q};var Rt="touchstart";var _t="touchstart touchmove touchend touchcancel";function It(){this.evTarget=Rt;this.evWin=_t;this.started=false;nt.apply(this,arguments)}y(It,nt,{handler:function t(e){var i=St[e.type];if(i===B){this.started=true}if(!this.started){return}var n=Dt.call(this,e,i);if(i&(Y|q)&&n[0].length-n[1].length===0){this.started=false}this.callback(this.manager,i,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:e})}});function Dt(t,e){var i=_(t.touches);var n=_(t.changedTouches);if(e&(Y|q)){i=I(i.concat(n),"identifier",true)}return[i,n]}var Mt={touchstart:B,touchmove:H,touchend:Y,touchcancel:q};var zt="touchstart touchmove touchend touchcancel";function Ot(){this.evTarget=zt;this.targetIds={};nt.apply(this,arguments)}y(Ot,nt,{handler:function t(e){var i=Mt[e.type];var n=Pt.call(this,e,i);if(!n){return}this.callback(this.manager,i,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:e})}});function Pt(t,e){var i=_(t.touches);var n=this.targetIds;if(e&(B|H)&&i.length===1){n[i[0].identifier]=true;return[i,i]}var r,s,o=_(t.changedTouches),a=[],l=this.target;s=i.filter((function(t){return A(t.target,l)}));if(e===B){r=0;while(r<s.length){n[s[r].identifier]=true;r++}}r=0;while(r<o.length){if(n[o[r].identifier]){a.push(o[r])}if(e&(Y|q)){delete n[o[r].identifier]}r++}if(!a.length){return}return[I(s.concat(a),"identifier",true),a]}var Ct=2500;var Nt=25;function Lt(){nt.apply(this,arguments);var t=w(this.handler,this);this.touch=new Ot(this.manager,t);this.mouse=new bt(this.manager,t);this.primaryTouch=null;this.lastTouches=[]}y(Lt,nt,{handler:function t(e,i,n){var r=n.pointerType==F,s=n.pointerType==U;if(s&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents){return}if(r){Ft.call(this,i,n)}else if(s&&Ut.call(this,n)){return}this.callback(e,i,n)},destroy:function t(){this.touch.destroy();this.mouse.destroy()}});function Ft(t,e){if(t&B){this.primaryTouch=e.changedPointers[0].identifier;jt.call(this,e)}else if(t&(Y|q)){jt.call(this,e)}}function jt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;var r=function(){var t=n.indexOf(i);if(t>-1){n.splice(t,1)}};setTimeout(r,Ct)}}function Ut(t){var e=t.srcEvent.clientX,i=t.srcEvent.clientY;for(var n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n];var s=Math.abs(e-r.x),o=Math.abs(i-r.y);if(s<=Nt&&o<=Nt){return true}}return false}var Wt=D(o.style,"touchAction");var Xt=Wt!==r;var Bt="compute";var Ht="auto";var Yt="manipulation";var qt="none";var $t="pan-x";var Gt="pan-y";var Vt=Jt();function Zt(t,e){this.manager=t;this.set(e)}Zt.prototype={set:function(t){if(t==Bt){t=this.compute()}if(Xt&&this.manager.element.style&&Vt[t]){this.manager.element.style[Wt]=t}this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];d(this.manager.recognizers,(function(e){if(b(e.options.enable,[e])){t=t.concat(e.getTouchAction())}}));return Kt(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent;var i=t.offsetDirection;if(this.manager.session.prevented){e.preventDefault();return}var n=this.actions;var r=k(n,qt)&&!Vt[qt];var s=k(n,Gt)&&!Vt[Gt];var o=k(n,$t)&&!Vt[$t];if(r){var a=t.pointers.length===1;var l=t.distance<2;var c=t.deltaTime<250;if(a&&l&&c){return}}if(o&&s){return}if(r||s&&i&J||o&&i&Q){return this.preventSrc(e)}},preventSrc:function(t){this.manager.session.prevented=true;t.preventDefault()}};function Kt(t){if(k(t,qt)){return qt}var e=k(t,$t);var i=k(t,Gt);if(e&&i){return qt}if(e||i){return e?$t:Gt}if(k(t,Yt)){return Yt}return Ht}function Jt(){if(!Xt){return false}var t={};var i=e.CSS&&e.CSS.supports;["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=i?e.CSS.supports("touch-action",n):true}));return t}var Qt=1;var te=2;var ee=4;var ie=8;var ne=ie;var re=16;var se=32;function oe(t){this.options=m({},this.defaults,t||{});this.id=z();this.manager=null;this.options.enable=x(this.options.enable,true);this.state=Qt;this.simultaneous={};this.requireFail=[]}oe.prototype={defaults:{},set:function(t){m(this.options,t);this.manager&&this.manager.touchAction.update();return this},recognizeWith:function(t){if(h(t,"recognizeWith",this)){return this}var e=this.simultaneous;t=ce(t,this);if(!e[t.id]){e[t.id]=t;t.recognizeWith(this)}return this},dropRecognizeWith:function(t){if(h(t,"dropRecognizeWith",this)){return this}t=ce(t,this);delete this.simultaneous[t.id];return this},requireFailure:function(t){if(h(t,"requireFailure",this)){return this}var e=this.requireFail;t=ce(t,this);if(R(e,t)===-1){e.push(t);t.requireFailure(this)}return this},dropRequireFailure:function(t){if(h(t,"dropRequireFailure",this)){return this}t=ce(t,this);var e=R(this.requireFail,t);if(e>-1){this.requireFail.splice(e,1)}return this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this;var i=this.state;function n(i){e.manager.emit(i,t)}if(i<ie){n(e.options.event+ae(i))}n(e.options.event);if(t.additionalEvent){n(t.additionalEvent)}if(i>=ie){n(e.options.event+ae(i))}},tryEmit:function(t){if(this.canEmit()){return this.emit(t)}this.state=se},canEmit:function(){var t=0;while(t<this.requireFail.length){if(!(this.requireFail[t].state&(se|Qt))){return false}t++}return true},recognize:function(t){var e=m({},t);if(!b(this.options.enable,[this,e])){this.reset();this.state=se;return}if(this.state&(ne|re|se)){this.state=Qt}this.state=this.process(e);if(this.state&(te|ee|ie|re)){this.tryEmit(e)}},process:function(t){},getTouchAction:function(){},reset:function(){}};function ae(t){if(t&re){return"cancel"}else if(t&ie){return"end"}else if(t&ee){return"move"}else if(t&te){return"start"}return""}function le(t){if(t==K){return"down"}else if(t==Z){return"up"}else if(t==G){return"left"}else if(t==V){return"right"}return""}function ce(t,e){var i=e.manager;if(i){return i.get(t)}return t}function ue(){oe.apply(this,arguments)}y(ue,oe,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return e===0||t.pointers.length===e},process:function(t){var e=this.state;var i=t.eventType;var n=e&(te|ee);var r=this.attrTest(t);if(n&&(i&q||!r)){return e|re}else if(n||r){if(i&Y){return e|ie}else if(!(e&te)){return te}return e|ee}return se}});function fe(){ue.apply(this,arguments);this.pX=null;this.pY=null}y(fe,ue,{defaults:{event:"pan",threshold:10,pointers:1,direction:tt},getTouchAction:function(){var t=this.options.direction;var e=[];if(t&J){e.push(Gt)}if(t&Q){e.push($t)}return e},directionTest:function(t){var e=this.options;var i=true;var n=t.distance;var r=t.direction;var s=t.deltaX;var o=t.deltaY;if(!(r&e.direction)){if(e.direction&J){r=s===0?$:s<0?G:V;i=s!=this.pX;n=Math.abs(t.deltaX)}else{r=o===0?$:o<0?Z:K;i=o!=this.pY;n=Math.abs(t.deltaY)}}t.direction=r;return i&&n>e.threshold&&r&e.direction},attrTest:function(t){return ue.prototype.attrTest.call(this,t)&&(this.state&te||!(this.state&te)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX;this.pY=t.deltaY;var e=le(t.direction);if(e){t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}});function he(){ue.apply(this,arguments)}y(he,ue,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&te)},emit:function(t){if(t.scale!==1){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}});function de(){oe.apply(this,arguments);this._timer=null;this._input=null}y(de,oe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ht]},process:function(t){var e=this.options;var i=t.pointers.length===e.pointers;var n=t.distance<e.threshold;var r=t.deltaTime>e.time;this._input=t;if(!n||!i||t.eventType&(Y|q)&&!r){this.reset()}else if(t.eventType&B){this.reset();this._timer=f((function(){this.state=ne;this.tryEmit()}),e.time,this)}else if(t.eventType&Y){return ne}return se},reset:function(){clearTimeout(this._timer)},emit:function(t){if(this.state!==ne){return}if(t&&t.eventType&Y){this.manager.emit(this.options.event+"up",t)}else{this._input.timeStamp=u();this.manager.emit(this.options.event,this._input)}}});function pe(){ue.apply(this,arguments)}y(pe,ue,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&te)}});function me(){ue.apply(this,arguments)}y(me,ue,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:J|Q,pointers:1},getTouchAction:function(){return fe.prototype.getTouchAction.call(this)},attrTest:function(t){var e=this.options.direction;var i;if(e&(J|Q)){i=t.overallVelocity}else if(e&J){i=t.overallVelocityX}else if(e&Q){i=t.overallVelocityY}return this._super.attrTest.call(this,t)&&e&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&c(i)>this.options.velocity&&t.eventType&Y},emit:function(t){var e=le(t.offsetDirection);if(e){this.manager.emit(this.options.event+e,t)}this.manager.emit(this.options.event,t)}});function ve(){oe.apply(this,arguments);this.pTime=false;this.pCenter=false;this._timer=null;this._input=null;this.count=0}y(ve,oe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Yt]},process:function(t){var e=this.options;var i=t.pointers.length===e.pointers;var n=t.distance<e.threshold;var r=t.deltaTime<e.time;this.reset();if(t.eventType&B&&this.count===0){return this.failTimeout()}if(n&&r&&i){if(t.eventType!=Y){return this.failTimeout()}var s=this.pTime?t.timeStamp-this.pTime<e.interval:true;var o=!this.pCenter||dt(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp;this.pCenter=t.center;if(!o||!s){this.count=1}else{this.count+=1}this._input=t;var a=this.count%e.taps;if(a===0){if(!this.hasRequireFailures()){return ne}else{this._timer=f((function(){this.state=ne;this.tryEmit()}),e.interval,this);return te}}}return se},failTimeout:function(){this._timer=f((function(){this.state=se}),this.options.interval,this);return se},reset:function(){clearTimeout(this._timer)},emit:function(){if(this.state==ne){this._input.tapCount=this.count;this.manager.emit(this.options.event,this._input)}}});function ge(t,e){e=e||{};e.recognizers=x(e.recognizers,ge.defaults.preset);return new be(t,e)}ge.VERSION="2.0.7";ge.defaults={domEvents:false,touchAction:Bt,enable:true,inputTarget:null,inputClass:null,preset:[[pe,{enable:false}],[he,{enable:false},["rotate"]],[me,{direction:J}],[fe,{direction:J},["swipe"]],[ve],[ve,{event:"doubletap",taps:2},["tap"]],[de]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ye=1;var we=2;function be(t,e){this.options=m({},ge.defaults,e||{});this.options.inputTarget=this.options.inputTarget||t;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=t;this.input=rt(this);this.touchAction=new Zt(this,this.options.touchAction);xe(this,true);d(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]);t[3]&&e.requireFailure(t[3])}),this)}be.prototype={set:function(t){m(this.options,t);if(t.touchAction){this.touchAction.update()}if(t.inputTarget){this.input.destroy();this.input.target=t.inputTarget;this.input.init()}return this},stop:function(t){this.session.stopped=t?we:ye},recognize:function(t){var e=this.session;if(e.stopped){return}this.touchAction.preventDefaults(t);var i;var n=this.recognizers;var r=e.curRecognizer;if(!r||r&&r.state&ne){r=e.curRecognizer=null}var s=0;while(s<n.length){i=n[s];if(e.stopped!==we&&(!r||i==r||i.canRecognizeWith(r))){i.recognize(t)}else{i.reset()}if(!r&&i.state&(te|ee|ie)){r=e.curRecognizer=i}s++}},get:function(t){if(t instanceof oe){return t}var e=this.recognizers;for(var i=0;i<e.length;i++){if(e[i].options.event==t){return e[i]}}return null},add:function(t){if(h(t,"add",this)){return this}var e=this.get(t.options.event);if(e){this.remove(e)}this.recognizers.push(t);t.manager=this;this.touchAction.update();return t},remove:function(t){if(h(t,"remove",this)){return this}t=this.get(t);if(t){var e=this.recognizers;var i=R(e,t);if(i!==-1){e.splice(i,1);this.touchAction.update()}}return this},on:function(t,e){if(t===r){return}if(e===r){return}var i=this.handlers;d(S(t),(function(t){i[t]=i[t]||[];i[t].push(e)}));return this},off:function(t,e){if(t===r){return}var i=this.handlers;d(S(t),(function(t){if(!e){delete i[t]}else{i[t]&&i[t].splice(R(i[t],e),1)}}));return this},emit:function(t,e){if(this.options.domEvents){Te(t,e)}var i=this.handlers[t]&&this.handlers[t].slice();if(!i||!i.length){return}e.type=t;e.preventDefault=function(){e.srcEvent.preventDefault()};var n=0;while(n<i.length){i[n](e);n++}},destroy:function(){this.element&&xe(this,false);this.handlers={};this.session={};this.input.destroy();this.element=null}};function xe(t,e){var i=t.element;if(!i.style){return}var n;d(t.options.cssProps,(function(r,s){n=D(i.style,s);if(e){t.oldCssProps[n]=i.style[n];i.style[n]=r}else{i.style[n]=t.oldCssProps[n]||""}}));if(!e){t.oldCssProps={}}}function Te(t,e){var n=i.createEvent("Event");n.initEvent(t,true,true);n.gesture=e;e.target.dispatchEvent(n)}m(ge,{INPUT_START:B,INPUT_MOVE:H,INPUT_END:Y,INPUT_CANCEL:q,STATE_POSSIBLE:Qt,STATE_BEGAN:te,STATE_CHANGED:ee,STATE_ENDED:ie,STATE_RECOGNIZED:ne,STATE_CANCELLED:re,STATE_FAILED:se,DIRECTION_NONE:$,DIRECTION_LEFT:G,DIRECTION_RIGHT:V,DIRECTION_UP:Z,DIRECTION_DOWN:K,DIRECTION_HORIZONTAL:J,DIRECTION_VERTICAL:Q,DIRECTION_ALL:tt,Manager:be,Input:nt,TouchAction:Zt,TouchInput:Ot,MouseInput:bt,PointerEventInput:kt,TouchMouseInput:Lt,SingleTouchInput:It,Recognizer:oe,AttrRecognizer:ue,Tap:ve,Pan:fe,Swipe:me,Pinch:he,Rotate:pe,Press:de,on:T,off:E,each:d,merge:g,extend:v,assign:m,inherit:y,bindFn:w,prefixed:D});var Ee=typeof e!=="undefined"?e:typeof self!=="undefined"?self:{};Ee.Hammer=ge;if(typeof r==="function"&&r.amd){r((function(){return ge}))}else if(t.exports){t.exports=ge}else{e[n]=ge}})(window,document,"Hammer")})(u);const f=u.exports;const h=':host{display:inline-block;width:100vw;min-width:200px;--percentuale:0}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideindown{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideoutleft{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(-100%)}}@keyframes slideoutright{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(100%)}}@keyframes slideoutup{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(-100%)}}@keyframes slideoutdown{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(100%)}}:host>#external-container{display:flex;min-height:calc(var(--space-unit) * 8.5);box-sizing:border-box;justify-content:space-between;padding:calc(var(--space-unit) * 2) 14px calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);border-radius:var(--border-size-large);box-shadow:var(--shadow-3);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px}:host>#external-container>#inner-container{display:flex;width:100%;flex-direction:column;justify-content:space-between}:host>#external-container #inner-container #text{padding:var(--space-unit) 0;color:var(--color-text-inverse);letter-spacing:0.16px;line-height:20px;text-align:start}:host>#external-container #inner-container #text>.title{margin-right:calc(var(--space-unit) / 2);font-weight:var(--font-sb)}:host>#external-container #inner-container ::slotted([slot="button"]){margin-top:var(--space-unit)}:host>#external-container #icon{padding-top:var(--space-unit);margin:0 calc(var(--space-unit) / 4);cursor:pointer;fill:var(--color-inverse-icon)}:host>#external-container #icon:focus-within{margin:0}:host>#external-container #icon z-icon{margin:0 0 0 14px}:host>#external-container #icon z-icon:focus{display:inline-block;padding:calc(var(--space-unit) / 4);border-radius:50%;box-shadow:var(--shadow-focus-primary)}:host>#external-container.dark{background:var(--color-surface05)}:host>#external-container.light{background:var(--color-surface01)}:host>#external-container.light #icon{fill:var(--color-primary01-icon)}:host>#external-container.light #inner-container #text,:host>#external-container.warning #inner-container #text{color:var(--color-default-text)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-default-error)}:host>#external-container.success{background:var(--color-default-success)}:host>#external-container.warning{background:var(--color-default-warning)}:host>#external-container.warning #icon{fill:var(--color-default-icon)}@media (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container #inner-container{flex-direction:row}:host>#external-container #inner-container ::slotted([slot="button"]){margin:0 0 0 calc(var(--space-unit) * 2)}}@media (min-width: 1366px){:host{max-width:33vw}}';const d=h;const p=class{constructor(i){t(this,i);this.toastClose=e(this,"toastClose",7);this.isCloseEventCalled=false;this.heading=undefined;this.message=undefined;this.closebutton=undefined;this.autoclose=undefined;this.pauseonfocusloss=true;this.type=undefined;this.isdraggable=true;this.draggablepercentage=80;this.transition=undefined;this.percentage=undefined}watchPropIsdraggable(t){if(t){this.sliderManager.get("pan").set({enable:true})}else{this.sliderManager.get("pan").set({enable:false})}}watchPropAutoclose(t){clearTimeout(this.timeoutHandle);this.startClosingTimeout(t)}watchPropPauseonfocusloss(t){if(this.autoclose){if(t){document.addEventListener("visibilitychange",this.visibilityChangeEventHandler)}else{document.removeEventListener("visibilitychange",this.visibilityChangeEventHandler)}}}emitToastClose(t,e){if(e&&this.timeoutHandle){clearTimeout(this.timeoutHandle)}this.timeoutHandle=null;this.elapsedTime=null;this.toastClose.emit();if(t){this.hostElement.classList.add(t)}else{this.hostElement.parentNode.removeChild(this.hostElement)}}componentWillLoad(){this.validateAutoclose();this.percentage=0}componentDidLoad(){this.startTime=Date.now();if(this.autoclose){if(this.pauseonfocusloss){document.addEventListener("visibilitychange",this.visibilityChangeEventHandler)}if(!this.transition){this.startClosingTimeout(this.autoclose)}}this.isdraggable&&this.handleSlideOutDragAnimation()}visibilityChangeEventHandler(){if(document.visibilityState==="hidden"){this.timeoutHandle&&this.onBlur()}else{this.elapsedTime&&this.onFocus()}}validateAutoclose(){if(!this.autoclose&&!this.closebutton){console.error("At least one between autoclose and closebutton must be present")}}mapSlideOutClass(){switch(this.transition){case s.SLIDE_IN_DOWN:return s.SLIDE_OUT_UP;case s.SLIDE_IN_UP:return s.SLIDE_OUT_DOWN;case s.SLIDE_IN_LEFT:return s.SLIDE_OUT_RIGHT;case s.SLIDE_IN_RIGHT:return s.SLIDE_OUT_LEFT;default:return null}}calculateDraggedPercentage(t){const e=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/e.width)}handleSlideOutDragAnimation(){this.sliderManager=new f(this.hostElement);this.sliderManager.get("pan").set({direction:f.DIRECTION_HORIZONTAL});this.sliderManager.on("pan",(t=>{this.percentage=this.calculateDraggedPercentage(t);this.hostElement.style.transition="none";if(this.transition){this.hostElement.classList.remove(this.transition)}const e={translate:`translateX(${this.percentage}%)`,translateBack:"translateX(0)"};this.hostElement.style.opacity=`${100-Math.abs(this.percentage)}%`;if(t.eventType===f.DIRECTION_LEFT||t.eventType===f.DIRECTION_RIGHT){this.hostElement.style.transform=e.translate;if(Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled){this.isCloseEventCalled=true;this.emitToastClose(t.direction===f.DIRECTION_LEFT?"slide-out-left":"slide-out-right",true)}}if(t.isFinal&&Math.abs(this.percentage)<this.draggablepercentage){this.hostElement.style.transform=e.translateBack;this.hostElement.style.transition="all 1s";this.hostElement.style.opacity="100%";this.percentage=0}}))}onFocus(){let t=this.autoclose;if(this.elapsedTime){t=this.autoclose-this.elapsedTime}if(t>0){this.startClosingTimeout(t)}}onBlur(){this.elapsedTime=Date.now()-this.startTime;clearTimeout(this.timeoutHandle)}startClosingTimeout(t){this.timeoutHandle=window.setTimeout((()=>this.emitToastClose(this.mapSlideOutClass(),false)),t)}renderContent(){return i("div",{id:"external-container",tabIndex:0,class:{[this.type]:!!this.type}},i("div",{id:"inner-container"},i("div",{id:"text"},this.heading&&i("span",{class:"title"},this.heading),i("span",{class:"message",innerHTML:c.sanitize(this.message||" ")})),i("div",{id:"button"},i("slot",{name:"button"}))),i("div",{id:"icon"},this.closebutton&&i("z-icon",{tabIndex:0,name:"multiply-circled",width:15,height:15,onClick:()=>this.emitToastClose(this.mapSlideOutClass(),true),onKeyPress:t=>{if(t.code==o.SPACE||t.code==o.ENTER){t.preventDefault();this.emitToastClose(this.mapSlideOutClass(),true)}}})))}render(){return i(n,{key:"e831b21d9178cad74415f78eac62002e5a7a13ab",style:{"--percentuale":`${this.percentage}%`},class:this.transition?this.transition:"",onAnimationEnd:t=>{if(this.autoclose&&t.animationName.includes("slidein")){this.startClosingTimeout(this.autoclose)}if(t.animationName.includes("slideout")){this.hostElement.parentNode.removeChild(this.hostElement)}}},this.renderContent())}get hostElement(){return r(this)}static get watchers(){return{isdraggable:["watchPropIsdraggable"],autoclose:["watchPropAutoclose"],pauseonfocusloss:["watchPropPauseonfocusloss"]}}};p.style=d;export{p as z_toast_notification};
8
- //# sourceMappingURL=p-46ea0b2e.entry.js.map
7
+ * Licensed under the MIT license */(function(t){(function(e,i,n,r){var s=["","webkit","Moz","MS","ms","o"];var o=i.createElement("div");var a="function";var l=Math.round;var c=Math.abs;var u=Date.now;function f(t,e,i){return setTimeout(b(t,i),e)}function h(t,e,i){if(Array.isArray(t)){d(t,i[e],i);return true}return false}function d(t,e,i){var n;if(!t){return}if(t.forEach){t.forEach(e,i)}else if(t.length!==r){n=0;while(n<t.length){e.call(i,t[n],n,t);n++}}else{for(n in t){t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}}}function p(t,i,n){var r="DEPRECATED METHOD: "+i+"\n"+n+" AT \n";return function(){var i=new Error("get-stack-trace");var n=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace";var s=e.console&&(e.console.warn||e.console.log);if(s){s.call(e.console,r,n)}return t.apply(this,arguments)}}var m;if(typeof Object.assign!=="function"){m=function t(e){if(e===r||e===null){throw new TypeError("Cannot convert undefined or null to object")}var i=Object(e);for(var n=1;n<arguments.length;n++){var s=arguments[n];if(s!==r&&s!==null){for(var o in s){if(s.hasOwnProperty(o)){i[o]=s[o]}}}}return i}}else{m=Object.assign}var v=p((function t(e,i,n){var s=Object.keys(i);var o=0;while(o<s.length){if(!n||n&&e[s[o]]===r){e[s[o]]=i[s[o]]}o++}return e}),"extend","Use `assign`.");var g=p((function t(e,i){return v(e,i,true)}),"merge","Use `assign`.");function y(t,e,i){var n=e.prototype,r;r=t.prototype=Object.create(n);r.constructor=t;r._super=n;if(i){m(r,i)}}function b(t,e){return function i(){return t.apply(e,arguments)}}function w(t,e){if(typeof t==a){return t.apply(e?e[0]||r:r,e)}return t}function x(t,e){return t===r?e:t}function T(t,e,i){d(S(e),(function(e){t.addEventListener(e,i,false)}))}function E(t,e,i){d(S(e),(function(e){t.removeEventListener(e,i,false)}))}function A(t,e){while(t){if(t==e){return true}t=t.parentNode}return false}function k(t,e){return t.indexOf(e)>-1}function S(t){return t.trim().split(/\s+/g)}function R(t,e,i){if(t.indexOf&&!i){return t.indexOf(e)}else{var n=0;while(n<t.length){if(i&&t[n][i]==e||!i&&t[n]===e){return n}n++}return-1}}function _(t){return Array.prototype.slice.call(t,0)}function I(t,e,i){var n=[];var r=[];var s=0;while(s<t.length){var o=e?t[s][e]:t[s];if(R(r,o)<0){n.push(t[s])}r[s]=o;s++}if(i){if(!e){n=n.sort()}else{n=n.sort((function t(i,n){return i[e]>n[e]}))}}return n}function D(t,e){var i,n;var o=e[0].toUpperCase()+e.slice(1);var a=0;while(a<s.length){i=s[a];n=i?i+o:e;if(n in t){return n}a++}return r}var M=1;function z(){return M++}function O(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||e}var P=/mobile|tablet|ip(ad|hone|od)|android/i;var C="ontouchstart"in e;var N=D(e,"PointerEvent")!==r;var L=C&&P.test(navigator.userAgent);var F="touch";var j="pen";var U="mouse";var W="kinect";var X=25;var B=1;var H=2;var Y=4;var q=8;var $=1;var G=2;var V=4;var Z=8;var K=16;var J=G|V;var Q=Z|K;var tt=J|Q;var et=["x","y"];var it=["clientX","clientY"];function nt(t,e){var i=this;this.manager=t;this.callback=e;this.element=t.element;this.target=t.options.inputTarget;this.domHandler=function(e){if(w(t.options.enable,[t])){i.handler(e)}};this.init()}nt.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler);this.evTarget&&T(this.target,this.evTarget,this.domHandler);this.evWin&&T(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler);this.evTarget&&E(this.target,this.evTarget,this.domHandler);this.evWin&&E(O(this.element),this.evWin,this.domHandler)}};function rt(t){var e;var i=t.options.inputClass;if(i){e=i}else if(N){e=kt}else if(L){e=Ot}else if(!C){e=wt}else{e=Lt}return new e(t,st)}function st(t,e,i){var n=i.pointers.length;var r=i.changedPointers.length;var s=e&B&&n-r===0;var o=e&(Y|q)&&n-r===0;i.isFirst=!!s;i.isFinal=!!o;if(s){t.session={}}i.eventType=e;ot(t,i);t.emit("hammer.input",i);t.recognize(i);t.session.prevInput=i}function ot(t,e){var i=t.session;var n=e.pointers;var r=n.length;if(!i.firstInput){i.firstInput=ct(e)}if(r>1&&!i.firstMultiple){i.firstMultiple=ct(e)}else if(r===1){i.firstMultiple=false}var s=i.firstInput;var o=i.firstMultiple;var a=o?o.center:s.center;var l=e.center=ut(n);e.timeStamp=u();e.deltaTime=e.timeStamp-s.timeStamp;e.angle=pt(a,l);e.distance=dt(a,l);at(i,e);e.offsetDirection=ht(e.deltaX,e.deltaY);var f=ft(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=f.x;e.overallVelocityY=f.y;e.overallVelocity=c(f.x)>c(f.y)?f.x:f.y;e.scale=o?vt(o.pointers,n):1;e.rotation=o?mt(o.pointers,n):0;e.maxPointers=!i.prevInput?e.pointers.length:e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers;lt(i,e);var h=t.element;if(A(e.srcEvent.target,h)){h=e.srcEvent.target}e.target=h}function at(t,e){var i=e.center;var n=t.offsetDelta||{};var r=t.prevDelta||{};var s=t.prevInput||{};if(e.eventType===B||s.eventType===Y){r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0};n=t.offsetDelta={x:i.x,y:i.y}}e.deltaX=r.x+(i.x-n.x);e.deltaY=r.y+(i.y-n.y)}function lt(t,e){var i=t.lastInterval||e,n=e.timeStamp-i.timeStamp,s,o,a,l;if(e.eventType!=q&&(n>X||i.velocity===r)){var u=e.deltaX-i.deltaX;var f=e.deltaY-i.deltaY;var h=ft(n,u,f);o=h.x;a=h.y;s=c(h.x)>c(h.y)?h.x:h.y;l=ht(u,f);t.lastInterval=e}else{s=i.velocity;o=i.velocityX;a=i.velocityY;l=i.direction}e.velocity=s;e.velocityX=o;e.velocityY=a;e.direction=l}function ct(t){var e=[];var i=0;while(i<t.pointers.length){e[i]={clientX:l(t.pointers[i].clientX),clientY:l(t.pointers[i].clientY)};i++}return{timeStamp:u(),pointers:e,center:ut(e),deltaX:t.deltaX,deltaY:t.deltaY}}function ut(t){var e=t.length;if(e===1){return{x:l(t[0].clientX),y:l(t[0].clientY)}}var i=0,n=0,r=0;while(r<e){i+=t[r].clientX;n+=t[r].clientY;r++}return{x:l(i/e),y:l(n/e)}}function ft(t,e,i){return{x:e/t||0,y:i/t||0}}function ht(t,e){if(t===e){return $}if(c(t)>=c(e)){return t<0?G:V}return e<0?Z:K}function dt(t,e,i){if(!i){i=et}var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function pt(t,e,i){if(!i){i=et}var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.atan2(r,n)*180/Math.PI}function mt(t,e){return pt(e[1],e[0],it)+pt(t[1],t[0],it)}function vt(t,e){return dt(e[0],e[1],it)/dt(t[0],t[1],it)}var gt={mousedown:B,mousemove:H,mouseup:Y};var yt="mousedown";var bt="mousemove mouseup";function wt(){this.evEl=yt;this.evWin=bt;this.pressed=false;nt.apply(this,arguments)}y(wt,nt,{handler:function t(e){var i=gt[e.type];if(i&B&&e.button===0){this.pressed=true}if(i&H&&e.which!==1){i=Y}if(!this.pressed){return}if(i&Y){this.pressed=false}this.callback(this.manager,i,{pointers:[e],changedPointers:[e],pointerType:U,srcEvent:e})}});var xt={pointerdown:B,pointermove:H,pointerup:Y,pointercancel:q,pointerout:q};var Tt={2:F,3:j,4:U,5:W};var Et="pointerdown";var At="pointermove pointerup pointercancel";if(e.MSPointerEvent&&!e.PointerEvent){Et="MSPointerDown";At="MSPointerMove MSPointerUp MSPointerCancel"}function kt(){this.evEl=Et;this.evWin=At;nt.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}y(kt,nt,{handler:function t(e){var i=this.store;var n=false;var r=e.type.toLowerCase().replace("ms","");var s=xt[r];var o=Tt[e.pointerType]||e.pointerType;var a=o==F;var l=R(i,e.pointerId,"pointerId");if(s&B&&(e.button===0||a)){if(l<0){i.push(e);l=i.length-1}}else if(s&(Y|q)){n=true}if(l<0){return}i[l]=e;this.callback(this.manager,s,{pointers:i,changedPointers:[e],pointerType:o,srcEvent:e});if(n){i.splice(l,1)}}});var St={touchstart:B,touchmove:H,touchend:Y,touchcancel:q};var Rt="touchstart";var _t="touchstart touchmove touchend touchcancel";function It(){this.evTarget=Rt;this.evWin=_t;this.started=false;nt.apply(this,arguments)}y(It,nt,{handler:function t(e){var i=St[e.type];if(i===B){this.started=true}if(!this.started){return}var n=Dt.call(this,e,i);if(i&(Y|q)&&n[0].length-n[1].length===0){this.started=false}this.callback(this.manager,i,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:e})}});function Dt(t,e){var i=_(t.touches);var n=_(t.changedTouches);if(e&(Y|q)){i=I(i.concat(n),"identifier",true)}return[i,n]}var Mt={touchstart:B,touchmove:H,touchend:Y,touchcancel:q};var zt="touchstart touchmove touchend touchcancel";function Ot(){this.evTarget=zt;this.targetIds={};nt.apply(this,arguments)}y(Ot,nt,{handler:function t(e){var i=Mt[e.type];var n=Pt.call(this,e,i);if(!n){return}this.callback(this.manager,i,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:e})}});function Pt(t,e){var i=_(t.touches);var n=this.targetIds;if(e&(B|H)&&i.length===1){n[i[0].identifier]=true;return[i,i]}var r,s,o=_(t.changedTouches),a=[],l=this.target;s=i.filter((function(t){return A(t.target,l)}));if(e===B){r=0;while(r<s.length){n[s[r].identifier]=true;r++}}r=0;while(r<o.length){if(n[o[r].identifier]){a.push(o[r])}if(e&(Y|q)){delete n[o[r].identifier]}r++}if(!a.length){return}return[I(s.concat(a),"identifier",true),a]}var Ct=2500;var Nt=25;function Lt(){nt.apply(this,arguments);var t=b(this.handler,this);this.touch=new Ot(this.manager,t);this.mouse=new wt(this.manager,t);this.primaryTouch=null;this.lastTouches=[]}y(Lt,nt,{handler:function t(e,i,n){var r=n.pointerType==F,s=n.pointerType==U;if(s&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents){return}if(r){Ft.call(this,i,n)}else if(s&&Ut.call(this,n)){return}this.callback(e,i,n)},destroy:function t(){this.touch.destroy();this.mouse.destroy()}});function Ft(t,e){if(t&B){this.primaryTouch=e.changedPointers[0].identifier;jt.call(this,e)}else if(t&(Y|q)){jt.call(this,e)}}function jt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;var r=function(){var t=n.indexOf(i);if(t>-1){n.splice(t,1)}};setTimeout(r,Ct)}}function Ut(t){var e=t.srcEvent.clientX,i=t.srcEvent.clientY;for(var n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n];var s=Math.abs(e-r.x),o=Math.abs(i-r.y);if(s<=Nt&&o<=Nt){return true}}return false}var Wt=D(o.style,"touchAction");var Xt=Wt!==r;var Bt="compute";var Ht="auto";var Yt="manipulation";var qt="none";var $t="pan-x";var Gt="pan-y";var Vt=Jt();function Zt(t,e){this.manager=t;this.set(e)}Zt.prototype={set:function(t){if(t==Bt){t=this.compute()}if(Xt&&this.manager.element.style&&Vt[t]){this.manager.element.style[Wt]=t}this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];d(this.manager.recognizers,(function(e){if(w(e.options.enable,[e])){t=t.concat(e.getTouchAction())}}));return Kt(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent;var i=t.offsetDirection;if(this.manager.session.prevented){e.preventDefault();return}var n=this.actions;var r=k(n,qt)&&!Vt[qt];var s=k(n,Gt)&&!Vt[Gt];var o=k(n,$t)&&!Vt[$t];if(r){var a=t.pointers.length===1;var l=t.distance<2;var c=t.deltaTime<250;if(a&&l&&c){return}}if(o&&s){return}if(r||s&&i&J||o&&i&Q){return this.preventSrc(e)}},preventSrc:function(t){this.manager.session.prevented=true;t.preventDefault()}};function Kt(t){if(k(t,qt)){return qt}var e=k(t,$t);var i=k(t,Gt);if(e&&i){return qt}if(e||i){return e?$t:Gt}if(k(t,Yt)){return Yt}return Ht}function Jt(){if(!Xt){return false}var t={};var i=e.CSS&&e.CSS.supports;["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=i?e.CSS.supports("touch-action",n):true}));return t}var Qt=1;var te=2;var ee=4;var ie=8;var ne=ie;var re=16;var se=32;function oe(t){this.options=m({},this.defaults,t||{});this.id=z();this.manager=null;this.options.enable=x(this.options.enable,true);this.state=Qt;this.simultaneous={};this.requireFail=[]}oe.prototype={defaults:{},set:function(t){m(this.options,t);this.manager&&this.manager.touchAction.update();return this},recognizeWith:function(t){if(h(t,"recognizeWith",this)){return this}var e=this.simultaneous;t=ce(t,this);if(!e[t.id]){e[t.id]=t;t.recognizeWith(this)}return this},dropRecognizeWith:function(t){if(h(t,"dropRecognizeWith",this)){return this}t=ce(t,this);delete this.simultaneous[t.id];return this},requireFailure:function(t){if(h(t,"requireFailure",this)){return this}var e=this.requireFail;t=ce(t,this);if(R(e,t)===-1){e.push(t);t.requireFailure(this)}return this},dropRequireFailure:function(t){if(h(t,"dropRequireFailure",this)){return this}t=ce(t,this);var e=R(this.requireFail,t);if(e>-1){this.requireFail.splice(e,1)}return this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this;var i=this.state;function n(i){e.manager.emit(i,t)}if(i<ie){n(e.options.event+ae(i))}n(e.options.event);if(t.additionalEvent){n(t.additionalEvent)}if(i>=ie){n(e.options.event+ae(i))}},tryEmit:function(t){if(this.canEmit()){return this.emit(t)}this.state=se},canEmit:function(){var t=0;while(t<this.requireFail.length){if(!(this.requireFail[t].state&(se|Qt))){return false}t++}return true},recognize:function(t){var e=m({},t);if(!w(this.options.enable,[this,e])){this.reset();this.state=se;return}if(this.state&(ne|re|se)){this.state=Qt}this.state=this.process(e);if(this.state&(te|ee|ie|re)){this.tryEmit(e)}},process:function(t){},getTouchAction:function(){},reset:function(){}};function ae(t){if(t&re){return"cancel"}else if(t&ie){return"end"}else if(t&ee){return"move"}else if(t&te){return"start"}return""}function le(t){if(t==K){return"down"}else if(t==Z){return"up"}else if(t==G){return"left"}else if(t==V){return"right"}return""}function ce(t,e){var i=e.manager;if(i){return i.get(t)}return t}function ue(){oe.apply(this,arguments)}y(ue,oe,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return e===0||t.pointers.length===e},process:function(t){var e=this.state;var i=t.eventType;var n=e&(te|ee);var r=this.attrTest(t);if(n&&(i&q||!r)){return e|re}else if(n||r){if(i&Y){return e|ie}else if(!(e&te)){return te}return e|ee}return se}});function fe(){ue.apply(this,arguments);this.pX=null;this.pY=null}y(fe,ue,{defaults:{event:"pan",threshold:10,pointers:1,direction:tt},getTouchAction:function(){var t=this.options.direction;var e=[];if(t&J){e.push(Gt)}if(t&Q){e.push($t)}return e},directionTest:function(t){var e=this.options;var i=true;var n=t.distance;var r=t.direction;var s=t.deltaX;var o=t.deltaY;if(!(r&e.direction)){if(e.direction&J){r=s===0?$:s<0?G:V;i=s!=this.pX;n=Math.abs(t.deltaX)}else{r=o===0?$:o<0?Z:K;i=o!=this.pY;n=Math.abs(t.deltaY)}}t.direction=r;return i&&n>e.threshold&&r&e.direction},attrTest:function(t){return ue.prototype.attrTest.call(this,t)&&(this.state&te||!(this.state&te)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX;this.pY=t.deltaY;var e=le(t.direction);if(e){t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}});function he(){ue.apply(this,arguments)}y(he,ue,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&te)},emit:function(t){if(t.scale!==1){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}});function de(){oe.apply(this,arguments);this._timer=null;this._input=null}y(de,oe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ht]},process:function(t){var e=this.options;var i=t.pointers.length===e.pointers;var n=t.distance<e.threshold;var r=t.deltaTime>e.time;this._input=t;if(!n||!i||t.eventType&(Y|q)&&!r){this.reset()}else if(t.eventType&B){this.reset();this._timer=f((function(){this.state=ne;this.tryEmit()}),e.time,this)}else if(t.eventType&Y){return ne}return se},reset:function(){clearTimeout(this._timer)},emit:function(t){if(this.state!==ne){return}if(t&&t.eventType&Y){this.manager.emit(this.options.event+"up",t)}else{this._input.timeStamp=u();this.manager.emit(this.options.event,this._input)}}});function pe(){ue.apply(this,arguments)}y(pe,ue,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&te)}});function me(){ue.apply(this,arguments)}y(me,ue,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:J|Q,pointers:1},getTouchAction:function(){return fe.prototype.getTouchAction.call(this)},attrTest:function(t){var e=this.options.direction;var i;if(e&(J|Q)){i=t.overallVelocity}else if(e&J){i=t.overallVelocityX}else if(e&Q){i=t.overallVelocityY}return this._super.attrTest.call(this,t)&&e&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&c(i)>this.options.velocity&&t.eventType&Y},emit:function(t){var e=le(t.offsetDirection);if(e){this.manager.emit(this.options.event+e,t)}this.manager.emit(this.options.event,t)}});function ve(){oe.apply(this,arguments);this.pTime=false;this.pCenter=false;this._timer=null;this._input=null;this.count=0}y(ve,oe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Yt]},process:function(t){var e=this.options;var i=t.pointers.length===e.pointers;var n=t.distance<e.threshold;var r=t.deltaTime<e.time;this.reset();if(t.eventType&B&&this.count===0){return this.failTimeout()}if(n&&r&&i){if(t.eventType!=Y){return this.failTimeout()}var s=this.pTime?t.timeStamp-this.pTime<e.interval:true;var o=!this.pCenter||dt(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp;this.pCenter=t.center;if(!o||!s){this.count=1}else{this.count+=1}this._input=t;var a=this.count%e.taps;if(a===0){if(!this.hasRequireFailures()){return ne}else{this._timer=f((function(){this.state=ne;this.tryEmit()}),e.interval,this);return te}}}return se},failTimeout:function(){this._timer=f((function(){this.state=se}),this.options.interval,this);return se},reset:function(){clearTimeout(this._timer)},emit:function(){if(this.state==ne){this._input.tapCount=this.count;this.manager.emit(this.options.event,this._input)}}});function ge(t,e){e=e||{};e.recognizers=x(e.recognizers,ge.defaults.preset);return new we(t,e)}ge.VERSION="2.0.7";ge.defaults={domEvents:false,touchAction:Bt,enable:true,inputTarget:null,inputClass:null,preset:[[pe,{enable:false}],[he,{enable:false},["rotate"]],[me,{direction:J}],[fe,{direction:J},["swipe"]],[ve],[ve,{event:"doubletap",taps:2},["tap"]],[de]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ye=1;var be=2;function we(t,e){this.options=m({},ge.defaults,e||{});this.options.inputTarget=this.options.inputTarget||t;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=t;this.input=rt(this);this.touchAction=new Zt(this,this.options.touchAction);xe(this,true);d(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]);t[3]&&e.requireFailure(t[3])}),this)}we.prototype={set:function(t){m(this.options,t);if(t.touchAction){this.touchAction.update()}if(t.inputTarget){this.input.destroy();this.input.target=t.inputTarget;this.input.init()}return this},stop:function(t){this.session.stopped=t?be:ye},recognize:function(t){var e=this.session;if(e.stopped){return}this.touchAction.preventDefaults(t);var i;var n=this.recognizers;var r=e.curRecognizer;if(!r||r&&r.state&ne){r=e.curRecognizer=null}var s=0;while(s<n.length){i=n[s];if(e.stopped!==be&&(!r||i==r||i.canRecognizeWith(r))){i.recognize(t)}else{i.reset()}if(!r&&i.state&(te|ee|ie)){r=e.curRecognizer=i}s++}},get:function(t){if(t instanceof oe){return t}var e=this.recognizers;for(var i=0;i<e.length;i++){if(e[i].options.event==t){return e[i]}}return null},add:function(t){if(h(t,"add",this)){return this}var e=this.get(t.options.event);if(e){this.remove(e)}this.recognizers.push(t);t.manager=this;this.touchAction.update();return t},remove:function(t){if(h(t,"remove",this)){return this}t=this.get(t);if(t){var e=this.recognizers;var i=R(e,t);if(i!==-1){e.splice(i,1);this.touchAction.update()}}return this},on:function(t,e){if(t===r){return}if(e===r){return}var i=this.handlers;d(S(t),(function(t){i[t]=i[t]||[];i[t].push(e)}));return this},off:function(t,e){if(t===r){return}var i=this.handlers;d(S(t),(function(t){if(!e){delete i[t]}else{i[t]&&i[t].splice(R(i[t],e),1)}}));return this},emit:function(t,e){if(this.options.domEvents){Te(t,e)}var i=this.handlers[t]&&this.handlers[t].slice();if(!i||!i.length){return}e.type=t;e.preventDefault=function(){e.srcEvent.preventDefault()};var n=0;while(n<i.length){i[n](e);n++}},destroy:function(){this.element&&xe(this,false);this.handlers={};this.session={};this.input.destroy();this.element=null}};function xe(t,e){var i=t.element;if(!i.style){return}var n;d(t.options.cssProps,(function(r,s){n=D(i.style,s);if(e){t.oldCssProps[n]=i.style[n];i.style[n]=r}else{i.style[n]=t.oldCssProps[n]||""}}));if(!e){t.oldCssProps={}}}function Te(t,e){var n=i.createEvent("Event");n.initEvent(t,true,true);n.gesture=e;e.target.dispatchEvent(n)}m(ge,{INPUT_START:B,INPUT_MOVE:H,INPUT_END:Y,INPUT_CANCEL:q,STATE_POSSIBLE:Qt,STATE_BEGAN:te,STATE_CHANGED:ee,STATE_ENDED:ie,STATE_RECOGNIZED:ne,STATE_CANCELLED:re,STATE_FAILED:se,DIRECTION_NONE:$,DIRECTION_LEFT:G,DIRECTION_RIGHT:V,DIRECTION_UP:Z,DIRECTION_DOWN:K,DIRECTION_HORIZONTAL:J,DIRECTION_VERTICAL:Q,DIRECTION_ALL:tt,Manager:we,Input:nt,TouchAction:Zt,TouchInput:Ot,MouseInput:wt,PointerEventInput:kt,TouchMouseInput:Lt,SingleTouchInput:It,Recognizer:oe,AttrRecognizer:ue,Tap:ve,Pan:fe,Swipe:me,Pinch:he,Rotate:pe,Press:de,on:T,off:E,each:d,merge:g,extend:v,assign:m,inherit:y,bindFn:b,prefixed:D});var Ee=typeof e!=="undefined"?e:typeof self!=="undefined"?self:{};Ee.Hammer=ge;if(typeof r==="function"&&r.amd){r((function(){return ge}))}else if(t.exports){t.exports=ge}else{e[n]=ge}})(window,document,"Hammer")})(u);const f=u.exports;const h=':host{display:inline-block;width:100vw;min-width:200px;--percentuale:0}:host(.slide-in-left){animation:slideinleft 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-right){animation:slideinright 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-down){animation:slideindown 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-in-up){animation:slideinup 1s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-left){animation:slideoutleft 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-right){animation:slideoutright 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-down){animation:slideoutdown 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}:host(.slide-out-up){animation:slideoutup 0.5s cubic-bezier(0.25, 0.1, 0.25, 0.1);animation-fill-mode:forwards}@keyframes slideinleft{0%{transform:translateX(100%)}100%{transform:translateX(0)}}@keyframes slideinright{0%{transform:translateX(-100%)}100%{transform:translateX(0)}}@keyframes slideinup{0%{opacity:0;transform:translateY(100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideindown{0%{opacity:0;transform:translateY(-100%)}100%{opacity:1;transform:translateY(0)}}@keyframes slideoutleft{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(-100%)}}@keyframes slideoutright{0%{opacity:calc(100% - var(--percentuale));transform:translateX(var(--percentuale))}100%{opacity:0;transform:translateX(100%)}}@keyframes slideoutup{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(-100%)}}@keyframes slideoutdown{0%{opacity:1;transform:translateY(var(--percentuale))}100%{opacity:0;transform:translateY(100%)}}:host>#external-container{display:flex;min-height:calc(var(--space-unit) * 8.5);box-sizing:border-box;justify-content:space-between;padding:calc(var(--space-unit) * 2) 14px calc(var(--space-unit) * 2) calc(var(--space-unit) * 2);border-radius:var(--border-size-large);box-shadow:var(--shadow-3);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px}:host>#external-container>#inner-container{display:flex;width:100%;flex-direction:column;justify-content:space-between}:host>#external-container #inner-container #text{padding:var(--space-unit) 0;color:var(--color-text-inverse);letter-spacing:0.16px;line-height:20px;text-align:start}:host>#external-container #inner-container #text>.title{margin-right:calc(var(--space-unit) / 2);font-weight:var(--font-sb)}:host>#external-container #inner-container ::slotted([slot="button"]){margin-top:var(--space-unit)}:host>#external-container #icon{padding-top:var(--space-unit);margin:0 calc(var(--space-unit) / 4);cursor:pointer;fill:var(--color-inverse-icon)}:host>#external-container #icon:focus-within{margin:0}:host>#external-container #icon z-icon{margin:0 0 0 14px}:host>#external-container #icon z-icon:focus{display:inline-block;padding:calc(var(--space-unit) / 4);border-radius:50%;box-shadow:var(--shadow-focus-primary)}:host>#external-container.dark{background:var(--color-surface05)}:host>#external-container.light{background:var(--color-surface01)}:host>#external-container.light #icon{fill:var(--color-primary01-icon)}:host>#external-container.light #inner-container #text,:host>#external-container.warning #inner-container #text{color:var(--color-default-text)}:host>#external-container.accent{background:var(--color-primary01)}:host>#external-container.error{background:var(--color-default-error)}:host>#external-container.success{background:var(--color-default-success)}:host>#external-container.warning{background:var(--color-default-warning)}:host>#external-container.warning #icon{fill:var(--color-default-icon)}@media (min-width: 768px){:host{width:unset;max-width:50vw}:host>#external-container #inner-container{flex-direction:row}:host>#external-container #inner-container ::slotted([slot="button"]){margin:0 0 0 calc(var(--space-unit) * 2)}}@media (min-width: 1366px){:host{max-width:33vw}}';const d=h;const p=class{constructor(i){t(this,i);this.toastClose=e(this,"toastClose",7);this.isCloseEventCalled=false;this.heading=undefined;this.message=undefined;this.closebutton=undefined;this.autoclose=undefined;this.pauseonfocusloss=true;this.type=undefined;this.isdraggable=true;this.draggablepercentage=80;this.transition=undefined;this.percentage=undefined}watchPropIsdraggable(t){if(t){this.sliderManager.get("pan").set({enable:true})}else{this.sliderManager.get("pan").set({enable:false})}}watchPropAutoclose(t){clearTimeout(this.timeoutHandle);this.startClosingTimeout(t)}watchPropPauseonfocusloss(t){if(this.autoclose){if(t){document.addEventListener("visibilitychange",this.visibilityChangeEventHandler)}else{document.removeEventListener("visibilitychange",this.visibilityChangeEventHandler)}}}emitToastClose(t,e){if(e&&this.timeoutHandle){clearTimeout(this.timeoutHandle)}this.timeoutHandle=null;this.elapsedTime=null;this.toastClose.emit();if(t){this.hostElement.classList.add(t)}else{this.hostElement.parentNode.removeChild(this.hostElement)}}componentWillLoad(){this.validateAutoclose();this.percentage=0}componentDidLoad(){this.startTime=Date.now();if(this.autoclose){if(this.pauseonfocusloss){document.addEventListener("visibilitychange",this.visibilityChangeEventHandler)}if(!this.transition){this.startClosingTimeout(this.autoclose)}}this.isdraggable&&this.handleSlideOutDragAnimation()}visibilityChangeEventHandler(){if(document.visibilityState==="hidden"){this.timeoutHandle&&this.onBlur()}else{this.elapsedTime&&this.onFocus()}}validateAutoclose(){if(!this.autoclose&&!this.closebutton){console.error("At least one between autoclose and closebutton must be present")}}mapSlideOutClass(){switch(this.transition){case s.SLIDE_IN_DOWN:return s.SLIDE_OUT_UP;case s.SLIDE_IN_UP:return s.SLIDE_OUT_DOWN;case s.SLIDE_IN_LEFT:return s.SLIDE_OUT_RIGHT;case s.SLIDE_IN_RIGHT:return s.SLIDE_OUT_LEFT;default:return null}}calculateDraggedPercentage(t){const e=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/e.width)}handleSlideOutDragAnimation(){this.sliderManager=new f(this.hostElement);this.sliderManager.get("pan").set({direction:f.DIRECTION_HORIZONTAL});this.sliderManager.on("pan",(t=>{this.percentage=this.calculateDraggedPercentage(t);this.hostElement.style.transition="none";if(this.transition){this.hostElement.classList.remove(this.transition)}const e={translate:`translateX(${this.percentage}%)`,translateBack:"translateX(0)"};this.hostElement.style.opacity=`${100-Math.abs(this.percentage)}%`;if(t.eventType===f.DIRECTION_LEFT||t.eventType===f.DIRECTION_RIGHT){this.hostElement.style.transform=e.translate;if(Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled){this.isCloseEventCalled=true;this.emitToastClose(t.direction===f.DIRECTION_LEFT?"slide-out-left":"slide-out-right",true)}}if(t.isFinal&&Math.abs(this.percentage)<this.draggablepercentage){this.hostElement.style.transform=e.translateBack;this.hostElement.style.transition="all 1s";this.hostElement.style.opacity="100%";this.percentage=0}}))}onFocus(){let t=this.autoclose;if(this.elapsedTime){t=this.autoclose-this.elapsedTime}if(t>0){this.startClosingTimeout(t)}}onBlur(){this.elapsedTime=Date.now()-this.startTime;clearTimeout(this.timeoutHandle)}startClosingTimeout(t){this.timeoutHandle=window.setTimeout((()=>this.emitToastClose(this.mapSlideOutClass(),false)),t)}renderContent(){return i("div",{id:"external-container",tabIndex:0,class:{[this.type]:!!this.type}},i("div",{id:"inner-container"},i("div",{id:"text"},this.heading&&i("span",{class:"title"},this.heading),i("span",{class:"message"},i("slot",{name:"message"},i("span",{innerHTML:c.sanitize(this.message||" ")})))),i("div",{id:"button"},i("slot",{name:"button"}))),i("div",{id:"icon"},this.closebutton&&i("z-icon",{tabIndex:0,name:"multiply-circled",width:15,height:15,onClick:()=>this.emitToastClose(this.mapSlideOutClass(),true),onKeyPress:t=>{if(t.code==o.SPACE||t.code==o.ENTER){t.preventDefault();this.emitToastClose(this.mapSlideOutClass(),true)}}})))}render(){return i(n,{key:"13bbdd7da7e5c74fb9881518dfa1a2b9d92eedf2",style:{"--percentuale":`${this.percentage}%`},class:this.transition?this.transition:"",onAnimationEnd:t=>{if(this.autoclose&&t.animationName.includes("slidein")){this.startClosingTimeout(this.autoclose)}if(t.animationName.includes("slideout")){this.hostElement.parentNode.removeChild(this.hostElement)}}},this.renderContent())}get hostElement(){return r(this)}static get watchers(){return{isdraggable:["watchPropIsdraggable"],autoclose:["watchPropAutoclose"],pauseonfocusloss:["watchPropPauseonfocusloss"]}}};p.style=d;export{p as z_toast_notification};
8
+ //# sourceMappingURL=p-250bcc68.entry.js.map