UNPKG

react-film

Version:

React component for showing carousel just like a film strip

3 lines 81.2 kB
"use strict";var ReactFilm=(()=>{var zo=Object.create;var Tt=Object.defineProperty;var Yo=Object.getOwnPropertyDescriptor;var Xo=Object.getOwnPropertyNames;var Ko=Object.getPrototypeOf,Zo=Object.prototype.hasOwnProperty;var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jo=(e,t)=>{for(var r in t)Tt(e,r,{get:t[r],enumerable:!0})},un=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Xo(t))!Zo.call(e,i)&&i!==r&&Tt(e,i,{get:()=>t[i],enumerable:!(n=Yo(t,i))||n.enumerable});return e};var S=(e,t,r)=>(r=e!=null?zo(Ko(e)):{},un(t||!e||!e.__esModule?Tt(r,"default",{value:e,enumerable:!0}):r,e)),Qo=e=>un(Tt({},"__esModule",{value:!0}),e);var Qt=L((ac,Ct)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var i="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(i=n(i,r(a)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var a in i)e.call(i,a)&&i[a]&&(o=n(o,a));return o}function n(i,o){return o?i?i+" "+o:i+o:i}typeof Ct<"u"&&Ct.exports?(t.default=t,Ct.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var pn=L(j=>{"use strict";(function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function U(g){return typeof g=="string"||typeof g=="function"||g===n||g===f||g===o||g===i||g===d||g===y||typeof g=="object"&&g!==null&&(g.$$typeof===v||g.$$typeof===b||g.$$typeof===a||g.$$typeof===s||g.$$typeof===u||g.$$typeof===m||g.$$typeof===E||g.$$typeof===D||g.$$typeof===p)}function H(g){if(typeof g=="object"&&g!==null){var Jt=g.$$typeof;switch(Jt){case t:var xt=g.type;switch(xt){case c:case f:case n:case o:case i:case d:return xt;default:var fn=xt&&xt.$$typeof;switch(fn){case s:case u:case v:case b:case a:return fn;default:return Jt}}case r:return Jt}}}var J=c,z=f,R=s,Te=a,ae=t,he=u,ye=n,Ze=v,l=b,h=r,C=o,x=i,_=d,A=!1;function w(g){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(g)||H(g)===c}function O(g){return H(g)===f}function I(g){return H(g)===s}function F(g){return H(g)===a}function k(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function ie(g){return H(g)===u}function Z(g){return H(g)===n}function Ee(g){return H(g)===v}function Wo(g){return H(g)===b}function Uo(g){return H(g)===r}function $o(g){return H(g)===o}function Vo(g){return H(g)===i}function qo(g){return H(g)===d}j.AsyncMode=J,j.ConcurrentMode=z,j.ContextConsumer=R,j.ContextProvider=Te,j.Element=ae,j.ForwardRef=he,j.Fragment=ye,j.Lazy=Ze,j.Memo=l,j.Portal=h,j.Profiler=C,j.StrictMode=x,j.Suspense=_,j.isAsyncMode=w,j.isConcurrentMode=O,j.isContextConsumer=I,j.isContextProvider=F,j.isElement=k,j.isForwardRef=ie,j.isFragment=Z,j.isLazy=Ee,j.isMemo=Wo,j.isPortal=Uo,j.isProfiler=$o,j.isStrictMode=Vo,j.isSuspense=qo,j.isValidElementType=U,j.typeOf=H})()});var er=L((cc,dn)=>{"use strict";dn.exports=pn()});var vn=L((lc,hn)=>{"use strict";var mn=Object.getOwnPropertySymbols,ea=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable;function ra(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function na(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}hn.exports=na()?Object.assign:function(e,t){for(var r,n=ra(e),i,o=1;o<arguments.length;o++){r=Object(arguments[o]);for(var a in r)ea.call(r,a)&&(n[a]=r[a]);if(mn){i=mn(r);for(var s=0;s<i.length;s++)ta.call(r,i[s])&&(n[i[s]]=r[i[s]])}}return n}});var tr=L((fc,gn)=>{"use strict";var ia="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";gn.exports=ia});var rr=L((uc,yn)=>{yn.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var Tn=L((pc,xn)=>{"use strict";var nr=function(){};En=tr(),St={},_n=rr(),nr=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};var En,St,_n;function bn(e,t,r,n,i){for(var o in e)if(_n(e,o)){var a;try{if(typeof e[o]!="function"){var s=Error((n||"React class")+": "+r+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[o](t,o,n,r,null,En)}catch(f){a=f}if(a&&!(a instanceof Error)&&nr((n||"React class")+": type specification of "+r+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in St)){St[a.message]=!0;var c=i?i():"";nr("Failed "+r+" type: "+a.message+(c??""))}}}bn.resetWarningCache=function(){St={}};xn.exports=bn});var wn=L((dc,Sn)=>{"use strict";var oa=er(),aa=vn(),Ne=tr(),ir=rr(),Cn=Tn(),Me=function(){};Me=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};function wt(){return null}Sn.exports=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,n="@@iterator";function i(l){var h=l&&(r&&l[r]||l[n]);if(typeof h=="function")return h}var o="<<anonymous>>",a={array:u("array"),bigint:u("bigint"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:d(),arrayOf:y,element:b(),elementType:v(),instanceOf:p,node:U(),objectOf:E,oneOf:m,oneOfType:D,shape:J,exact:z};function s(l,h){return l===h?l!==0||1/l===1/h:l!==l&&h!==h}function c(l,h){this.message=l,this.data=h&&typeof h=="object"?h:{},this.stack=""}c.prototype=Error.prototype;function f(l){var h={},C=0;function x(A,w,O,I,F,k,ie){if(I=I||o,k=k||O,ie!==Ne){if(t){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(typeof console<"u"){var Ee=I+":"+O;!h[Ee]&&C<3&&(Me("You are manually calling a React.PropTypes validation function for the `"+k+"` prop on `"+I+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),h[Ee]=!0,C++)}}return w[O]==null?A?w[O]===null?new c("The "+F+" `"+k+"` is marked as required "+("in `"+I+"`, but its value is `null`.")):new c("The "+F+" `"+k+"` is marked as required in "+("`"+I+"`, but its value is `undefined`.")):null:l(w,O,I,F,k)}var _=x.bind(null,!1);return _.isRequired=x.bind(null,!0),_}function u(l){function h(C,x,_,A,w,O){var I=C[x],F=ae(I);if(F!==l){var k=he(I);return new c("Invalid "+A+" `"+w+"` of type "+("`"+k+"` supplied to `"+_+"`, expected ")+("`"+l+"`."),{expectedType:l})}return null}return f(h)}function d(){return f(wt)}function y(l){function h(C,x,_,A,w){if(typeof l!="function")return new c("Property `"+w+"` of component `"+_+"` has invalid PropType notation inside arrayOf.");var O=C[x];if(!Array.isArray(O)){var I=ae(O);return new c("Invalid "+A+" `"+w+"` of type "+("`"+I+"` supplied to `"+_+"`, expected an array."))}for(var F=0;F<O.length;F++){var k=l(O,F,_,A,w+"["+F+"]",Ne);if(k instanceof Error)return k}return null}return f(h)}function b(){function l(h,C,x,_,A){var w=h[C];if(!e(w)){var O=ae(w);return new c("Invalid "+_+" `"+A+"` of type "+("`"+O+"` supplied to `"+x+"`, expected a single ReactElement."))}return null}return f(l)}function v(){function l(h,C,x,_,A){var w=h[C];if(!oa.isValidElementType(w)){var O=ae(w);return new c("Invalid "+_+" `"+A+"` of type "+("`"+O+"` supplied to `"+x+"`, expected a single ReactElement type."))}return null}return f(l)}function p(l){function h(C,x,_,A,w){if(!(C[x]instanceof l)){var O=l.name||o,I=Ze(C[x]);return new c("Invalid "+A+" `"+w+"` of type "+("`"+I+"` supplied to `"+_+"`, expected ")+("instance of `"+O+"`."))}return null}return f(h)}function m(l){if(!Array.isArray(l))return arguments.length>1?Me("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):Me("Invalid argument supplied to oneOf, expected an array."),wt;function h(C,x,_,A,w){for(var O=C[x],I=0;I<l.length;I++)if(s(O,l[I]))return null;var F=JSON.stringify(l,function(ie,Z){var Ee=he(Z);return Ee==="symbol"?String(Z):Z});return new c("Invalid "+A+" `"+w+"` of value `"+String(O)+"` "+("supplied to `"+_+"`, expected one of "+F+"."))}return f(h)}function E(l){function h(C,x,_,A,w){if(typeof l!="function")return new c("Property `"+w+"` of component `"+_+"` has invalid PropType notation inside objectOf.");var O=C[x],I=ae(O);if(I!=="object")return new c("Invalid "+A+" `"+w+"` of type "+("`"+I+"` supplied to `"+_+"`, expected an object."));for(var F in O)if(ir(O,F)){var k=l(O,F,_,A,w+"."+F,Ne);if(k instanceof Error)return k}return null}return f(h)}function D(l){if(!Array.isArray(l))return Me("Invalid argument supplied to oneOfType, expected an instance of array."),wt;for(var h=0;h<l.length;h++){var C=l[h];if(typeof C!="function")return Me("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ye(C)+" at index "+h+"."),wt}function x(_,A,w,O,I){for(var F=[],k=0;k<l.length;k++){var ie=l[k],Z=ie(_,A,w,O,I,Ne);if(Z==null)return null;Z.data&&ir(Z.data,"expectedType")&&F.push(Z.data.expectedType)}var Ee=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new c("Invalid "+O+" `"+I+"` supplied to "+("`"+w+"`"+Ee+"."))}return f(x)}function U(){function l(h,C,x,_,A){return R(h[C])?null:new c("Invalid "+_+" `"+A+"` supplied to "+("`"+x+"`, expected a ReactNode."))}return f(l)}function H(l,h,C,x,_){return new c((l||"React class")+": "+h+" type `"+C+"."+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_+"`.")}function J(l){function h(C,x,_,A,w){var O=C[x],I=ae(O);if(I!=="object")return new c("Invalid "+A+" `"+w+"` of type `"+I+"` "+("supplied to `"+_+"`, expected `object`."));for(var F in l){var k=l[F];if(typeof k!="function")return H(_,A,w,F,he(k));var ie=k(O,F,_,A,w+"."+F,Ne);if(ie)return ie}return null}return f(h)}function z(l){function h(C,x,_,A,w){var O=C[x],I=ae(O);if(I!=="object")return new c("Invalid "+A+" `"+w+"` of type `"+I+"` "+("supplied to `"+_+"`, expected `object`."));var F=aa({},C[x],l);for(var k in F){var ie=l[k];if(ir(l,k)&&typeof ie!="function")return H(_,A,w,k,he(ie));if(!ie)return new c("Invalid "+A+" `"+w+"` key `"+k+"` supplied to `"+_+"`.\nBad object: "+JSON.stringify(C[x],null," ")+` Valid keys: `+JSON.stringify(Object.keys(l),null," "));var Z=ie(O,k,_,A,w+"."+k,Ne);if(Z)return Z}return null}return f(h)}function R(l){switch(typeof l){case"number":case"string":case"undefined":return!0;case"boolean":return!l;case"object":if(Array.isArray(l))return l.every(R);if(l===null||e(l))return!0;var h=i(l);if(h){var C=h.call(l),x;if(h!==l.entries){for(;!(x=C.next()).done;)if(!R(x.value))return!1}else for(;!(x=C.next()).done;){var _=x.value;if(_&&!R(_[1]))return!1}}else return!1;return!0;default:return!1}}function Te(l,h){return l==="symbol"?!0:h?h["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&h instanceof Symbol:!1}function ae(l){var h=typeof l;return Array.isArray(l)?"array":l instanceof RegExp?"object":Te(h,l)?"symbol":h}function he(l){if(typeof l>"u"||l===null)return""+l;var h=ae(l);if(h==="object"){if(l instanceof Date)return"date";if(l instanceof RegExp)return"regexp"}return h}function ye(l){var h=he(l);switch(h){case"array":case"object":return"an "+h;case"boolean":case"date":case"regexp":return"a "+h;default:return h}}function Ze(l){return!l.constructor||!l.constructor.name?o:l.constructor.name}return a.checkPropTypes=Cn,a.resetWarningCache=Cn.resetWarningCache,a.PropTypes=a,a}});var Ce=L((mc,An)=>{On=er(),Rn=!0,An.exports=wn()(On.isElement,Rn);var On,Rn});var B=L((hc,Pn)=>{Pn.exports=window.React});var Li=L((kf,Mi)=>{var Ni=typeof window<"u"?window:self;Mi.exports=Ni.crypto||Ni.msCrypto});var Fi=L((Nf,Di)=>{Di.exports=function(e){if(!e)return Math.random;var t=Math.pow(2,32),r=new Uint32Array(1);return function(){return e.getRandomValues(r)[0]/t}}(Li())});var Gr=L(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.Doctype=G.CDATA=G.Tag=G.Style=G.Script=G.Comment=G.Directive=G.Text=G.Root=G.isTag=G.ElementType=void 0;var se;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(se=G.ElementType||(G.ElementType={}));function Ga(e){return e.type===se.Tag||e.type===se.Script||e.type===se.Style}G.isTag=Ga;G.Root=se.Root;G.Text=se.Text;G.Directive=se.Directive;G.Comment=se.Comment;G.Script=se.Script;G.Style=se.Style;G.Tag=se.Tag;G.CDATA=se.CDATA;G.Doctype=se.Doctype});var Vr=L(T=>{"use strict";var be=T&&T.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),dt=T&&T.__assign||function(){return dt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},dt.apply(this,arguments)};Object.defineProperty(T,"__esModule",{value:!0});T.cloneNode=T.hasChildren=T.isDocument=T.isDirective=T.isComment=T.isText=T.isCDATA=T.isTag=T.Element=T.Document=T.CDATA=T.NodeWithChildren=T.ProcessingInstruction=T.Comment=T.Text=T.DataNode=T.Node=void 0;var oe=Gr(),Ur=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),$r(this,t)},e}();T.Node=Ur;var Ut=function(e){be(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(Ur);T.DataNode=Ut;var Ui=function(e){be(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=oe.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(Ut);T.Text=Ui;var $i=function(e){be(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=oe.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(Ut);T.Comment=$i;var Vi=function(e){be(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=oe.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(Ut);T.ProcessingInstruction=Vi;var $t=function(e){be(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(Ur);T.NodeWithChildren=$t;var qi=function(e){be(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=oe.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}($t);T.CDATA=qi;var zi=function(e){be(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=oe.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}($t);T.Document=zi;var Yi=function(e){be(t,e);function t(r,n,i,o){i===void 0&&(i=[]),o===void 0&&(o=r==="script"?oe.ElementType.Script:r==="style"?oe.ElementType.Style:oe.ElementType.Tag);var a=e.call(this,i)||this;return a.name=r,a.attribs=n,a.type=o,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,o;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(o=r["x-attribsPrefix"])===null||o===void 0?void 0:o[n]}})},enumerable:!1,configurable:!0}),t}($t);T.Element=Yi;function Xi(e){return(0,oe.isTag)(e)}T.isTag=Xi;function Ki(e){return e.type===oe.ElementType.CDATA}T.isCDATA=Ki;function Zi(e){return e.type===oe.ElementType.Text}T.isText=Zi;function Ji(e){return e.type===oe.ElementType.Comment}T.isComment=Ji;function Qi(e){return e.type===oe.ElementType.Directive}T.isDirective=Qi;function eo(e){return e.type===oe.ElementType.Root}T.isDocument=eo;function Wa(e){return Object.prototype.hasOwnProperty.call(e,"children")}T.hasChildren=Wa;function $r(e,t){t===void 0&&(t=!1);var r;if(Zi(e))r=new Ui(e.data);else if(Ji(e))r=new $i(e.data);else if(Xi(e)){var n=t?Wr(e.children):[],i=new Yi(e.name,dt({},e.attribs),n);n.forEach(function(c){return c.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=dt({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=dt({},e["x-attribsPrefix"])),r=i}else if(Ki(e)){var n=t?Wr(e.children):[],o=new qi(n);n.forEach(function(f){return f.parent=o}),r=o}else if(eo(e)){var n=t?Wr(e.children):[],a=new zi(n);n.forEach(function(f){return f.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),r=a}else if(Qi(e)){var s=new Vi(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}T.cloneNode=$r;function Wr(e){for(var t=e.map(function(n){return $r(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var zr=L(me=>{"use strict";var Ua=me&&me.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),$a=me&&me.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ua(t,e,r)};Object.defineProperty(me,"__esModule",{value:!0});me.DomHandler=void 0;var qr=Gr(),xe=Vr();$a(Vr(),me);var to={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},ro=function(){function e(t,r,n){this.dom=[],this.root=new xe.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(n=r,r=to),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??to,this.elementCB=n??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new xe.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(t){this.handleCallback(t)},e.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},e.prototype.onopentag=function(t,r){var n=this.options.xmlMode?qr.ElementType.Tag:void 0,i=new xe.Element(t,r,void 0,n);this.addNode(i),this.tagStack.push(i)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===qr.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var n=new xe.Text(t);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===qr.ElementType.Comment){this.lastNode.data+=t;return}var r=new xe.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new xe.Text(""),r=new xe.CDATA([t]);this.addNode(r),t.parent=r,this.lastNode=t},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(t,r){var n=new xe.ProcessingInstruction(t,r);this.addNode(n)},e.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},e.prototype.addNode=function(t){var r=this.tagStack[this.tagStack.length-1],n=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),n&&(t.prev=n,n.next=t),t.parent=r,this.lastNode=null},e}();me.DomHandler=ro;me.default=ro});var no=L(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.CARRIAGE_RETURN_PLACEHOLDER_REGEX=X.CARRIAGE_RETURN_PLACEHOLDER=X.CARRIAGE_RETURN_REGEX=X.CARRIAGE_RETURN=X.CASE_SENSITIVE_TAG_NAMES_MAP=X.CASE_SENSITIVE_TAG_NAMES=void 0;X.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];X.CASE_SENSITIVE_TAG_NAMES_MAP=X.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{});X.CARRIAGE_RETURN="\r";X.CARRIAGE_RETURN_REGEX=new RegExp(X.CARRIAGE_RETURN,"g");X.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");X.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(X.CARRIAGE_RETURN_PLACEHOLDER,"g")});var Yr=L(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.formatAttributes=io;Ke.escapeSpecialCharacters=za;Ke.revertEscapedCharacters=oo;Ke.formatDOM=ao;var Vt=zr(),mt=no();function Va(e){return mt.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function io(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}function qa(e){e=e.toLowerCase();var t=Va(e);return t||e}function za(e){return e.replace(mt.CARRIAGE_RETURN_REGEX,mt.CARRIAGE_RETURN_PLACEHOLDER)}function oo(e){return e.replace(mt.CARRIAGE_RETURN_PLACEHOLDER_REGEX,mt.CARRIAGE_RETURN)}function ao(e,t,r){t===void 0&&(t=null);for(var n=[],i,o=0,a=e.length;o<a;o++){var s=e[o];switch(s.nodeType){case 1:{var c=qa(s.nodeName);i=new Vt.Element(c,io(s.attributes)),i.children=ao(c==="template"?s.content.childNodes:s.childNodes,i);break}case 3:i=new Vt.Text(oo(s.nodeValue));break;case 8:i=new Vt.Comment(s.nodeValue);break;default:continue}var f=n[o-1]||null;f&&(f.next=i),i.parent=t,i.prev=f,i.next=null,n.push(i)}return r&&(i=new Vt.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),i.next=n[0]||null,i.parent=t,n.unshift(i),n[1]&&(n[1].prev=n[0])),n}});var ho=L(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.default=Ka;var Ya=Yr(),so="html",co="head",qt="body",Xa=/<([a-zA-Z]+[0-9]?)/,lo=/<head[^]*>/i,fo=/<body[^]*>/i,Yt=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Xr=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},uo=typeof window=="object"&&window.DOMParser;typeof uo=="function"&&(po=new uo,mo="text/html",Xr=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),po.parseFromString(e,mo)},Yt=Xr);var po,mo;typeof document=="object"&&document.implementation&&(ht=document.implementation.createHTMLDocument(),Yt=function(e,t){if(t){var r=ht.documentElement.querySelector(t);return r&&(r.innerHTML=e),ht}return ht.documentElement.innerHTML=e,ht});var ht,zt=typeof document=="object"&&document.createElement("template"),Kr;zt&&zt.content&&(Kr=function(e){return zt.innerHTML=e,zt.content.childNodes});function Ka(e){var t,r;e=(0,Ya.escapeSpecialCharacters)(e);var n=e.match(Xa),i=n&&n[1]?n[1].toLowerCase():"";switch(i){case so:{var o=Xr(e);if(!lo.test(e)){var a=o.querySelector(co);(t=a?.parentNode)===null||t===void 0||t.removeChild(a)}if(!fo.test(e)){var a=o.querySelector(qt);(r=a?.parentNode)===null||r===void 0||r.removeChild(a)}return o.querySelectorAll(so)}case co:case qt:{var s=Yt(e).querySelectorAll(i);return fo.test(e)&&lo.test(e)?s[0].parentNode.childNodes:s}default:{if(Kr)return Kr(e);var a=Yt(e,qt).querySelector(qt);return a.childNodes}}}});var vo=L(vt=>{"use strict";var Za=vt&&vt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vt,"__esModule",{value:!0});vt.default=ts;var Ja=Za(ho()),Qa=Yr(),es=/<(![a-zA-Z\s]+)>/;function ts(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(es),r=t?t[1]:void 0;return(0,Qa.formatDOM)((0,Ja.default)(e),null,r)}});var go=L(Xt=>{var rs=0;Xt.SAME=rs;var ns=1;Xt.CAMELCASE=ns;Xt.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}});var Eo=L(ue=>{"use strict";function is(e){return K.hasOwnProperty(e)?K[e]:null}function re(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var K={},os=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];os.forEach(e=>{K[e]=new re(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{K[e]=new re(e,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{K[e]=new re(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{K[e]=new re(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"].forEach(e=>{K[e]=new re(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{K[e]=new re(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{K[e]=new re(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{K[e]=new re(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{K[e]=new re(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jr=/[\-\:]([a-z])/g,Qr=e=>e[1].toUpperCase();["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","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{let t=e.replace(Jr,Qr);K[t]=new re(t,1,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{let t=e.replace(Jr,Qr);K[t]=new re(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(Jr,Qr);K[t]=new re(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{K[e]=new re(e,1,!1,e.toLowerCase(),null,!1,!1)});var as="xlinkHref";K[as]=new re("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{K[e]=new re(e,1,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:ss,SAME:cs,possibleStandardNames:yo}=go(),ls=":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",fs=ls+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",us=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+fs+"]*$")),ps=Object.keys(yo).reduce((e,t)=>{let r=yo[t];return r===cs?e[t]=t:r===ss?e[t.toLowerCase()]=t:e[t]=r,e},{});ue.BOOLEAN=3;ue.BOOLEANISH_STRING=2;ue.NUMERIC=5;ue.OVERLOADED_BOOLEAN=4;ue.POSITIVE_NUMERIC=6;ue.RESERVED=0;ue.STRING=1;ue.getPropertyInfo=is;ue.isCustomAttribute=us;ue.possibleStandardNames=ps});var So=L((vu,Co)=>{var _o=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ds=/\n/g,ms=/^\s*/,hs=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,vs=/^:\s*/,gs=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ys=/^[;\s]*/,Es=/^\s+|\s+$/g,_s=` `,bo="/",xo="*",Ie="",bs="comment",xs="declaration";Co.exports=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var m=p.match(ds);m&&(r+=m.length);var E=p.lastIndexOf(_s);n=~E?p.length-E:n+p.length}function o(){var p={line:r,column:n};return function(m){return m.position=new a(p),u(),m}}function a(p){this.start=p,this.end={line:r,column:n},this.source=t.source}a.prototype.content=e;var s=[];function c(p){var m=new Error(t.source+":"+r+":"+n+": "+p);if(m.reason=p,m.filename=t.source,m.line=r,m.column=n,m.source=e,t.silent)s.push(m);else throw m}function f(p){var m=p.exec(e);if(m){var E=m[0];return i(E),e=e.slice(E.length),m}}function u(){f(ms)}function d(p){var m;for(p=p||[];m=y();)m!==!1&&p.push(m);return p}function y(){var p=o();if(!(bo!=e.charAt(0)||xo!=e.charAt(1))){for(var m=2;Ie!=e.charAt(m)&&(xo!=e.charAt(m)||bo!=e.charAt(m+1));)++m;if(m+=2,Ie===e.charAt(m-1))return c("End of comment missing");var E=e.slice(2,m-2);return n+=2,i(E),e=e.slice(m),n+=2,p({type:bs,comment:E})}}function b(){var p=o(),m=f(hs);if(m){if(y(),!f(vs))return c("property missing ':'");var E=f(gs),D=p({type:xs,property:To(m[0].replace(_o,Ie)),value:E?To(E[0].replace(_o,Ie)):Ie});return f(ys),D}}function v(){var p=[];d(p);for(var m;m=b();)m!==!1&&(p.push(m),d(p));return p}return u(),v()};function To(e){return e?e.replace(Es,Ie):Ie}});var wo=L(gt=>{"use strict";var Ts=gt&&gt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gt,"__esModule",{value:!0});gt.default=Ss;var Cs=Ts(So());function Ss(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,Cs.default)(e),i=typeof t=="function";return n.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(r=r||{},r[a]=s)}}),r}});var Ro=L(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.camelCase=void 0;var ws=/^--[a-zA-Z0-9_-]+$/,Os=/-([a-z])/g,Rs=/^[^-]+$/,As=/^-(webkit|moz|ms|o|khtml)-/,Ps=/^-(ms)-/,Is=function(e){return!e||Rs.test(e)||ws.test(e)},ks=function(e,t){return t.toUpperCase()},Oo=function(e,t){return"".concat(t,"-")},Ns=function(e,t){return t===void 0&&(t={}),Is(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Ps,Oo):e=e.replace(As,Oo),e.replace(Os,ks))};Kt.camelCase=Ns});var Po=L((tn,Ao)=>{"use strict";var Ms=tn&&tn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Ls=Ms(wo()),Ds=Ro();function en(e,t){var r={};return!e||typeof e!="string"||(0,Ls.default)(e,function(n,i){n&&i&&(r[(0,Ds.camelCase)(n,t)]=i)}),r}en.default=en;Ao.exports=en});var rn=L(ne=>{"use strict";var Fs=ne&&ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ne,"__esModule",{value:!0});ne.returnFirstArg=ne.canTextBeChildOfNode=ne.ELEMENTS_WITH_NO_TEXT_CHILDREN=ne.PRESERVE_CUSTOM_ATTRIBUTES=void 0;ne.isCustomComponent=Gs;ne.setStyleProp=Us;var js=B(),Bs=Fs(Po()),Hs=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Gs(e,t){return e.includes("-")?!Hs.has(e):!!(t&&typeof t.is=="string")}var Ws={reactCompat:!0};function Us(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,Bs.default)(e,Ws)}catch{t.style={}}}}ne.PRESERVE_CUSTOM_ATTRIBUTES=Number(js.version.split(".")[0])>=16;ne.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var $s=function(e){return!ne.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};ne.canTextBeChildOfNode=$s;var Vs=function(e){return e};ne.returnFirstArg=Vs});var on=L(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.default=Xs;var yt=Eo(),Io=rn(),qs=["checked","value"],zs=["input","select","textarea"],Ys={reset:!0,submit:!0};function Xs(e,t){e===void 0&&(e={});var r={},n=!!(e.type&&Ys[e.type]);for(var i in e){var o=e[i];if((0,yt.isCustomAttribute)(i)){r[i]=o;continue}var a=i.toLowerCase(),s=ko(a);if(s){var c=(0,yt.getPropertyInfo)(s);switch(qs.includes(s)&&zs.includes(t)&&!n&&(s=ko("default"+a)),r[s]=o,c&&c.type){case yt.BOOLEAN:r[s]=!0;break;case yt.OVERLOADED_BOOLEAN:o===""&&(r[s]=!0);break}continue}Io.PRESERVE_CUSTOM_ATTRIBUTES&&(r[i]=o)}return(0,Io.setStyleProp)(e.style,r),r}function ko(e){return yt.possibleStandardNames[e]}});var Mo=L(_t=>{"use strict";var Ks=_t&&_t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_t,"__esModule",{value:!0});_t.default=No;var an=B(),Zs=Ks(on()),Et=rn(),Js={cloneElement:an.cloneElement,createElement:an.createElement,isValidElement:an.isValidElement};function No(e,t){t===void 0&&(t={});for(var r=[],n=typeof t.replace=="function",i=t.transform||Et.returnFirstArg,o=t.library||Js,a=o.cloneElement,s=o.createElement,c=o.isValidElement,f=e.length,u=0;u<f;u++){var d=e[u];if(n){var y=t.replace(d,u);if(c(y)){f>1&&(y=a(y,{key:y.key||u})),r.push(i(y,d,u));continue}}if(d.type==="text"){var b=!d.data.trim().length;if(b&&d.parent&&!(0,Et.canTextBeChildOfNode)(d.parent)||t.trim&&b)continue;r.push(i(d.data,d,u));continue}var v=d,p={};Qs(v)?((0,Et.setStyleProp)(v.attribs.style,v.attribs),p=v.attribs):v.attribs&&(p=(0,Zs.default)(v.attribs,v.name));var m=void 0;switch(d.type){case"script":case"style":d.children[0]&&(p.dangerouslySetInnerHTML={__html:d.children[0].data});break;case"tag":d.name==="textarea"&&d.children[0]?p.defaultValue=d.children[0].data:d.children&&d.children.length&&(m=No(d.children,t));break;default:continue}f>1&&(p.key=u),r.push(i(s(d.name,p,m),d,u))}return r.length===1?r[0]:r}function Qs(e){return Et.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,Et.isCustomComponent)(e.name,e.attribs)}});var cn=L(q=>{"use strict";var sn=q&&q.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(q,"__esModule",{value:!0});q.htmlToDOM=q.domToReact=q.attributesToProps=q.Text=q.ProcessingInstruction=q.Element=q.Comment=void 0;q.default=rc;var Lo=sn(vo());q.htmlToDOM=Lo.default;var ec=sn(on());q.attributesToProps=ec.default;var Do=sn(Mo());q.domToReact=Do.default;var Zt=zr();Object.defineProperty(q,"Comment",{enumerable:!0,get:function(){return Zt.Comment}});Object.defineProperty(q,"Element",{enumerable:!0,get:function(){return Zt.Element}});Object.defineProperty(q,"ProcessingInstruction",{enumerable:!0,get:function(){return Zt.ProcessingInstruction}});Object.defineProperty(q,"Text",{enumerable:!0,get:function(){return Zt.Text}});var tc={lowerCaseAttributeNames:!1};function rc(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e?(0,Do.default)((0,Lo.default)(e,t?.htmlparser2||tc),t):[]}});var Bo=L((Cu,jo)=>{jo.exports=window.ReactDOM});var ic={};Jo(ic,{BasicFilm:()=>Be,ReactFilm:()=>Wt,retrofit:()=>Go});var br=S(Qt()),xr=S(Ce()),pe=S(B());var cr=S(B());var ar=S(Ce()),we=S(B());var kn=S(B());var In=S(B()),Ot=(0,In.createContext)();function ve(){return(0,kn.useContext)(Ot)}function or(){let{index:e}=ve();return[e]}var Mn=S(B());var Nn=S(B()),Rt=(0,Nn.createContext)();function Se(){let e=(0,Mn.useContext)(Rt);if(!e)throw new Error("react-film: Hooks can only be used inside the component.");return e}function Je(){let{scrollTo:e}=Se();return e}var sr=({"aria-label":e,itemIndex:t})=>{let[r]=or(),n=Je(),i=r===t,o=(0,we.useCallback)(()=>n(()=>t),[t,n]),a=(0,we.useCallback)(s=>{let{keyCode:c}=s;(c===13||c===32)&&(s.preventDefault(),s.stopPropagation(),o())},[o]);return we.default.createElement("li",{className:"react-film__dot"},we.default.createElement("input",{"aria-label":e,"aria-pressed":i,checked:i,className:"react-film__dot__input",onChange:o,onKeyPress:a,role:"button",type:"checkbox"}),we.default.createElement("div",{className:"react-film__dot__handle"}))};sr.defaultProps={"aria-label":void 0};sr.propTypes={"aria-label":ar.default.string,itemIndex:ar.default.number.isRequired};var Ln=sr;var Fn=S(B());var Dn=S(B()),At=(0,Dn.createContext)();function le(){let e=(0,Fn.useContext)(At);if(!e)throw new Error("react-film: Hooks can only be used inside the component.");return e}function Qe(){let{numItems:e}=le();return[e]}var sa=()=>{let[e]=Qe();return cr.default.createElement("ul",{className:"react-film__dots"},new Array(e).fill().map((t,r)=>cr.default.createElement(Ln,{"aria-label":r+1+"",itemIndex:r,key:r})))},jn=sa;var Un=S(Ce()),Le=S(B());var Gn=S(B());var Hn=S(B());var Bn=S(B()),Pt=(0,Bn.createContext)();function et(){let e=(0,Hn.useContext)(Pt);if(!e)throw new Error("react-film: Hooks can only be used inside the component.");return e}function lr(){let{itemContainerCallbackRefWithSubscribe:e}=et();return(0,Gn.useCallback)(t=>e(t),[e])}var Wn=S(B());function fr(){let{scrollableCallbackRefWithSubscribe:e}=et();return(0,Wn.useCallback)(t=>e(t),[e])}var ur=({children:e})=>{let t=lr(),r=fr();return Le.default.createElement("div",{className:"react-film__filmstrip",ref:r},Le.default.createElement("ul",{className:"react-film__filmstrip__list",ref:t},Le.Children.map(e,n=>Le.default.createElement("li",{className:"react-film__filmstrip__item"},n))))};ur.defaultProps={children:void 0};ur.propTypes={children:Un.default.any};var $n=ur;var mr=S(Qt()),rt=S(Ce()),ge=S(B());function Oe(){let{dir:e}=le();return[e]}function tt(){let{scrollBarPercentage:e}=ve();return[e]}function pr(){let{scrollOneLeft:e}=Se();return e}function dr(){let{scrollOneRight:e}=Se();return e}var hr=({"aria-label":e,blurFocusOnClick:t,children:r,mode:n})=>{let[i]=Oe(),[o]=tt(),a=(0,ge.useRef)(),s=n==="left",c=pr(),f=dr(),u=(0,ge.useCallback)(()=>{s?c():f(),t&&a.current&&a.current.blur()},[t,a,s,c,f]),d=(0,ge.useCallback)(b=>{let{key:v}=b;(v==="Enter"||v===" ")&&(b.preventDefault(),s?c():f())},[s,c,f]),y;return i==="rtl"?s?y=o==="100%"||o==="-100%":y=o==="0%":s?y=o==="0%":y=o==="100%",ge.default.createElement("button",{"aria-label":e||(s?"left":"right"),className:(0,mr.default)("react-film__flipper","react-film__main__overlay",{"react-film__flipper--left":s,"react-film__flipper--right":!s}),onClick:u,onKeyDown:d,ref:a,type:"button"},ge.default.createElement("div",{className:(0,mr.default)("react-film__flipper__slider","react-film__main__slider",{"react-film__main__slider--hide":y,"react-film__main__slider--left":s,"react-film__main__slider--right":!s})},ge.default.createElement("div",{className:"react-film__flipper__body"},r)))};hr.defaultProps={"aria-label":void 0,blurFocusOnClick:!1,children:void 0,mode:"left"};hr.propTypes={"aria-label":rt.default.st