@zanichelli/albe-web-components 21.0.0-RC1 → 21.0.0-RC2

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 (64) hide show
  1. package/dist/cjs/dialog-polyfill.esm-D8Polhcd.js +863 -0
  2. package/dist/cjs/dialog-polyfill.esm-D8Polhcd.js.map +1 -0
  3. package/dist/cjs/hammer-CJF2Ixtg.js +2665 -0
  4. package/dist/cjs/hammer-CJF2Ixtg.js.map +1 -0
  5. package/dist/cjs/index-CZz7uP-M.js +6 -6
  6. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +8 -862
  7. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
  8. package/dist/cjs/z-toast-notification.cjs.entry.js +7 -2657
  9. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -1
  10. package/dist/collection/components/z-modal/index.js +8 -6
  11. package/dist/collection/components/z-modal/index.js.map +1 -1
  12. package/dist/collection/components/z-toast-notification/index.js +7 -5
  13. package/dist/collection/components/z-toast-notification/index.js.map +1 -1
  14. package/dist/components/p-BRkq64wS.js +2 -0
  15. package/dist/components/p-BRkq64wS.js.map +1 -0
  16. package/dist/components/p-Bt1M0wUw.js +7 -0
  17. package/dist/components/p-Bt1M0wUw.js.map +1 -0
  18. package/dist/components/p-BvCsF6Eq.js +2 -0
  19. package/dist/components/p-BvCsF6Eq.js.map +1 -0
  20. package/dist/components/z-file-upload.js +1 -1
  21. package/dist/components/z-modal.js +1 -1
  22. package/dist/components/z-toast-notification.js +2 -7
  23. package/dist/components/z-toast-notification.js.map +1 -1
  24. package/dist/esm/dialog-polyfill.esm-BRkq64wS.js +861 -0
  25. package/dist/esm/dialog-polyfill.esm-BRkq64wS.js.map +1 -0
  26. package/dist/esm/hammer-C3JqVNyx.js +2663 -0
  27. package/dist/esm/hammer-C3JqVNyx.js.map +1 -0
  28. package/dist/esm/index-BcDWN4F1.js +6 -6
  29. package/dist/esm/z-dragdrop-area_2.entry.js +8 -862
  30. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
  31. package/dist/esm/z-toast-notification.entry.js +7 -2657
  32. package/dist/esm/z-toast-notification.entry.js.map +1 -1
  33. package/dist/types/components/z-modal/index.d.ts +1 -1
  34. package/dist/web-components-library/p-67051e01.entry.js +3 -0
  35. package/dist/web-components-library/p-67051e01.entry.js.map +1 -0
  36. package/dist/web-components-library/p-BRkq64wS.js +2 -0
  37. package/dist/web-components-library/p-BRkq64wS.js.map +1 -0
  38. package/dist/web-components-library/p-Bt1M0wUw.js +7 -0
  39. package/dist/web-components-library/p-Bt1M0wUw.js.map +1 -0
  40. package/dist/web-components-library/p-c3f69ac9.entry.js +2 -0
  41. package/dist/web-components-library/p-c3f69ac9.entry.js.map +1 -0
  42. package/dist/web-components-library/web-components-library.esm.js +1 -1
  43. package/package.json +1 -1
  44. package/www/build/{p-de6e8c2b.js → p-3ddbf8a7.js} +1 -1
  45. package/www/build/p-67051e01.entry.js +3 -0
  46. package/www/build/p-67051e01.entry.js.map +1 -0
  47. package/www/build/p-BRkq64wS.js +2 -0
  48. package/www/build/p-BRkq64wS.js.map +1 -0
  49. package/www/build/p-Bt1M0wUw.js +7 -0
  50. package/www/build/p-Bt1M0wUw.js.map +1 -0
  51. package/www/build/p-c3f69ac9.entry.js +2 -0
  52. package/www/build/p-c3f69ac9.entry.js.map +1 -0
  53. package/www/build/web-components-library.esm.js +1 -1
  54. package/www/index.html +1 -1
  55. package/dist/components/p-BbZelagf.js +0 -2
  56. package/dist/components/p-BbZelagf.js.map +0 -1
  57. package/dist/web-components-library/p-baa35a6e.entry.js +0 -2
  58. package/dist/web-components-library/p-baa35a6e.entry.js.map +0 -1
  59. package/dist/web-components-library/p-ea96790b.entry.js +0 -8
  60. package/dist/web-components-library/p-ea96790b.entry.js.map +0 -1
  61. package/www/build/p-baa35a6e.entry.js +0 -2
  62. package/www/build/p-baa35a6e.entry.js.map +0 -1
  63. package/www/build/p-ea96790b.entry.js +0 -8
  64. package/www/build/p-ea96790b.entry.js.map +0 -1
@@ -1,8 +1,3 @@
1
- import{p as t,H as e,c as i,h as n,d as r,t as s}from"./p-RmbDDbWd.js";import{r as o,g as a}from"./p-DdetsoIY.js";import{g as l}from"./p-B85MJLTf.js";import{d as c}from"./p-CbXEdwLi.js";
2
- /*! @license DOMPurify 3.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.0/LICENSE */const{entries:u,setPrototypeOf:f,isFrozen:h,getPrototypeOf:d,getOwnPropertyDescriptor:p}=Object;let{freeze:m,seal:v,create:g}=Object;let{apply:b,construct:y}=typeof Reflect!=="undefined"&&Reflect;if(!m){m=function t(e){return e}}if(!v){v=function t(e){return e}}if(!b){b=function t(e,i){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++){r[s-2]=arguments[s]}return e.apply(i,r)}}if(!y){y=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++){n[r-1]=arguments[r]}return new e(...n)}}const w=O(Array.prototype.forEach);const T=O(Array.prototype.lastIndexOf);const x=O(Array.prototype.pop);const E=O(Array.prototype.push);const k=O(Array.prototype.splice);const A=O(String.prototype.toLowerCase);const S=O(String.prototype.toString);const R=O(String.prototype.match);const I=O(String.prototype.replace);const _=O(String.prototype.indexOf);const D=O(String.prototype.trim);const z=O(Object.prototype.hasOwnProperty);const P=O(RegExp.prototype.test);const M=C(TypeError);function O(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 b(t,e,n)}}function C(t){return function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++){i[n]=arguments[n]}return y(t,i)}}function L(t,e){let i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:A;if(f){f(t,null)}let n=e.length;while(n--){let r=e[n];if(typeof r==="string"){const t=i(r);if(t!==r){if(!h(e)){e[n]=t}r=t}}t[r]=true}return t}function N(t){for(let e=0;e<t.length;e++){const i=z(t,e);if(!i){t[e]=null}}return t}function F(t){const e=g(null);for(const[i,n]of u(t)){const r=z(t,i);if(r){if(Array.isArray(n)){e[i]=N(n)}else if(n&&typeof n==="object"&&n.constructor===Object){e[i]=F(n)}else{e[i]=n}}}return e}function j(t,e){while(t!==null){const i=p(t,e);if(i){if(i.get){return O(i.get)}if(typeof i.value==="function"){return O(i.value)}}t=d(t)}function i(){return null}return i}const U=m(["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","search","section","select","shadow","slot","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 B=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]);const W=m(["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 X=m(["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 Y=m(["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 H=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]);const q=m(["#text"]);const $=m(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]);const G=m(["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","mask-type","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 V=m(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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 Z=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]);const K=v(/\{\{[\w\W]*|[\w\W]*\}\}/gm);const J=v(/<%[\w\W]*|[\w\W]*%>/gm);const Q=v(/\$\{[\w\W]*/gm);const tt=v(/^data-[\-\w.\u00B7-\uFFFF]+$/);const et=v(/^aria-[\-\w]+$/);const it=v(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);const nt=v(/^(?:\w+script|data):/i);const rt=v(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);const st=v(/^html$/i);const ot=v(/^[a-z][.\w]*(-[.\w]+)+$/i);var at=Object.freeze({__proto__:null,ARIA_ATTR:et,ATTR_WHITESPACE:rt,CUSTOM_ELEMENT:ot,DATA_ATTR:tt,DOCTYPE_NAME:st,ERB_EXPR:J,IS_ALLOWED_URI:it,IS_SCRIPT_OR_DATA:nt,MUSTACHE_EXPR:K,TMPLIT_EXPR:Q});const lt={element:1,text:3,progressingInstruction:7,comment:8,document:9};const ct=function t(){return typeof window==="undefined"?null:window};const ut=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 ft=function t(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ht(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:ct();const e=t=>ht(t);e.version="3.4.0";e.removed=[];if(!t||!t.document||t.document.nodeType!==lt.document||!t.Element){e.isSupported=false;return e}let{document:i}=t;const n=i;const r=n.currentScript;const{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:c,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:d,trustedTypes:p}=t;const v=l.prototype;const b=j(v,"cloneNode");const y=j(v,"remove");const O=j(v,"nextSibling");const C=j(v,"childNodes");const N=j(v,"parentNode");if(typeof o==="function"){const t=i.createElement("template");if(t.content&&t.content.ownerDocument){i=t.content.ownerDocument}}let K;let J="";const{implementation:Q,createNodeIterator:tt,createDocumentFragment:et,getElementsByTagName:nt}=i;const{importNode:rt}=n;let ot=ft();e.isSupported=typeof u==="function"&&typeof N==="function"&&Q&&Q.createHTMLDocument!==undefined;const{MUSTACHE_EXPR:dt,ERB_EXPR:pt,TMPLIT_EXPR:mt,DATA_ATTR:vt,ARIA_ATTR:gt,IS_SCRIPT_OR_DATA:bt,ATTR_WHITESPACE:yt,CUSTOM_ELEMENT:wt}=at;let{IS_ALLOWED_URI:Tt}=at;let xt=null;const Et=L({},[...U,...B,...W,...Y,...q]);let kt=null;const At=L({},[...$,...G,...V,...Z]);let St=Object.seal(g(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 It=null;const _t=Object.seal(g(null,{tagCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeCheck:{writable:true,configurable:false,enumerable:true,value:null}}));let Dt=true;let zt=true;let Pt=false;let Mt=true;let Ot=false;let Ct=true;let Lt=false;let Nt=false;let Ft=false;let jt=false;let Ut=false;let Bt=false;let Wt=true;let Xt=false;const Yt="user-content-";let Ht=true;let qt=false;let $t={};let Gt=null;const Vt=L({},["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 Zt=null;const Kt=L({},["audio","video","img","source","image","track"]);let Jt=null;const Qt=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);const te="http://www.w3.org/1998/Math/MathML";const ee="http://www.w3.org/2000/svg";const ie="http://www.w3.org/1999/xhtml";let ne=ie;let re=false;let se=null;const oe=L({},[te,ee,ie],S);let ae=L({},["mi","mo","mn","ms","mtext"]);let le=L({},["annotation-xml"]);const ce=L({},["title","style","font","a","script"]);let ue=null;const fe=["application/xhtml+xml","text/html"];const he="text/html";let de=null;let pe=null;const me=i.createElement("form");const ve=function t(e){return e instanceof RegExp||e instanceof Function};const ge=function t(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(pe&&pe===e){return}if(!e||typeof e!=="object"){e={}}e=F(e);ue=fe.indexOf(e.PARSER_MEDIA_TYPE)===-1?he:e.PARSER_MEDIA_TYPE;de=ue==="application/xhtml+xml"?S:A;xt=z(e,"ALLOWED_TAGS")?L({},e.ALLOWED_TAGS,de):Et;kt=z(e,"ALLOWED_ATTR")?L({},e.ALLOWED_ATTR,de):At;se=z(e,"ALLOWED_NAMESPACES")?L({},e.ALLOWED_NAMESPACES,S):oe;Jt=z(e,"ADD_URI_SAFE_ATTR")?L(F(Qt),e.ADD_URI_SAFE_ATTR,de):Qt;Zt=z(e,"ADD_DATA_URI_TAGS")?L(F(Kt),e.ADD_DATA_URI_TAGS,de):Kt;Gt=z(e,"FORBID_CONTENTS")?L({},e.FORBID_CONTENTS,de):Vt;Rt=z(e,"FORBID_TAGS")?L({},e.FORBID_TAGS,de):F({});It=z(e,"FORBID_ATTR")?L({},e.FORBID_ATTR,de):F({});$t=z(e,"USE_PROFILES")?e.USE_PROFILES:false;Dt=e.ALLOW_ARIA_ATTR!==false;zt=e.ALLOW_DATA_ATTR!==false;Pt=e.ALLOW_UNKNOWN_PROTOCOLS||false;Mt=e.ALLOW_SELF_CLOSE_IN_ATTR!==false;Ot=e.SAFE_FOR_TEMPLATES||false;Ct=e.SAFE_FOR_XML!==false;Lt=e.WHOLE_DOCUMENT||false;jt=e.RETURN_DOM||false;Ut=e.RETURN_DOM_FRAGMENT||false;Bt=e.RETURN_TRUSTED_TYPE||false;Ft=e.FORCE_BODY||false;Wt=e.SANITIZE_DOM!==false;Xt=e.SANITIZE_NAMED_PROPS||false;Ht=e.KEEP_CONTENT!==false;qt=e.IN_PLACE||false;Tt=e.ALLOWED_URI_REGEXP||it;ne=e.NAMESPACE||ie;ae=e.MATHML_TEXT_INTEGRATION_POINTS||ae;le=e.HTML_INTEGRATION_POINTS||le;St=e.CUSTOM_ELEMENT_HANDLING||g(null);if(e.CUSTOM_ELEMENT_HANDLING&&ve(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){St.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&ve(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){zt=false}if(Ut){jt=true}if($t){xt=L({},q);kt=g(null);if($t.html===true){L(xt,U);L(kt,$)}if($t.svg===true){L(xt,B);L(kt,G);L(kt,Z)}if($t.svgFilters===true){L(xt,W);L(kt,G);L(kt,Z)}if($t.mathMl===true){L(xt,Y);L(kt,V);L(kt,Z)}}_t.tagCheck=null;_t.attributeCheck=null;if(e.ADD_TAGS){if(typeof e.ADD_TAGS==="function"){_t.tagCheck=e.ADD_TAGS}else{if(xt===Et){xt=F(xt)}L(xt,e.ADD_TAGS,de)}}if(e.ADD_ATTR){if(typeof e.ADD_ATTR==="function"){_t.attributeCheck=e.ADD_ATTR}else{if(kt===At){kt=F(kt)}L(kt,e.ADD_ATTR,de)}}if(e.ADD_URI_SAFE_ATTR){L(Jt,e.ADD_URI_SAFE_ATTR,de)}if(e.FORBID_CONTENTS){if(Gt===Vt){Gt=F(Gt)}L(Gt,e.FORBID_CONTENTS,de)}if(e.ADD_FORBID_CONTENTS){if(Gt===Vt){Gt=F(Gt)}L(Gt,e.ADD_FORBID_CONTENTS,de)}if(Ht){xt["#text"]=true}if(Lt){L(xt,["html","head","body"])}if(xt.table){L(xt,["tbody"]);delete Rt.tbody}if(e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}K=e.TRUSTED_TYPES_POLICY;J=K.createHTML("")}else{if(K===undefined){K=ut(p,r)}if(K!==null&&typeof J==="string"){J=K.createHTML("")}}if(m){m(e)}pe=e};const be=L({},[...B,...W,...X]);const ye=L({},[...Y,...H]);const we=function t(e){let i=N(e);if(!i||!i.tagName){i={namespaceURI:ne,tagName:"template"}}const n=A(e.tagName);const r=A(i.tagName);if(!se[e.namespaceURI]){return false}if(e.namespaceURI===ee){if(i.namespaceURI===ie){return n==="svg"}if(i.namespaceURI===te){return n==="svg"&&(r==="annotation-xml"||ae[r])}return Boolean(be[n])}if(e.namespaceURI===te){if(i.namespaceURI===ie){return n==="math"}if(i.namespaceURI===ee){return n==="math"&&le[r]}return Boolean(ye[n])}if(e.namespaceURI===ie){if(i.namespaceURI===ee&&!le[r]){return false}if(i.namespaceURI===te&&!ae[r]){return false}return!ye[n]&&(ce[n]||!be[n])}if(ue==="application/xhtml+xml"&&se[e.namespaceURI]){return true}return false};const Te=function t(i){E(e.removed,{element:i});try{N(i).removeChild(i)}catch(t){y(i)}};const xe=function t(i,n){try{E(e.removed,{attribute:n.getAttributeNode(i),from:n})}catch(t){E(e.removed,{attribute:null,from:n})}n.removeAttribute(i);if(i==="is"){if(jt||Ut){try{Te(n)}catch(t){}}else{try{n.setAttribute(i,"")}catch(t){}}}};const Ee=function t(e){let n=null;let r=null;if(Ft){e="<remove></remove>"+e}else{const t=R(e,/^[\r\n\t ]+/);r=t&&t[0]}if(ue==="application/xhtml+xml"&&ne===ie){e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>"}const s=K?K.createHTML(e):e;if(ne===ie){try{n=(new d).parseFromString(s,ue)}catch(t){}}if(!n||!n.documentElement){n=Q.createDocument(ne,"template",null);try{n.documentElement.innerHTML=re?J:s}catch(t){}}const o=n.body||n.documentElement;if(e&&r){o.insertBefore(i.createTextNode(r),o.childNodes[0]||null)}if(ne===ie){return nt.call(n,Lt?"html":"body")[0]}return Lt?n.documentElement:o};const ke=function t(e){return tt.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)};const Ae=function t(e){return e instanceof h&&(typeof e.nodeName!=="string"||typeof e.textContent!=="string"||typeof e.removeChild!=="function"||!(e.attributes instanceof f)||typeof e.removeAttribute!=="function"||typeof e.setAttribute!=="function"||typeof e.namespaceURI!=="string"||typeof e.insertBefore!=="function"||typeof e.hasChildNodes!=="function")};const Se=function t(e){return typeof a==="function"&&e instanceof a};function Re(t,i,n){w(t,(t=>{t.call(e,i,n,pe)}))}const Ie=function t(i){let n=null;Re(ot.beforeSanitizeElements,i,null);if(Ae(i)){Te(i);return true}const r=de(i.nodeName);Re(ot.uponSanitizeElement,i,{tagName:r,allowedTags:xt});if(Ct&&i.hasChildNodes()&&!Se(i.firstElementChild)&&P(/<[/\w!]/g,i.innerHTML)&&P(/<[/\w!]/g,i.textContent)){Te(i);return true}if(Ct&&i.namespaceURI===ie&&r==="style"&&Se(i.firstElementChild)){Te(i);return true}if(i.nodeType===lt.progressingInstruction){Te(i);return true}if(Ct&&i.nodeType===lt.comment&&P(/<[/\w]/g,i.data)){Te(i);return true}if(Rt[r]||!(_t.tagCheck instanceof Function&&_t.tagCheck(r))&&!xt[r]){if(!Rt[r]&&De(r)){if(St.tagNameCheck instanceof RegExp&&P(St.tagNameCheck,r)){return false}if(St.tagNameCheck instanceof Function&&St.tagNameCheck(r)){return false}}if(Ht&&!Gt[r]){const t=N(i)||i.parentNode;const e=C(i)||i.childNodes;if(e&&t){const n=e.length;for(let r=n-1;r>=0;--r){const n=b(e[r],true);n.__removalCount=(i.__removalCount||0)+1;t.insertBefore(n,O(i))}}}Te(i);return true}if(i instanceof l&&!we(i)){Te(i);return true}if((r==="noscript"||r==="noembed"||r==="noframes")&&P(/<\/no(script|embed|frames)/i,i.innerHTML)){Te(i);return true}if(Ot&&i.nodeType===lt.text){n=i.textContent;w([dt,pt,mt],(t=>{n=I(n,t," ")}));if(i.textContent!==n){E(e.removed,{element:i.cloneNode()});i.textContent=n}}Re(ot.afterSanitizeElements,i,null);return false};const _e=function t(e,n,r){if(It[n]){return false}if(Wt&&(n==="id"||n==="name")&&(r in i||r in me)){return false}if(zt&&!It[n]&&P(vt,n));else if(Dt&&P(gt,n));else if(_t.attributeCheck instanceof Function&&_t.attributeCheck(n,e));else if(!kt[n]||It[n]){if(De(e)&&(St.tagNameCheck instanceof RegExp&&P(St.tagNameCheck,e)||St.tagNameCheck instanceof Function&&St.tagNameCheck(e))&&(St.attributeNameCheck instanceof RegExp&&P(St.attributeNameCheck,n)||St.attributeNameCheck instanceof Function&&St.attributeNameCheck(n,e))||n==="is"&&St.allowCustomizedBuiltInElements&&(St.tagNameCheck instanceof RegExp&&P(St.tagNameCheck,r)||St.tagNameCheck instanceof Function&&St.tagNameCheck(r)));else{return false}}else if(Jt[n]);else if(P(Tt,I(r,yt,"")));else if((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&_(r,"data:")===0&&Zt[e]);else if(Pt&&!P(bt,I(r,yt,"")));else if(r){return false}else;return true};const De=function t(e){return e!=="annotation-xml"&&R(e,wt)};const ze=function t(i){Re(ot.beforeSanitizeAttributes,i,null);const{attributes:n}=i;if(!n||Ae(i)){return}const r={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:kt,forceKeepAttr:undefined};let s=n.length;while(s--){const t=n[s];const{name:o,namespaceURI:a,value:l}=t;const c=de(o);const u=l;let f=o==="value"?u:D(u);r.attrName=c;r.attrValue=f;r.keepAttr=true;r.forceKeepAttr=undefined;Re(ot.uponSanitizeAttribute,i,r);f=r.attrValue;if(Xt&&(c==="id"||c==="name")){xe(o,i);f=Yt+f}if(Ct&&P(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){xe(o,i);continue}if(c==="attributename"&&R(f,"href")){xe(o,i);continue}if(r.forceKeepAttr){continue}if(!r.keepAttr){xe(o,i);continue}if(!Mt&&P(/\/>/i,f)){xe(o,i);continue}if(Ot){w([dt,pt,mt],(t=>{f=I(f,t," ")}))}const h=de(i.nodeName);if(!_e(h,c,f)){xe(o,i);continue}if(K&&typeof p==="object"&&typeof p.getAttributeType==="function"){if(a);else{switch(p.getAttributeType(h,c)){case"TrustedHTML":{f=K.createHTML(f);break}case"TrustedScriptURL":{f=K.createScriptURL(f);break}}}}if(f!==u){try{if(a){i.setAttributeNS(a,o,f)}else{i.setAttribute(o,f)}if(Ae(i)){Te(i)}else{x(e.removed)}}catch(t){xe(o,i)}}}Re(ot.afterSanitizeAttributes,i,null)};const Pe=function t(e){let i=null;const n=ke(e);Re(ot.beforeSanitizeShadowDOM,e,null);while(i=n.nextNode()){Re(ot.uponSanitizeShadowNode,i,null);Ie(i);ze(i);if(i.content instanceof s){Pe(i.content)}}Re(ot.afterSanitizeShadowDOM,e,null)};e.sanitize=function(t){let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r=null;let o=null;let l=null;let c=null;re=!t;if(re){t="\x3c!--\x3e"}if(typeof t!=="string"&&!Se(t)){if(typeof t.toString==="function"){t=t.toString();if(typeof t!=="string"){throw M("dirty is not a string, aborting")}}else{throw M("toString is not a function")}}if(!e.isSupported){return t}if(!Nt){ge(i)}e.removed=[];if(typeof t==="string"){qt=false}if(qt){if(t.nodeName){const e=de(t.nodeName);if(!xt[e]||Rt[e]){throw M("root node is forbidden and cannot be sanitized in-place")}}}else if(t instanceof a){r=Ee("\x3c!----\x3e");o=r.ownerDocument.importNode(t,true);if(o.nodeType===lt.element&&o.nodeName==="BODY"){r=o}else if(o.nodeName==="HTML"){r=o}else{r.appendChild(o)}}else{if(!jt&&!Ot&&!Lt&&t.indexOf("<")===-1){return K&&Bt?K.createHTML(t):t}r=Ee(t);if(!r){return jt?null:Bt?J:""}}if(r&&Ft){Te(r.firstChild)}const u=ke(qt?t:r);while(l=u.nextNode()){Ie(l);ze(l);if(l.content instanceof s){Pe(l.content)}}if(qt){return t}if(jt){if(Ot){r.normalize();let t=r.innerHTML;w([dt,pt,mt],(e=>{t=I(t,e," ")}));r.innerHTML=t}if(Ut){c=et.call(r.ownerDocument);while(r.firstChild){c.appendChild(r.firstChild)}}else{c=r}if(kt.shadowroot||kt.shadowrootmode){c=rt.call(n,c,true)}return c}let f=Lt?r.outerHTML:r.innerHTML;if(Lt&&xt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&P(st,r.ownerDocument.doctype.name)){f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f}if(Ot){w([dt,pt,mt],(t=>{f=I(f,t," ")}))}return K&&Bt?K.createHTML(f):f};e.setConfig=function(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};ge(t);Nt=true};e.clearConfig=function(){pe=null;Nt=false};e.isValidAttribute=function(t,e,i){if(!pe){ge({})}const n=de(t);const r=de(e);return _e(n,r,i)};e.addHook=function(t,e){if(typeof e!=="function"){return}E(ot[t],e)};e.removeHook=function(t,e){if(e!==undefined){const i=T(ot[t],e);return i===-1?undefined:k(ot[t],i,1)[0]}return x(ot[t])};e.removeHooks=function(t){ot[t]=[]};e.removeAllHooks=function(){ot=ft()};return e}var dt=ht();var pt={exports:{}};
3
- /*! Hammer.JS - v2.0.7 - 2016-04-22
4
- * http://hammerjs.github.io/
5
- *
6
- * Copyright (c) 2016 Jorik Tangelder;
7
- * Licensed under the MIT license */var mt;function vt(){if(mt)return pt.exports;mt=1;(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(y(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 b(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 y(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 T(t,e){return t===r?e:t}function x(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 k(t,e){while(t){if(t==e){return true}t=t.parentNode}return false}function A(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 I(t){return Array.prototype.slice.call(t,0)}function _(t,e,i){var n=[];var r=[];var s=0;while(s<t.length){var o=t[s][e];if(R(r,o)<0){n.push(t[s])}r[s]=o;s++}{{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 z=1;function P(){return z++}function M(t){var i=t.ownerDocument||t;return i.defaultView||i.parentWindow||e}var O=/mobile|tablet|ip(ad|hone|od)|android/i;var C="ontouchstart"in e;var L=D(e,"PointerEvent")!==r;var N=C&&O.test(navigator.userAgent);var F="touch";var j="pen";var U="mouse";var B="kinect";var W=25;var X=1;var Y=2;var H=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&&x(this.element,this.evEl,this.domHandler);this.evTarget&&x(this.target,this.evTarget,this.domHandler);this.evWin&&x(M(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(M(this.element),this.evWin,this.domHandler)}};function rt(t){var e;var i=t.options.inputClass;if(i){e=i}else if(L){e=At}else if(N){e=Mt}else if(!C){e=wt}else{e=Nt}return new e(t,st)}function st(t,e,i){var n=i.pointers.length;var r=i.changedPointers.length;var s=e&X&&n-r===0;var o=e&(H|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(k(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===X||s.eventType===H){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>W||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:X,mousemove:Y,mouseup:H};var bt="mousedown";var yt="mousemove mouseup";function wt(){this.evEl=bt;this.evWin=yt;this.pressed=false;nt.apply(this,arguments)}b(wt,nt,{handler:function t(e){var i=gt[e.type];if(i&X&&e.button===0){this.pressed=true}if(i&Y&&e.which!==1){i=H}if(!this.pressed){return}if(i&H){this.pressed=false}this.callback(this.manager,i,{pointers:[e],changedPointers:[e],pointerType:U,srcEvent:e})}});var Tt={pointerdown:X,pointermove:Y,pointerup:H,pointercancel:q,pointerout:q};var xt={2:F,3:j,4:U,5:B};var Et="pointerdown";var kt="pointermove pointerup pointercancel";if(e.MSPointerEvent&&!e.PointerEvent){Et="MSPointerDown";kt="MSPointerMove MSPointerUp MSPointerCancel"}function At(){this.evEl=Et;this.evWin=kt;nt.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}b(At,nt,{handler:function t(e){var i=this.store;var n=false;var r=e.type.toLowerCase().replace("ms","");var s=Tt[r];var o=xt[e.pointerType]||e.pointerType;var a=o==F;var l=R(i,e.pointerId,"pointerId");if(s&X&&(e.button===0||a)){if(l<0){i.push(e);l=i.length-1}}else if(s&(H|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:X,touchmove:Y,touchend:H,touchcancel:q};var Rt="touchstart";var It="touchstart touchmove touchend touchcancel";function _t(){this.evTarget=Rt;this.evWin=It;this.started=false;nt.apply(this,arguments)}b(_t,nt,{handler:function t(e){var i=St[e.type];if(i===X){this.started=true}if(!this.started){return}var n=Dt.call(this,e,i);if(i&(H|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=I(t.touches);var n=I(t.changedTouches);if(e&(H|q)){i=_(i.concat(n),"identifier")}return[i,n]}var zt={touchstart:X,touchmove:Y,touchend:H,touchcancel:q};var Pt="touchstart touchmove touchend touchcancel";function Mt(){this.evTarget=Pt;this.targetIds={};nt.apply(this,arguments)}b(Mt,nt,{handler:function t(e){var i=zt[e.type];var n=Ot.call(this,e,i);if(!n){return}this.callback(this.manager,i,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:e})}});function Ot(t,e){var i=I(t.touches);var n=this.targetIds;if(e&(X|Y)&&i.length===1){n[i[0].identifier]=true;return[i,i]}var r,s,o=I(t.changedTouches),a=[],l=this.target;s=i.filter((function(t){return k(t.target,l)}));if(e===X){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&(H|q)){delete n[o[r].identifier]}r++}if(!a.length){return}return[_(s.concat(a),"identifier"),a]}var Ct=2500;var Lt=25;function Nt(){nt.apply(this,arguments);var t=y(this.handler,this);this.touch=new Mt(this.manager,t);this.mouse=new wt(this.manager,t);this.primaryTouch=null;this.lastTouches=[]}b(Nt,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&X){this.primaryTouch=e.changedPointers[0].identifier;jt.call(this,e)}else if(t&(H|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<=Lt&&o<=Lt){return true}}return false}var Bt=D(o.style,"touchAction");var Wt=Bt!==r;var Xt="compute";var Yt="auto";var Ht="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==Xt){t=this.compute()}if(Wt&&this.manager.element.style&&Vt[t]){this.manager.element.style[Bt]=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=A(n,qt)&&!Vt[qt];var s=A(n,Gt)&&!Vt[Gt];var o=A(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(A(t,qt)){return qt}var e=A(t,$t);var i=A(t,Gt);if(e&&i){return qt}if(e||i){return e?$t:Gt}if(A(t,Ht)){return Ht}return Yt}function Jt(){if(!Wt){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=P();this.manager=null;this.options.enable=T(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)}b(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&H){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}b(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)}b(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}b(de,oe,{defaults:{event:"press",pointers:1,time:251,threshold:9},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._input=t;if(!n||!i||t.eventType&(H|q)&&!r){this.reset()}else if(t.eventType&X){this.reset();this._timer=f((function(){this.state=ne;this.tryEmit()}),e.time,this)}else if(t.eventType&H){return ne}return se},reset:function(){clearTimeout(this._timer)},emit:function(t){if(this.state!==ne){return}if(t&&t.eventType&H){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)}b(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)}b(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&H},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}b(ve,oe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},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.reset();if(t.eventType&X&&this.count===0){return this.failTimeout()}if(n&&r&&i){if(t.eventType!=H){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=T(e.recognizers,ge.defaults.preset);return new we(t,e)}ge.VERSION="2.0.7";ge.defaults={domEvents:false,touchAction:Xt,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 be=1;var ye=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);Te(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?ye:be},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!==ye&&(!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){xe(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&&Te(this,false);this.handlers={};this.session={};this.input.destroy();this.element=null}};function Te(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 xe(t,e){var n=i.createEvent("Event");n.initEvent(t,true,true);n.gesture=e;e.target.dispatchEvent(n)}m(ge,{INPUT_START:X,INPUT_MOVE:Y,INPUT_END:H,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:Mt,MouseInput:wt,PointerEventInput:At,TouchMouseInput:Nt,SingleTouchInput:_t,Recognizer:oe,AttrRecognizer:ue,Tap:ve,Pan:fe,Swipe:me,Pinch:he,Rotate:pe,Press:de,on:x,off:E,each:d,merge:g,extend:v,assign:m,inherit:b,bindFn:y,prefixed:D});var Ee=typeof e!=="undefined"?e:typeof self!=="undefined"?self:{};Ee.Hammer=ge;if(t.exports){t.exports=ge}else{e[n]=ge}})(window,document,"Hammer")})(pt);return pt.exports}var gt=vt();var bt=l(gt);const yt=()=>`:host{--percentuale:0;display:flex;width:100%;min-width:200px;max-width:100dvw;box-sizing:border-box;background:var(--color-surface01);border-radius:var(--border-size-large);box-shadow:var(--shadow-3);color:var(--color-default-text);fill:var(--color-primary01-icon);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-weight:var(--font-rg)}: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}.toast-notification-container{display:flex;width:100%;align-items:baseline;justify-content:space-between;padding:calc(var(--space-unit) * 2);border-radius:var(--border-radius);gap:calc(var(--space-unit) * 2)}.toast-notification-content{display:flex;width:100%;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:calc(var(--space-unit) * 2)}.toast-notification-content .toast-notification-text{color:inherit;letter-spacing:0.16px;line-height:1.25rem}.toast-notification-content .toast-notification-text .title{margin-right:calc(var(--space-unit) / 2);font-weight:var(--font-sb)}.close-button{height:1.125rem;padding:0;border:none;background-color:transparent;cursor:pointer}.close-button z-icon{--z-icon-width:1.125rem;--z-icon-height:1.125rem;display:inline-block;height:1.25rem}.close-button:focus:focus-visible{border-radius:50%;box-shadow:var(--shadow-focus-primary);outline:none}:host(.dark){background:var(--color-surface05);color:var(--color-text-inverse);fill:var(--color-inverse-icon)}:host(.dark) .close-button:focus:focus-visible{box-shadow:0 0 0 2px var(--gray900), 0 0 2px 5px var(--blue25)}:host(.accent){background:var(--color-primary01)}:host(.error){background:var(--color-default-error)}:host(.success){background:var(--color-default-success)}:host(.warning){background:var(--color-default-warning)}:host(.accent),:host(.error),:host(.success){color:var(--color-text-inverse);fill:var(--color-inverse-icon)}:host(.warning) .close-button{fill:var(--color-default-icon)}@media (min-width: 768px){:host{width:fit-content;max-width:50vw}.toast-notification-content{flex-wrap:nowrap}}@media (min-width: 1366px){:host{max-width:33vw}}@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%)}}`;const wt={[o.SLIDE_IN_DOWN]:o.SLIDE_OUT_UP,[o.SLIDE_IN_UP]:o.SLIDE_OUT_DOWN,[o.SLIDE_IN_LEFT]:o.SLIDE_OUT_RIGHT,[o.SLIDE_IN_RIGHT]:o.SLIDE_OUT_LEFT};const Tt=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.toastClose=i(this,"toastClose",7);this.pauseonfocusloss=true;this.isdraggable=true;this.draggablepercentage=80;this.isCloseEventCalled=false}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)}}}close(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)}}visibilityChangeEventHandler(){if(document.visibilityState==="hidden"){if(this.timeoutHandle){this.onBlur()}}else if(this.elapsedTime){this.onFocus()}}validateAutoclose(){if(!this.autoclose&&!this.closebutton){console.error("At least one between autoclose and closebutton must be present")}}calculateDraggedPercentage(t){const e=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/e.width)}handleSlideOutDragAnimation(){this.sliderManager=new bt(this.hostElement);this.sliderManager.get("pan").set({direction:bt.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===bt.DIRECTION_LEFT||t.eventType===bt.DIRECTION_RIGHT){this.hostElement.style.transform=e.translate;if(Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled){this.isCloseEventCalled=true;this.close(t.direction===bt.DIRECTION_LEFT?o.SLIDE_OUT_LEFT:o.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.close(wt[this.transition],false)),t)}checkSlottedButton(){this.hasSlottedButton=!!this.hostElement.querySelector("[slot='button']")}componentWillLoad(){this.validateAutoclose();this.checkSlottedButton();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)}}if(this.isdraggable){this.handleSlideOutDragAnimation()}}render(){return n(r,{key:"129c4628c3809f638a02596bff82f4a5700ae566",style:{"--percentuale":`${this.percentage}%`},class:{[this.transition]:!!this.transition,[this.type]:!!this.type},onAnimationEnd:t=>{if(this.autoclose&&t.animationName.includes("slidein")){this.startClosingTimeout(this.autoclose)}if(t.animationName.includes("slideout")){this.hostElement.parentNode.removeChild(this.hostElement)}}},n("div",{key:"39360c2661ac44f4e3e8ae25aceccaea8179a03e",class:"toast-notification-container"},n("div",{key:"6778d83e83590f5981ff9dfb5fbb8fbe92143404",class:"toast-notification-content"},n("div",{key:"896d9bb0c412381f9ad81c799666dd54503a50b0",class:"toast-notification-text"},this.heading&&n("span",{key:"a431608d859dede1cc17e840ebf2e01b872a1d48",class:"title"},this.heading),n("span",{key:"23f29016f7eb04790a6adf136b0e064f5f2d87d9",class:"message"},n("slot",{key:"a793b4e4fee43ad139f0eef51ec1ed1a6cd5c31f",name:"message"},this.message&&n("span",{key:"fc84e8b14208ff6d150dfea28924387f845cb371",innerHTML:dt.sanitize(this.message)})))),n("div",{key:"475e54939682a3b7bba6032a92bd04b8a21772b3",class:"button-container",hidden:!this.hasSlottedButton},n("slot",{key:"e9bd0b4e65504476b59a97dcf82b233b5259bc00",name:"button",onSlotchange:()=>this.checkSlottedButton()}))),this.closebutton&&n("button",{key:"14b143ec8e4d8e02b039d01464532ba25bcc2bea",class:"close-button","aria-label":"Chiudi notifica",onClick:()=>this.close(wt[this.transition],true),onKeyDown:t=>{if(t.code==a.SPACE||t.code==a.ENTER){t.preventDefault();this.close(wt[this.transition],true)}}},n("z-icon",{key:"4870673eb2e49f6dbd06788a3b279daaa8236ab6",name:"multiply-circled"}))))}get hostElement(){return this}static get watchers(){return{isdraggable:[{watchPropIsdraggable:0}],autoclose:[{watchPropAutoclose:0}],pauseonfocusloss:[{watchPropPauseonfocusloss:0}]}}static get style(){return yt()}},[257,"z-toast-notification",{heading:[1],message:[1],closebutton:[4],autoclose:[2],pauseonfocusloss:[4],type:[1],isdraggable:[4],draggablepercentage:[2],transition:[1],percentage:[32],hasSlottedButton:[32]},undefined,{isdraggable:[{watchPropIsdraggable:0}],autoclose:[{watchPropAutoclose:0}],pauseonfocusloss:[{watchPropPauseonfocusloss:0}]}]);function xt(){if(typeof customElements==="undefined"){return}const t=["z-toast-notification","z-icon"];t.forEach((t=>{switch(t){case"z-toast-notification":if(!customElements.get(s(t))){customElements.define(s(t),Tt)}break;case"z-icon":if(!customElements.get(s(t))){c()}break}}))}const Et=Tt;const kt=xt;export{Et as ZToastNotification,kt as defineCustomElement};
1
+ import{p as t,H as e,c as n,h as i,d as o,t as a}from"./p-RmbDDbWd.js";import{r,g as s}from"./p-DdetsoIY.js";import{d as l}from"./p-CbXEdwLi.js";
2
+ /*! @license DOMPurify 3.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.0/LICENSE */const{entries:c,setPrototypeOf:f,isFrozen:u,getPrototypeOf:d,getOwnPropertyDescriptor:m}=Object;let{freeze:p,seal:h,create:g}=Object;let{apply:b,construct:y}=typeof Reflect!=="undefined"&&Reflect;if(!p){p=function t(e){return e}}if(!h){h=function t(e){return e}}if(!b){b=function t(e,n){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++){o[a-2]=arguments[a]}return e.apply(n,o)}}if(!y){y=function t(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++){i[o-1]=arguments[o]}return new e(...i)}}const w=M(Array.prototype.forEach);const v=M(Array.prototype.lastIndexOf);const x=M(Array.prototype.pop);const k=M(Array.prototype.push);const T=M(Array.prototype.splice);const A=M(String.prototype.toLowerCase);const E=M(String.prototype.toString);const S=M(String.prototype.match);const z=M(String.prototype.replace);const R=M(String.prototype.indexOf);const _=M(String.prototype.trim);const D=M(Object.prototype.hasOwnProperty);const P=M(RegExp.prototype.test);const L=O(TypeError);function M(t){return function(e){if(e instanceof RegExp){e.lastIndex=0}for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++){i[o-1]=arguments[o]}return b(t,e,i)}}function O(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++){n[i]=arguments[i]}return y(t,n)}}function I(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:A;if(f){f(t,null)}let i=e.length;while(i--){let o=e[i];if(typeof o==="string"){const t=n(o);if(t!==o){if(!u(e)){e[i]=t}o=t}}t[o]=true}return t}function C(t){for(let e=0;e<t.length;e++){const n=D(t,e);if(!n){t[e]=null}}return t}function F(t){const e=g(null);for(const[n,i]of c(t)){const o=D(t,n);if(o){if(Array.isArray(i)){e[n]=C(i)}else if(i&&typeof i==="object"&&i.constructor===Object){e[n]=F(i)}else{e[n]=i}}}return e}function N(t,e){while(t!==null){const n=m(t,e);if(n){if(n.get){return M(n.get)}if(typeof n.value==="function"){return M(n.value)}}t=d(t)}function n(){return null}return n}const j=p(["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","search","section","select","shadow","slot","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 B=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]);const U=p(["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 X=p(["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 Y=p(["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 W=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]);const H=p(["#text"]);const $=p(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]);const q=p(["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","mask-type","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 G=p(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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 K=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]);const V=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm);const J=h(/<%[\w\W]*|[\w\W]*%>/gm);const Q=h(/\$\{[\w\W]*/gm);const Z=h(/^data-[\-\w.\u00B7-\uFFFF]+$/);const tt=h(/^aria-[\-\w]+$/);const et=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);const nt=h(/^(?:\w+script|data):/i);const it=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);const ot=h(/^html$/i);const at=h(/^[a-z][.\w]*(-[.\w]+)+$/i);var rt=Object.freeze({__proto__:null,ARIA_ATTR:tt,ATTR_WHITESPACE:it,CUSTOM_ELEMENT:at,DATA_ATTR:Z,DOCTYPE_NAME:ot,ERB_EXPR:J,IS_ALLOWED_URI:et,IS_SCRIPT_OR_DATA:nt,MUSTACHE_EXPR:V,TMPLIT_EXPR:Q});const st={element:1,text:3,progressingInstruction:7,comment:8,document:9};const lt=function t(){return typeof window==="undefined"?null:window};const ct=function t(e,n){if(typeof e!=="object"||typeof e.createPolicy!=="function"){return null}let i=null;const o="data-tt-policy-suffix";if(n&&n.hasAttribute(o)){i=n.getAttribute(o)}const a="dompurify"+(i?"#"+i:"");try{return e.createPolicy(a,{createHTML(t){return t},createScriptURL(t){return t}})}catch(t){console.warn("TrustedTypes policy "+a+" could not be created.");return null}};const ft=function t(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ut(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:lt();const e=t=>ut(t);e.version="3.4.0";e.removed=[];if(!t||!t.document||t.document.nodeType!==st.document||!t.Element){e.isSupported=false;return e}let{document:n}=t;const i=n;const o=i.currentScript;const{DocumentFragment:a,HTMLTemplateElement:r,Node:s,Element:l,NodeFilter:f,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:h}=t;const b=l.prototype;const y=N(b,"cloneNode");const M=N(b,"remove");const O=N(b,"nextSibling");const C=N(b,"childNodes");const V=N(b,"parentNode");if(typeof r==="function"){const t=n.createElement("template");if(t.content&&t.content.ownerDocument){n=t.content.ownerDocument}}let J;let Q="";const{implementation:Z,createNodeIterator:tt,createDocumentFragment:nt,getElementsByTagName:it}=n;const{importNode:at}=i;let dt=ft();e.isSupported=typeof c==="function"&&typeof V==="function"&&Z&&Z.createHTMLDocument!==undefined;const{MUSTACHE_EXPR:mt,ERB_EXPR:pt,TMPLIT_EXPR:ht,DATA_ATTR:gt,ARIA_ATTR:bt,IS_SCRIPT_OR_DATA:yt,ATTR_WHITESPACE:wt,CUSTOM_ELEMENT:vt}=rt;let{IS_ALLOWED_URI:xt}=rt;let kt=null;const Tt=I({},[...j,...B,...U,...Y,...H]);let At=null;const Et=I({},[...$,...q,...G,...K]);let St=Object.seal(g(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 zt=null;let Rt=null;const _t=Object.seal(g(null,{tagCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeCheck:{writable:true,configurable:false,enumerable:true,value:null}}));let Dt=true;let Pt=true;let Lt=false;let Mt=true;let Ot=false;let It=true;let Ct=false;let Ft=false;let Nt=false;let jt=false;let Bt=false;let Ut=false;let Xt=true;let Yt=false;const Wt="user-content-";let Ht=true;let $t=false;let qt={};let Gt=null;const Kt=I({},["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 Jt=I({},["audio","video","img","source","image","track"]);let Qt=null;const Zt=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);const te="http://www.w3.org/1998/Math/MathML";const ee="http://www.w3.org/2000/svg";const ne="http://www.w3.org/1999/xhtml";let ie=ne;let oe=false;let ae=null;const re=I({},[te,ee,ne],E);let se=I({},["mi","mo","mn","ms","mtext"]);let le=I({},["annotation-xml"]);const ce=I({},["title","style","font","a","script"]);let fe=null;const ue=["application/xhtml+xml","text/html"];const de="text/html";let me=null;let pe=null;const he=n.createElement("form");const ge=function t(e){return e instanceof RegExp||e instanceof Function};const be=function t(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(pe&&pe===e){return}if(!e||typeof e!=="object"){e={}}e=F(e);fe=ue.indexOf(e.PARSER_MEDIA_TYPE)===-1?de:e.PARSER_MEDIA_TYPE;me=fe==="application/xhtml+xml"?E:A;kt=D(e,"ALLOWED_TAGS")?I({},e.ALLOWED_TAGS,me):Tt;At=D(e,"ALLOWED_ATTR")?I({},e.ALLOWED_ATTR,me):Et;ae=D(e,"ALLOWED_NAMESPACES")?I({},e.ALLOWED_NAMESPACES,E):re;Qt=D(e,"ADD_URI_SAFE_ATTR")?I(F(Zt),e.ADD_URI_SAFE_ATTR,me):Zt;Vt=D(e,"ADD_DATA_URI_TAGS")?I(F(Jt),e.ADD_DATA_URI_TAGS,me):Jt;Gt=D(e,"FORBID_CONTENTS")?I({},e.FORBID_CONTENTS,me):Kt;zt=D(e,"FORBID_TAGS")?I({},e.FORBID_TAGS,me):F({});Rt=D(e,"FORBID_ATTR")?I({},e.FORBID_ATTR,me):F({});qt=D(e,"USE_PROFILES")?e.USE_PROFILES:false;Dt=e.ALLOW_ARIA_ATTR!==false;Pt=e.ALLOW_DATA_ATTR!==false;Lt=e.ALLOW_UNKNOWN_PROTOCOLS||false;Mt=e.ALLOW_SELF_CLOSE_IN_ATTR!==false;Ot=e.SAFE_FOR_TEMPLATES||false;It=e.SAFE_FOR_XML!==false;Ct=e.WHOLE_DOCUMENT||false;jt=e.RETURN_DOM||false;Bt=e.RETURN_DOM_FRAGMENT||false;Ut=e.RETURN_TRUSTED_TYPE||false;Nt=e.FORCE_BODY||false;Xt=e.SANITIZE_DOM!==false;Yt=e.SANITIZE_NAMED_PROPS||false;Ht=e.KEEP_CONTENT!==false;$t=e.IN_PLACE||false;xt=e.ALLOWED_URI_REGEXP||et;ie=e.NAMESPACE||ne;se=e.MATHML_TEXT_INTEGRATION_POINTS||se;le=e.HTML_INTEGRATION_POINTS||le;St=e.CUSTOM_ELEMENT_HANDLING||g(null);if(e.CUSTOM_ELEMENT_HANDLING&&ge(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){St.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&ge(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){Pt=false}if(Bt){jt=true}if(qt){kt=I({},H);At=g(null);if(qt.html===true){I(kt,j);I(At,$)}if(qt.svg===true){I(kt,B);I(At,q);I(At,K)}if(qt.svgFilters===true){I(kt,U);I(At,q);I(At,K)}if(qt.mathMl===true){I(kt,Y);I(At,G);I(At,K)}}_t.tagCheck=null;_t.attributeCheck=null;if(e.ADD_TAGS){if(typeof e.ADD_TAGS==="function"){_t.tagCheck=e.ADD_TAGS}else{if(kt===Tt){kt=F(kt)}I(kt,e.ADD_TAGS,me)}}if(e.ADD_ATTR){if(typeof e.ADD_ATTR==="function"){_t.attributeCheck=e.ADD_ATTR}else{if(At===Et){At=F(At)}I(At,e.ADD_ATTR,me)}}if(e.ADD_URI_SAFE_ATTR){I(Qt,e.ADD_URI_SAFE_ATTR,me)}if(e.FORBID_CONTENTS){if(Gt===Kt){Gt=F(Gt)}I(Gt,e.FORBID_CONTENTS,me)}if(e.ADD_FORBID_CONTENTS){if(Gt===Kt){Gt=F(Gt)}I(Gt,e.ADD_FORBID_CONTENTS,me)}if(Ht){kt["#text"]=true}if(Ct){I(kt,["html","head","body"])}if(kt.table){I(kt,["tbody"]);delete zt.tbody}if(e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}J=e.TRUSTED_TYPES_POLICY;Q=J.createHTML("")}else{if(J===undefined){J=ct(h,o)}if(J!==null&&typeof Q==="string"){Q=J.createHTML("")}}if(p){p(e)}pe=e};const ye=I({},[...B,...U,...X]);const we=I({},[...Y,...W]);const ve=function t(e){let n=V(e);if(!n||!n.tagName){n={namespaceURI:ie,tagName:"template"}}const i=A(e.tagName);const o=A(n.tagName);if(!ae[e.namespaceURI]){return false}if(e.namespaceURI===ee){if(n.namespaceURI===ne){return i==="svg"}if(n.namespaceURI===te){return i==="svg"&&(o==="annotation-xml"||se[o])}return Boolean(ye[i])}if(e.namespaceURI===te){if(n.namespaceURI===ne){return i==="math"}if(n.namespaceURI===ee){return i==="math"&&le[o]}return Boolean(we[i])}if(e.namespaceURI===ne){if(n.namespaceURI===ee&&!le[o]){return false}if(n.namespaceURI===te&&!se[o]){return false}return!we[i]&&(ce[i]||!ye[i])}if(fe==="application/xhtml+xml"&&ae[e.namespaceURI]){return true}return false};const xe=function t(n){k(e.removed,{element:n});try{V(n).removeChild(n)}catch(t){M(n)}};const ke=function t(n,i){try{k(e.removed,{attribute:i.getAttributeNode(n),from:i})}catch(t){k(e.removed,{attribute:null,from:i})}i.removeAttribute(n);if(n==="is"){if(jt||Bt){try{xe(i)}catch(t){}}else{try{i.setAttribute(n,"")}catch(t){}}}};const Te=function t(e){let i=null;let o=null;if(Nt){e="<remove></remove>"+e}else{const t=S(e,/^[\r\n\t ]+/);o=t&&t[0]}if(fe==="application/xhtml+xml"&&ie===ne){e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>"}const a=J?J.createHTML(e):e;if(ie===ne){try{i=(new m).parseFromString(a,fe)}catch(t){}}if(!i||!i.documentElement){i=Z.createDocument(ie,"template",null);try{i.documentElement.innerHTML=oe?Q:a}catch(t){}}const r=i.body||i.documentElement;if(e&&o){r.insertBefore(n.createTextNode(o),r.childNodes[0]||null)}if(ie===ne){return it.call(i,Ct?"html":"body")[0]}return Ct?i.documentElement:r};const Ae=function t(e){return tt.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)};const Ee=function t(e){return e instanceof d&&(typeof e.nodeName!=="string"||typeof e.textContent!=="string"||typeof e.removeChild!=="function"||!(e.attributes instanceof u)||typeof e.removeAttribute!=="function"||typeof e.setAttribute!=="function"||typeof e.namespaceURI!=="string"||typeof e.insertBefore!=="function"||typeof e.hasChildNodes!=="function")};const Se=function t(e){return typeof s==="function"&&e instanceof s};function ze(t,n,i){w(t,(t=>{t.call(e,n,i,pe)}))}const Re=function t(n){let i=null;ze(dt.beforeSanitizeElements,n,null);if(Ee(n)){xe(n);return true}const o=me(n.nodeName);ze(dt.uponSanitizeElement,n,{tagName:o,allowedTags:kt});if(It&&n.hasChildNodes()&&!Se(n.firstElementChild)&&P(/<[/\w!]/g,n.innerHTML)&&P(/<[/\w!]/g,n.textContent)){xe(n);return true}if(It&&n.namespaceURI===ne&&o==="style"&&Se(n.firstElementChild)){xe(n);return true}if(n.nodeType===st.progressingInstruction){xe(n);return true}if(It&&n.nodeType===st.comment&&P(/<[/\w]/g,n.data)){xe(n);return true}if(zt[o]||!(_t.tagCheck instanceof Function&&_t.tagCheck(o))&&!kt[o]){if(!zt[o]&&De(o)){if(St.tagNameCheck instanceof RegExp&&P(St.tagNameCheck,o)){return false}if(St.tagNameCheck instanceof Function&&St.tagNameCheck(o)){return false}}if(Ht&&!Gt[o]){const t=V(n)||n.parentNode;const e=C(n)||n.childNodes;if(e&&t){const i=e.length;for(let o=i-1;o>=0;--o){const i=y(e[o],true);i.__removalCount=(n.__removalCount||0)+1;t.insertBefore(i,O(n))}}}xe(n);return true}if(n instanceof l&&!ve(n)){xe(n);return true}if((o==="noscript"||o==="noembed"||o==="noframes")&&P(/<\/no(script|embed|frames)/i,n.innerHTML)){xe(n);return true}if(Ot&&n.nodeType===st.text){i=n.textContent;w([mt,pt,ht],(t=>{i=z(i,t," ")}));if(n.textContent!==i){k(e.removed,{element:n.cloneNode()});n.textContent=i}}ze(dt.afterSanitizeElements,n,null);return false};const _e=function t(e,i,o){if(Rt[i]){return false}if(Xt&&(i==="id"||i==="name")&&(o in n||o in he)){return false}if(Pt&&!Rt[i]&&P(gt,i));else if(Dt&&P(bt,i));else if(_t.attributeCheck instanceof Function&&_t.attributeCheck(i,e));else if(!At[i]||Rt[i]){if(De(e)&&(St.tagNameCheck instanceof RegExp&&P(St.tagNameCheck,e)||St.tagNameCheck instanceof Function&&St.tagNameCheck(e))&&(St.attributeNameCheck instanceof RegExp&&P(St.attributeNameCheck,i)||St.attributeNameCheck instanceof Function&&St.attributeNameCheck(i,e))||i==="is"&&St.allowCustomizedBuiltInElements&&(St.tagNameCheck instanceof RegExp&&P(St.tagNameCheck,o)||St.tagNameCheck instanceof Function&&St.tagNameCheck(o)));else{return false}}else if(Qt[i]);else if(P(xt,z(o,wt,"")));else if((i==="src"||i==="xlink:href"||i==="href")&&e!=="script"&&R(o,"data:")===0&&Vt[e]);else if(Lt&&!P(yt,z(o,wt,"")));else if(o){return false}else;return true};const De=function t(e){return e!=="annotation-xml"&&S(e,vt)};const Pe=function t(n){ze(dt.beforeSanitizeAttributes,n,null);const{attributes:i}=n;if(!i||Ee(n)){return}const o={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:At,forceKeepAttr:undefined};let a=i.length;while(a--){const t=i[a];const{name:r,namespaceURI:s,value:l}=t;const c=me(r);const f=l;let u=r==="value"?f:_(f);o.attrName=c;o.attrValue=u;o.keepAttr=true;o.forceKeepAttr=undefined;ze(dt.uponSanitizeAttribute,n,o);u=o.attrValue;if(Yt&&(c==="id"||c==="name")){ke(r,n);u=Wt+u}if(It&&P(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){ke(r,n);continue}if(c==="attributename"&&S(u,"href")){ke(r,n);continue}if(o.forceKeepAttr){continue}if(!o.keepAttr){ke(r,n);continue}if(!Mt&&P(/\/>/i,u)){ke(r,n);continue}if(Ot){w([mt,pt,ht],(t=>{u=z(u,t," ")}))}const d=me(n.nodeName);if(!_e(d,c,u)){ke(r,n);continue}if(J&&typeof h==="object"&&typeof h.getAttributeType==="function"){if(s);else{switch(h.getAttributeType(d,c)){case"TrustedHTML":{u=J.createHTML(u);break}case"TrustedScriptURL":{u=J.createScriptURL(u);break}}}}if(u!==f){try{if(s){n.setAttributeNS(s,r,u)}else{n.setAttribute(r,u)}if(Ee(n)){xe(n)}else{x(e.removed)}}catch(t){ke(r,n)}}}ze(dt.afterSanitizeAttributes,n,null)};const Le=function t(e){let n=null;const i=Ae(e);ze(dt.beforeSanitizeShadowDOM,e,null);while(n=i.nextNode()){ze(dt.uponSanitizeShadowNode,n,null);Re(n);Pe(n);if(n.content instanceof a){Le(n.content)}}ze(dt.afterSanitizeShadowDOM,e,null)};e.sanitize=function(t){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let o=null;let r=null;let l=null;let c=null;oe=!t;if(oe){t="\x3c!--\x3e"}if(typeof t!=="string"&&!Se(t)){if(typeof t.toString==="function"){t=t.toString();if(typeof t!=="string"){throw L("dirty is not a string, aborting")}}else{throw L("toString is not a function")}}if(!e.isSupported){return t}if(!Ft){be(n)}e.removed=[];if(typeof t==="string"){$t=false}if($t){if(t.nodeName){const e=me(t.nodeName);if(!kt[e]||zt[e]){throw L("root node is forbidden and cannot be sanitized in-place")}}}else if(t instanceof s){o=Te("\x3c!----\x3e");r=o.ownerDocument.importNode(t,true);if(r.nodeType===st.element&&r.nodeName==="BODY"){o=r}else if(r.nodeName==="HTML"){o=r}else{o.appendChild(r)}}else{if(!jt&&!Ot&&!Ct&&t.indexOf("<")===-1){return J&&Ut?J.createHTML(t):t}o=Te(t);if(!o){return jt?null:Ut?Q:""}}if(o&&Nt){xe(o.firstChild)}const f=Ae($t?t:o);while(l=f.nextNode()){Re(l);Pe(l);if(l.content instanceof a){Le(l.content)}}if($t){return t}if(jt){if(Ot){o.normalize();let t=o.innerHTML;w([mt,pt,ht],(e=>{t=z(t,e," ")}));o.innerHTML=t}if(Bt){c=nt.call(o.ownerDocument);while(o.firstChild){c.appendChild(o.firstChild)}}else{c=o}if(At.shadowroot||At.shadowrootmode){c=at.call(i,c,true)}return c}let u=Ct?o.outerHTML:o.innerHTML;if(Ct&&kt["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&P(ot,o.ownerDocument.doctype.name)){u="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+u}if(Ot){w([mt,pt,ht],(t=>{u=z(u,t," ")}))}return J&&Ut?J.createHTML(u):u};e.setConfig=function(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};be(t);Ft=true};e.clearConfig=function(){pe=null;Ft=false};e.isValidAttribute=function(t,e,n){if(!pe){be({})}const i=me(t);const o=me(e);return _e(i,o,n)};e.addHook=function(t,e){if(typeof e!=="function"){return}k(dt[t],e)};e.removeHook=function(t,e){if(e!==undefined){const n=v(dt[t],e);return n===-1?undefined:T(dt[t],n,1)[0]}return x(dt[t])};e.removeHooks=function(t){dt[t]=[]};e.removeAllHooks=function(){dt=ft()};return e}var dt=ut();const mt=()=>`:host{--percentuale:0;display:flex;width:100%;min-width:200px;max-width:100dvw;box-sizing:border-box;background:var(--color-surface01);border-radius:var(--border-size-large);box-shadow:var(--shadow-3);color:var(--color-default-text);fill:var(--color-primary01-icon);font-family:var(--font-family-sans);font-size:var(--font-size-2);font-weight:var(--font-rg)}: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}.toast-notification-container{display:flex;width:100%;align-items:baseline;justify-content:space-between;padding:calc(var(--space-unit) * 2);border-radius:var(--border-radius);gap:calc(var(--space-unit) * 2)}.toast-notification-content{display:flex;width:100%;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:calc(var(--space-unit) * 2)}.toast-notification-content .toast-notification-text{color:inherit;letter-spacing:0.16px;line-height:1.25rem}.toast-notification-content .toast-notification-text .title{margin-right:calc(var(--space-unit) / 2);font-weight:var(--font-sb)}.close-button{height:1.125rem;padding:0;border:none;background-color:transparent;cursor:pointer}.close-button z-icon{--z-icon-width:1.125rem;--z-icon-height:1.125rem;display:inline-block;height:1.25rem}.close-button:focus:focus-visible{border-radius:50%;box-shadow:var(--shadow-focus-primary);outline:none}:host(.dark){background:var(--color-surface05);color:var(--color-text-inverse);fill:var(--color-inverse-icon)}:host(.dark) .close-button:focus:focus-visible{box-shadow:0 0 0 2px var(--gray900), 0 0 2px 5px var(--blue25)}:host(.accent){background:var(--color-primary01)}:host(.error){background:var(--color-default-error)}:host(.success){background:var(--color-default-success)}:host(.warning){background:var(--color-default-warning)}:host(.accent),:host(.error),:host(.success){color:var(--color-text-inverse);fill:var(--color-inverse-icon)}:host(.warning) .close-button{fill:var(--color-default-icon)}@media (min-width: 768px){:host{width:fit-content;max-width:50vw}.toast-notification-content{flex-wrap:nowrap}}@media (min-width: 1366px){:host{max-width:33vw}}@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%)}}`;const pt={[r.SLIDE_IN_DOWN]:r.SLIDE_OUT_UP,[r.SLIDE_IN_UP]:r.SLIDE_OUT_DOWN,[r.SLIDE_IN_LEFT]:r.SLIDE_OUT_RIGHT,[r.SLIDE_IN_RIGHT]:r.SLIDE_OUT_LEFT};const ht=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow();this.toastClose=n(this,"toastClose",7);this.pauseonfocusloss=true;this.isdraggable=true;this.draggablepercentage=80;this.isCloseEventCalled=false}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)}}}close(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)}}visibilityChangeEventHandler(){if(document.visibilityState==="hidden"){if(this.timeoutHandle){this.onBlur()}}else if(this.elapsedTime){this.onFocus()}}validateAutoclose(){if(!this.autoclose&&!this.closebutton){console.error("At least one between autoclose and closebutton must be present")}}calculateDraggedPercentage(t){const e=this.hostElement.getBoundingClientRect();return Math.round(100*t.deltaX/e.width)}async handleSlideOutDragAnimation(){const{default:t}=await import("./p-Bt1M0wUw.js").then((function(t){return t.h}));this.sliderManager=new t(this.hostElement);this.sliderManager.get("pan").set({direction:t.DIRECTION_HORIZONTAL});this.sliderManager.on("pan",(e=>{this.percentage=this.calculateDraggedPercentage(e);this.hostElement.style.transition="none";if(this.transition){this.hostElement.classList.remove(this.transition)}const n={translate:`translateX(${this.percentage}%)`,translateBack:"translateX(0)"};this.hostElement.style.opacity=`${100-Math.abs(this.percentage)}%`;if(e.eventType===t.DIRECTION_LEFT||e.eventType===t.DIRECTION_RIGHT){this.hostElement.style.transform=n.translate;if(Math.abs(this.percentage)>this.draggablepercentage&&!this.isCloseEventCalled){this.isCloseEventCalled=true;this.close(e.direction===t.DIRECTION_LEFT?r.SLIDE_OUT_LEFT:r.SLIDE_OUT_RIGHT,true)}}if(e.isFinal&&Math.abs(this.percentage)<this.draggablepercentage){this.hostElement.style.transform=n.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.close(pt[this.transition],false)),t)}checkSlottedButton(){this.hasSlottedButton=!!this.hostElement.querySelector("[slot='button']")}componentWillLoad(){this.validateAutoclose();this.checkSlottedButton();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)}}if(this.isdraggable){this.handleSlideOutDragAnimation()}}render(){return i(o,{key:"c014f617bd53be486dda1fa2172130ef9be592a0",style:{"--percentuale":`${this.percentage}%`},class:{[this.transition]:!!this.transition,[this.type]:!!this.type},onAnimationEnd:t=>{if(this.autoclose&&t.animationName.includes("slidein")){this.startClosingTimeout(this.autoclose)}if(t.animationName.includes("slideout")){this.hostElement.parentNode.removeChild(this.hostElement)}}},i("div",{key:"2b0fc9855f7bc18b53993d86f57cd89b42c978a6",class:"toast-notification-container"},i("div",{key:"5c8b59419b7681de8f53f91008da3b518f50aa8d",class:"toast-notification-content"},i("div",{key:"529a5f030878dcd0bd5af77de5b173bca605ce6b",class:"toast-notification-text"},this.heading&&i("span",{key:"6d3f35baedee97f6dcfa724cf2a8c6e2fa2c0bd2",class:"title"},this.heading),i("span",{key:"436716a867110db25aaf9be5904a3569d4eba6a7",class:"message"},i("slot",{key:"495e77fd7d36993fbef8294aa53b7be36a9b36e8",name:"message"},this.message&&i("span",{key:"7444baa70ab2c51685f4d715d5613bf35722b7dd",innerHTML:dt.sanitize(this.message)})))),i("div",{key:"73b62f17af82468596a4c6156b8135d80f3db370",class:"button-container",hidden:!this.hasSlottedButton},i("slot",{key:"085054eff600b85556771740734f17ceab8d769a",name:"button",onSlotchange:()=>this.checkSlottedButton()}))),this.closebutton&&i("button",{key:"3145c42f74cabd0d29fc14840dbdcc7afeee6e83",class:"close-button","aria-label":"Chiudi notifica",onClick:()=>this.close(pt[this.transition],true),onKeyDown:t=>{if(t.code==s.SPACE||t.code==s.ENTER){t.preventDefault();this.close(pt[this.transition],true)}}},i("z-icon",{key:"0eb747dd65066e371130dbe79a41cecdedcdbe87",name:"multiply-circled"}))))}get hostElement(){return this}static get watchers(){return{isdraggable:[{watchPropIsdraggable:0}],autoclose:[{watchPropAutoclose:0}],pauseonfocusloss:[{watchPropPauseonfocusloss:0}]}}static get style(){return mt()}},[257,"z-toast-notification",{heading:[1],message:[1],closebutton:[4],autoclose:[2],pauseonfocusloss:[4],type:[1],isdraggable:[4],draggablepercentage:[2],transition:[1],percentage:[32],hasSlottedButton:[32]},undefined,{isdraggable:[{watchPropIsdraggable:0}],autoclose:[{watchPropAutoclose:0}],pauseonfocusloss:[{watchPropPauseonfocusloss:0}]}]);function gt(){if(typeof customElements==="undefined"){return}const t=["z-toast-notification","z-icon"];t.forEach((t=>{switch(t){case"z-toast-notification":if(!customElements.get(a(t))){customElements.define(a(t),ht)}break;case"z-icon":if(!customElements.get(a(t))){l()}break}}))}const bt=ht;const yt=gt;export{bt as ZToastNotification,yt as defineCustomElement};
8
3
  //# sourceMappingURL=z-toast-notification.js.map