UNPKG

room-gallery

Version:

Room Gallery: A 3D carousel - A Responsive 3D Image Slider Implemented in TypeScript as a React Component, Utilizing Vanilla JavaScript and jQuery

2 lines 216 kB
/*! For license information please see RoomGallery.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.RoomGallery=t():e.RoomGallery=t()}(self,(()=>(()=>{"use strict";var e,t,n={188:(e,t,n)=>{n.r(t),n.d(t,{DOWN:()=>i,LEFT:()=>a,RIGHT:()=>o,UP:()=>l,useSwipeable:()=>g});var r=n(540);const a="Left",o="Right",l="Up",i="Down",u={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},s={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},c="mousemove",d="mouseup",f="touchend",p="touchmove",m="touchstart";function h(e,t){if(0===t)return e;const n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function g(e){const{trackMouse:t}=e,n=r.useRef(Object.assign({},s)),g=r.useRef(Object.assign({},u)),v=r.useRef(Object.assign({},g.current));let y;for(y in v.current=Object.assign({},g.current),g.current=Object.assign(Object.assign({},u),e),u)void 0===g.current[y]&&(g.current[y]=u[y]);const[b,w]=r.useMemo((()=>function(e,t){const n=t=>{const n="touches"in t;n&&t.touches.length>1||e(((e,a)=>{a.trackMouse&&!n&&(document.addEventListener(c,r),document.addEventListener(d,v));const{clientX:o,clientY:l}=n?t.touches[0]:t,i=h([o,l],a.rotationAngle);return a.onTouchStartOrOnMouseDown&&a.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),s),{initial:i.slice(),xy:i,start:t.timeStamp||0})}))},r=t=>{e(((e,n)=>{const r="touches"in t;if(r&&t.touches.length>1)return e;if(t.timeStamp-e.start>n.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;const{clientX:s,clientY:c}=r?t.touches[0]:t,[d,f]=h([s,c],n.rotationAngle),p=d-e.xy[0],m=f-e.xy[1],g=Math.abs(p),v=Math.abs(m),y=(t.timeStamp||0)-e.start,b=Math.sqrt(g*g+v*v)/(y||1),w=[p/(y||1),m/(y||1)],k=function(e,t,n,r){return e>t?n>0?o:a:r>0?i:l}(g,v,p,m),S="number"==typeof n.delta?n.delta:n.delta[k.toLowerCase()]||u.delta;if(g<S&&v<S&&!e.swiping)return e;const E={absX:g,absY:v,deltaX:p,deltaY:m,dir:k,event:t,first:e.first,initial:e.initial,velocity:b,vxvy:w};E.first&&n.onSwipeStart&&n.onSwipeStart(E),n.onSwiping&&n.onSwiping(E);let x=!1;return(n.onSwiping||n.onSwiped||n[`onSwiped${k}`])&&(x=!0),x&&n.preventScrollOnSwipe&&n.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:E,swiping:!0})}))},g=t=>{e(((e,n)=>{let r;if(e.swiping&&e.eventData){if(t.timeStamp-e.start<n.swipeDuration){r=Object.assign(Object.assign({},e.eventData),{event:t}),n.onSwiped&&n.onSwiped(r);const a=n[`onSwiped${r.dir}`];a&&a(r)}}else n.onTap&&n.onTap({event:t});return n.onTouchEndOrOnMouseUp&&n.onTouchEndOrOnMouseUp({event:t}),Object.assign(Object.assign(Object.assign({},e),s),{eventData:r})}))},v=e=>{document.removeEventListener(c,r),document.removeEventListener(d,v),g(e)},y=(e,t)=>{let a=()=>{};if(e&&e.addEventListener){const o=Object.assign(Object.assign({},u.touchEventOptions),t.touchEventOptions),l=[[m,n,o],[p,r,Object.assign(Object.assign({},o),t.preventScrollOnSwipe?{passive:!1}:{})],[f,g,o]];l.forEach((([t,n,r])=>e.addEventListener(t,n,r))),a=()=>l.forEach((([t,n])=>e.removeEventListener(t,n)))}return a},b={ref:t=>{null!==t&&e(((e,n)=>{if(e.el===t)return e;const r={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),r.cleanUpTouch=void 0),n.trackTouch&&t&&(r.cleanUpTouch=y(t,n)),Object.assign(Object.assign(Object.assign({},e),{el:t}),r)}))}};return t.trackMouse&&(b.onMouseDown=n),[b,y]}((e=>n.current=e(n.current,g.current)),{trackMouse:t})),[t]);return n.current=function(e,t,n,r){return t.trackTouch&&e.el?e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)}):(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0}))}(n.current,g.current,v.current,w),b}},191:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.kebabize=t.parseWalls=t.parseRooms=t.findItemByPosition=void 0;const r=n(835),a=[r.Direction.n,r.Direction.e,r.Direction.s,r.Direction.w],o=(e,t=0,n,r,a)=>{const o={index:r,visible:!0,direction:n,items:[]};e&&o.items.push(e),a[t]&&a[t].walls&&a[t].walls.push(o)};t.findItemByPosition=(e,t)=>t.find((t=>t.position&&t.position.x===e.x&&e.y==e.y?t:null)),t.parseRooms=function(e,t,n=!1){const r=e.length;let a=e.length;n||(a=Math.ceil((r-2)/2)||1);for(let e=0;e<a;e++){const n={index:e,walls:[]};t.push(n)}},t.parseWalls=function(e,n,l,i={x:0,y:0},u=!1){const s=e.length,c=s>4?s:4,d=Math.ceil((s-2)/2)||1;let f=0,p=0,m=r.Direction.n,h=!1;const g=(e,t)=>{let r={};e&&(r=Object.assign({},e),r.index=t,r.position={x:p,y:f},n.push(r)),o(e?r:null,p,m,t,l)};if(u){o(null,0,r.Direction.w,s,l);for(let t=0;t<s;t++){const n=Object.assign({},e[t]);g(e[t]?n:null,t),p++}o(null,s-1,r.Direction.e,s,l)}else{for(let t=1;t<=c;t++){1===d?(m=a[t-1],f=t-1):t===d+1?(m=r.Direction.e,f=1):t>=d+2&&t<2*d+2?(m=r.Direction.s,f=2):t===2*d+2&&(m=r.Direction.w,f=3),m===r.Direction.w&&0===p&&(h=!0);const n=Object.assign({},e[t-1]);g(e[t-1]?n:null,t-1),t<d?p++:t>d+1&&t<2*d+1&&p--}h||o(null,0,r.Direction.w,c,l)}return(0,t.findItemByPosition)(i,n)},t.kebabize=e=>e.replace(/(?:!\p{Uppercase_Letter})\p{Uppercase_Letter}|\p{Uppercase_Letter}(?!\p{Uppercase_Letter})/gu,"-$&").replace(/^-/,"").toLowerCase()},214:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Item=void 0;const i=o(n(540)),u=n(678),s=l(n(454)),c=(0,i.forwardRef)(((e,t)=>i.default.createElement("img",Object.assign({ref:t},e))));t.Item=({image:e,title:t,description:n,descriptionHtml:r,html:a,video:o,vimeo:l,youtube:d,element:f,HtmlElement:p,position:m,height:h,width:g})=>{var v,y;const{zoom:b,position:w,settings:k}=(0,i.useContext)(u.GalleryContext),[S,E]=(0,i.useState)(!1),x=i.default.createRef(),[_,C]=(0,i.useState)(!1),N=i.default.createRef(),T=i.default.createRef(),O={ALLOWED_ATTR:(null===(v=null==k?void 0:k.sanitizeHtmlOptions)||void 0===v?void 0:v.allowedAttributes)||[],ALLOWED_TAGS:(null===(y=null==k?void 0:k.sanitizeHtmlOptions)||void 0===y?void 0:y.allowedTags)||[],KEEP_CONTENT:!0},M=()=>{E(!0)},P=()=>{C(!0)},I=()=>{if(m&&w)return w.x-m.x<1&&w.x-m.x>-1&&w.y===m.y};function z(){return{width:`min(100%, ${g})`,height:`min(100%, ${h})`}}function D(){return b&&"object"==typeof e&&e.zoom&&I()}function L(){return"room-item"+((()=>{if(m&&w)return w.x==m.x&&w.y===m.y})()?" item-active":"")}function R(){return i.default.createElement(i.default.Fragment,null,(t||n)&&i.default.createElement("div",{className:"item-desc"},t&&i.default.createElement("p",null,t),n&&i.default.createElement("span",null,n)),r&&i.default.createElement("div",{className:"item-desc",dangerouslySetInnerHTML:{__html:k.sanitizeHtml?s.default.sanitize(r,O):r}}))}return(0,i.useEffect)((()=>{x.current&&x.current.complete&&M(),N.current&&N.current.complete&&P()}),[]),f?i.default.createElement("div",{className:L()},f):p?i.default.createElement("div",{className:L(),dangerouslySetInnerHTML:{__html:k.sanitizeHtml?s.default.sanitize(p.innerHTML,O):p.innerHTML}}):a?i.default.createElement("div",{className:L(),dangerouslySetInnerHTML:{__html:k.sanitizeHtml?s.default.sanitize(a,O):a}}):o?i.default.createElement("div",{className:L()},i.default.createElement("div",{className:"item-video"},i.default.createElement("video",{width:null!=g?g:"640",height:null!=h?h:"360",controls:!0},i.default.createElement("source",{src:o}))),R()):l?i.default.createElement("div",{className:L()},i.default.createElement("div",{className:"item-video"},i.default.createElement("iframe",{title:"vimeo-player",src:l,width:null!=g?g:"640",height:null!=h?h:"360",frameBorder:"0",allowFullScreen:!0})),R()):d?i.default.createElement("div",{className:L()},i.default.createElement("div",{className:"item-video"},i.default.createElement("iframe",{width:null!=g?g:"560",height:null!=h?h:"315",src:d,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})),R()):i.default.createElement("div",{className:L()},i.default.createElement("div",{className:"item-image"},"object"==typeof e&&!S&&i.default.createElement(c,{ref:T,className:"item-prompt-image",src:null==e?void 0:e.prompt,style:z()}),"string"==typeof e?i.default.createElement(c,{className:"item-original-image",ref:x,onLoad:M,src:e,style:z()}):("object"==typeof e&&(e.prompt&&I()||!e.prompt)||S)&&i.default.createElement(c,{className:"item-original-image",ref:x,onLoad:M,src:null==e?void 0:e.original,style:z()}),"object"==typeof e&&D()&&i.default.createElement(c,{ref:N,className:"item-zoom-image",onLoad:P,style:Object.assign(Object.assign({},z()),{opacity:_&&D()?1:0}),src:e.zoom})),R())}},287:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,h(w,v.prototype),w.isPureReactComponent=!0;var k=Array.isArray,S=Object.prototype.hasOwnProperty,E={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var a,o={},l=null,i=null;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(l=""+t.key),t)S.call(t,a)&&!x.hasOwnProperty(a)&&(o[a]=t[a]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(a in u=e.defaultProps)void 0===o[a]&&(o[a]=u[a]);return{$$typeof:n,type:e,key:l,ref:i,props:o,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,a,o,l){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var u=!1;if(null===e)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return l=l(u=e),e=""===o?"."+T(u,0):o,k(l)?(a="",null!=e&&(a=e.replace(N,"$&/")+"/"),O(l,t,a,"",(function(e){return e}))):null!=l&&(C(l)&&(l=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(l,a+(!l.key||u&&u.key===l.key?"":(""+l.key).replace(N,"$&/")+"/")+e)),t.push(l)),1;if(u=0,o=""===o?".":o+":",k(e))for(var s=0;s<e.length;s++){var c=o+T(i=e[s],s);u+=O(i,t,a,c,l)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(i=e.next()).done;)u+=O(i=i.value,t,a,c=o+T(i,s++),l);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function M(e,t,n){if(null==e)return e;var r=[],a=0;return O(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},z={transition:null},D={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:z,ReactCurrentOwner:E};t.Children={map:M,forEach:function(e,t,n){M(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=a,t.Profiler=l,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=h({},e.props),o=e.key,l=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,i=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)S.call(t,s)&&!x.hasOwnProperty(s)&&(a[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}return{$$typeof:n,type:e.type,key:o,ref:l,props:a,_owner:i}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=z.transition;z.transition={};try{e()}finally{z.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},296:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomOutIcon=t.ZoomInIcon=t.LightOffIcon=t.PrevIcon=t.NextIcon=void 0;const a=r(n(540));t.NextIcon=()=>a.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"768",height:"768",viewBox:"0 0 768 768"},a.default.createElement("path",{fill:"currentColor",d:"M310.624 598.624l192-192c12.512-12.512 12.512-32.768 0-45.248l-192-192c-12.512-12.512-32.768-12.512-45.248 0s-12.512 32.768 0 45.248l169.376 169.376-169.376 169.376c-12.512 12.512-12.512 32.768 0 45.248s32.768 12.512 45.248 0z"})),t.PrevIcon=()=>a.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"768",height:"768",viewBox:"0 0 768 768"},a.default.createElement("path",{fill:"currentColor",d:"M502.624 553.376l-169.376-169.376 169.376-169.376c12.512-12.512 12.512-32.768 0-45.248s-32.768-12.512-45.248 0l-192 192c-12.512 12.512-12.512 32.768 0 45.248l192 192c12.512 12.512 32.768 12.512 45.248 0s12.512-32.768 0-45.248z"})),t.LightOffIcon=()=>a.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"768",height:"768",viewBox:"0 0 768 768"},a.default.createElement("g",null,a.default.createElement("path",{fill:"currentColor",d:"M384 0c159.050 0 288 128.951 288 288 0 113.139-65.26 210.797-160 257.879v94.121c0 53.020-42.98 96-96 96h-64c-53.019 0-96-42.98-96-96v-94.121c-94.741-47.081-160-144.74-160-257.879 0-159.049 128.951-288 288-288zM448 544v-18.784c0-13.034 7.907-24.768 19.988-29.661 82.156-33.271 140.013-113.642 140.013-207.555 0-123.703-100.298-224-224-224s-224 100.297-224 224c0 93.913 57.855 174.285 140.012 207.555 12.082 4.893 19.988 16.627 19.988 29.661v18.784h128zM320 608v32c0 17.674 14.326 32 32 32h64c17.674 0 32-14.327 32-32v-32h-128z"}),a.default.createElement("path",{fill:"currentColor",d:"M384 192c-53.014 0-96 42.985-96 96 0 17.673-14.327 32-32 32s-32-14.327-32-32c0-88.361 71.639-160 160-160 17.674 0 32 14.327 32 32s-14.326 32-32 32z"}))),t.ZoomInIcon=()=>a.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"768",height:"768",viewBox:"0 0 768 768"},a.default.createElement("path",{fill:"currentColor",d:"M352 128c-123.712 0-224 100.288-224 224s100.288 224 224 224c123.712 0 224-100.288 224-224s-100.288-224-224-224zM64 352c0-159.058 128.942-288 288-288 159.059 0 288 128.942 288 288 0 159.059-128.941 288-288 288-159.058 0-288-128.941-288-288z"}),a.default.createElement("path",{fill:"currentColor",d:"M510.173 510.173c12.496-12.496 32.759-12.496 45.254 0l139.2 139.2c12.496 12.496 12.496 32.759 0 45.254s-32.759 12.496-45.254 0l-139.2-139.2c-12.496-12.496-12.496-32.759 0-45.254z"}),a.default.createElement("path",{fill:"currentColor",d:"M352 224c17.674 0 32 14.327 32 32v192c0 17.674-14.327 32-32 32s-32-14.326-32-32v-192c0-17.673 14.326-32 32-32z"}),a.default.createElement("path",{fill:"currentColor",d:"M224 352c0-17.674 14.327-32 32-32h192c17.674 0 32 14.327 32 32s-14.326 32-32 32h-192c-17.673 0-32-14.327-32-32z"})),t.ZoomOutIcon=()=>a.default.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"768",height:"768",viewBox:"0 0 768 768"},a.default.createElement("path",{fill:"currentColor",d:"M352 128c-123.712 0-224 100.288-224 224s100.288 224 224 224c123.712 0 224-100.288 224-224s-100.288-224-224-224zM64 352c0-159.058 128.942-288 288-288 159.059 0 288 128.942 288 288 0 159.059-128.941 288-288 288-159.058 0-288-128.941-288-288z"}),a.default.createElement("path",{fill:"currentColor",d:"M510.173 510.173c12.496-12.496 32.759-12.496 45.254 0l139.2 139.2c12.496 12.496 12.496 32.759 0 45.254s-32.759 12.496-45.254 0l-139.2-139.2c-12.496-12.496-12.496-32.759 0-45.254z"}),a.default.createElement("path",{fill:"currentColor",d:"M224 352c0-17.674 14.327-32 32-32h192c17.674 0 32 14.327 32 32s-14.326 32-32 32h-192c-17.673 0-32-14.327-32-32z"}))},454:e=>{const{entries:t,setPrototypeOf:n,isFrozen:r,getPrototypeOf:a,getOwnPropertyDescriptor:o}=Object;let{freeze:l,seal:i,create:u}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),i||(i=function(e){return e}),s||(s=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});const d=C(Array.prototype.forEach),f=C(Array.prototype.lastIndexOf),p=C(Array.prototype.pop),m=C(Array.prototype.push),h=C(Array.prototype.splice),g=C(String.prototype.toLowerCase),v=C(String.prototype.toString),y=C(String.prototype.match),b=C(String.prototype.replace),w=C(String.prototype.indexOf),k=C(String.prototype.trim),S=C(Object.prototype.hasOwnProperty),E=C(RegExp.prototype.test),x=(_=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(_,t)});var _;function C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return s(e,t,r)}}function N(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;n&&n(e,null);let o=t.length;for(;o--;){let n=t[o];if("string"==typeof n){const e=a(n);e!==n&&(r(t)||(t[o]=e),n=e)}e[n]=!0}return e}function T(e){for(let t=0;t<e.length;t++)S(e,t)||(e[t]=null);return e}function O(e){const n=u(null);for(const[r,a]of t(e))S(e,r)&&(Array.isArray(a)?n[r]=T(a):a&&"object"==typeof a&&a.constructor===Object?n[r]=O(a):n[r]=a);return n}function M(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return C(n.get);if("function"==typeof n.value)return C(n.value)}e=a(e)}return function(){return null}}const P=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=l(["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"]),D=l(["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"]),L=l(["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"]),R=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),A=l(["#text"]),F=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),B=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),j=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=i(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=i(/<%[\w\W]*|[\w\W]*%>/gm),$=i(/\$\{[\w\W]*/gm),V=i(/^data-[\-\w.\u00B7-\uFFFF]+$/),G=i(/^aria-[\-\w]+$/),q=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=i(/^(?:\w+script|data):/i),Q=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=i(/^html$/i),K=i(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:K,DATA_ATTR:V,DOCTYPE_NAME:Y,ERB_EXPR:W,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:Z,MUSTACHE_EXPR:H,TMPLIT_EXPR:$});const J=function(){return"undefined"==typeof window?null:window};var ee=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J();const r=t=>e(t);if(r.version="3.2.4",r.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return r.isSupported=!1,r;let{document:a}=n;const o=a,i=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:c,Node:_,Element:C,NodeFilter:T,NamedNodeMap:H=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:W,DOMParser:$,trustedTypes:V}=n,G=C.prototype,Z=M(G,"cloneNode"),Q=M(G,"remove"),K=M(G,"nextSibling"),ee=M(G,"childNodes"),te=M(G,"parentNode");if("function"==typeof c){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let ne,re="";const{implementation:ae,createNodeIterator:oe,createDocumentFragment:le,getElementsByTagName:ie}=a,{importNode:ue}=o;let se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof t&&"function"==typeof te&&ae&&void 0!==ae.createHTMLDocument;const{MUSTACHE_EXPR:ce,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:pe,ARIA_ATTR:me,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ve}=X;let{IS_ALLOWED_URI:ye}=X,be=null;const we=N({},[...P,...I,...z,...L,...A]);let ke=null;const Se=N({},[...F,...B,...U,...j]);let Ee=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xe=null,_e=null,Ce=!0,Ne=!0,Te=!1,Oe=!0,Me=!1,Pe=!0,Ie=!1,ze=!1,De=!1,Le=!1,Re=!1,Ae=!1,Fe=!0,Be=!1,Ue=!0,je=!1,He={},We=null;const $e=N({},["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 Ve=null;const Ge=N({},["audio","video","img","source","image","track"]);let qe=null;const Ze=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Ye="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml";let Xe=Ke,Je=!1,et=null;const tt=N({},[Qe,Ye,Ke],v);let nt=N({},["mi","mo","mn","ms","mtext"]),rt=N({},["annotation-xml"]);const at=N({},["title","style","font","a","script"]);let ot=null;const lt=["application/xhtml+xml","text/html"];let it=null,ut=null;const st=a.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ut||ut!==e){if(e&&"object"==typeof e||(e={}),e=O(e),ot=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,it="application/xhtml+xml"===ot?v:g,be=S(e,"ALLOWED_TAGS")?N({},e.ALLOWED_TAGS,it):we,ke=S(e,"ALLOWED_ATTR")?N({},e.ALLOWED_ATTR,it):Se,et=S(e,"ALLOWED_NAMESPACES")?N({},e.ALLOWED_NAMESPACES,v):tt,qe=S(e,"ADD_URI_SAFE_ATTR")?N(O(Ze),e.ADD_URI_SAFE_ATTR,it):Ze,Ve=S(e,"ADD_DATA_URI_TAGS")?N(O(Ge),e.ADD_DATA_URI_TAGS,it):Ge,We=S(e,"FORBID_CONTENTS")?N({},e.FORBID_CONTENTS,it):$e,xe=S(e,"FORBID_TAGS")?N({},e.FORBID_TAGS,it):{},_e=S(e,"FORBID_ATTR")?N({},e.FORBID_ATTR,it):{},He=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,Ne=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Me=e.SAFE_FOR_TEMPLATES||!1,Pe=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Le=e.RETURN_DOM||!1,Re=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Fe=!1!==e.SANITIZE_DOM,Be=e.SANITIZE_NAMED_PROPS||!1,Ue=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||q,Xe=e.NAMESPACE||Ke,nt=e.MATHML_TEXT_INTEGRATION_POINTS||nt,rt=e.HTML_INTEGRATION_POINTS||rt,Ee=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ee.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ee.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ee.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Ne=!1),Re&&(Le=!0),He&&(be=N({},A),ke=[],!0===He.html&&(N(be,P),N(ke,F)),!0===He.svg&&(N(be,I),N(ke,B),N(ke,j)),!0===He.svgFilters&&(N(be,z),N(ke,B),N(ke,j)),!0===He.mathMl&&(N(be,L),N(ke,U),N(ke,j))),e.ADD_TAGS&&(be===we&&(be=O(be)),N(be,e.ADD_TAGS,it)),e.ADD_ATTR&&(ke===Se&&(ke=O(ke)),N(ke,e.ADD_ATTR,it)),e.ADD_URI_SAFE_ATTR&&N(qe,e.ADD_URI_SAFE_ATTR,it),e.FORBID_CONTENTS&&(We===$e&&(We=O(We)),N(We,e.FORBID_CONTENTS,it)),Ue&&(be["#text"]=!0),Ie&&N(be,["html","head","body"]),be.table&&(N(be,["tbody"]),delete xe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(V,i)),null!==ne&&"string"==typeof re&&(re=ne.createHTML(""));l&&l(e),ut=e}},ft=N({},[...I,...z,...D]),pt=N({},[...L,...R]),mt=function(e){m(r.removed,{element:e});try{te(e).removeChild(e)}catch(t){Q(e)}},ht=function(e,t){try{m(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Le||Re)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},gt=function(e){let t=null,n=null;if(De)e="<remove></remove>"+e;else{const t=y(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ot&&Xe===Ke&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ne?ne.createHTML(e):e;if(Xe===Ke)try{t=(new $).parseFromString(r,ot)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Je?re:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),Xe===Ke?ie.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:o},vt=function(e){return oe.call(e.ownerDocument||e,e,T.SHOW_ELEMENT|T.SHOW_COMMENT|T.SHOW_TEXT|T.SHOW_PROCESSING_INSTRUCTION|T.SHOW_CDATA_SECTION,null)},yt=function(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof H)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof _&&e instanceof _};function wt(e,t,n){d(e,(e=>{e.call(r,t,n,ut)}))}const kt=function(e){let t=null;if(wt(se.beforeSanitizeElements,e,null),yt(e))return mt(e),!0;const n=it(e.nodeName);if(wt(se.uponSanitizeElement,e,{tagName:n,allowedTags:be}),e.hasChildNodes()&&!bt(e.firstElementChild)&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return mt(e),!0;if(7===e.nodeType)return mt(e),!0;if(Pe&&8===e.nodeType&&E(/<[/\w]/g,e.data))return mt(e),!0;if(!be[n]||xe[n]){if(!xe[n]&&Et(n)){if(Ee.tagNameCheck instanceof RegExp&&E(Ee.tagNameCheck,n))return!1;if(Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(n))return!1}if(Ue&&!We[n]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const a=Z(n[r],!0);a.__removalCount=(e.__removalCount||0)+1,t.insertBefore(a,K(e))}}return mt(e),!0}return e instanceof C&&!function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});const n=g(e.tagName),r=g(t.tagName);return!!et[e.namespaceURI]&&(e.namespaceURI===Ye?t.namespaceURI===Ke?"svg"===n:t.namespaceURI===Qe?"svg"===n&&("annotation-xml"===r||nt[r]):Boolean(ft[n]):e.namespaceURI===Qe?t.namespaceURI===Ke?"math"===n:t.namespaceURI===Ye?"math"===n&&rt[r]:Boolean(pt[n]):e.namespaceURI===Ke?!(t.namespaceURI===Ye&&!rt[r])&&!(t.namespaceURI===Qe&&!nt[r])&&!pt[n]&&(at[n]||!ft[n]):!("application/xhtml+xml"!==ot||!et[e.namespaceURI]))}(e)?(mt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!E(/<\/no(script|embed|frames)/i,e.innerHTML)?(Me&&3===e.nodeType&&(t=e.textContent,d([ce,de,fe],(e=>{t=b(t,e," ")})),e.textContent!==t&&(m(r.removed,{element:e.cloneNode()}),e.textContent=t)),wt(se.afterSanitizeElements,e,null),!1):(mt(e),!0)},St=function(e,t,n){if(Fe&&("id"===t||"name"===t)&&(n in a||n in st))return!1;if(Ne&&!_e[t]&&E(pe,t));else if(Ce&&E(me,t));else if(!ke[t]||_e[t]){if(!(Et(e)&&(Ee.tagNameCheck instanceof RegExp&&E(Ee.tagNameCheck,e)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(e))&&(Ee.attributeNameCheck instanceof RegExp&&E(Ee.attributeNameCheck,t)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(t))||"is"===t&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&E(Ee.tagNameCheck,n)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(n))))return!1}else if(qe[t]);else if(E(ye,b(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(n,"data:")||!Ve[e])if(Te&&!E(he,b(n,ge,"")));else if(n)return!1;return!0},Et=function(e){return"annotation-xml"!==e&&y(e,ve)},xt=function(e){wt(se.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||yt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let a=t.length;for(;a--;){const o=t[a],{name:l,namespaceURI:i,value:u}=o,s=it(l);let c="value"===l?u:k(u);if(n.attrName=s,n.attrValue=c,n.keepAttr=!0,n.forceKeepAttr=void 0,wt(se.uponSanitizeAttribute,e,n),c=n.attrValue,!Be||"id"!==s&&"name"!==s||(ht(l,e),c="user-content-"+c),Pe&&E(/((--!?|])>)|<\/(style|title)/i,c)){ht(l,e);continue}if(n.forceKeepAttr)continue;if(ht(l,e),!n.keepAttr)continue;if(!Oe&&E(/\/>/i,c)){ht(l,e);continue}Me&&d([ce,de,fe],(e=>{c=b(c,e," ")}));const f=it(e.nodeName);if(St(f,s,c)){if(ne&&"object"==typeof V&&"function"==typeof V.getAttributeType)if(i);else switch(V.getAttributeType(f,s)){case"TrustedHTML":c=ne.createHTML(c);break;case"TrustedScriptURL":c=ne.createScriptURL(c)}try{i?e.setAttributeNS(i,l,c):e.setAttribute(l,c),yt(e)?mt(e):p(r.removed)}catch(e){}}}wt(se.afterSanitizeAttributes,e,null)},_t=function e(t){let n=null;const r=vt(t);for(wt(se.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)wt(se.uponSanitizeShadowNode,n,null),kt(n),xt(n),n.content instanceof s&&e(n.content);wt(se.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,l=null,i=null;if(Je=!e,Je&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!r.isSupported)return e;if(ze||dt(t),r.removed=[],"string"==typeof e&&(je=!1),je){if(e.nodeName){const t=it(e.nodeName);if(!be[t]||xe[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof _)n=gt("\x3c!----\x3e"),a=n.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!Le&&!Me&&!Ie&&-1===e.indexOf("<"))return ne&&Ae?ne.createHTML(e):e;if(n=gt(e),!n)return Le?null:Ae?re:""}n&&De&&mt(n.firstChild);const u=vt(je?e:n);for(;l=u.nextNode();)kt(l),xt(l),l.content instanceof s&&_t(l.content);if(je)return e;if(Le){if(Re)for(i=le.call(n.ownerDocument);n.firstChild;)i.appendChild(n.firstChild);else i=n;return(ke.shadowroot||ke.shadowrootmode)&&(i=ue.call(o,i,!0)),i}let c=Ie?n.outerHTML:n.innerHTML;return Ie&&be["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&E(Y,n.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+c),Me&&d([ce,de,fe],(e=>{c=b(c,e," ")})),ne&&Ae?ne.createHTML(c):c},r.setConfig=function(){dt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ze=!0},r.clearConfig=function(){ut=null,ze=!1},r.isValidAttribute=function(e,t,n){ut||dt({});const r=it(e),a=it(t);return St(r,a,n)},r.addHook=function(e,t){"function"==typeof t&&m(se[e],t)},r.removeHook=function(e,t){if(void 0!==t){const n=f(se[e],t);return-1===n?void 0:h(se[e],n,1)[0]}return p(se[e])},r.removeHooks=function(e){se[e]=[]},r.removeAllHooks=function(){se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();e.exports=ee},463:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,l=a>>>1;r<l;){var i=2*(r+1)-1,u=e[i],s=i+1,c=e[s];if(0>o(u,n))s<a&&0>o(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[i]=n,r=i);else{if(!(s<a&&0>o(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();t.unstable_now=function(){return i.now()-u}}var s=[],c=[],d=1,f=null,p=3,m=!1,h=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function k(e){if(g=!1,w(e),!h)if(null!==r(s))h=!0,z(S);else{var t=r(c);null!==t&&D(k,t.startTime-e)}}function S(e,n){h=!1,g&&(g=!1,y(C),C=-1),m=!0;var o=p;try{for(w(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!O());){var l=f.callback;if("function"==typeof l){f.callback=null,p=f.priorityLevel;var i=l(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof i?f.callback=i:f===r(s)&&a(s),w(n)}else a(s);f=r(s)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&D(k,d.startTime-n),u=!1}return u}finally{f=null,p=o,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,x=!1,_=null,C=-1,N=5,T=-1;function O(){return!(t.unstable_now()-T<N)}function M(){if(null!==_){var e=t.unstable_now();T=e;var n=!0;try{n=_(!0,e)}finally{n?E():(x=!1,_=null)}}else x=!1}if("function"==typeof b)E=function(){b(M)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,I=P.port2;P.port1.onmessage=M,E=function(){I.postMessage(null)}}else E=function(){v(M,0)};function z(e){_=e,x||(x=!0,E())}function D(e,n){C=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,z(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,a,o){var l=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?l+o:l,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:i=o+i,sortIndex:-1},o>l?(e.sortIndex=o,n(c,e),null===r(s)&&e===r(c)&&(g?(y(C),C=-1):g=!0,D(k,o-l))):(e.sortIndex=i,n(s,e),h||m||(h=!0,z(S))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},540:(e,t,n)=>{e.exports=n(287)},551:(e,t,n)=>{var r=n(540),a=n(982);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,i={};function u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(i[e]=t,e=0;e<t.length;e++)l.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function h(e,t,n,r,a,o,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(m,e)||!d.call(p,e)&&(f.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi un