@cartbot/plate-search 3.0.9 → 3.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/js/plate-search.js +5 -5
- package/dist/js/plate-search.es.js +498 -492
- package/dist/js/plate-search.js +5 -5
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
(function(_e,ie){typeof exports=="object"&&typeof module<"u"?ie(exports):typeof define=="function"&&define.amd?define(["exports"],ie):(_e=typeof globalThis<"u"?globalThis:_e||self,ie(_e.PlateSearch={}))})(this,function(_e){"use strict";var Go;var ie,k,pr,ge,hr,fr,mr,_r,xt,kt,At,gr,Oe={},vr=[],_n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pe=Array.isArray;function oe(e,t){for(var r in t)e[r]=t[r];return e}function Et(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,r){var o,n,i,l={};for(i in t)i=="key"?o=t[i]:i=="ref"?n=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?ie.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)l[i]===void 0&&(l[i]=e.defaultProps[i]);return De(e,l,o,n,null)}function De(e,t,r,o,n){var i={type:e,props:t,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n??++pr,__i:-1,__u:0};return n==null&&k.vnode!=null&&k.vnode(i),i}function wr(){return{current:null}}function b(e){return e.children}function ee(e,t){this.props=e,this.context=t}function ye(e,t){if(t==null)return e.__?ye(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ye(e):null}function br(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return br(e)}}function Tt(e){(!e.__d&&(e.__d=!0)&&ge.push(e)&&!tt.__r++||hr!=k.debounceRendering)&&((hr=k.debounceRendering)||fr)(tt)}function tt(){for(var e,t,r,o,n,i,l,d=1;ge.length;)ge.length>d&&ge.sort(mr),e=ge.shift(),d=ge.length,e.__d&&(r=void 0,n=(o=(t=e).__v).__e,i=[],l=[],t.__P&&((r=oe({},o)).__v=o.__v+1,k.vnode&&k.vnode(r),St(t.__P,r,o,t.__n,t.__P.namespaceURI,32&o.__u?[n]:null,i,n??ye(o),!!(32&o.__u),l),r.__v=o.__v,r.__.__k[r.__i]=r,Er(i,r,l),r.__e!=n&&br(r)));tt.__r=0}function yr(e,t,r,o,n,i,l,d,h,s,m){var c,y,_,A,H,S,T=o&&o.__k||vr,N=t.length;for(h=gn(r,t,T,h,N),c=0;c<N;c++)(_=r.__k[c])!=null&&(y=_.__i==-1?Oe:T[_.__i]||Oe,_.__i=c,S=St(e,_,y,n,i,l,d,h,s,m),A=_.__e,_.ref&&y.ref!=_.ref&&(y.ref&&Ct(y.ref,null,_),m.push(_.ref,_.__c||A,_)),H==null&&A!=null&&(H=A),4&_.__u||y.__k===_.__k?h=xr(_,h,e):typeof _.type=="function"&&S!==void 0?h=S:A&&(h=A.nextSibling),_.__u&=-7);return r.__e=H,h}function gn(e,t,r,o,n){var i,l,d,h,s,m=r.length,c=m,y=0;for(e.__k=new Array(n),i=0;i<n;i++)(l=t[i])!=null&&typeof l!="boolean"&&typeof l!="function"?(h=i+y,(l=e.__k[i]=typeof l=="string"||typeof l=="number"||typeof l=="bigint"||l.constructor==String?De(null,l,null,null,null):Pe(l)?De(b,{children:l},null,null,null):l.constructor==null&&l.__b>0?De(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,d=null,(s=l.__i=vn(l,r,h,c))!=-1&&(c--,(d=r[s])&&(d.__u|=2)),d==null||d.__v==null?(s==-1&&(n>m?y--:n<m&&y++),typeof l.type!="function"&&(l.__u|=4)):s!=h&&(s==h-1?y--:s==h+1?y++:(s>h?y--:y++,l.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<m;i++)(d=r[i])!=null&&!(2&d.__u)&&(d.__e==o&&(o=ye(d)),Sr(d,d));return o}function xr(e,t,r){var o,n;if(typeof e.type=="function"){for(o=e.__k,n=0;o&&n<o.length;n++)o[n]&&(o[n].__=e,t=xr(o[n],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=ye(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function le(e,t){return t=t||[],e==null||typeof e=="boolean"||(Pe(e)?e.some(function(r){le(r,t)}):t.push(e)),t}function vn(e,t,r,o){var n,i,l=e.key,d=e.type,h=t[r];if(h===null&&e.key==null||h&&l==h.key&&d==h.type&&!(2&h.__u))return r;if(o>(h!=null&&!(2&h.__u)?1:0))for(n=r-1,i=r+1;n>=0||i<t.length;){if(n>=0){if((h=t[n])&&!(2&h.__u)&&l==h.key&&d==h.type)return n;n--}if(i<t.length){if((h=t[i])&&!(2&h.__u)&&l==h.key&&d==h.type)return i;i++}}return-1}function kr(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||_n.test(t)?r:r+"px"}function rt(e,t,r,o,n){var i,l;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)r&&t in r||kr(e.style,t,"");if(r)for(t in r)o&&r[t]==o[t]||kr(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(_r,"$1")),l=t.toLowerCase(),t=l in e||t=="onFocusOut"||t=="onFocusIn"?l.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?o?r.u=o.u:(r.u=xt,e.addEventListener(t,i?At:kt,i)):e.removeEventListener(t,i?At:kt,i);else{if(n=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Ar(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=xt++;else if(t.t<r.u)return;return r(k.event?k.event(t):t)}}}function St(e,t,r,o,n,i,l,d,h,s){var m,c,y,_,A,H,S,T,N,B,L,q,J,Se,ne,ue,me,M=t.type;if(t.constructor!=null)return null;128&r.__u&&(h=!!(32&r.__u),i=[d=t.__e=r.__e]),(m=k.__b)&&m(t);e:if(typeof M=="function")try{if(T=t.props,N="prototype"in M&&M.prototype.render,B=(m=M.contextType)&&o[m.__c],L=m?B?B.props.value:m.__:o,r.__c?S=(c=t.__c=r.__c).__=c.__E:(N?t.__c=c=new M(T,L):(t.__c=c=new ee(T,L),c.constructor=M,c.render=bn),B&&B.sub(c),c.props=T,c.state||(c.state={}),c.context=L,c.__n=o,y=c.__d=!0,c.__h=[],c._sb=[]),N&&c.__s==null&&(c.__s=c.state),N&&M.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=oe({},c.__s)),oe(c.__s,M.getDerivedStateFromProps(T,c.__s))),_=c.props,A=c.state,c.__v=t,y)N&&M.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),N&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(N&&M.getDerivedStateFromProps==null&&T!==_&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(T,L),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(T,c.__s,L)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(c.props=T,c.state=c.__s,c.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Q){Q&&(Q.__=t)}),q=0;q<c._sb.length;q++)c.__h.push(c._sb[q]);c._sb=[],c.__h.length&&l.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(T,c.__s,L),N&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(_,A,H)})}if(c.context=L,c.props=T,c.__P=e,c.__e=!1,J=k.__r,Se=0,N){for(c.state=c.__s,c.__d=!1,J&&J(t),m=c.render(c.props,c.state,c.context),ne=0;ne<c._sb.length;ne++)c.__h.push(c._sb[ne]);c._sb=[]}else do c.__d=!1,J&&J(t),m=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++Se<25);c.state=c.__s,c.getChildContext!=null&&(o=oe(oe({},o),c.getChildContext())),N&&!y&&c.getSnapshotBeforeUpdate!=null&&(H=c.getSnapshotBeforeUpdate(_,A)),ue=m,m!=null&&m.type===b&&m.key==null&&(ue=Tr(m.props.children)),d=yr(e,Pe(ue)?ue:[ue],t,r,o,n,i,l,d,h,s),c.base=t.__e,t.__u&=-161,c.__h.length&&l.push(c),S&&(c.__E=c.__=null)}catch(Q){if(t.__v=null,h||i!=null)if(Q.then){for(t.__u|=h?160:128;d&&d.nodeType==8&&d.nextSibling;)d=d.nextSibling;i[i.indexOf(d)]=null,t.__e=d}else for(me=i.length;me--;)Et(i[me]);else t.__e=r.__e,t.__k=r.__k;k.__e(Q,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):d=t.__e=wn(r.__e,t,r,o,n,i,l,h,s);return(m=k.diffed)&&m(t),128&t.__u?void 0:d}function Er(e,t,r){for(var o=0;o<r.length;o++)Ct(r[o],r[++o],r[++o]);k.__c&&k.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(i){i.call(n)})}catch(i){k.__e(i,n.__v)}})}function Tr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Pe(e)?e.map(Tr):oe({},e)}function wn(e,t,r,o,n,i,l,d,h){var s,m,c,y,_,A,H,S=r.props,T=t.props,N=t.type;if(N=="svg"?n="http://www.w3.org/2000/svg":N=="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),i!=null){for(s=0;s<i.length;s++)if((_=i[s])&&"setAttribute"in _==!!N&&(N?_.localName==N:_.nodeType==3)){e=_,i[s]=null;break}}if(e==null){if(N==null)return document.createTextNode(T);e=document.createElementNS(n,N,T.is&&T),d&&(k.__m&&k.__m(t,i),d=!1),i=null}if(N==null)S===T||d&&e.data==T||(e.data=T);else{if(i=i&&ie.call(e.childNodes),S=r.props||Oe,!d&&i!=null)for(S={},s=0;s<e.attributes.length;s++)S[(_=e.attributes[s]).name]=_.value;for(s in S)if(_=S[s],s!="children"){if(s=="dangerouslySetInnerHTML")c=_;else if(!(s in T)){if(s=="value"&&"defaultValue"in T||s=="checked"&&"defaultChecked"in T)continue;rt(e,s,null,_,n)}}for(s in T)_=T[s],s=="children"?y=_:s=="dangerouslySetInnerHTML"?m=_:s=="value"?A=_:s=="checked"?H=_:d&&typeof _!="function"||S[s]===_||rt(e,s,_,S[s],n);if(m)d||c&&(m.__html==c.__html||m.__html==e.innerHTML)||(e.innerHTML=m.__html),t.__k=[];else if(c&&(e.innerHTML=""),yr(t.type=="template"?e.content:e,Pe(y)?y:[y],t,r,o,N=="foreignObject"?"http://www.w3.org/1999/xhtml":n,i,l,i?i[0]:r.__k&&ye(r,0),d,h),i!=null)for(s=i.length;s--;)Et(i[s]);d||(s="value",N=="progress"&&A==null?e.removeAttribute("value"):A!=null&&(A!==e[s]||N=="progress"&&!A||N=="option"&&A!=S[s])&&rt(e,s,A,S[s],n),s="checked",H!=null&&H!=e[s]&&rt(e,s,H,S[s],n))}return e}function Ct(e,t,r){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(n){k.__e(n,r)}}function Sr(e,t,r){var o,n;if(k.unmount&&k.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||Ct(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(i){k.__e(i,t)}o.base=o.__P=null}if(o=e.__k)for(n=0;n<o.length;n++)o[n]&&Sr(o[n],t,r||typeof e.type!="function");r||Et(e.__e),e.__c=e.__=e.__e=void 0}function bn(e,t,r){return this.constructor(e,r)}function Ue(e,t,r){var o,n,i,l;t==document&&(t=document.documentElement),k.__&&k.__(e,t),n=(o=typeof r=="function")?null:r&&r.__k||t.__k,i=[],l=[],St(t,e=(!o&&r||t).__k=u(b,null,[e]),n||Oe,Oe,t.namespaceURI,!o&&r?[r]:n?null:t.firstChild?ie.call(t.childNodes):null,i,!o&&r?r:n?n.__e:t.firstChild,o,l),Er(i,e,l)}function Cr(e,t){Ue(e,t,Cr)}function yn(e,t,r){var o,n,i,l,d=oe({},e.props);for(i in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)i=="key"?o=t[i]:i=="ref"?n=t[i]:d[i]=t[i]===void 0&&l!=null?l[i]:t[i];return arguments.length>2&&(d.children=arguments.length>3?ie.call(arguments,2):r),De(e.type,d,o||e.key,n||e.ref,null)}function Nt(e){function t(r){var o,n;return this.getChildContext||(o=new Set,(n={})[t.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&o.forEach(function(l){l.__e=!0,Tt(l)})},this.sub=function(i){o.add(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){o&&o.delete(i),l&&l.call(i)}}),r.children}return t.__c="__cC"+gr++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,o){return r.children(o)}).contextType=t,t}ie=vr.slice,k={__e:function(e,t,r,o){for(var n,i,l;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&i.getDerivedStateFromError!=null&&(n.setState(i.getDerivedStateFromError(e)),l=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e,o||{}),l=n.__d),l)return n.__E=n}catch(d){e=d}throw e}},pr=0,ee.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=oe({},this.state),typeof e=="function"&&(e=e(oe({},r),this.props)),e&&oe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Tt(this))},ee.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Tt(this))},ee.prototype.render=b,ge=[],fr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mr=function(e,t){return e.__v.__b-t.__v.__b},tt.__r=0,_r=/(PointerCapture)$|Capture$/i,xt=0,kt=Ar(!1),At=Ar(!0),gr=0;var se,R,Lt,Nr,xe=0,Lr=[],P=k,Mr=P.__b,Rr=P.__r,Hr=P.diffed,Ir=P.__c,Or=P.unmount,Pr=P.__;function ve(e,t){P.__h&&P.__h(R,e,xe||t),xe=0;var r=R.__H||(R.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Y(e){return xe=1,ot(Ur,e)}function ot(e,t,r){var o=ve(se++,2);if(o.t=e,!o.__c&&(o.__=[r?r(t):Ur(void 0,t),function(d){var h=o.__N?o.__N[0]:o.__[0],s=o.t(h,d);h!==s&&(o.__N=[s,o.__[1]],o.__c.setState({}))}],o.__c=R,!R.__f)){var n=function(d,h,s){if(!o.__c.__H)return!0;var m=o.__c.__H.__.filter(function(y){return!!y.__c});if(m.every(function(y){return!y.__N}))return!i||i.call(this,d,h,s);var c=o.__c.props!==d;return m.forEach(function(y){if(y.__N){var _=y.__[0];y.__=y.__N,y.__N=void 0,_!==y.__[0]&&(c=!0)}}),i&&i.call(this,d,h,s)||c};R.__f=!0;var i=R.shouldComponentUpdate,l=R.componentWillUpdate;R.componentWillUpdate=function(d,h,s){if(this.__e){var m=i;i=void 0,n(d,h,s),i=m}l&&l.call(this,d,h,s)},R.shouldComponentUpdate=n}return o.__N||o.__}function X(e,t){var r=ve(se++,3);!P.__s&&Pt(r.__H,t)&&(r.__=e,r.u=t,R.__H.__h.push(r))}function ke(e,t){var r=ve(se++,4);!P.__s&&Pt(r.__H,t)&&(r.__=e,r.u=t,R.__h.push(r))}function nt(e){return xe=5,ze(function(){return{current:e}},[])}function Mt(e,t,r){xe=6,ke(function(){if(typeof e=="function"){var o=e(t());return function(){e(null),o&&typeof o=="function"&&o()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function ze(e,t){var r=ve(se++,7);return Pt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Rt(e,t){return xe=8,ze(function(){return e},t)}function at(e){var t=R.context[e.__c],r=ve(se++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(R)),t.props.value):e.__}function Ht(e,t){P.useDebugValue&&P.useDebugValue(t?t(e):e)}function xn(e){var t=ve(se++,10),r=Y();return t.__=e,R.componentDidCatch||(R.componentDidCatch=function(o,n){t.__&&t.__(o,n),r[1](o)}),[r[0],function(){r[1](void 0)}]}function It(){var e=ve(se++,11);if(!e.__){for(var t=R.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function kn(){for(var e;e=Lr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(it),e.__H.__h.forEach(Ot),e.__H.__h=[]}catch(t){e.__H.__h=[],P.__e(t,e.__v)}}P.__b=function(e){R=null,Mr&&Mr(e)},P.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pr&&Pr(e,t)},P.__r=function(e){Rr&&Rr(e),se=0;var t=(R=e.__c).__H;t&&(Lt===R?(t.__h=[],R.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(it),t.__h.forEach(Ot),t.__h=[],se=0)),Lt=R},P.diffed=function(e){Hr&&Hr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Lr.push(t)!==1&&Nr===P.requestAnimationFrame||((Nr=P.requestAnimationFrame)||An)(kn)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Lt=R=null},P.__c=function(e,t){t.some(function(r){try{r.__h.forEach(it),r.__h=r.__h.filter(function(o){return!o.__||Ot(o)})}catch(o){t.some(function(n){n.__h&&(n.__h=[])}),t=[],P.__e(o,r.__v)}}),Ir&&Ir(e,t)},P.unmount=function(e){Or&&Or(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(o){try{it(o)}catch(n){t=n}}),r.__H=void 0,t&&P.__e(t,r.__v))};var Dr=typeof requestAnimationFrame=="function";function An(e){var t,r=function(){clearTimeout(o),Dr&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(r,35);Dr&&(t=requestAnimationFrame(r))}function it(e){var t=R,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),R=t}function Ot(e){var t=R;e.__c=e.__(),R=t}function Pt(e,t){return!e||e.length!==t.length||t.some(function(r,o){return r!==e[o]})}function Ur(e,t){return typeof t=="function"?t(e):t}function zr(e,t){for(var r in t)e[r]=t[r];return e}function Dt(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function Ut(e,t){var r=t(),o=Y({t:{__:r,u:t}}),n=o[0].t,i=o[1];return ke(function(){n.__=r,n.u=t,zt(n)&&i({t:n})},[e,r,t]),X(function(){return zt(n)&&i({t:n}),e(function(){zt(n)&&i({t:n})})},[e]),r}function zt(e){var t,r,o=e.u,n=e.__;try{var i=o();return!((t=n)===(r=i)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}function $t(e){e()}function Zt(e){return e}function Ft(){return[!1,$t]}var Vt=ke;function lt(e,t){this.props=e,this.context=t}function $r(e,t){function r(n){var i=this.props.ref,l=i==n.ref;return!l&&i&&(i.call?i(null):i.current=null),t?!t(this.props,n)||!l:Dt(this.props,n)}function o(n){return this.shouldComponentUpdate=r,u(e,n)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(lt.prototype=new ee).isPureReactComponent=!0,lt.prototype.shouldComponentUpdate=function(e,t){return Dt(this.props,e)||Dt(this.state,t)};var Zr=k.__b;k.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Zr&&Zr(e)};var En=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ce(e){function t(r){var o=zr({},r);return delete o.ref,e(o,r.ref||null)}return t.$$typeof=En,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Fr=function(e,t){return e==null?null:le(le(e).map(t))},Vr={map:Fr,forEach:Fr,count:function(e){return e?le(e).length:0},only:function(e){var t=le(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:le},Tn=k.__e;k.__e=function(e,t,r,o){if(e.then){for(var n,i=t;i=i.__;)if((n=i.__c)&&n.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),n.__c(e,t)}Tn(e,t,r,o)};var jr=k.unmount;function Wr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=zr({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return Wr(o,t,r)})),e}function Br(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return Br(o,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function $e(){this.__u=0,this.o=null,this.__b=null}function Gr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Yr(e){var t,r,o;function n(i){if(t||(t=e()).then(function(l){r=l.default||l},function(l){o=l}),o)throw o;if(!r)throw t;return u(r,i)}return n.displayName="Lazy",n.__f=!0,n}function Ae(){this.i=null,this.l=null}k.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),jr&&jr(e)},($e.prototype=new ee).__c=function(e,t){var r=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(r);var n=Gr(o.__v),i=!1,l=function(){i||(i=!0,r.__R=null,n?n(d):d())};r.__R=l;var d=function(){if(!--o.__u){if(o.state.__a){var h=o.state.__a;o.__v.__k[0]=Br(h,h.__c.__P,h.__c.__O)}var s;for(o.setState({__a:o.__b=null});s=o.o.pop();)s.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},$e.prototype.componentWillUnmount=function(){this.o=[]},$e.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Wr(this.__b,r,o.__O=o.__P)}this.__b=null}var n=t.__a&&u(b,null,e.fallback);return n&&(n.__u&=-33),[u(b,null,t.__a?null:e.children),n]};var qr=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Sn(e){return this.getChildContext=function(){return e.context},e.children}function Cn(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){Ue(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var o=t.__v;o!==null&&!o.__m&&o.__!==null;)o=o.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:o.__m},contains:function(){return!0},insertBefore:function(n,i){this.childNodes.push(n),t.h.insertBefore(n,i)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.h.removeChild(n)}}}Ue(u(Sn,{context:t.context},e.__v),t.v)}function Xr(e,t){var r=u(Cn,{__v:e,h:t});return r.containerInfo=t,r}(Ae.prototype=new ee).__a=function(e){var t=this,r=Gr(t.__v),o=t.l.get(e);return o[0]++,function(n){var i=function(){t.props.revealOrder?(o.push(n),qr(t,e,o)):n()};r?r(i):i()}},Ae.prototype.render=function(e){this.i=null,this.l=new Map;var t=le(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Ae.prototype.componentDidUpdate=Ae.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){qr(e,r,t)})};var Kr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Nn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ln=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Mn=/[A-Z0-9]/g,Rn=typeof document<"u",Hn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function st(e,t,r){return t.__k==null&&(t.textContent=""),Ue(e,t),typeof r=="function"&&r(),e?e.__c:null}function Jr(e,t,r){return Cr(e,t),typeof r=="function"&&r(),e?e.__c:null}ee.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ee.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Qr=k.event;function In(){}function On(){return this.cancelBubble}function Pn(){return this.defaultPrevented}k.event=function(e){return Qr&&(e=Qr(e)),e.persist=In,e.isPropagationStopped=On,e.isDefaultPrevented=Pn,e.nativeEvent=e};var jt,Dn={enumerable:!1,configurable:!0,get:function(){return this.class}},eo=k.vnode;k.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,o=t.type,n={},i=o.indexOf("-")===-1;for(var l in r){var d=r[l];if(!(l==="value"&&"defaultValue"in r&&d==null||Rn&&l==="children"&&o==="noscript"||l==="class"||l==="className")){var h=l.toLowerCase();l==="defaultValue"&&"value"in r&&r.value==null?l="value":l==="download"&&d===!0?d="":h==="translate"&&d==="no"?d=!1:h[0]==="o"&&h[1]==="n"?h==="ondoubleclick"?l="ondblclick":h!=="onchange"||o!=="input"&&o!=="textarea"||Hn(r.type)?h==="onfocus"?l="onfocusin":h==="onblur"?l="onfocusout":Ln.test(l)&&(l=h):h=l="oninput":i&&Nn.test(l)?l=l.replace(Mn,"-$&").toLowerCase():d===null&&(d=void 0),h==="oninput"&&n[l=h]&&(l="oninputCapture"),n[l]=d}}o=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=le(r.children).forEach(function(s){s.props.selected=n.value.indexOf(s.props.value)!=-1})),o=="select"&&n.defaultValue!=null&&(n.value=le(r.children).forEach(function(s){s.props.selected=n.multiple?n.defaultValue.indexOf(s.props.value)!=-1:n.defaultValue==s.props.value})),r.class&&!r.className?(n.class=r.class,Object.defineProperty(n,"className",Dn)):(r.className&&!r.class||r.class&&r.className)&&(n.class=n.className=r.className),t.props=n}(e),e.$$typeof=Kr,eo&&eo(e)};var to=k.__r;k.__r=function(e){to&&to(e),jt=e.__c};var ro=k.diffed;k.diffed=function(e){ro&&ro(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),jt=null};var oo={ReactCurrentDispatcher:{current:{readContext:function(e){return jt.__n[e.__c].props.value},useCallback:Rt,useContext:at,useDebugValue:Ht,useDeferredValue:Zt,useEffect:X,useId:It,useImperativeHandle:Mt,useInsertionEffect:Vt,useLayoutEffect:ke,useMemo:ze,useReducer:ot,useRef:nt,useState:Y,useSyncExternalStore:Ut,useTransition:Ft}}},Un="18.3.1";function no(e){return u.bind(null,e)}function Ze(e){return!!e&&e.$$typeof===Kr}function ao(e){return Ze(e)&&e.type===b}function io(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function lo(e){return Ze(e)?yn.apply(null,arguments):e}function so(e){return!!e.__k&&(Ue(null,e),!0)}function co(e){return e&&(e.base||e.nodeType===1&&e)||null}var uo=function(e,t){return e(t)},po=function(e,t){return e(t)},ho=b,fo=Ze,ct={useState:Y,useId:It,useReducer:ot,useEffect:X,useLayoutEffect:ke,useInsertionEffect:Vt,useTransition:Ft,useDeferredValue:Zt,useSyncExternalStore:Ut,startTransition:$t,useRef:nt,useImperativeHandle:Mt,useMemo:ze,useCallback:Rt,useContext:at,useDebugValue:Ht,version:"18.3.1",Children:Vr,render:st,hydrate:Jr,unmountComponentAtNode:so,createPortal:Xr,createElement:u,createContext:Nt,createFactory:no,cloneElement:lo,createRef:wr,Fragment:b,isValidElement:Ze,isElement:fo,isFragment:ao,isMemo:io,findDOMNode:co,Component:ee,PureComponent:lt,memo:$r,forwardRef:ce,flushSync:po,unstable_batchedUpdates:uo,StrictMode:ho,Suspense:$e,SuspenseList:Ae,lazy:Yr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:oo};const zn=Object.freeze(Object.defineProperty({__proto__:null,Children:Vr,Component:ee,Fragment:b,PureComponent:lt,StrictMode:ho,Suspense:$e,SuspenseList:Ae,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:oo,cloneElement:lo,createContext:Nt,createElement:u,createFactory:no,createPortal:Xr,createRef:wr,default:ct,findDOMNode:co,flushSync:po,forwardRef:ce,hydrate:Jr,isElement:fo,isFragment:ao,isMemo:io,isValidElement:Ze,lazy:Yr,memo:$r,render:st,startTransition:$t,unmountComponentAtNode:so,unstable_batchedUpdates:uo,useCallback:Rt,useContext:at,useDebugValue:Ht,useDeferredValue:Zt,useEffect:X,useErrorBoundary:xn,useId:It,useImperativeHandle:Mt,useInsertionEffect:Vt,useLayoutEffect:ke,useMemo:ze,useReducer:ot,useRef:nt,useState:Y,useSyncExternalStore:Ut,useTransition:Ft,version:Un},Symbol.toStringTag,{value:"Module"})),$n="/css/plate-search.css";var Zn=0;function p(e,t,r,o,n,i){t||(t={});var l,d,h=t;if("ref"in h)for(d in h={},t)d=="ref"?l=t[d]:h[d]=t[d];var s={type:e,props:h,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Zn,__i:-1,__u:0,__source:n,__self:i};if(typeof e=="function"&&(l=e.defaultProps))for(d in l)h[d]===void 0&&(h[d]=l[d]);return k.vnode&&k.vnode(s),s}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:mo,setPrototypeOf:_o,isFrozen:Fn,getPrototypeOf:Vn,getOwnPropertyDescriptor:jn}=Object;let{freeze:V,seal:K,create:go}=Object,{apply:Wt,construct:Bt}=typeof Reflect<"u"&&Reflect;V||(V=function(t){return t}),K||(K=function(t){return t}),Wt||(Wt=function(t,r,o){return t.apply(r,o)}),Bt||(Bt=function(t,r){return new t(...r)});const dt=W(Array.prototype.forEach),Wn=W(Array.prototype.lastIndexOf),vo=W(Array.prototype.pop),Fe=W(Array.prototype.push),Bn=W(Array.prototype.splice),ut=W(String.prototype.toLowerCase),Gt=W(String.prototype.toString),wo=W(String.prototype.match),Ve=W(String.prototype.replace),Gn=W(String.prototype.indexOf),Yn=W(String.prototype.trim),te=W(Object.prototype.hasOwnProperty),j=W(RegExp.prototype.test),je=qn(TypeError);function W(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return Wt(e,t,o)}}function qn(e){return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Bt(e,r)}}function E(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ut;_o&&_o(e,null);let o=t.length;for(;o--;){let n=t[o];if(typeof n=="string"){const i=r(n);i!==n&&(Fn(t)||(t[o]=i),n=i)}e[n]=!0}return e}function Xn(e){for(let t=0;t<e.length;t++)te(e,t)||(e[t]=null);return e}function de(e){const t=go(null);for(const[r,o]of mo(e))te(e,r)&&(Array.isArray(o)?t[r]=Xn(o):o&&typeof o=="object"&&o.constructor===Object?t[r]=de(o):t[r]=o);return t}function We(e,t){for(;e!==null;){const o=jn(e,t);if(o){if(o.get)return W(o.get);if(typeof o.value=="function")return W(o.value)}e=Vn(e)}function r(){return null}return r}const bo=V(["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"]),Yt=V(["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"]),qt=V(["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"]),Kn=V(["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"]),Xt=V(["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"]),Jn=V(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),yo=V(["#text"]),xo=V(["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"]),Kt=V(["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"]),ko=V(["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"]),pt=V(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Qn=K(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ea=K(/<%[\w\W]*|[\w\W]*%>/gm),ta=K(/\$\{[\w\W]*/gm),ra=K(/^data-[\-\w.\u00B7-\uFFFF]+$/),oa=K(/^aria-[\-\w]+$/),Ao=K(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),na=K(/^(?:\w+script|data):/i),aa=K(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Eo=K(/^html$/i),ia=K(/^[a-z][.\w]*(-[.\w]+)+$/i);var To=Object.freeze({__proto__:null,ARIA_ATTR:oa,ATTR_WHITESPACE:aa,CUSTOM_ELEMENT:ia,DATA_ATTR:ra,DOCTYPE_NAME:Eo,ERB_EXPR:ea,IS_ALLOWED_URI:Ao,IS_SCRIPT_OR_DATA:na,MUSTACHE_EXPR:Qn,TMPLIT_EXPR:ta});const Be={element:1,text:3,progressingInstruction:7,comment:8,document:9},la=function(){return typeof window>"u"?null:window},sa=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(o=r.getAttribute(n));const i="dompurify"+(o?"#"+o:"");try{return t.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},So=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Co(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:la();const t=v=>Co(v);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==Be.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const o=r,n=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:d,Element:h,NodeFilter:s,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:y,trustedTypes:_}=e,A=h.prototype,H=We(A,"cloneNode"),S=We(A,"remove"),T=We(A,"nextSibling"),N=We(A,"childNodes"),B=We(A,"parentNode");if(typeof l=="function"){const v=r.createElement("template");v.content&&v.content.ownerDocument&&(r=v.content.ownerDocument)}let L,q="";const{implementation:J,createNodeIterator:Se,createDocumentFragment:ne,getElementsByTagName:ue}=r,{importNode:me}=o;let M=So();t.isSupported=typeof mo=="function"&&typeof B=="function"&&J&&J.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:Ge,TMPLIT_EXPR:Ye,DATA_ATTR:ht,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:er,ATTR_WHITESPACE:qe,CUSTOM_ELEMENT:w}=To;let{IS_ALLOWED_URI:C}=To,x=null;const D=E({},[...bo,...Yt,...qt,...Xt,...yo]);let U=null;const Xe=E({},[...xo,...Kt,...ko,...pt]);let I=Object.seal(go(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}})),Ke=null,tr=null,Yo=!0,rr=!0,qo=!1,Xo=!0,Ce=!1,mt=!0,be=!1,or=!1,nr=!1,Ne=!1,_t=!1,gt=!1,Ko=!0,Jo=!1;const Ea="user-content-";let ar=!0,Je=!1,Le={},Me=null;const Qo=E({},["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 en=null;const tn=E({},["audio","video","img","source","image","track"]);let ir=null;const rn=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",wt="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml";let Re=pe,lr=!1,sr=null;const Ta=E({},[vt,wt,pe],Gt);let bt=E({},["mi","mo","mn","ms","mtext"]),yt=E({},["annotation-xml"]);const Sa=E({},["title","style","font","a","script"]);let Qe=null;const Ca=["application/xhtml+xml","text/html"],Na="text/html";let $=null,He=null;const La=r.createElement("form"),on=function(a){return a instanceof RegExp||a instanceof Function},cr=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(He&&He===a)){if((!a||typeof a!="object")&&(a={}),a=de(a),Qe=Ca.indexOf(a.PARSER_MEDIA_TYPE)===-1?Na:a.PARSER_MEDIA_TYPE,$=Qe==="application/xhtml+xml"?Gt:ut,x=te(a,"ALLOWED_TAGS")?E({},a.ALLOWED_TAGS,$):D,U=te(a,"ALLOWED_ATTR")?E({},a.ALLOWED_ATTR,$):Xe,sr=te(a,"ALLOWED_NAMESPACES")?E({},a.ALLOWED_NAMESPACES,Gt):Ta,ir=te(a,"ADD_URI_SAFE_ATTR")?E(de(rn),a.ADD_URI_SAFE_ATTR,$):rn,en=te(a,"ADD_DATA_URI_TAGS")?E(de(tn),a.ADD_DATA_URI_TAGS,$):tn,Me=te(a,"FORBID_CONTENTS")?E({},a.FORBID_CONTENTS,$):Qo,Ke=te(a,"FORBID_TAGS")?E({},a.FORBID_TAGS,$):de({}),tr=te(a,"FORBID_ATTR")?E({},a.FORBID_ATTR,$):de({}),Le=te(a,"USE_PROFILES")?a.USE_PROFILES:!1,Yo=a.ALLOW_ARIA_ATTR!==!1,rr=a.ALLOW_DATA_ATTR!==!1,qo=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Xo=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ce=a.SAFE_FOR_TEMPLATES||!1,mt=a.SAFE_FOR_XML!==!1,be=a.WHOLE_DOCUMENT||!1,Ne=a.RETURN_DOM||!1,_t=a.RETURN_DOM_FRAGMENT||!1,gt=a.RETURN_TRUSTED_TYPE||!1,nr=a.FORCE_BODY||!1,Ko=a.SANITIZE_DOM!==!1,Jo=a.SANITIZE_NAMED_PROPS||!1,ar=a.KEEP_CONTENT!==!1,Je=a.IN_PLACE||!1,C=a.ALLOWED_URI_REGEXP||Ao,Re=a.NAMESPACE||pe,bt=a.MATHML_TEXT_INTEGRATION_POINTS||bt,yt=a.HTML_INTEGRATION_POINTS||yt,I=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&on(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&on(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(rr=!1),_t&&(Ne=!0),Le&&(x=E({},yo),U=[],Le.html===!0&&(E(x,bo),E(U,xo)),Le.svg===!0&&(E(x,Yt),E(U,Kt),E(U,pt)),Le.svgFilters===!0&&(E(x,qt),E(U,Kt),E(U,pt)),Le.mathMl===!0&&(E(x,Xt),E(U,ko),E(U,pt))),a.ADD_TAGS&&(x===D&&(x=de(x)),E(x,a.ADD_TAGS,$)),a.ADD_ATTR&&(U===Xe&&(U=de(U)),E(U,a.ADD_ATTR,$)),a.ADD_URI_SAFE_ATTR&&E(ir,a.ADD_URI_SAFE_ATTR,$),a.FORBID_CONTENTS&&(Me===Qo&&(Me=de(Me)),E(Me,a.FORBID_CONTENTS,$)),ar&&(x["#text"]=!0),be&&E(x,["html","head","body"]),x.table&&(E(x,["tbody"]),delete Ke.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw je('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw je('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=a.TRUSTED_TYPES_POLICY,q=L.createHTML("")}else L===void 0&&(L=sa(_,n)),L!==null&&typeof q=="string"&&(q=L.createHTML(""));V&&V(a),He=a}},nn=E({},[...Yt,...qt,...Kn]),an=E({},[...Xt,...Jn]),Ma=function(a){let f=B(a);(!f||!f.tagName)&&(f={namespaceURI:Re,tagName:"template"});const g=ut(a.tagName),O=ut(f.tagName);return sr[a.namespaceURI]?a.namespaceURI===wt?f.namespaceURI===pe?g==="svg":f.namespaceURI===vt?g==="svg"&&(O==="annotation-xml"||bt[O]):!!nn[g]:a.namespaceURI===vt?f.namespaceURI===pe?g==="math":f.namespaceURI===wt?g==="math"&&yt[O]:!!an[g]:a.namespaceURI===pe?f.namespaceURI===wt&&!yt[O]||f.namespaceURI===vt&&!bt[O]?!1:!an[g]&&(Sa[g]||!nn[g]):!!(Qe==="application/xhtml+xml"&&sr[a.namespaceURI]):!1},ae=function(a){Fe(t.removed,{element:a});try{B(a).removeChild(a)}catch{S(a)}},Ie=function(a,f){try{Fe(t.removed,{attribute:f.getAttributeNode(a),from:f})}catch{Fe(t.removed,{attribute:null,from:f})}if(f.removeAttribute(a),a==="is")if(Ne||_t)try{ae(f)}catch{}else try{f.setAttribute(a,"")}catch{}},ln=function(a){let f=null,g=null;if(nr)a="<remove></remove>"+a;else{const z=wo(a,/^[\r\n\t ]+/);g=z&&z[0]}Qe==="application/xhtml+xml"&&Re===pe&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");const O=L?L.createHTML(a):a;if(Re===pe)try{f=new y().parseFromString(O,Qe)}catch{}if(!f||!f.documentElement){f=J.createDocument(Re,"template",null);try{f.documentElement.innerHTML=lr?q:O}catch{}}const Z=f.body||f.documentElement;return a&&g&&Z.insertBefore(r.createTextNode(g),Z.childNodes[0]||null),Re===pe?ue.call(f,be?"html":"body")[0]:be?f.documentElement:Z},sn=function(a){return Se.call(a.ownerDocument||a,a,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},dr=function(a){return a instanceof c&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof m)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},cn=function(a){return typeof d=="function"&&a instanceof d};function he(v,a,f){dt(v,g=>{g.call(t,a,f,He)})}const dn=function(a){let f=null;if(he(M.beforeSanitizeElements,a,null),dr(a))return ae(a),!0;const g=$(a.nodeName);if(he(M.uponSanitizeElement,a,{tagName:g,allowedTags:x}),mt&&a.hasChildNodes()&&!cn(a.firstElementChild)&&j(/<[/\w!]/g,a.innerHTML)&&j(/<[/\w!]/g,a.textContent)||a.nodeType===Be.progressingInstruction||mt&&a.nodeType===Be.comment&&j(/<[/\w]/g,a.data))return ae(a),!0;if(!x[g]||Ke[g]){if(!Ke[g]&&pn(g)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,g)||I.tagNameCheck instanceof Function&&I.tagNameCheck(g)))return!1;if(ar&&!Me[g]){const O=B(a)||a.parentNode,Z=N(a)||a.childNodes;if(Z&&O){const z=Z.length;for(let G=z-1;G>=0;--G){const fe=H(Z[G],!0);fe.__removalCount=(a.__removalCount||0)+1,O.insertBefore(fe,T(a))}}}return ae(a),!0}return a instanceof h&&!Ma(a)||(g==="noscript"||g==="noembed"||g==="noframes")&&j(/<\/no(script|embed|frames)/i,a.innerHTML)?(ae(a),!0):(Ce&&a.nodeType===Be.text&&(f=a.textContent,dt([Q,Ge,Ye],O=>{f=Ve(f,O," ")}),a.textContent!==f&&(Fe(t.removed,{element:a.cloneNode()}),a.textContent=f)),he(M.afterSanitizeElements,a,null),!1)},un=function(a,f,g){if(Ko&&(f==="id"||f==="name")&&(g in r||g in La))return!1;if(!(rr&&!tr[f]&&j(ht,f))){if(!(Yo&&j(ft,f))){if(!U[f]||tr[f]){if(!(pn(a)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,a)||I.tagNameCheck instanceof Function&&I.tagNameCheck(a))&&(I.attributeNameCheck instanceof RegExp&&j(I.attributeNameCheck,f)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(f))||f==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,g)||I.tagNameCheck instanceof Function&&I.tagNameCheck(g))))return!1}else if(!ir[f]){if(!j(C,Ve(g,qe,""))){if(!((f==="src"||f==="xlink:href"||f==="href")&&a!=="script"&&Gn(g,"data:")===0&&en[a])){if(!(qo&&!j(er,Ve(g,qe,"")))){if(g)return!1}}}}}}return!0},pn=function(a){return a!=="annotation-xml"&&wo(a,w)},hn=function(a){he(M.beforeSanitizeAttributes,a,null);const{attributes:f}=a;if(!f||dr(a))return;const g={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let O=f.length;for(;O--;){const Z=f[O],{name:z,namespaceURI:G,value:fe}=Z,et=$(z),ur=fe;let F=z==="value"?ur:Yn(ur);if(g.attrName=et,g.attrValue=F,g.keepAttr=!0,g.forceKeepAttr=void 0,he(M.uponSanitizeAttribute,a,g),F=g.attrValue,Jo&&(et==="id"||et==="name")&&(Ie(z,a),F=Ea+F),mt&&j(/((--!?|])>)|<\/(style|title)/i,F)){Ie(z,a);continue}if(g.forceKeepAttr)continue;if(!g.keepAttr){Ie(z,a);continue}if(!Xo&&j(/\/>/i,F)){Ie(z,a);continue}Ce&&dt([Q,Ge,Ye],mn=>{F=Ve(F,mn," ")});const fn=$(a.nodeName);if(!un(fn,et,F)){Ie(z,a);continue}if(L&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!G)switch(_.getAttributeType(fn,et)){case"TrustedHTML":{F=L.createHTML(F);break}case"TrustedScriptURL":{F=L.createScriptURL(F);break}}if(F!==ur)try{G?a.setAttributeNS(G,z,F):a.setAttribute(z,F),dr(a)?ae(a):vo(t.removed)}catch{Ie(z,a)}}he(M.afterSanitizeAttributes,a,null)},Ra=function v(a){let f=null;const g=sn(a);for(he(M.beforeSanitizeShadowDOM,a,null);f=g.nextNode();)he(M.uponSanitizeShadowNode,f,null),dn(f),hn(f),f.content instanceof i&&v(f.content);he(M.afterSanitizeShadowDOM,a,null)};return t.sanitize=function(v){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=null,g=null,O=null,Z=null;if(lr=!v,lr&&(v="<!-->"),typeof v!="string"&&!cn(v))if(typeof v.toString=="function"){if(v=v.toString(),typeof v!="string")throw je("dirty is not a string, aborting")}else throw je("toString is not a function");if(!t.isSupported)return v;if(or||cr(a),t.removed=[],typeof v=="string"&&(Je=!1),Je){if(v.nodeName){const fe=$(v.nodeName);if(!x[fe]||Ke[fe])throw je("root node is forbidden and cannot be sanitized in-place")}}else if(v instanceof d)f=ln("<!---->"),g=f.ownerDocument.importNode(v,!0),g.nodeType===Be.element&&g.nodeName==="BODY"||g.nodeName==="HTML"?f=g:f.appendChild(g);else{if(!Ne&&!Ce&&!be&&v.indexOf("<")===-1)return L&>?L.createHTML(v):v;if(f=ln(v),!f)return Ne?null:gt?q:""}f&&nr&&ae(f.firstChild);const z=sn(Je?v:f);for(;O=z.nextNode();)dn(O),hn(O),O.content instanceof i&&Ra(O.content);if(Je)return v;if(Ne){if(_t)for(Z=ne.call(f.ownerDocument);f.firstChild;)Z.appendChild(f.firstChild);else Z=f;return(U.shadowroot||U.shadowrootmode)&&(Z=me.call(o,Z,!0)),Z}let G=be?f.outerHTML:f.innerHTML;return be&&x["!doctype"]&&f.ownerDocument&&f.ownerDocument.doctype&&f.ownerDocument.doctype.name&&j(Eo,f.ownerDocument.doctype.name)&&(G="<!DOCTYPE "+f.ownerDocument.doctype.name+`>
|
|
2
|
-
`+G),Ce&&dt([Q,Ge,Ye],fe=>{G=Ve(G,fe," ")}),L&>?L.createHTML(G):G},t.setConfig=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cr(v),or=!0},t.clearConfig=function(){He=null,or=!1},t.isValidAttribute=function(v,a,f){He||cr({});const g=$(v),O=$(a);return un(g,O,f)},t.addHook=function(v,a){typeof a=="function"&&Fe(M[v],a)},t.removeHook=function(v,a){if(a!==void 0){const f=Wn(M[v],a);return f===-1?void 0:Bn(M[v],f,1)[0]}return vo(M[v])},t.removeHooks=function(v){M[v]=[]},t.removeAllHooks=function(){M=So()},t}var No=Co();const ca=new Map([["bold",u(b,null,u("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",u(b,null,u("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),u("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",u(b,null,u("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",u(b,null,u("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",u(b,null,u("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",u(b,null,u("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),da=new Map([["bold",u(b,null,u("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"}))],["duotone",u(b,null,u("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),u("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["fill",u(b,null,u("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["light",u(b,null,u("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"}))],["regular",u(b,null,u("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["thin",u(b,null,u("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"}))]]),ua=new Map([["bold",u(b,null,u("path",{d:"M240,100h-8.2L205.08,39.88A20,20,0,0,0,186.8,28H69.2A20,20,0,0,0,50.92,39.88L24.2,100H16a12,12,0,0,0,0,24h4v76a20,20,0,0,0,20,20H68a20,20,0,0,0,20-20V180h80v20a20,20,0,0,0,20,20h28a20,20,0,0,0,20-20V124h4a12,12,0,0,0,0-24ZM71.8,52H184.2l21.33,48H50.47ZM64,196H44V180H64Zm128,0V180h20v16Zm20-40H44V124H212Z"}))],["duotone",u(b,null,u("path",{d:"M184,176h40v24a8,8,0,0,1-8,8H192a8,8,0,0,1-8-8ZM32,200a8,8,0,0,0,8,8H64a8,8,0,0,0,8-8V176H32ZM194.11,44.75A8,8,0,0,0,186.8,40H69.2a8,8,0,0,0-7.31,4.75L32,112H224Z",opacity:"0.2"}),u("path",{d:"M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16V184h96v16a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM69.2,48H186.8l24.89,56H44.31ZM64,200H40V184H64Zm128,0V184h24v16Zm24-32H40V120H216ZM56,144a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16H64A8,8,0,0,1,56,144Zm112,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,144Z"}))],["fill",u(b,null,u("path",{d:"M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16v-8h96v8a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM80,152H56a8,8,0,0,1,0-16H80a8,8,0,0,1,0,16Zm120,0H176a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16ZM44.31,104,69.2,48H186.8l24.89,56Z"}))],["light",u(b,null,u("path",{d:"M240,106H227.9L199.59,42.31A14,14,0,0,0,186.8,34H69.2a14,14,0,0,0-12.79,8.31L28.1,106H16a6,6,0,0,0,0,12H26v82a14,14,0,0,0,14,14H64a14,14,0,0,0,14-14V182H178v18a14,14,0,0,0,14,14h24a14,14,0,0,0,14-14V118h10a6,6,0,0,0,0-12ZM67.37,47.19A2,2,0,0,1,69.2,46H186.8a2,2,0,0,1,1.83,1.19L214.77,106H41.23ZM66,200a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V182H66Zm150,2H192a2,2,0,0,1-2-2V182h28v18A2,2,0,0,1,216,202Zm2-32H38V118H218ZM58,144a6,6,0,0,1,6-6H80a6,6,0,0,1,0,12H64A6,6,0,0,1,58,144Zm112,0a6,6,0,0,1,6-6h16a6,6,0,0,1,0,12H176A6,6,0,0,1,170,144Z"}))],["regular",u(b,null,u("path",{d:"M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16V184h96v16a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM69.2,48H186.8l24.89,56H44.31ZM64,200H40V184H64Zm128,0V184h24v16Zm24-32H40V120H216ZM56,144a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16H64A8,8,0,0,1,56,144Zm112,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,144Z"}))],["thin",u(b,null,u("path",{d:"M240,108H226.6L197.77,43.13a12,12,0,0,0-11-7.13H69.2a12,12,0,0,0-11,7.13L29.4,108H16a4,4,0,0,0,0,8H28v84a12,12,0,0,0,12,12H64a12,12,0,0,0,12-12V180H180v20a12,12,0,0,0,12,12h24a12,12,0,0,0,12-12V116h12a4,4,0,0,0,0-8ZM65.54,46.38A4,4,0,0,1,69.2,44H186.8a4,4,0,0,1,3.66,2.38L217.84,108H38.16ZM68,200a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V180H68Zm148,4H192a4,4,0,0,1-4-4V180h32v20A4,4,0,0,1,216,204Zm4-32H36V116H220ZM60,144a4,4,0,0,1,4-4H80a4,4,0,0,1,0,8H64A4,4,0,0,1,60,144Zm112,0a4,4,0,0,1,4-4h16a4,4,0,0,1,0,8H176A4,4,0,0,1,172,144Z"}))]]),pa=new Map([["bold",u(b,null,u("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",u(b,null,u("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),u("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",u(b,null,u("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",u(b,null,u("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",u(b,null,u("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",u(b,null,u("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),ha=new Map([["bold",u(b,null,u("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",u(b,null,u("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),u("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",u(b,null,u("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",u(b,null,u("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",u(b,null,u("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",u(b,null,u("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),fa=new Map([["bold",u(b,null,u("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",u(b,null,u("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),u("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",u(b,null,u("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",u(b,null,u("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",u(b,null,u("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",u(b,null,u("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),ma=Nt({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),we=ce((e,t)=>{const{alt:r,color:o,size:n,weight:i,mirrored:l,children:d,weights:h,...s}=e,{color:m="currentColor",size:c,weight:y="regular",mirrored:_=!1,...A}=at(ma);return u("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:n??c,height:n??c,fill:o??m,viewBox:"0 0 256 256",transform:l||_?"scale(-1, 1)":void 0,...A,...s},!!r&&u("title",null,r),d,h.get(i??y))});we.displayName="IconBase";const Lo=ce((e,t)=>u(we,{ref:t,...e,weights:ca}));Lo.displayName="ArrowLeftIcon";const Mo=ce((e,t)=>u(we,{ref:t,...e,weights:da}));Mo.displayName="ArrowsClockwiseIcon";const Ro=ce((e,t)=>u(we,{ref:t,...e,weights:ua}));Ro.displayName="CarIcon";const Ho=ce((e,t)=>u(we,{ref:t,...e,weights:pa}));Ho.displayName="CircleNotchIcon";const Io=ce((e,t)=>u(we,{ref:t,...e,weights:ha}));Io.displayName="XIcon";const Oo=ce((e,t)=>u(we,{ref:t,...e,weights:fa}));Oo.displayName="XCircleIcon";function Po(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Do={exports:{}};/*!
|
|
1
|
+
(function(_e,ie){typeof exports=="object"&&typeof module<"u"?ie(exports):typeof define=="function"&&define.amd?define(["exports"],ie):(_e=typeof globalThis<"u"?globalThis:_e||self,ie(_e.PlateSearch={}))})(this,function(_e){"use strict";var Yo;var ie,k,pr,ge,hr,fr,mr,_r,xt,kt,At,gr,Oe={},vr=[],gn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pe=Array.isArray;function oe(e,t){for(var r in t)e[r]=t[r];return e}function Et(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,r){var o,n,i,l={};for(i in t)i=="key"?o=t[i]:i=="ref"?n=t[i]:l[i]=t[i];if(arguments.length>2&&(l.children=arguments.length>3?ie.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)l[i]===void 0&&(l[i]=e.defaultProps[i]);return De(e,l,o,n,null)}function De(e,t,r,o,n){var i={type:e,props:t,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n??++pr,__i:-1,__u:0};return n==null&&k.vnode!=null&&k.vnode(i),i}function wr(){return{current:null}}function b(e){return e.children}function ee(e,t){this.props=e,this.context=t}function ye(e,t){if(t==null)return e.__?ye(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ye(e):null}function br(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return br(e)}}function Tt(e){(!e.__d&&(e.__d=!0)&&ge.push(e)&&!tt.__r++||hr!=k.debounceRendering)&&((hr=k.debounceRendering)||fr)(tt)}function tt(){for(var e,t,r,o,n,i,l,d=1;ge.length;)ge.length>d&&ge.sort(mr),e=ge.shift(),d=ge.length,e.__d&&(r=void 0,n=(o=(t=e).__v).__e,i=[],l=[],t.__P&&((r=oe({},o)).__v=o.__v+1,k.vnode&&k.vnode(r),St(t.__P,r,o,t.__n,t.__P.namespaceURI,32&o.__u?[n]:null,i,n??ye(o),!!(32&o.__u),l),r.__v=o.__v,r.__.__k[r.__i]=r,Er(i,r,l),r.__e!=n&&br(r)));tt.__r=0}function yr(e,t,r,o,n,i,l,d,u,c,m){var s,y,_,A,H,S,T=o&&o.__k||vr,N=t.length;for(u=vn(r,t,T,u,N),s=0;s<N;s++)(_=r.__k[s])!=null&&(y=_.__i==-1?Oe:T[_.__i]||Oe,_.__i=s,S=St(e,_,y,n,i,l,d,u,c,m),A=_.__e,_.ref&&y.ref!=_.ref&&(y.ref&&Ct(y.ref,null,_),m.push(_.ref,_.__c||A,_)),H==null&&A!=null&&(H=A),4&_.__u||y.__k===_.__k?u=xr(_,u,e):typeof _.type=="function"&&S!==void 0?u=S:A&&(u=A.nextSibling),_.__u&=-7);return r.__e=H,u}function vn(e,t,r,o,n){var i,l,d,u,c,m=r.length,s=m,y=0;for(e.__k=new Array(n),i=0;i<n;i++)(l=t[i])!=null&&typeof l!="boolean"&&typeof l!="function"?(u=i+y,(l=e.__k[i]=typeof l=="string"||typeof l=="number"||typeof l=="bigint"||l.constructor==String?De(null,l,null,null,null):Pe(l)?De(b,{children:l},null,null,null):l.constructor==null&&l.__b>0?De(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,d=null,(c=l.__i=wn(l,r,u,s))!=-1&&(s--,(d=r[c])&&(d.__u|=2)),d==null||d.__v==null?(c==-1&&(n>m?y--:n<m&&y++),typeof l.type!="function"&&(l.__u|=4)):c!=u&&(c==u-1?y--:c==u+1?y++:(c>u?y--:y++,l.__u|=4))):e.__k[i]=null;if(s)for(i=0;i<m;i++)(d=r[i])!=null&&!(2&d.__u)&&(d.__e==o&&(o=ye(d)),Sr(d,d));return o}function xr(e,t,r){var o,n;if(typeof e.type=="function"){for(o=e.__k,n=0;o&&n<o.length;n++)o[n]&&(o[n].__=e,t=xr(o[n],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=ye(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function le(e,t){return t=t||[],e==null||typeof e=="boolean"||(Pe(e)?e.some(function(r){le(r,t)}):t.push(e)),t}function wn(e,t,r,o){var n,i,l=e.key,d=e.type,u=t[r];if(u===null&&e.key==null||u&&l==u.key&&d==u.type&&!(2&u.__u))return r;if(o>(u!=null&&!(2&u.__u)?1:0))for(n=r-1,i=r+1;n>=0||i<t.length;){if(n>=0){if((u=t[n])&&!(2&u.__u)&&l==u.key&&d==u.type)return n;n--}if(i<t.length){if((u=t[i])&&!(2&u.__u)&&l==u.key&&d==u.type)return i;i++}}return-1}function kr(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||gn.test(t)?r:r+"px"}function rt(e,t,r,o,n){var i,l;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)r&&t in r||kr(e.style,t,"");if(r)for(t in r)o&&r[t]==o[t]||kr(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(_r,"$1")),l=t.toLowerCase(),t=l in e||t=="onFocusOut"||t=="onFocusIn"?l.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?o?r.u=o.u:(r.u=xt,e.addEventListener(t,i?At:kt,i)):e.removeEventListener(t,i?At:kt,i);else{if(n=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Ar(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=xt++;else if(t.t<r.u)return;return r(k.event?k.event(t):t)}}}function St(e,t,r,o,n,i,l,d,u,c){var m,s,y,_,A,H,S,T,N,B,L,q,J,Se,ne,ue,me,M=t.type;if(t.constructor!=null)return null;128&r.__u&&(u=!!(32&r.__u),i=[d=t.__e=r.__e]),(m=k.__b)&&m(t);e:if(typeof M=="function")try{if(T=t.props,N="prototype"in M&&M.prototype.render,B=(m=M.contextType)&&o[m.__c],L=m?B?B.props.value:m.__:o,r.__c?S=(s=t.__c=r.__c).__=s.__E:(N?t.__c=s=new M(T,L):(t.__c=s=new ee(T,L),s.constructor=M,s.render=yn),B&&B.sub(s),s.props=T,s.state||(s.state={}),s.context=L,s.__n=o,y=s.__d=!0,s.__h=[],s._sb=[]),N&&s.__s==null&&(s.__s=s.state),N&&M.getDerivedStateFromProps!=null&&(s.__s==s.state&&(s.__s=oe({},s.__s)),oe(s.__s,M.getDerivedStateFromProps(T,s.__s))),_=s.props,A=s.state,s.__v=t,y)N&&M.getDerivedStateFromProps==null&&s.componentWillMount!=null&&s.componentWillMount(),N&&s.componentDidMount!=null&&s.__h.push(s.componentDidMount);else{if(N&&M.getDerivedStateFromProps==null&&T!==_&&s.componentWillReceiveProps!=null&&s.componentWillReceiveProps(T,L),!s.__e&&s.shouldComponentUpdate!=null&&s.shouldComponentUpdate(T,s.__s,L)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(s.props=T,s.state=s.__s,s.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Q){Q&&(Q.__=t)}),q=0;q<s._sb.length;q++)s.__h.push(s._sb[q]);s._sb=[],s.__h.length&&l.push(s);break e}s.componentWillUpdate!=null&&s.componentWillUpdate(T,s.__s,L),N&&s.componentDidUpdate!=null&&s.__h.push(function(){s.componentDidUpdate(_,A,H)})}if(s.context=L,s.props=T,s.__P=e,s.__e=!1,J=k.__r,Se=0,N){for(s.state=s.__s,s.__d=!1,J&&J(t),m=s.render(s.props,s.state,s.context),ne=0;ne<s._sb.length;ne++)s.__h.push(s._sb[ne]);s._sb=[]}else do s.__d=!1,J&&J(t),m=s.render(s.props,s.state,s.context),s.state=s.__s;while(s.__d&&++Se<25);s.state=s.__s,s.getChildContext!=null&&(o=oe(oe({},o),s.getChildContext())),N&&!y&&s.getSnapshotBeforeUpdate!=null&&(H=s.getSnapshotBeforeUpdate(_,A)),ue=m,m!=null&&m.type===b&&m.key==null&&(ue=Tr(m.props.children)),d=yr(e,Pe(ue)?ue:[ue],t,r,o,n,i,l,d,u,c),s.base=t.__e,t.__u&=-161,s.__h.length&&l.push(s),S&&(s.__E=s.__=null)}catch(Q){if(t.__v=null,u||i!=null)if(Q.then){for(t.__u|=u?160:128;d&&d.nodeType==8&&d.nextSibling;)d=d.nextSibling;i[i.indexOf(d)]=null,t.__e=d}else for(me=i.length;me--;)Et(i[me]);else t.__e=r.__e,t.__k=r.__k;k.__e(Q,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):d=t.__e=bn(r.__e,t,r,o,n,i,l,u,c);return(m=k.diffed)&&m(t),128&t.__u?void 0:d}function Er(e,t,r){for(var o=0;o<r.length;o++)Ct(r[o],r[++o],r[++o]);k.__c&&k.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(i){i.call(n)})}catch(i){k.__e(i,n.__v)}})}function Tr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Pe(e)?e.map(Tr):oe({},e)}function bn(e,t,r,o,n,i,l,d,u){var c,m,s,y,_,A,H,S=r.props,T=t.props,N=t.type;if(N=="svg"?n="http://www.w3.org/2000/svg":N=="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((_=i[c])&&"setAttribute"in _==!!N&&(N?_.localName==N:_.nodeType==3)){e=_,i[c]=null;break}}if(e==null){if(N==null)return document.createTextNode(T);e=document.createElementNS(n,N,T.is&&T),d&&(k.__m&&k.__m(t,i),d=!1),i=null}if(N==null)S===T||d&&e.data==T||(e.data=T);else{if(i=i&&ie.call(e.childNodes),S=r.props||Oe,!d&&i!=null)for(S={},c=0;c<e.attributes.length;c++)S[(_=e.attributes[c]).name]=_.value;for(c in S)if(_=S[c],c!="children"){if(c=="dangerouslySetInnerHTML")s=_;else if(!(c in T)){if(c=="value"&&"defaultValue"in T||c=="checked"&&"defaultChecked"in T)continue;rt(e,c,null,_,n)}}for(c in T)_=T[c],c=="children"?y=_:c=="dangerouslySetInnerHTML"?m=_:c=="value"?A=_:c=="checked"?H=_:d&&typeof _!="function"||S[c]===_||rt(e,c,_,S[c],n);if(m)d||s&&(m.__html==s.__html||m.__html==e.innerHTML)||(e.innerHTML=m.__html),t.__k=[];else if(s&&(e.innerHTML=""),yr(t.type=="template"?e.content:e,Pe(y)?y:[y],t,r,o,N=="foreignObject"?"http://www.w3.org/1999/xhtml":n,i,l,i?i[0]:r.__k&&ye(r,0),d,u),i!=null)for(c=i.length;c--;)Et(i[c]);d||(c="value",N=="progress"&&A==null?e.removeAttribute("value"):A!=null&&(A!==e[c]||N=="progress"&&!A||N=="option"&&A!=S[c])&&rt(e,c,A,S[c],n),c="checked",H!=null&&H!=e[c]&&rt(e,c,H,S[c],n))}return e}function Ct(e,t,r){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(n){k.__e(n,r)}}function Sr(e,t,r){var o,n;if(k.unmount&&k.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||Ct(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(i){k.__e(i,t)}o.base=o.__P=null}if(o=e.__k)for(n=0;n<o.length;n++)o[n]&&Sr(o[n],t,r||typeof e.type!="function");r||Et(e.__e),e.__c=e.__=e.__e=void 0}function yn(e,t,r){return this.constructor(e,r)}function Ue(e,t,r){var o,n,i,l;t==document&&(t=document.documentElement),k.__&&k.__(e,t),n=(o=typeof r=="function")?null:r&&r.__k||t.__k,i=[],l=[],St(t,e=(!o&&r||t).__k=p(b,null,[e]),n||Oe,Oe,t.namespaceURI,!o&&r?[r]:n?null:t.firstChild?ie.call(t.childNodes):null,i,!o&&r?r:n?n.__e:t.firstChild,o,l),Er(i,e,l)}function Cr(e,t){Ue(e,t,Cr)}function xn(e,t,r){var o,n,i,l,d=oe({},e.props);for(i in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)i=="key"?o=t[i]:i=="ref"?n=t[i]:d[i]=t[i]===void 0&&l!=null?l[i]:t[i];return arguments.length>2&&(d.children=arguments.length>3?ie.call(arguments,2):r),De(e.type,d,o||e.key,n||e.ref,null)}function Nt(e){function t(r){var o,n;return this.getChildContext||(o=new Set,(n={})[t.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&o.forEach(function(l){l.__e=!0,Tt(l)})},this.sub=function(i){o.add(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){o&&o.delete(i),l&&l.call(i)}}),r.children}return t.__c="__cC"+gr++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,o){return r.children(o)}).contextType=t,t}ie=vr.slice,k={__e:function(e,t,r,o){for(var n,i,l;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&i.getDerivedStateFromError!=null&&(n.setState(i.getDerivedStateFromError(e)),l=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e,o||{}),l=n.__d),l)return n.__E=n}catch(d){e=d}throw e}},pr=0,ee.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=oe({},this.state),typeof e=="function"&&(e=e(oe({},r),this.props)),e&&oe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Tt(this))},ee.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Tt(this))},ee.prototype.render=b,ge=[],fr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mr=function(e,t){return e.__v.__b-t.__v.__b},tt.__r=0,_r=/(PointerCapture)$|Capture$/i,xt=0,kt=Ar(!1),At=Ar(!0),gr=0;var se,R,Lt,Nr,xe=0,Lr=[],P=k,Mr=P.__b,Rr=P.__r,Hr=P.diffed,Ir=P.__c,Or=P.unmount,Pr=P.__;function ve(e,t){P.__h&&P.__h(R,e,xe||t),xe=0;var r=R.__H||(R.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Y(e){return xe=1,ot(Ur,e)}function ot(e,t,r){var o=ve(se++,2);if(o.t=e,!o.__c&&(o.__=[r?r(t):Ur(void 0,t),function(d){var u=o.__N?o.__N[0]:o.__[0],c=o.t(u,d);u!==c&&(o.__N=[c,o.__[1]],o.__c.setState({}))}],o.__c=R,!R.__f)){var n=function(d,u,c){if(!o.__c.__H)return!0;var m=o.__c.__H.__.filter(function(y){return!!y.__c});if(m.every(function(y){return!y.__N}))return!i||i.call(this,d,u,c);var s=o.__c.props!==d;return m.forEach(function(y){if(y.__N){var _=y.__[0];y.__=y.__N,y.__N=void 0,_!==y.__[0]&&(s=!0)}}),i&&i.call(this,d,u,c)||s};R.__f=!0;var i=R.shouldComponentUpdate,l=R.componentWillUpdate;R.componentWillUpdate=function(d,u,c){if(this.__e){var m=i;i=void 0,n(d,u,c),i=m}l&&l.call(this,d,u,c)},R.shouldComponentUpdate=n}return o.__N||o.__}function X(e,t){var r=ve(se++,3);!P.__s&&Pt(r.__H,t)&&(r.__=e,r.u=t,R.__H.__h.push(r))}function ke(e,t){var r=ve(se++,4);!P.__s&&Pt(r.__H,t)&&(r.__=e,r.u=t,R.__h.push(r))}function nt(e){return xe=5,ze(function(){return{current:e}},[])}function Mt(e,t,r){xe=6,ke(function(){if(typeof e=="function"){var o=e(t());return function(){e(null),o&&typeof o=="function"&&o()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function ze(e,t){var r=ve(se++,7);return Pt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Rt(e,t){return xe=8,ze(function(){return e},t)}function at(e){var t=R.context[e.__c],r=ve(se++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(R)),t.props.value):e.__}function Ht(e,t){P.useDebugValue&&P.useDebugValue(t?t(e):e)}function kn(e){var t=ve(se++,10),r=Y();return t.__=e,R.componentDidCatch||(R.componentDidCatch=function(o,n){t.__&&t.__(o,n),r[1](o)}),[r[0],function(){r[1](void 0)}]}function It(){var e=ve(se++,11);if(!e.__){for(var t=R.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function An(){for(var e;e=Lr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(it),e.__H.__h.forEach(Ot),e.__H.__h=[]}catch(t){e.__H.__h=[],P.__e(t,e.__v)}}P.__b=function(e){R=null,Mr&&Mr(e)},P.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pr&&Pr(e,t)},P.__r=function(e){Rr&&Rr(e),se=0;var t=(R=e.__c).__H;t&&(Lt===R?(t.__h=[],R.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(it),t.__h.forEach(Ot),t.__h=[],se=0)),Lt=R},P.diffed=function(e){Hr&&Hr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Lr.push(t)!==1&&Nr===P.requestAnimationFrame||((Nr=P.requestAnimationFrame)||En)(An)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Lt=R=null},P.__c=function(e,t){t.some(function(r){try{r.__h.forEach(it),r.__h=r.__h.filter(function(o){return!o.__||Ot(o)})}catch(o){t.some(function(n){n.__h&&(n.__h=[])}),t=[],P.__e(o,r.__v)}}),Ir&&Ir(e,t)},P.unmount=function(e){Or&&Or(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(o){try{it(o)}catch(n){t=n}}),r.__H=void 0,t&&P.__e(t,r.__v))};var Dr=typeof requestAnimationFrame=="function";function En(e){var t,r=function(){clearTimeout(o),Dr&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(r,35);Dr&&(t=requestAnimationFrame(r))}function it(e){var t=R,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),R=t}function Ot(e){var t=R;e.__c=e.__(),R=t}function Pt(e,t){return!e||e.length!==t.length||t.some(function(r,o){return r!==e[o]})}function Ur(e,t){return typeof t=="function"?t(e):t}function zr(e,t){for(var r in t)e[r]=t[r];return e}function Dt(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function Ut(e,t){var r=t(),o=Y({t:{__:r,u:t}}),n=o[0].t,i=o[1];return ke(function(){n.__=r,n.u=t,zt(n)&&i({t:n})},[e,r,t]),X(function(){return zt(n)&&i({t:n}),e(function(){zt(n)&&i({t:n})})},[e]),r}function zt(e){var t,r,o=e.u,n=e.__;try{var i=o();return!((t=n)===(r=i)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}function $t(e){e()}function Zt(e){return e}function Ft(){return[!1,$t]}var Vt=ke;function lt(e,t){this.props=e,this.context=t}function $r(e,t){function r(n){var i=this.props.ref,l=i==n.ref;return!l&&i&&(i.call?i(null):i.current=null),t?!t(this.props,n)||!l:Dt(this.props,n)}function o(n){return this.shouldComponentUpdate=r,p(e,n)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(lt.prototype=new ee).isPureReactComponent=!0,lt.prototype.shouldComponentUpdate=function(e,t){return Dt(this.props,e)||Dt(this.state,t)};var Zr=k.__b;k.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Zr&&Zr(e)};var Tn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ce(e){function t(r){var o=zr({},r);return delete o.ref,e(o,r.ref||null)}return t.$$typeof=Tn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Fr=function(e,t){return e==null?null:le(le(e).map(t))},Vr={map:Fr,forEach:Fr,count:function(e){return e?le(e).length:0},only:function(e){var t=le(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:le},Sn=k.__e;k.__e=function(e,t,r,o){if(e.then){for(var n,i=t;i=i.__;)if((n=i.__c)&&n.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),n.__c(e,t)}Sn(e,t,r,o)};var jr=k.unmount;function Wr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=zr({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return Wr(o,t,r)})),e}function Br(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return Br(o,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function $e(){this.__u=0,this.o=null,this.__b=null}function Gr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Yr(e){var t,r,o;function n(i){if(t||(t=e()).then(function(l){r=l.default||l},function(l){o=l}),o)throw o;if(!r)throw t;return p(r,i)}return n.displayName="Lazy",n.__f=!0,n}function Ae(){this.i=null,this.l=null}k.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),jr&&jr(e)},($e.prototype=new ee).__c=function(e,t){var r=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(r);var n=Gr(o.__v),i=!1,l=function(){i||(i=!0,r.__R=null,n?n(d):d())};r.__R=l;var d=function(){if(!--o.__u){if(o.state.__a){var u=o.state.__a;o.__v.__k[0]=Br(u,u.__c.__P,u.__c.__O)}var c;for(o.setState({__a:o.__b=null});c=o.o.pop();)c.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},$e.prototype.componentWillUnmount=function(){this.o=[]},$e.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Wr(this.__b,r,o.__O=o.__P)}this.__b=null}var n=t.__a&&p(b,null,e.fallback);return n&&(n.__u&=-33),[p(b,null,t.__a?null:e.children),n]};var qr=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Cn(e){return this.getChildContext=function(){return e.context},e.children}function Nn(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){Ue(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var o=t.__v;o!==null&&!o.__m&&o.__!==null;)o=o.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:o.__m},contains:function(){return!0},insertBefore:function(n,i){this.childNodes.push(n),t.h.insertBefore(n,i)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.h.removeChild(n)}}}Ue(p(Cn,{context:t.context},e.__v),t.v)}function Xr(e,t){var r=p(Nn,{__v:e,h:t});return r.containerInfo=t,r}(Ae.prototype=new ee).__a=function(e){var t=this,r=Gr(t.__v),o=t.l.get(e);return o[0]++,function(n){var i=function(){t.props.revealOrder?(o.push(n),qr(t,e,o)):n()};r?r(i):i()}},Ae.prototype.render=function(e){this.i=null,this.l=new Map;var t=le(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Ae.prototype.componentDidUpdate=Ae.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){qr(e,r,t)})};var Kr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ln=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Mn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Rn=/[A-Z0-9]/g,Hn=typeof document<"u",In=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function st(e,t,r){return t.__k==null&&(t.textContent=""),Ue(e,t),typeof r=="function"&&r(),e?e.__c:null}function Jr(e,t,r){return Cr(e,t),typeof r=="function"&&r(),e?e.__c:null}ee.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ee.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Qr=k.event;function On(){}function Pn(){return this.cancelBubble}function Dn(){return this.defaultPrevented}k.event=function(e){return Qr&&(e=Qr(e)),e.persist=On,e.isPropagationStopped=Pn,e.isDefaultPrevented=Dn,e.nativeEvent=e};var jt,Un={enumerable:!1,configurable:!0,get:function(){return this.class}},eo=k.vnode;k.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,o=t.type,n={},i=o.indexOf("-")===-1;for(var l in r){var d=r[l];if(!(l==="value"&&"defaultValue"in r&&d==null||Hn&&l==="children"&&o==="noscript"||l==="class"||l==="className")){var u=l.toLowerCase();l==="defaultValue"&&"value"in r&&r.value==null?l="value":l==="download"&&d===!0?d="":u==="translate"&&d==="no"?d=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?l="ondblclick":u!=="onchange"||o!=="input"&&o!=="textarea"||In(r.type)?u==="onfocus"?l="onfocusin":u==="onblur"?l="onfocusout":Mn.test(l)&&(l=u):u=l="oninput":i&&Ln.test(l)?l=l.replace(Rn,"-$&").toLowerCase():d===null&&(d=void 0),u==="oninput"&&n[l=u]&&(l="oninputCapture"),n[l]=d}}o=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=le(r.children).forEach(function(c){c.props.selected=n.value.indexOf(c.props.value)!=-1})),o=="select"&&n.defaultValue!=null&&(n.value=le(r.children).forEach(function(c){c.props.selected=n.multiple?n.defaultValue.indexOf(c.props.value)!=-1:n.defaultValue==c.props.value})),r.class&&!r.className?(n.class=r.class,Object.defineProperty(n,"className",Un)):(r.className&&!r.class||r.class&&r.className)&&(n.class=n.className=r.className),t.props=n}(e),e.$$typeof=Kr,eo&&eo(e)};var to=k.__r;k.__r=function(e){to&&to(e),jt=e.__c};var ro=k.diffed;k.diffed=function(e){ro&&ro(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),jt=null};var oo={ReactCurrentDispatcher:{current:{readContext:function(e){return jt.__n[e.__c].props.value},useCallback:Rt,useContext:at,useDebugValue:Ht,useDeferredValue:Zt,useEffect:X,useId:It,useImperativeHandle:Mt,useInsertionEffect:Vt,useLayoutEffect:ke,useMemo:ze,useReducer:ot,useRef:nt,useState:Y,useSyncExternalStore:Ut,useTransition:Ft}}},zn="18.3.1";function no(e){return p.bind(null,e)}function Ze(e){return!!e&&e.$$typeof===Kr}function ao(e){return Ze(e)&&e.type===b}function io(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function lo(e){return Ze(e)?xn.apply(null,arguments):e}function so(e){return!!e.__k&&(Ue(null,e),!0)}function co(e){return e&&(e.base||e.nodeType===1&&e)||null}var uo=function(e,t){return e(t)},po=function(e,t){return e(t)},ho=b,fo=Ze,ct={useState:Y,useId:It,useReducer:ot,useEffect:X,useLayoutEffect:ke,useInsertionEffect:Vt,useTransition:Ft,useDeferredValue:Zt,useSyncExternalStore:Ut,startTransition:$t,useRef:nt,useImperativeHandle:Mt,useMemo:ze,useCallback:Rt,useContext:at,useDebugValue:Ht,version:"18.3.1",Children:Vr,render:st,hydrate:Jr,unmountComponentAtNode:so,createPortal:Xr,createElement:p,createContext:Nt,createFactory:no,cloneElement:lo,createRef:wr,Fragment:b,isValidElement:Ze,isElement:fo,isFragment:ao,isMemo:io,findDOMNode:co,Component:ee,PureComponent:lt,memo:$r,forwardRef:ce,flushSync:po,unstable_batchedUpdates:uo,StrictMode:ho,Suspense:$e,SuspenseList:Ae,lazy:Yr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:oo};const $n=Object.freeze(Object.defineProperty({__proto__:null,Children:Vr,Component:ee,Fragment:b,PureComponent:lt,StrictMode:ho,Suspense:$e,SuspenseList:Ae,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:oo,cloneElement:lo,createContext:Nt,createElement:p,createFactory:no,createPortal:Xr,createRef:wr,default:ct,findDOMNode:co,flushSync:po,forwardRef:ce,hydrate:Jr,isElement:fo,isFragment:ao,isMemo:io,isValidElement:Ze,lazy:Yr,memo:$r,render:st,startTransition:$t,unmountComponentAtNode:so,unstable_batchedUpdates:uo,useCallback:Rt,useContext:at,useDebugValue:Ht,useDeferredValue:Zt,useEffect:X,useErrorBoundary:kn,useId:It,useImperativeHandle:Mt,useInsertionEffect:Vt,useLayoutEffect:ke,useMemo:ze,useReducer:ot,useRef:nt,useState:Y,useSyncExternalStore:Ut,useTransition:Ft,version:zn},Symbol.toStringTag,{value:"Module"})),Zn="/css/plate-search.css";var Fn=0;function h(e,t,r,o,n,i){t||(t={});var l,d,u=t;if("ref"in u)for(d in u={},t)d=="ref"?l=t[d]:u[d]=t[d];var c={type:e,props:u,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Fn,__i:-1,__u:0,__source:n,__self:i};if(typeof e=="function"&&(l=e.defaultProps))for(d in l)u[d]===void 0&&(u[d]=l[d]);return k.vnode&&k.vnode(c),c}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:mo,setPrototypeOf:_o,isFrozen:Vn,getPrototypeOf:jn,getOwnPropertyDescriptor:Wn}=Object;let{freeze:V,seal:K,create:go}=Object,{apply:Wt,construct:Bt}=typeof Reflect<"u"&&Reflect;V||(V=function(t){return t}),K||(K=function(t){return t}),Wt||(Wt=function(t,r,o){return t.apply(r,o)}),Bt||(Bt=function(t,r){return new t(...r)});const dt=W(Array.prototype.forEach),Bn=W(Array.prototype.lastIndexOf),vo=W(Array.prototype.pop),Fe=W(Array.prototype.push),Gn=W(Array.prototype.splice),ut=W(String.prototype.toLowerCase),Gt=W(String.prototype.toString),wo=W(String.prototype.match),Ve=W(String.prototype.replace),Yn=W(String.prototype.indexOf),qn=W(String.prototype.trim),te=W(Object.prototype.hasOwnProperty),j=W(RegExp.prototype.test),je=Xn(TypeError);function W(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return Wt(e,t,o)}}function Xn(e){return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Bt(e,r)}}function E(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ut;_o&&_o(e,null);let o=t.length;for(;o--;){let n=t[o];if(typeof n=="string"){const i=r(n);i!==n&&(Vn(t)||(t[o]=i),n=i)}e[n]=!0}return e}function Kn(e){for(let t=0;t<e.length;t++)te(e,t)||(e[t]=null);return e}function de(e){const t=go(null);for(const[r,o]of mo(e))te(e,r)&&(Array.isArray(o)?t[r]=Kn(o):o&&typeof o=="object"&&o.constructor===Object?t[r]=de(o):t[r]=o);return t}function We(e,t){for(;e!==null;){const o=Wn(e,t);if(o){if(o.get)return W(o.get);if(typeof o.value=="function")return W(o.value)}e=jn(e)}function r(){return null}return r}const bo=V(["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"]),Yt=V(["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"]),qt=V(["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"]),Jn=V(["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"]),Xt=V(["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"]),Qn=V(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),yo=V(["#text"]),xo=V(["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"]),Kt=V(["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"]),ko=V(["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"]),pt=V(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ea=K(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ta=K(/<%[\w\W]*|[\w\W]*%>/gm),ra=K(/\$\{[\w\W]*/gm),oa=K(/^data-[\-\w.\u00B7-\uFFFF]+$/),na=K(/^aria-[\-\w]+$/),Ao=K(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aa=K(/^(?:\w+script|data):/i),ia=K(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Eo=K(/^html$/i),la=K(/^[a-z][.\w]*(-[.\w]+)+$/i);var To=Object.freeze({__proto__:null,ARIA_ATTR:na,ATTR_WHITESPACE:ia,CUSTOM_ELEMENT:la,DATA_ATTR:oa,DOCTYPE_NAME:Eo,ERB_EXPR:ta,IS_ALLOWED_URI:Ao,IS_SCRIPT_OR_DATA:aa,MUSTACHE_EXPR:ea,TMPLIT_EXPR:ra});const Be={element:1,text:3,progressingInstruction:7,comment:8,document:9},sa=function(){return typeof window>"u"?null:window},ca=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(o=r.getAttribute(n));const i="dompurify"+(o?"#"+o:"");try{return t.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},So=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Co(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sa();const t=v=>Co(v);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==Be.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const o=r,n=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:d,Element:u,NodeFilter:c,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:s,DOMParser:y,trustedTypes:_}=e,A=u.prototype,H=We(A,"cloneNode"),S=We(A,"remove"),T=We(A,"nextSibling"),N=We(A,"childNodes"),B=We(A,"parentNode");if(typeof l=="function"){const v=r.createElement("template");v.content&&v.content.ownerDocument&&(r=v.content.ownerDocument)}let L,q="";const{implementation:J,createNodeIterator:Se,createDocumentFragment:ne,getElementsByTagName:ue}=r,{importNode:me}=o;let M=So();t.isSupported=typeof mo=="function"&&typeof B=="function"&&J&&J.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:Ge,TMPLIT_EXPR:Ye,DATA_ATTR:ht,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:er,ATTR_WHITESPACE:qe,CUSTOM_ELEMENT:w}=To;let{IS_ALLOWED_URI:C}=To,x=null;const D=E({},[...bo,...Yt,...qt,...Xt,...yo]);let U=null;const Xe=E({},[...xo,...Kt,...ko,...pt]);let I=Object.seal(go(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}})),Ke=null,tr=null,qo=!0,rr=!0,Xo=!1,Ko=!0,Ce=!1,mt=!0,be=!1,or=!1,nr=!1,Ne=!1,_t=!1,gt=!1,Jo=!0,Qo=!1;const Ea="user-content-";let ar=!0,Je=!1,Le={},Me=null;const en=E({},["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 tn=null;const rn=E({},["audio","video","img","source","image","track"]);let ir=null;const on=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",wt="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml";let Re=pe,lr=!1,sr=null;const Ta=E({},[vt,wt,pe],Gt);let bt=E({},["mi","mo","mn","ms","mtext"]),yt=E({},["annotation-xml"]);const Sa=E({},["title","style","font","a","script"]);let Qe=null;const Ca=["application/xhtml+xml","text/html"],Na="text/html";let $=null,He=null;const La=r.createElement("form"),nn=function(a){return a instanceof RegExp||a instanceof Function},cr=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(He&&He===a)){if((!a||typeof a!="object")&&(a={}),a=de(a),Qe=Ca.indexOf(a.PARSER_MEDIA_TYPE)===-1?Na:a.PARSER_MEDIA_TYPE,$=Qe==="application/xhtml+xml"?Gt:ut,x=te(a,"ALLOWED_TAGS")?E({},a.ALLOWED_TAGS,$):D,U=te(a,"ALLOWED_ATTR")?E({},a.ALLOWED_ATTR,$):Xe,sr=te(a,"ALLOWED_NAMESPACES")?E({},a.ALLOWED_NAMESPACES,Gt):Ta,ir=te(a,"ADD_URI_SAFE_ATTR")?E(de(on),a.ADD_URI_SAFE_ATTR,$):on,tn=te(a,"ADD_DATA_URI_TAGS")?E(de(rn),a.ADD_DATA_URI_TAGS,$):rn,Me=te(a,"FORBID_CONTENTS")?E({},a.FORBID_CONTENTS,$):en,Ke=te(a,"FORBID_TAGS")?E({},a.FORBID_TAGS,$):de({}),tr=te(a,"FORBID_ATTR")?E({},a.FORBID_ATTR,$):de({}),Le=te(a,"USE_PROFILES")?a.USE_PROFILES:!1,qo=a.ALLOW_ARIA_ATTR!==!1,rr=a.ALLOW_DATA_ATTR!==!1,Xo=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Ko=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ce=a.SAFE_FOR_TEMPLATES||!1,mt=a.SAFE_FOR_XML!==!1,be=a.WHOLE_DOCUMENT||!1,Ne=a.RETURN_DOM||!1,_t=a.RETURN_DOM_FRAGMENT||!1,gt=a.RETURN_TRUSTED_TYPE||!1,nr=a.FORCE_BODY||!1,Jo=a.SANITIZE_DOM!==!1,Qo=a.SANITIZE_NAMED_PROPS||!1,ar=a.KEEP_CONTENT!==!1,Je=a.IN_PLACE||!1,C=a.ALLOWED_URI_REGEXP||Ao,Re=a.NAMESPACE||pe,bt=a.MATHML_TEXT_INTEGRATION_POINTS||bt,yt=a.HTML_INTEGRATION_POINTS||yt,I=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&nn(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&nn(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ce&&(rr=!1),_t&&(Ne=!0),Le&&(x=E({},yo),U=[],Le.html===!0&&(E(x,bo),E(U,xo)),Le.svg===!0&&(E(x,Yt),E(U,Kt),E(U,pt)),Le.svgFilters===!0&&(E(x,qt),E(U,Kt),E(U,pt)),Le.mathMl===!0&&(E(x,Xt),E(U,ko),E(U,pt))),a.ADD_TAGS&&(x===D&&(x=de(x)),E(x,a.ADD_TAGS,$)),a.ADD_ATTR&&(U===Xe&&(U=de(U)),E(U,a.ADD_ATTR,$)),a.ADD_URI_SAFE_ATTR&&E(ir,a.ADD_URI_SAFE_ATTR,$),a.FORBID_CONTENTS&&(Me===en&&(Me=de(Me)),E(Me,a.FORBID_CONTENTS,$)),ar&&(x["#text"]=!0),be&&E(x,["html","head","body"]),x.table&&(E(x,["tbody"]),delete Ke.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw je('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw je('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=a.TRUSTED_TYPES_POLICY,q=L.createHTML("")}else L===void 0&&(L=ca(_,n)),L!==null&&typeof q=="string"&&(q=L.createHTML(""));V&&V(a),He=a}},an=E({},[...Yt,...qt,...Jn]),ln=E({},[...Xt,...Qn]),Ma=function(a){let f=B(a);(!f||!f.tagName)&&(f={namespaceURI:Re,tagName:"template"});const g=ut(a.tagName),O=ut(f.tagName);return sr[a.namespaceURI]?a.namespaceURI===wt?f.namespaceURI===pe?g==="svg":f.namespaceURI===vt?g==="svg"&&(O==="annotation-xml"||bt[O]):!!an[g]:a.namespaceURI===vt?f.namespaceURI===pe?g==="math":f.namespaceURI===wt?g==="math"&&yt[O]:!!ln[g]:a.namespaceURI===pe?f.namespaceURI===wt&&!yt[O]||f.namespaceURI===vt&&!bt[O]?!1:!ln[g]&&(Sa[g]||!an[g]):!!(Qe==="application/xhtml+xml"&&sr[a.namespaceURI]):!1},ae=function(a){Fe(t.removed,{element:a});try{B(a).removeChild(a)}catch{S(a)}},Ie=function(a,f){try{Fe(t.removed,{attribute:f.getAttributeNode(a),from:f})}catch{Fe(t.removed,{attribute:null,from:f})}if(f.removeAttribute(a),a==="is")if(Ne||_t)try{ae(f)}catch{}else try{f.setAttribute(a,"")}catch{}},sn=function(a){let f=null,g=null;if(nr)a="<remove></remove>"+a;else{const z=wo(a,/^[\r\n\t ]+/);g=z&&z[0]}Qe==="application/xhtml+xml"&&Re===pe&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");const O=L?L.createHTML(a):a;if(Re===pe)try{f=new y().parseFromString(O,Qe)}catch{}if(!f||!f.documentElement){f=J.createDocument(Re,"template",null);try{f.documentElement.innerHTML=lr?q:O}catch{}}const Z=f.body||f.documentElement;return a&&g&&Z.insertBefore(r.createTextNode(g),Z.childNodes[0]||null),Re===pe?ue.call(f,be?"html":"body")[0]:be?f.documentElement:Z},cn=function(a){return Se.call(a.ownerDocument||a,a,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},dr=function(a){return a instanceof s&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof m)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},dn=function(a){return typeof d=="function"&&a instanceof d};function he(v,a,f){dt(v,g=>{g.call(t,a,f,He)})}const un=function(a){let f=null;if(he(M.beforeSanitizeElements,a,null),dr(a))return ae(a),!0;const g=$(a.nodeName);if(he(M.uponSanitizeElement,a,{tagName:g,allowedTags:x}),mt&&a.hasChildNodes()&&!dn(a.firstElementChild)&&j(/<[/\w!]/g,a.innerHTML)&&j(/<[/\w!]/g,a.textContent)||a.nodeType===Be.progressingInstruction||mt&&a.nodeType===Be.comment&&j(/<[/\w]/g,a.data))return ae(a),!0;if(!x[g]||Ke[g]){if(!Ke[g]&&hn(g)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,g)||I.tagNameCheck instanceof Function&&I.tagNameCheck(g)))return!1;if(ar&&!Me[g]){const O=B(a)||a.parentNode,Z=N(a)||a.childNodes;if(Z&&O){const z=Z.length;for(let G=z-1;G>=0;--G){const fe=H(Z[G],!0);fe.__removalCount=(a.__removalCount||0)+1,O.insertBefore(fe,T(a))}}}return ae(a),!0}return a instanceof u&&!Ma(a)||(g==="noscript"||g==="noembed"||g==="noframes")&&j(/<\/no(script|embed|frames)/i,a.innerHTML)?(ae(a),!0):(Ce&&a.nodeType===Be.text&&(f=a.textContent,dt([Q,Ge,Ye],O=>{f=Ve(f,O," ")}),a.textContent!==f&&(Fe(t.removed,{element:a.cloneNode()}),a.textContent=f)),he(M.afterSanitizeElements,a,null),!1)},pn=function(a,f,g){if(Jo&&(f==="id"||f==="name")&&(g in r||g in La))return!1;if(!(rr&&!tr[f]&&j(ht,f))){if(!(qo&&j(ft,f))){if(!U[f]||tr[f]){if(!(hn(a)&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,a)||I.tagNameCheck instanceof Function&&I.tagNameCheck(a))&&(I.attributeNameCheck instanceof RegExp&&j(I.attributeNameCheck,f)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(f))||f==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&j(I.tagNameCheck,g)||I.tagNameCheck instanceof Function&&I.tagNameCheck(g))))return!1}else if(!ir[f]){if(!j(C,Ve(g,qe,""))){if(!((f==="src"||f==="xlink:href"||f==="href")&&a!=="script"&&Yn(g,"data:")===0&&tn[a])){if(!(Xo&&!j(er,Ve(g,qe,"")))){if(g)return!1}}}}}}return!0},hn=function(a){return a!=="annotation-xml"&&wo(a,w)},fn=function(a){he(M.beforeSanitizeAttributes,a,null);const{attributes:f}=a;if(!f||dr(a))return;const g={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let O=f.length;for(;O--;){const Z=f[O],{name:z,namespaceURI:G,value:fe}=Z,et=$(z),ur=fe;let F=z==="value"?ur:qn(ur);if(g.attrName=et,g.attrValue=F,g.keepAttr=!0,g.forceKeepAttr=void 0,he(M.uponSanitizeAttribute,a,g),F=g.attrValue,Qo&&(et==="id"||et==="name")&&(Ie(z,a),F=Ea+F),mt&&j(/((--!?|])>)|<\/(style|title)/i,F)){Ie(z,a);continue}if(g.forceKeepAttr)continue;if(!g.keepAttr){Ie(z,a);continue}if(!Ko&&j(/\/>/i,F)){Ie(z,a);continue}Ce&&dt([Q,Ge,Ye],_n=>{F=Ve(F,_n," ")});const mn=$(a.nodeName);if(!pn(mn,et,F)){Ie(z,a);continue}if(L&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!G)switch(_.getAttributeType(mn,et)){case"TrustedHTML":{F=L.createHTML(F);break}case"TrustedScriptURL":{F=L.createScriptURL(F);break}}if(F!==ur)try{G?a.setAttributeNS(G,z,F):a.setAttribute(z,F),dr(a)?ae(a):vo(t.removed)}catch{Ie(z,a)}}he(M.afterSanitizeAttributes,a,null)},Ra=function v(a){let f=null;const g=cn(a);for(he(M.beforeSanitizeShadowDOM,a,null);f=g.nextNode();)he(M.uponSanitizeShadowNode,f,null),un(f),fn(f),f.content instanceof i&&v(f.content);he(M.afterSanitizeShadowDOM,a,null)};return t.sanitize=function(v){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=null,g=null,O=null,Z=null;if(lr=!v,lr&&(v="<!-->"),typeof v!="string"&&!dn(v))if(typeof v.toString=="function"){if(v=v.toString(),typeof v!="string")throw je("dirty is not a string, aborting")}else throw je("toString is not a function");if(!t.isSupported)return v;if(or||cr(a),t.removed=[],typeof v=="string"&&(Je=!1),Je){if(v.nodeName){const fe=$(v.nodeName);if(!x[fe]||Ke[fe])throw je("root node is forbidden and cannot be sanitized in-place")}}else if(v instanceof d)f=sn("<!---->"),g=f.ownerDocument.importNode(v,!0),g.nodeType===Be.element&&g.nodeName==="BODY"||g.nodeName==="HTML"?f=g:f.appendChild(g);else{if(!Ne&&!Ce&&!be&&v.indexOf("<")===-1)return L&>?L.createHTML(v):v;if(f=sn(v),!f)return Ne?null:gt?q:""}f&&nr&&ae(f.firstChild);const z=cn(Je?v:f);for(;O=z.nextNode();)un(O),fn(O),O.content instanceof i&&Ra(O.content);if(Je)return v;if(Ne){if(_t)for(Z=ne.call(f.ownerDocument);f.firstChild;)Z.appendChild(f.firstChild);else Z=f;return(U.shadowroot||U.shadowrootmode)&&(Z=me.call(o,Z,!0)),Z}let G=be?f.outerHTML:f.innerHTML;return be&&x["!doctype"]&&f.ownerDocument&&f.ownerDocument.doctype&&f.ownerDocument.doctype.name&&j(Eo,f.ownerDocument.doctype.name)&&(G="<!DOCTYPE "+f.ownerDocument.doctype.name+`>
|
|
2
|
+
`+G),Ce&&dt([Q,Ge,Ye],fe=>{G=Ve(G,fe," ")}),L&>?L.createHTML(G):G},t.setConfig=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cr(v),or=!0},t.clearConfig=function(){He=null,or=!1},t.isValidAttribute=function(v,a,f){He||cr({});const g=$(v),O=$(a);return pn(g,O,f)},t.addHook=function(v,a){typeof a=="function"&&Fe(M[v],a)},t.removeHook=function(v,a){if(a!==void 0){const f=Bn(M[v],a);return f===-1?void 0:Gn(M[v],f,1)[0]}return vo(M[v])},t.removeHooks=function(v){M[v]=[]},t.removeAllHooks=function(){M=So()},t}var No=Co();const da=new Map([["bold",p(b,null,p("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",p(b,null,p("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),p("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",p(b,null,p("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",p(b,null,p("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",p(b,null,p("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",p(b,null,p("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),ua=new Map([["bold",p(b,null,p("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"}))],["duotone",p(b,null,p("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),p("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["fill",p(b,null,p("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["light",p(b,null,p("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"}))],["regular",p(b,null,p("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["thin",p(b,null,p("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"}))]]),pa=new Map([["bold",p(b,null,p("path",{d:"M240,100h-8.2L205.08,39.88A20,20,0,0,0,186.8,28H69.2A20,20,0,0,0,50.92,39.88L24.2,100H16a12,12,0,0,0,0,24h4v76a20,20,0,0,0,20,20H68a20,20,0,0,0,20-20V180h80v20a20,20,0,0,0,20,20h28a20,20,0,0,0,20-20V124h4a12,12,0,0,0,0-24ZM71.8,52H184.2l21.33,48H50.47ZM64,196H44V180H64Zm128,0V180h20v16Zm20-40H44V124H212Z"}))],["duotone",p(b,null,p("path",{d:"M184,176h40v24a8,8,0,0,1-8,8H192a8,8,0,0,1-8-8ZM32,200a8,8,0,0,0,8,8H64a8,8,0,0,0,8-8V176H32ZM194.11,44.75A8,8,0,0,0,186.8,40H69.2a8,8,0,0,0-7.31,4.75L32,112H224Z",opacity:"0.2"}),p("path",{d:"M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16V184h96v16a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM69.2,48H186.8l24.89,56H44.31ZM64,200H40V184H64Zm128,0V184h24v16Zm24-32H40V120H216ZM56,144a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16H64A8,8,0,0,1,56,144Zm112,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,144Z"}))],["fill",p(b,null,p("path",{d:"M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16v-8h96v8a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM80,152H56a8,8,0,0,1,0-16H80a8,8,0,0,1,0,16Zm120,0H176a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16ZM44.31,104,69.2,48H186.8l24.89,56Z"}))],["light",p(b,null,p("path",{d:"M240,106H227.9L199.59,42.31A14,14,0,0,0,186.8,34H69.2a14,14,0,0,0-12.79,8.31L28.1,106H16a6,6,0,0,0,0,12H26v82a14,14,0,0,0,14,14H64a14,14,0,0,0,14-14V182H178v18a14,14,0,0,0,14,14h24a14,14,0,0,0,14-14V118h10a6,6,0,0,0,0-12ZM67.37,47.19A2,2,0,0,1,69.2,46H186.8a2,2,0,0,1,1.83,1.19L214.77,106H41.23ZM66,200a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V182H66Zm150,2H192a2,2,0,0,1-2-2V182h28v18A2,2,0,0,1,216,202Zm2-32H38V118H218ZM58,144a6,6,0,0,1,6-6H80a6,6,0,0,1,0,12H64A6,6,0,0,1,58,144Zm112,0a6,6,0,0,1,6-6h16a6,6,0,0,1,0,12H176A6,6,0,0,1,170,144Z"}))],["regular",p(b,null,p("path",{d:"M240,104H229.2L201.42,41.5A16,16,0,0,0,186.8,32H69.2a16,16,0,0,0-14.62,9.5L26.8,104H16a8,8,0,0,0,0,16h8v80a16,16,0,0,0,16,16H64a16,16,0,0,0,16-16V184h96v16a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V120h8a8,8,0,0,0,0-16ZM69.2,48H186.8l24.89,56H44.31ZM64,200H40V184H64Zm128,0V184h24v16Zm24-32H40V120H216ZM56,144a8,8,0,0,1,8-8H80a8,8,0,0,1,0,16H64A8,8,0,0,1,56,144Zm112,0a8,8,0,0,1,8-8h16a8,8,0,0,1,0,16H176A8,8,0,0,1,168,144Z"}))],["thin",p(b,null,p("path",{d:"M240,108H226.6L197.77,43.13a12,12,0,0,0-11-7.13H69.2a12,12,0,0,0-11,7.13L29.4,108H16a4,4,0,0,0,0,8H28v84a12,12,0,0,0,12,12H64a12,12,0,0,0,12-12V180H180v20a12,12,0,0,0,12,12h24a12,12,0,0,0,12-12V116h12a4,4,0,0,0,0-8ZM65.54,46.38A4,4,0,0,1,69.2,44H186.8a4,4,0,0,1,3.66,2.38L217.84,108H38.16ZM68,200a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V180H68Zm148,4H192a4,4,0,0,1-4-4V180h32v20A4,4,0,0,1,216,204Zm4-32H36V116H220ZM60,144a4,4,0,0,1,4-4H80a4,4,0,0,1,0,8H64A4,4,0,0,1,60,144Zm112,0a4,4,0,0,1,4-4h16a4,4,0,0,1,0,8H176A4,4,0,0,1,172,144Z"}))]]),ha=new Map([["bold",p(b,null,p("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",p(b,null,p("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",p(b,null,p("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",p(b,null,p("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",p(b,null,p("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",p(b,null,p("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),fa=new Map([["bold",p(b,null,p("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",p(b,null,p("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),p("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",p(b,null,p("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",p(b,null,p("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",p(b,null,p("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",p(b,null,p("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),ma=new Map([["bold",p(b,null,p("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",p(b,null,p("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",p(b,null,p("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",p(b,null,p("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",p(b,null,p("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",p(b,null,p("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),_a=Nt({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),we=ce((e,t)=>{const{alt:r,color:o,size:n,weight:i,mirrored:l,children:d,weights:u,...c}=e,{color:m="currentColor",size:s,weight:y="regular",mirrored:_=!1,...A}=at(_a);return p("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:n??s,height:n??s,fill:o??m,viewBox:"0 0 256 256",transform:l||_?"scale(-1, 1)":void 0,...A,...c},!!r&&p("title",null,r),d,u.get(i??y))});we.displayName="IconBase";const Lo=ce((e,t)=>p(we,{ref:t,...e,weights:da}));Lo.displayName="ArrowLeftIcon";const Mo=ce((e,t)=>p(we,{ref:t,...e,weights:ua}));Mo.displayName="ArrowsClockwiseIcon";const Ro=ce((e,t)=>p(we,{ref:t,...e,weights:pa}));Ro.displayName="CarIcon";const Ho=ce((e,t)=>p(we,{ref:t,...e,weights:ha}));Ho.displayName="CircleNotchIcon";const Io=ce((e,t)=>p(we,{ref:t,...e,weights:fa}));Io.displayName="XIcon";const Oo=ce((e,t)=>p(we,{ref:t,...e,weights:ma}));Oo.displayName="XCircleIcon";function Po(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Do={exports:{}};/*!
|
|
3
3
|
* JavaScript Cookie v2.2.1
|
|
4
4
|
* https://github.com/js-cookie/js-cookie
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
7
7
|
* Released under the MIT license
|
|
8
|
-
*/(function(e,t){(function(r){var o;if(e.exports=r(),o=!0,!o){var n=window.Cookies,i=window.Cookies=r();i.noConflict=function(){return window.Cookies=n,i}}})(function(){function r(){for(var i=0,l={};i<arguments.length;i++){var d=arguments[i];for(var h in d)l[h]=d[h]}return l}function o(i){return i.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(i){function l(){}function d(s,m,c){if(!(typeof document>"u")){c=r({path:"/"},l.defaults,c),typeof c.expires=="number"&&(c.expires=new Date(new Date*1+c.expires*864e5)),c.expires=c.expires?c.expires.toUTCString():"";try{var y=JSON.stringify(m);/^[\{\[]/.test(y)&&(m=y)}catch{}m=i.write?i.write(m,s):encodeURIComponent(String(m)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),s=encodeURIComponent(String(s)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var _="";for(var A in c)c[A]&&(_+="; "+A,c[A]!==!0&&(_+="="+c[A].split(";")[0]));return document.cookie=s+"="+m+_}}function h(s,m){if(!(typeof document>"u")){for(var c={},y=document.cookie?document.cookie.split("; "):[],_=0;_<y.length;_++){var A=y[_].split("="),H=A.slice(1).join("=");!m&&H.charAt(0)==='"'&&(H=H.slice(1,-1));try{var S=o(A[0]);if(H=(i.read||i)(H,S)||o(H),m)try{H=JSON.parse(H)}catch{}if(c[S]=H,s===S)break}catch{}}return s?c[s]:c}}return l.set=d,l.get=function(s){return h(s,!1)},l.getJSON=function(s){return h(s,!0)},l.remove=function(s,m){d(s,"",r(m,{expires:-1}))},l.defaults={},l.withConverter=n,l}return n(function(){})})})(Do);var _a=Do.exports;const Jt=Po(_a);var Uo={exports:{}},ga="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",va=ga,wa=va;function zo(){}function $o(){}$o.resetWarningCache=zo;var ba=function(){function e(o,n,i,l,d,h){if(h!==wa){var s=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 s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:$o,resetWarningCache:zo};return r.PropTypes=r,r};Uo.exports=ba();var ya=Uo.exports;const re=Po(ya);function Zo({error:e}){return p("div",{className:"rounded-md bg-red-50 p-4",children:p("div",{className:"flex justify-center items-center",children:[p("div",{className:"flex-shrink-0",children:p(Oo,{size:20,weight:"bold",className:"text-red-400","aria-hidden":"true"})}),p("div",{className:"ml-3",children:p("h3",{className:"text-sm font-medium text-red-800",children:e})})]})})}Zo.propTypes={error:re.string.isRequired};function xa({className:e,alt:t="Partbot Logo"}){return p("span",{className:e,role:"img","aria-label":t,children:p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"239.19",height:"54.22",viewBox:"0 0 239.19 54.22",focusable:"false","aria-hidden":"true",style:{width:"auto",height:"100%"},children:p("g",{children:[p("rect",{fill:"currentColor",y:".22",width:"24.45",height:"24.45",rx:"1.81",ry:"1.81"}),p("rect",{fill:"currentColor",y:"29.76",width:"24.45",height:"24.45",rx:"1.7",ry:"1.7"}),p("path",{fill:"currentColor",d:"M36.91,34.61h-5.67c-.94,0-1.7-.76-1.7-1.7V1.7C29.55.76,30.31,0,31.25,0h5.67c9.44,0,17.09,7.65,17.09,17.09h0v.43c0,9.44-7.65,17.09-17.09,17.09Z"}),p("path",{fill:"currentColor",d:"M97.79,12.21c-1.74-.96-3.67-1.44-5.8-1.44h-13.54v31.48h7.56v-8.81h5.98c2.13,0,4.06-.48,5.8-1.44,1.74-.96,3.13-2.3,4.18-4.03,1.05-1.72,1.57-3.7,1.57-5.91s-.52-4.18-1.57-5.87c-1.05-1.69-2.44-3.02-4.18-3.98ZM95.32,24.8c-.45.75-1.04,1.32-1.78,1.71-.74.39-1.54.58-2.41.58h-5.13v-10.03h5.13c.87,0,1.67.2,2.41.61.73.4,1.33.98,1.78,1.73.45.75.67,1.65.67,2.7s-.22,1.95-.67,2.7Z"}),p("path",{fill:"currentColor",d:"M124.27,20.24c-1.81-1.06-4.01-1.6-6.59-1.6s-4.76.54-6.63,1.62c-1.87,1.08-3.32,2.54-4.34,4.39-1.02,1.84-1.53,3.93-1.53,6.27s.43,4.26,1.3,6.05c.87,1.78,2.08,3.2,3.64,4.25,1.56,1.05,3.36,1.57,5.4,1.57,1.29,0,2.41-.18,3.35-.54.94-.36,1.75-.86,2.41-1.51.66-.64,1.2-1.37,1.62-2.18h.18v3.69h6.84v-11.47c0-2.28-.49-4.34-1.46-6.18s-2.37-3.3-4.18-4.36ZM122.18,33.8c-.42.93-1.03,1.66-1.82,2.18s-1.72.79-2.77.79-2.02-.26-2.83-.79-1.42-1.25-1.84-2.18c-.42-.93-.63-1.96-.63-3.1s.21-2.11.63-3.01c.42-.9,1.03-1.61,1.84-2.14s1.75-.79,2.83-.79,1.97.26,2.77.79,1.4,1.24,1.82,2.14c.42.9.63,1.9.63,3.01s-.21,2.17-.63,3.1Z"}),p("path",{fill:"currentColor",d:"M159.56,13.56h-7.02v5.62h-12.06c-2.13,0-3.79.64-4.99,1.84s-1.8,2.85-1.8,4.95v16.28h6.97v-15.83c0-.45.15-.82.45-1.1.3-.28.66-.43,1.08-.43h10.35v10.61c0,2.07.6,3.71,1.8,4.92,1.2,1.21,2.86,1.82,4.99,1.82h6.57v-5.85h-5.04c-.36,0-.67-.13-.92-.38-.26-.25-.38-.56-.38-.92v-10.21h6.34v-5.71h-6.34v-5.62Z"}),p("path",{fill:"currentColor",d:"M189.1,20.13c-1.65-.99-3.57-1.48-5.76-1.48-.93,0-1.81.12-2.63.36-.83.24-1.57.59-2.25,1.06-.67.47-1.24,1.01-1.69,1.64h-.14v-12.28h-6.97v20.87c0,2.52.51,4.72,1.53,6.61,1.02,1.89,2.46,3.34,4.32,4.36,1.86,1.02,4.03,1.53,6.52,1.53,1.95,0,3.68-.3,5.19-.9,1.51-.6,2.8-1.46,3.87-2.59,1.06-1.12,1.88-2.45,2.45-3.98.57-1.53.85-3.19.85-4.99,0-2.34-.47-4.38-1.42-6.12-.94-1.74-2.24-3.1-3.89-4.09ZM186.65,33.82c-.44.91-1.04,1.63-1.82,2.16-.78.52-1.71.79-2.79.79s-2.02-.26-2.81-.79-1.4-1.24-1.82-2.16-.63-1.94-.63-3.08.21-2.16.63-3.06c.42-.9,1.03-1.61,1.82-2.14s1.73-.79,2.81-.79,2.01.26,2.79.79c.78.52,1.39,1.24,1.82,2.14.43.9.65,1.92.65,3.06s-.22,2.17-.65,3.08Z"}),p("path",{fill:"currentColor",d:"M215.96,20.24c-1.87-1.06-4-1.6-6.36-1.6s-4.5.53-6.39,1.6c-1.89,1.06-3.38,2.5-4.48,4.32-1.09,1.81-1.64,3.88-1.64,6.18s.55,4.33,1.64,6.16c1.09,1.83,2.59,3.27,4.48,4.32,1.89,1.05,4.02,1.57,6.39,1.57s4.45-.52,6.34-1.57,3.38-2.49,4.47-4.32c1.09-1.83,1.64-3.88,1.64-6.16s-.55-4.37-1.64-6.18c-1.09-1.81-2.58-3.25-4.45-4.32ZM214.37,33.75c-.45.9-1.08,1.62-1.89,2.16s-1.77.81-2.88.81-2.08-.27-2.9-.81-1.46-1.26-1.91-2.16c-.45-.9-.67-1.92-.67-3.06s.22-2.11.67-3.01c.45-.9,1.09-1.62,1.91-2.16s1.79-.81,2.9-.81,2.07.27,2.88.81,1.44,1.26,1.89,2.16c.45.9.67,1.9.67,3.01s-.22,2.16-.67,3.06Z"}),p("path",{fill:"currentColor",d:"M239.19,24.89v-5.71h-6.34v-5.62h-7.02v21.95c0,2.07.6,3.71,1.8,4.92,1.2,1.21,2.86,1.82,4.99,1.82h6.57v-5.85h-5.04c-.36,0-.67-.13-.92-.38-.26-.25-.38-.56-.38-.92v-10.21h6.34Z"})]})})})}const Fo=["ACT","NSW","NT","QLD","SA","TAS","VIC","WA"],Vo="https://api.partbot.io/v1/vehicles/plate-search",jo="https://api.partbot.io/v1/vehicles/plate-search-retry";function Qt(e){const[t,r]=Y(!1),[o,n]=Y(!1),[i,l]=Y(""),[d,h]=Y(""),[s,m]=Y(null),[c,y]=Y(!1),_=nt(null),[A,H]=Y(Vo),[S,T]=Y(null),N=e.apiKey,B=e.callbackUrl,L=e.productsUrl,q=e.useGeolocation==="true",J=e.themeColor||"#4f46e5",Se=e.buttonTheme||"light",ne=e.responsive,ue=e.intro||"Enter your Number Plate and select your State or Territory to find your vehicle.",me=e.placeholder||"PL8SRCH",M=e.supportMessage;X(()=>{const w=localStorage.getItem("partbot_selected_vehicle");if(w){const C=JSON.parse(w);C.description&&(C.vehicle_ids.length>0||Object.values(C.vehicle).every(x=>x!==null&&x!==""&&(typeof x!="object"||Object.keys(x).length>0)))&&T(C)}},[]),X(()=>{document.documentElement.style.setProperty("--partbot-theme",J)},[J]),X(()=>{t&&q&&"geolocation"in navigator&&navigator.geolocation.getCurrentPosition(async function(w){const{latitude:C,longitude:x}=w.coords;try{const U=await(await fetch(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${C},${x}&key=AIzaSyDAdDL5E8iWK_oc0FLqdW-QAhZo84xIX0k`)).json();if(U.results&&U.results[0]){const Xe=U.results[0].address_components.find(I=>I.types.includes("administrative_area_level_1"));if(Xe){const I=Xe.short_name;h(I)}}}catch(D){console.error("Geocoding error:",D)}})},[q,t]),X(()=>{let w=localStorage.getItem("partbot_plate_details");w&&(w=JSON.parse(w),w.plate?l(w.plate.number):localStorage.removeItem("partbot_plate_details"))},[]),X(()=>{t&&!o&&n(!0),t&&_.current&&_.current.focus()},[t,o]),X(()=>{if(t){const w=document.documentElement.style.overflow,C=document.documentElement.style.paddingRight,x=window.innerWidth-document.documentElement.clientWidth;return x>0&&(document.documentElement.style.paddingRight=`${x}px`),document.documentElement.style.overflow="hidden",()=>{document.documentElement.style.overflow=w,document.documentElement.style.paddingRight=C}}},[t]);const Q=w=>{if(w&&w.preventDefault(),!d||!i)return;y(!0);const C={plate:i,state:d};async function x(){return(await fetch(A,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json",Authorization:`Basic ${N}`},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(C)})).json()}x().then(D=>{y(!1),D.plate?(localStorage.setItem("partbot_plate_details",JSON.stringify(D)),m(D)):D&&D.indexOf("Invalid API Key")!==-1?m({error:D}):m({error:"Could not find any matching vehicles."})}).catch(D=>{console.error("Error:",D),m({error:"Could not find any matching vehicles."})})};X(()=>{Q()},[A]);const Ge=w=>{localStorage.removeItem("partbot_plate_details"),localStorage.removeItem("partbot_selected_vehicle"),Jt.remove("partbot_selected_vehicle"),m(null),H(jo)},Ye=w=>{window.open(`mailto:report@partbot.io?subject=${encodeURIComponent("Registration Search Issue")}&body=${encodeURIComponent(`Incorrect vehicles were shown for ${d} number plate: ${i}, vehicle: ${s.factory_vehicle.make} ${s.factory_vehicle.model} ${s.factory_vehicle.year} ${s.factory_vehicle.body} ${s.factory_vehicle.series}. Please provide details of the correct vehicle below:`)}`)},ht=w=>{l(""),m(null),H(Vo),T(null),localStorage.removeItem("partbot_plate_details"),localStorage.removeItem("partbot_selected_vehicle"),Jt.remove("partbot_selected_vehicle")},ft=w=>{var C=JSON.stringify({description:w.description,vehicle_ids:w.vehicle_ids,vehicle:{...w.vehicle,year:s.factory_vehicle.year}});localStorage.setItem("partbot_selected_vehicle",C),Jt.set("partbot_selected_vehicle",C,{secure:!0});var x=new CustomEvent("plate-search-change",{detail:{vehicle_ids:w.vehicle_ids}});document.dispatchEvent(x),T(w),B&&B!==window.location.href&&(r(!1),window.location.href=B+window.location.search)},er=w=>{if(r(!1),L)try{const C=new URL(L,window.location.origin);if(C.origin!==window.location.origin){console.warn("Partbot: Blocked navigation to external productsUrl",C.toString());return}window.location.assign(C.href)}catch(C){console.error("Partbot: Invalid productsUrl provided",L,C)}},qe=w=>{const C=["series","variant","body","fuel_type","drivetrain","engine","engine_capacity","cylinders"];return Object.entries(w).filter(([x,D])=>D!==null&&C.includes(x)).map(([x,D])=>x==="cylinders"?`${D}cyl`:D).join(" ")};return p(b,{children:[p("button",{onClick:w=>r(!t),type:"button",className:`${Se==="dark"?"bg-transparent text-gray-100 hover:text-white":"bg-white text-gray-700 hover:bg-gray-50"} inline-flex items-center ${ne?"px-2 md:px-3":"px-3"} text-md focus:outline-none focus:ring-bg-theme-color h-[44px] rounded-md border-4 border-double border-gray-400 font-license text-base font-medium shadow-sm transition cursor-pointer`,children:[p(Ro,{weight:"fill",className:ne?"h-5 w-5 md:-ml-1 md:mr-2":"mr-2 -ml-1 h-5 w-5","aria-hidden":"true"}),p("span",{className:ne?"hidden md:inline":"mt-1.5 md:inline",children:i||me})]}),p("div",{className:`${t?"modal-container modal-container-open":"modal-container modal-container-close"}`,style:{zIndex:2147483647,...!t&&!o?{display:"none"}:{}},onClick:w=>{w.target===w.currentTarget&&r(!1)},children:p("div",{role:"dialog","aria-modal":"true","aria-label":"Number plate search dialog",className:t?"modal modal-open":"modal modal-close",children:[p("div",{className:"absolute top-0 right-0 pt-4 pr-4",children:p("button",{type:"button",className:"focus:outline-none focus:ring-bg-theme-color rounded-md bg-white text-gray-400 hover:text-gray-500",onClick:()=>r(!1),children:[p("span",{className:"sr-only",children:"Close"}),p(Io,{size:16,weight:"bold","aria-hidden":"true"})]})}),s&&!S&&p("div",{className:"modal-content",children:p("div",{className:"mb-5 text-center",children:[p("div",{className:"inline-flex items-center text-center text-2xl font-extrabold tracking-tight text-black",children:p("div",{children:["Results for"," ",p("span",{className:"text-theme-color",children:[i," (",d,")"]})]})}),p("div",{className:"mt-6",children:[p("div",{className:"modal-scroll-area",children:s.vehicles?p("div",{className:"grid gap-3 text-left",children:[s.vehicles.map(function(w,C){return p("div",{className:"focus:outline-none relative grid cursor-pointer gap-4 rounded-lg border border-gray-300 bg-white px-4 py-4 shadow-sm hover:border-gray-400 sm:flex sm:justify-between",children:[p("div",{className:"pr-5 text-xs",children:p("div",{className:"grid gap-2",children:[p("div",{className:"text-sm font-bold text-gray-900",children:w.description}),p("div",{className:"text-gray-600",children:qe(w.vehicle)})]})}),p("div",{children:p("button",{className:"justify-center rounded-md border border-transparent bg-theme-color px-2 py-1.5 text-xs font-medium text-white shadow-sm",onClick:()=>ft(w),children:"Select vehicle"})})]},C)}),s.differing_attributes&&s.vehicle_breakdown&&s.vehicle_breakdown.length>0&&p("div",{children:p("details",{className:"[&_summary::-webkit-details-marker]:hidden group rounded-lg border border-gray-300 bg-white",children:[p("summary",{className:"flex cursor-pointer items-center justify-between px-4 py-2 text-left text-sm font-medium text-gray-900",children:[p("span",{children:"More options..."}),p("svg",{className:"!h-5 !w-5 text-gray-500 transition duration-300 group-open:rotate-180",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:p("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),p("div",{className:"border-t border-gray-200 px-4 py-3",children:p("div",{className:"grid gap-3",children:s.vehicle_breakdown&&s.vehicle_breakdown.map((w,C)=>p("div",{className:"flex items-center justify-between rounded-md border border-gray-200 p-3 text-sm",children:[p("div",{children:s.differing_attributes.map(x=>p("div",{className:"text-xs text-gray-600",children:[p("span",{className:"font-medium capitalize",children:[x,":"]})," ",w.vehicle[x]]},x))}),p("button",{onClick:()=>ft(w),className:"ml-4 rounded-md bg-theme-color px-3 py-1.5 text-xs font-medium text-white hover:bg-opacity-90",children:"Select"})]},C))})})]})})]}):p("div",{className:"my-5",children:p(Zo,{error:s.error})})}),s.vehicles&&s.vehicles.length>3&&p("div",{className:"pb-4 text-center text-xs text-gray-500",children:"Scroll for more..."}),M&&p("div",{className:"pl8srch-text mx-auto my-6 w-full text-sm text-gray-500",dangerouslySetInnerHTML:{__html:No.sanitize(M)}}),A!==jo&&p("button",{type:"button",className:"mb-5 hidden w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-base font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",onClick:Ge,children:["Try Again"," ",p(Mo,{size:16,weight:"bold",className:"ml-3","aria-hidden":"true"})]}),p("div",{className:"align-center flex justify-between",children:[p("button",{onClick:Ye,className:"text-xs text-theme-color",children:"Report incorrect search results"}),p("button",{onClick:ht,className:"text-xs text-theme-color",children:[p(Lo,{size:12,weight:"bold",className:"mr-1 inline"})," ","Back to search"]})]})]})]})}),S&&p("div",{className:"modal-content",children:p("div",{className:"mb-5 text-center",children:[p("div",{className:"grid items-center",children:[p("div",{className:"inline-flex items-center justify-center gap-1 text-center text-2xl font-extrabold tracking-tight text-black",children:[p("span",{children:"Selected Vehicle"}),i&&p("span",{className:"text-theme-color",children:["(",i,")"]})]}),p("div",{className:"text-medium mt-5 text-sm text-gray-500",children:s&&s.factory_vehicle?`${s.factory_vehicle.make} ${s.factory_vehicle.model} ${s.factory_vehicle.year}`:S.description}),S.vehicle&&p("div",{className:"mt-2 text-xs text-gray-600",children:qe(S.vehicle)})]}),p("div",{className:"mt-6 flex gap-4",children:[p("button",{className:"mb-5 flex w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-sm font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",onClick:ht,children:"Clear Vehicle"}),L&&p("button",{className:"mb-5 flex w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-sm font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",onClick:er,children:"Show Products"})]})]})}),!S&&!s&&p("div",{className:"modal-content",children:[p("div",{className:"mb-5 text-center",children:[p("div",{className:"inline-flex items-center text-2xl font-extrabold tracking-tight text-black",children:p("span",{children:"Number Plate Search"})}),p("div",{className:"[&>a]:text-theme-color hover:[&>a]:text-theme-color pl8srch-text text-balance mx-auto mt-3 mb-4 max-w-sm text-sm text-gray-500 whitespace-normal!",dangerouslySetInnerHTML:{__html:No.sanitize(ue)}})]}),p("form",{onSubmit:Q,className:"flex flex-col items-center text-black",children:[p("input",{type:"text",name:"plate",ref:_,className:`pl8srch-input h-[130px] w-full rounded-xl border-[6px] px-6 pt-5 pb-2 text-center font-license text-[60px] uppercase md:h-[150px] md:border-8 md:text-[75px] focus:outline-none focus:ring-bg-theme-color focus:border-theme-color transition-all duration-200 ${i?"border-theme-color":"border-stone-300"}`,placeholder:me,value:i,onChange:w=>l(w.target.value.toUpperCase())}),p("span",{className:"relative z-0 my-5 flex w-full rounded-md items-stretch shadow-sm",children:Fo.map((w,C)=>{let x="bg-white text-gray-700 hover:bg-gray-50 border-gray-300";return w===d&&(x="bg-theme-color text-white hover:bg-theme-color border-theme-color"),C===0?p("button",{onClick:D=>h(w),type:"button",className:`focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative inline-flex items-center cursor-pointer rounded-l-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`,children:w},w):Fo.length===C+1?p("button",{onClick:D=>h(w),type:"button",className:`focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer rounded-r-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`,children:w},w):p("button",{onClick:D=>h(w),type:"button",className:`focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`,children:w},w)})}),p("button",{type:"submit",className:"hover:bg-theme-color-800 flex w-full items-center justify-center rounded-md border border-transparent bg-theme-color px-4 py-2 text-base font-medium text-white shadow-sm",children:["Find your vehicle",c?p(Ho,{weight:"bold",className:"ml-3 h-4 w-4 animate-spin","aria-hidden":"true"}):""]})]})]}),p("div",{className:"mt-8 text-center",children:p("a",{href:`https://use.partbot.io/?ref=${window.location.hostname}`,target:"_blank",rel:"noreferrer",className:"mx-auto inline-flex max-w-sm items-center text-center text-xs font-medium tracking-tight text-gray-500 transition gap-2",children:[p("span",{children:"Powered by"}),p(xa,{className:"inline h-4"})]})})]})})]})}Qt.propTypes={apiKey:re.string.isRequired,callbackUrl:re.string,productsUrl:re.string,themeColor:re.string,useGeolocation:re.bool,buttonTheme:re.oneOf(["light","dark"]),responsive:re.bool,placeholder:re.string,intro:re.string,supportMessage:re.string};const Wo=`@import"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap";/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-leading:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}plate-search,plate-search *,plate-search:before,plate-search:after,plate-search::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-leading:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}:host,:host *,:host:before,:host:after,:host::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-leading:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}plate-search,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{.modal-container{inset:calc(var(--spacing)*0);top:calc(var(--spacing)*0);z-index:9999;background-color:#00000080;justify-content:center;align-items:flex-start;width:100vw;height:100vh;display:flex;position:fixed;overflow-y:auto}@supports (color:color-mix(in lab,red,red)){.modal-container{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.modal-container{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (min-width:48rem){.modal-container{align-items:center}}.modal-container-open{pointer-events:auto;opacity:1;--tw-duration:.2s;--tw-ease:var(--ease-out);transition-duration:.2s;transition-timing-function:var(--ease-out)}.modal-container-close{pointer-events:none;opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}.modal{width:100vw;height:100vh;transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);overscroll-behavior:auto;background-color:var(--color-white);padding-inline:calc(var(--spacing)*6);padding-top:calc(var(--spacing)*8);padding-bottom:calc(var(--spacing)*8);text-align:left;vertical-align:bottom;font-family:var(--font-sans);--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));display:inline-block;overflow:hidden}@media (min-width:40rem){.modal{margin-block:calc(var(--spacing)*8);width:100%;max-width:var(--container-lg);vertical-align:middle}}@media (min-width:48rem){.modal{margin:calc(var(--spacing)*3);height:auto;max-width:var(--container-lg);border-radius:var(--radius-xl);padding-inline:calc(var(--spacing)*12)}}.modal-close{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}@media (min-width:40rem){.modal-close{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}}.modal-open{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:1;--tw-duration:.3s;--tw-ease:var(--ease-out);transition-duration:.3s;transition-timing-function:var(--ease-out)}.modal-scroll-area{margin-top:calc(var(--spacing)*3);margin-bottom:calc(var(--spacing)*3);max-height:380px;overflow:auto}.pl8srch-text a{color:var(--partbot-theme);opacity:.8;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.2s;text-decoration-line:underline;transition-duration:.2s}@media (hover:hover){.pl8srch-text a:hover{color:var(--partbot-theme);opacity:1}}}@layer utilities{.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-0{top:calc(var(--spacing)*0)}.right-0{right:calc(var(--spacing)*0)}.isolate{isolation:isolate}.z-0{z-index:0}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing)*4)}.my-5{margin-block:calc(var(--spacing)*5)}.my-6{margin-block:calc(var(--spacing)*6)}.mt-1\\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.-ml-px{margin-left:-1px}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\\!h-5{height:calc(var(--spacing)*5)!important}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-\\[44px\\]{height:44px}.h-\\[130px\\]{height:130px}.h-full{height:100%}.min-h-screen{min-height:100vh}.\\!w-5{width:calc(var(--spacing)*5)!important}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-full{width:100%}.max-w-7xl{max-width:var(--container-7xl)}.max-w-prose{max-width:65ch}.max-w-sm{max-width:var(--container-sm)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-\\[6px\\]{border-style:var(--tw-border-style);border-width:6px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-double{--tw-border-style:double;border-style:double}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-stone-300{border-color:var(--color-stone-300)}.border-theme-color{border-color:var(--partbot-theme)}.border-transparent{border-color:#0000}.border-t-white\\/20{border-top-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-t-white\\/20{border-top-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-b-emerald-600{border-bottom-color:var(--color-emerald-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-stone-50{background-color:var(--color-stone-50)}.bg-theme-color{background-color:var(--partbot-theme)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\\[url\\(\\'\\/background-2\\.png\\'\\)\\]{background-image:url(/background-2.png)}.from-amber-50\\/50{--tw-gradient-from:#fffbeb80}@supports (color:color-mix(in lab,red,red)){.from-amber-50\\/50{--tw-gradient-from:color-mix(in oklab,var(--color-amber-50)50%,transparent)}}.from-amber-50\\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-amber-800\\/10{--tw-gradient-to:#953d001a}@supports (color:color-mix(in lab,red,red)){.to-amber-800\\/10{--tw-gradient-to:color-mix(in oklab,var(--color-amber-800)10%,transparent)}}.to-amber-800\\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-cover{background-size:cover}.bg-top-right{background-position:100% 0}.bg-no-repeat{background-repeat:no-repeat}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-5{padding-top:calc(var(--spacing)*5)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-5{padding-right:calc(var(--spacing)*5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[60px\\]{font-size:60px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-balance{text-wrap:balance}.whitespace-normal\\!{white-space:normal!important}.whitespace-nowrap{white-space:nowrap}.text-black{color:var(--color-black)}.text-emerald-100{color:var(--color-emerald-100)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-700{color:var(--color-emerald-700)}.text-gray-100{color:var(--color-gray-100)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-red-400{color:var(--color-red-400)}.text-red-800{color:var(--color-red-800)}.text-theme-color{color:var(--partbot-theme)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.group-open\\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media (hover:hover){.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-theme-color:hover{background-color:var(--partbot-theme)}.hover\\:text-gray-500:hover{color:var(--color-gray-500)}.hover\\:text-white:hover{color:var(--color-white)}}.focus\\:z-10:focus{z-index:10}.focus\\:border-bg-theme-color:focus,.focus\\:border-theme-color:focus{border-color:var(--partbot-theme)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-bg-theme-color:focus{--tw-ring-color:var(--partbot-theme)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sm\\:flex{display:flex}.sm\\:max-w-prose{max-width:65ch}.sm\\:justify-between{justify-content:space-between}.sm\\:overflow-hidden{overflow:hidden}.sm\\:px-3{padding-inline:calc(var(--spacing)*3)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:48rem){.md\\:mt-6{margin-top:calc(var(--spacing)*6)}.md\\:mt-12{margin-top:calc(var(--spacing)*12)}.md\\:mr-2{margin-right:calc(var(--spacing)*2)}.md\\:-ml-1{margin-left:calc(var(--spacing)*-1)}.md\\:inline{display:inline}.md\\:h-\\[150px\\]{height:150px}.md\\:max-w-2xl{max-width:var(--container-2xl)}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-center{justify-content:center}.md\\:border-8{border-style:var(--tw-border-style);border-width:8px}.md\\:p-4{padding:calc(var(--spacing)*4)}.md\\:px-3{padding-inline:calc(var(--spacing)*3)}.md\\:py-12{padding-block:calc(var(--spacing)*12)}.md\\:text-center{text-align:center}.md\\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.md\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.md\\:text-\\[75px\\]{font-size:75px}}@media (min-width:64rem){.lg\\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\\:py-12{padding-block:calc(var(--spacing)*12)}.lg\\:text-8xl{font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.lg\\:leading-20{--tw-leading:calc(var(--spacing)*20);line-height:calc(var(--spacing)*20)}}.\\[\\&_summary\\:\\:-webkit-details-marker\\]\\:hidden summary::-webkit-details-marker{display:none}.\\[\\&\\>a\\]\\:text-theme-color>a{color:var(--partbot-theme)}@media (hover:hover){.hover\\:\\[\\&\\>a\\]\\:text-theme-color:hover>a{color:var(--partbot-theme)}}.font-license{font-family:var(--font-license)}}@font-face{font-family:License Plate;src:url(https://res.cloudinary.com/proex/raw/upload/v1730709140/partbot/PartbotPlate.woff2)format("woff2");font-weight:400;font-style:normal}:host{overflow-wrap:break-word;white-space:normal;display:block;overflow:visible}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-leading{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}`,ka={version:"3.0.8"};function Bo({domElement:e}){const t=e.getAttribute("data-api-key"),r=e.getAttribute("data-callback-url"),o=e.getAttribute("data-products-url"),n=e.getAttribute("data-theme-color"),i=e.getAttribute("data-use-geolocation")==="true",l=e.getAttribute("data-button"),d=e.getAttribute("data-responsive")?e.getAttribute("data-responsive")==="true":!0,h=e.getAttribute("data-placeholder"),s=e.getAttribute("data-intro"),m=e.getAttribute("data-support-message");return X(()=>{console.info("Vehicle Registration Search powered by Partbot https://use.partbot.io")},[]),p("div",{className:"App",children:p(Qt,{className:"partbot",apiKey:t,callbackUrl:r,productsUrl:o,themeColor:n,useGeolocation:i,buttonTheme:l,responsive:d,placeholder:h,intro:s,supportMessage:m})})}class Ee extends HTMLElement{constructor(){super(),this.apiKey=this.dataset.apiKey,this.callbackUrl=this.dataset.callbackUrl,this.productsUrl=this.dataset.productsUrl,this.themeColor=this.dataset.themeColor,this.useGeolocation=this.dataset.useGeolocation,this.debug=this.dataset.debug==="true",this.assetUrl=this.dataset.assetUrl,this.buttonTheme=this.dataset.button,this.responsive=this.dataset.responsive?this.dataset.responsive==="true":!0,this.placeholder=this.dataset.placeholder,this.intro=this.dataset.intro,this.supportMessage=this.dataset.supportMessage}connectedCallback(){this.style.position||(this.style.position="relative"),this.style.zIndex="2147483647",this.style.visibility="hidden";let t;if(this.assetUrl&&(t=new URL(this.assetUrl.replace(/\/$/,"")+"/css/plate-search.css",window.location.href)),!t){const l=ka.version;t=new URL(`https://unpkg.com/@cartbot/plate-search@${l}/build/dist/css/plate-search.css`)}const o=[["data-api-key",this.apiKey],["data-callback-url",this.callbackUrl],["data-products-url",this.productsUrl],["data-theme-color",this.themeColor],["data-use-geolocation",this.useGeolocation],["data-button",this.buttonTheme],["data-responsive",this.responsive],["data-placeholder",this.placeholder],["data-intro",this.intro],["data-support-message",this.supportMessage]].filter(([l,d])=>d!=null).map(([l,d])=>`${l}="${d}"`).join(" "),n=(l,d)=>{if(!/@import/i.test(l)&&"adoptedStyleSheets"in Document.prototype)try{const m=new CSSStyleSheet;return m.replaceSync(l),console.info(`Partbot: using constructable stylesheet (${d})`),m}catch(m){console.warn("Partbot: constructable sheet failed, falling back",m)}const s=document.createElement("style");return s.textContent=l,console.info(`Partbot: using <style> element fallback (${d})`),s};Ee.__stylePromise||(t?Ee.__stylePromise=fetch(t).then(l=>{if(!l.ok)throw new Error(`HTTP ${l.status}`);return l.text()}).then(l=>n(l,t.href)).catch(l=>(console.warn("Partbot: external stylesheet failed, falling back to inline",l),n(Wo,"inline-fallback"))):Ee.__stylePromise=Promise.resolve(n(Wo,"inline")));const i=document.createElement("template");if(i.innerHTML=`
|
|
9
|
-
<div class="partbot-plate-search isolate" ${o}></div>`,this.attachShadow({mode:"open"}),Ee.__stylePromise.then(
|
|
8
|
+
*/(function(e,t){(function(r){var o;if(e.exports=r(),o=!0,!o){var n=window.Cookies,i=window.Cookies=r();i.noConflict=function(){return window.Cookies=n,i}}})(function(){function r(){for(var i=0,l={};i<arguments.length;i++){var d=arguments[i];for(var u in d)l[u]=d[u]}return l}function o(i){return i.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(i){function l(){}function d(c,m,s){if(!(typeof document>"u")){s=r({path:"/"},l.defaults,s),typeof s.expires=="number"&&(s.expires=new Date(new Date*1+s.expires*864e5)),s.expires=s.expires?s.expires.toUTCString():"";try{var y=JSON.stringify(m);/^[\{\[]/.test(y)&&(m=y)}catch{}m=i.write?i.write(m,c):encodeURIComponent(String(m)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var _="";for(var A in s)s[A]&&(_+="; "+A,s[A]!==!0&&(_+="="+s[A].split(";")[0]));return document.cookie=c+"="+m+_}}function u(c,m){if(!(typeof document>"u")){for(var s={},y=document.cookie?document.cookie.split("; "):[],_=0;_<y.length;_++){var A=y[_].split("="),H=A.slice(1).join("=");!m&&H.charAt(0)==='"'&&(H=H.slice(1,-1));try{var S=o(A[0]);if(H=(i.read||i)(H,S)||o(H),m)try{H=JSON.parse(H)}catch{}if(s[S]=H,c===S)break}catch{}}return c?s[c]:s}}return l.set=d,l.get=function(c){return u(c,!1)},l.getJSON=function(c){return u(c,!0)},l.remove=function(c,m){d(c,"",r(m,{expires:-1}))},l.defaults={},l.withConverter=n,l}return n(function(){})})})(Do);var ga=Do.exports;const Jt=Po(ga);var Uo={exports:{}},va="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",wa=va,ba=wa;function zo(){}function $o(){}$o.resetWarningCache=zo;var ya=function(){function e(o,n,i,l,d,u){if(u!==ba){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:$o,resetWarningCache:zo};return r.PropTypes=r,r};Uo.exports=ya();var xa=Uo.exports;const re=Po(xa);function Zo({error:e}){return h("div",{className:"rounded-md bg-red-50 p-4",children:h("div",{className:"flex justify-center items-center",children:[h("div",{className:"flex-shrink-0",children:h(Oo,{size:20,weight:"bold",className:"text-red-400","aria-hidden":"true"})}),h("div",{className:"ml-3",children:h("h3",{className:"text-sm font-medium text-red-800",children:e})})]})})}Zo.propTypes={error:re.string.isRequired};function ka({className:e,alt:t="Partbot Logo"}){return h("span",{className:e,role:"img","aria-label":t,children:h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"239.19",height:"54.22",viewBox:"0 0 239.19 54.22",focusable:"false","aria-hidden":"true",style:{width:"auto",height:"100%"},children:h("g",{children:[h("rect",{fill:"currentColor",y:".22",width:"24.45",height:"24.45",rx:"1.81",ry:"1.81"}),h("rect",{fill:"currentColor",y:"29.76",width:"24.45",height:"24.45",rx:"1.7",ry:"1.7"}),h("path",{fill:"currentColor",d:"M36.91,34.61h-5.67c-.94,0-1.7-.76-1.7-1.7V1.7C29.55.76,30.31,0,31.25,0h5.67c9.44,0,17.09,7.65,17.09,17.09h0v.43c0,9.44-7.65,17.09-17.09,17.09Z"}),h("path",{fill:"currentColor",d:"M97.79,12.21c-1.74-.96-3.67-1.44-5.8-1.44h-13.54v31.48h7.56v-8.81h5.98c2.13,0,4.06-.48,5.8-1.44,1.74-.96,3.13-2.3,4.18-4.03,1.05-1.72,1.57-3.7,1.57-5.91s-.52-4.18-1.57-5.87c-1.05-1.69-2.44-3.02-4.18-3.98ZM95.32,24.8c-.45.75-1.04,1.32-1.78,1.71-.74.39-1.54.58-2.41.58h-5.13v-10.03h5.13c.87,0,1.67.2,2.41.61.73.4,1.33.98,1.78,1.73.45.75.67,1.65.67,2.7s-.22,1.95-.67,2.7Z"}),h("path",{fill:"currentColor",d:"M124.27,20.24c-1.81-1.06-4.01-1.6-6.59-1.6s-4.76.54-6.63,1.62c-1.87,1.08-3.32,2.54-4.34,4.39-1.02,1.84-1.53,3.93-1.53,6.27s.43,4.26,1.3,6.05c.87,1.78,2.08,3.2,3.64,4.25,1.56,1.05,3.36,1.57,5.4,1.57,1.29,0,2.41-.18,3.35-.54.94-.36,1.75-.86,2.41-1.51.66-.64,1.2-1.37,1.62-2.18h.18v3.69h6.84v-11.47c0-2.28-.49-4.34-1.46-6.18s-2.37-3.3-4.18-4.36ZM122.18,33.8c-.42.93-1.03,1.66-1.82,2.18s-1.72.79-2.77.79-2.02-.26-2.83-.79-1.42-1.25-1.84-2.18c-.42-.93-.63-1.96-.63-3.1s.21-2.11.63-3.01c.42-.9,1.03-1.61,1.84-2.14s1.75-.79,2.83-.79,1.97.26,2.77.79,1.4,1.24,1.82,2.14c.42.9.63,1.9.63,3.01s-.21,2.17-.63,3.1Z"}),h("path",{fill:"currentColor",d:"M159.56,13.56h-7.02v5.62h-12.06c-2.13,0-3.79.64-4.99,1.84s-1.8,2.85-1.8,4.95v16.28h6.97v-15.83c0-.45.15-.82.45-1.1.3-.28.66-.43,1.08-.43h10.35v10.61c0,2.07.6,3.71,1.8,4.92,1.2,1.21,2.86,1.82,4.99,1.82h6.57v-5.85h-5.04c-.36,0-.67-.13-.92-.38-.26-.25-.38-.56-.38-.92v-10.21h6.34v-5.71h-6.34v-5.62Z"}),h("path",{fill:"currentColor",d:"M189.1,20.13c-1.65-.99-3.57-1.48-5.76-1.48-.93,0-1.81.12-2.63.36-.83.24-1.57.59-2.25,1.06-.67.47-1.24,1.01-1.69,1.64h-.14v-12.28h-6.97v20.87c0,2.52.51,4.72,1.53,6.61,1.02,1.89,2.46,3.34,4.32,4.36,1.86,1.02,4.03,1.53,6.52,1.53,1.95,0,3.68-.3,5.19-.9,1.51-.6,2.8-1.46,3.87-2.59,1.06-1.12,1.88-2.45,2.45-3.98.57-1.53.85-3.19.85-4.99,0-2.34-.47-4.38-1.42-6.12-.94-1.74-2.24-3.1-3.89-4.09ZM186.65,33.82c-.44.91-1.04,1.63-1.82,2.16-.78.52-1.71.79-2.79.79s-2.02-.26-2.81-.79-1.4-1.24-1.82-2.16-.63-1.94-.63-3.08.21-2.16.63-3.06c.42-.9,1.03-1.61,1.82-2.14s1.73-.79,2.81-.79,2.01.26,2.79.79c.78.52,1.39,1.24,1.82,2.14.43.9.65,1.92.65,3.06s-.22,2.17-.65,3.08Z"}),h("path",{fill:"currentColor",d:"M215.96,20.24c-1.87-1.06-4-1.6-6.36-1.6s-4.5.53-6.39,1.6c-1.89,1.06-3.38,2.5-4.48,4.32-1.09,1.81-1.64,3.88-1.64,6.18s.55,4.33,1.64,6.16c1.09,1.83,2.59,3.27,4.48,4.32,1.89,1.05,4.02,1.57,6.39,1.57s4.45-.52,6.34-1.57,3.38-2.49,4.47-4.32c1.09-1.83,1.64-3.88,1.64-6.16s-.55-4.37-1.64-6.18c-1.09-1.81-2.58-3.25-4.45-4.32ZM214.37,33.75c-.45.9-1.08,1.62-1.89,2.16s-1.77.81-2.88.81-2.08-.27-2.9-.81-1.46-1.26-1.91-2.16c-.45-.9-.67-1.92-.67-3.06s.22-2.11.67-3.01c.45-.9,1.09-1.62,1.91-2.16s1.79-.81,2.9-.81,2.07.27,2.88.81,1.44,1.26,1.89,2.16c.45.9.67,1.9.67,3.01s-.22,2.16-.67,3.06Z"}),h("path",{fill:"currentColor",d:"M239.19,24.89v-5.71h-6.34v-5.62h-7.02v21.95c0,2.07.6,3.71,1.8,4.92,1.2,1.21,2.86,1.82,4.99,1.82h6.57v-5.85h-5.04c-.36,0-.67-.13-.92-.38-.26-.25-.38-.56-.38-.92v-10.21h6.34Z"})]})})})}const Fo=["ACT","NSW","NT","QLD","SA","TAS","VIC","WA"],Vo="https://api.partbot.io/v1/vehicles/plate-search",jo="https://api.partbot.io/v1/vehicles/plate-search-retry";function Qt(e){const[t,r]=Y(!1),[o,n]=Y(!1),[i,l]=Y(""),[d,u]=Y(""),[c,m]=Y(null),[s,y]=Y(!1),_=nt(null),[A,H]=Y(Vo),[S,T]=Y(null),N=e.apiKey,B=e.callbackUrl,L=e.productsUrl,q=e.useGeolocation==="true",J=e.themeColor||"#4f46e5",Se=e.buttonTheme||"light",ne=e.responsive,ue=e.intro||"Enter your Number Plate and select your State or Territory to find your vehicle.",me=e.placeholder||"PL8SRCH",M=e.supportMessage;X(()=>{const w=localStorage.getItem("partbot_selected_vehicle");if(w){const C=JSON.parse(w);C.description&&(C.vehicle_ids.length>0||Object.values(C.vehicle).every(x=>x!==null&&x!==""&&(typeof x!="object"||Object.keys(x).length>0)))&&T(C)}},[]),X(()=>{document.documentElement.style.setProperty("--partbot-theme",J)},[J]),X(()=>{t&&q&&"geolocation"in navigator&&navigator.geolocation.getCurrentPosition(async function(w){const{latitude:C,longitude:x}=w.coords;try{const U=await(await fetch(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${C},${x}&key=AIzaSyDAdDL5E8iWK_oc0FLqdW-QAhZo84xIX0k`)).json();if(U.results&&U.results[0]){const Xe=U.results[0].address_components.find(I=>I.types.includes("administrative_area_level_1"));if(Xe){const I=Xe.short_name;u(I)}}}catch(D){console.error("Geocoding error:",D)}})},[q,t]),X(()=>{let w=localStorage.getItem("partbot_plate_details");w&&(w=JSON.parse(w),w.plate?l(w.plate.number):localStorage.removeItem("partbot_plate_details"))},[]),X(()=>{t&&!o&&n(!0),t&&_.current&&_.current.focus()},[t,o]),X(()=>{if(t){const w=document.documentElement.style.overflow,C=document.documentElement.style.paddingRight,x=window.innerWidth-document.documentElement.clientWidth;return x>0&&(document.documentElement.style.paddingRight=`${x}px`),document.documentElement.style.overflow="hidden",()=>{document.documentElement.style.overflow=w,document.documentElement.style.paddingRight=C}}},[t]);const Q=w=>{if(w&&w.preventDefault(),!d||!i)return;y(!0);const C={plate:i,state:d};async function x(){return(await fetch(A,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json",Authorization:`Basic ${N}`},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(C)})).json()}x().then(D=>{y(!1),D.plate?(localStorage.setItem("partbot_plate_details",JSON.stringify(D)),m(D)):D&&D.indexOf("Invalid API Key")!==-1?m({error:D}):m({error:"Could not find any matching vehicles."})}).catch(D=>{console.error("Error:",D),m({error:"Could not find any matching vehicles."})})};X(()=>{Q()},[A]);const Ge=w=>{localStorage.removeItem("partbot_plate_details"),localStorage.removeItem("partbot_selected_vehicle"),Jt.remove("partbot_selected_vehicle"),m(null),H(jo)},Ye=w=>{window.open(`mailto:report@partbot.io?subject=${encodeURIComponent("Registration Search Issue")}&body=${encodeURIComponent(`Incorrect vehicles were shown for ${d} number plate: ${i}, vehicle: ${c.factory_vehicle.make} ${c.factory_vehicle.model} ${c.factory_vehicle.year} ${c.factory_vehicle.body} ${c.factory_vehicle.series}. Please provide details of the correct vehicle below:`)}`)},ht=w=>{l(""),m(null),H(Vo),T(null),localStorage.removeItem("partbot_plate_details"),localStorage.removeItem("partbot_selected_vehicle"),Jt.remove("partbot_selected_vehicle")},ft=w=>{var C=JSON.stringify({description:w.description,vehicle_ids:w.vehicle_ids,vehicle:{...w.vehicle,year:c.factory_vehicle.year}});localStorage.setItem("partbot_selected_vehicle",C),Jt.set("partbot_selected_vehicle",C,{secure:!0});var x=new CustomEvent("plate-search-change",{detail:{vehicle_ids:w.vehicle_ids}});document.dispatchEvent(x),T(w),B&&B!==window.location.href&&(r(!1),window.location.href=B+window.location.search)},er=w=>{if(r(!1),L)try{const C=new URL(L,window.location.origin);if(C.origin!==window.location.origin){console.warn("Partbot: Blocked navigation to external productsUrl",C.toString());return}window.location.assign(C.href)}catch(C){console.error("Partbot: Invalid productsUrl provided",L,C)}},qe=w=>{const C=["series","variant","body","fuel_type","drivetrain","engine","engine_capacity","cylinders"];return Object.entries(w).filter(([x,D])=>D!==null&&C.includes(x)).map(([x,D])=>x==="cylinders"?`${D}cyl`:D).join(" ")};return h(b,{children:[h("button",{onClick:w=>r(!t),type:"button",className:`${Se==="dark"?"bg-transparent text-gray-100 hover:text-white":"bg-white text-gray-700 hover:bg-gray-50"} inline-flex items-center ${ne?"px-2 md:px-3":"px-3"} text-md focus:outline-none focus:ring-bg-theme-color h-[44px] rounded-md border-4 border-double border-gray-400 font-license text-base font-medium shadow-sm transition cursor-pointer`,children:[h(Ro,{weight:"fill",className:ne?"h-5 w-5 md:-ml-1 md:mr-2":"mr-2 -ml-1 h-5 w-5","aria-hidden":"true"}),h("span",{className:ne?"hidden md:inline":"mt-1.5 md:inline",children:i||me})]}),h("div",{className:`${t?"modal-container modal-container-open":"modal-container modal-container-close"}`,style:{zIndex:2147483647,...!t&&!o?{display:"none"}:{}},onClick:w=>{w.target===w.currentTarget&&r(!1)},children:h("div",{role:"dialog","aria-modal":"true","aria-label":"Number plate search dialog",className:t?"modal modal-open":"modal modal-close",children:[h("div",{className:"absolute top-0 right-0 pt-4 pr-4",children:h("button",{type:"button",className:"focus:outline-none focus:ring-bg-theme-color rounded-md bg-white text-gray-400 hover:text-gray-500",onClick:()=>r(!1),children:[h("span",{className:"sr-only",children:"Close"}),h(Io,{size:16,weight:"bold","aria-hidden":"true"})]})}),c&&!S&&h("div",{className:"modal-content",children:h("div",{className:"mb-5 text-center",children:[h("div",{className:"inline-flex items-center text-center text-2xl font-extrabold tracking-tight text-black",children:h("div",{children:["Results for"," ",h("span",{className:"text-theme-color",children:[i," (",d,")"]})]})}),h("div",{className:"mt-6",children:[h("div",{className:"modal-scroll-area",children:c.vehicles?h("div",{className:"grid gap-3 text-left",children:[c.vehicles.map(function(w,C){return h("div",{className:"focus:outline-none relative grid cursor-pointer gap-4 rounded-lg border border-gray-300 bg-white px-4 py-4 shadow-sm hover:border-gray-400 sm:flex sm:justify-between",children:[h("div",{className:"pr-5 text-xs",children:h("div",{className:"grid gap-2",children:[h("div",{className:"text-sm font-bold text-gray-900",children:w.description}),h("div",{className:"text-gray-600",children:qe(w.vehicle)})]})}),h("div",{children:h("button",{className:"justify-center rounded-md border border-transparent bg-theme-color px-2 py-1.5 text-xs font-medium text-white shadow-sm",onClick:()=>ft(w),children:"Select vehicle"})})]},C)}),c.differing_attributes&&c.vehicle_breakdown&&c.vehicle_breakdown.length>0&&h("div",{children:h("details",{className:"[&_summary::-webkit-details-marker]:hidden group rounded-lg border border-gray-300 bg-white",children:[h("summary",{className:"flex cursor-pointer items-center justify-between px-4 py-2 text-left text-sm font-medium text-gray-900",children:[h("span",{children:"More options..."}),h("svg",{className:"!h-5 !w-5 text-gray-500 transition duration-300 group-open:rotate-180",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:h("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),h("div",{className:"border-t border-gray-200 px-4 py-3",children:h("div",{className:"grid gap-3",children:c.vehicle_breakdown&&c.vehicle_breakdown.map((w,C)=>h("div",{className:"flex items-center justify-between rounded-md border border-gray-200 p-3 text-sm",children:[h("div",{children:c.differing_attributes.map(x=>h("div",{className:"text-xs text-gray-600",children:[h("span",{className:"font-medium capitalize",children:[x,":"]})," ",w.vehicle[x]]},x))}),h("button",{onClick:()=>ft(w),className:"ml-4 rounded-md bg-theme-color px-3 py-1.5 text-xs font-medium text-white hover:bg-opacity-90",children:"Select"})]},C))})})]})})]}):h("div",{className:"my-5",children:h(Zo,{error:c.error})})}),c.vehicles&&c.vehicles.length>3&&h("div",{className:"pb-4 text-center text-xs text-gray-500",children:"Scroll for more..."}),M&&h("div",{className:"pl8srch-text mx-auto my-6 w-full text-sm text-gray-500",dangerouslySetInnerHTML:{__html:No.sanitize(M)}}),A!==jo&&h("button",{type:"button",className:"mb-5 hidden w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-base font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",onClick:Ge,children:["Try Again"," ",h(Mo,{size:16,weight:"bold",className:"ml-3","aria-hidden":"true"})]}),h("div",{className:"align-center flex justify-between",children:[h("button",{onClick:Ye,className:"text-xs text-theme-color",children:"Report incorrect search results"}),h("button",{onClick:ht,className:"text-xs text-theme-color",children:[h(Lo,{size:12,weight:"bold",className:"mr-1 inline"})," ","Back to search"]})]})]})]})}),S&&h("div",{className:"modal-content",children:h("div",{className:"mb-5 text-center",children:[h("div",{className:"grid items-center",children:[h("div",{className:"inline-flex items-center justify-center gap-1 text-center text-2xl font-extrabold tracking-tight text-black",children:[h("span",{children:"Selected Vehicle"}),i&&h("span",{className:"text-theme-color",children:["(",i,")"]})]}),h("div",{className:"text-medium mt-5 text-sm text-gray-500",children:c&&c.factory_vehicle?`${c.factory_vehicle.make} ${c.factory_vehicle.model} ${c.factory_vehicle.year}`:S.description}),S.vehicle&&h("div",{className:"mt-2 text-xs text-gray-600",children:qe(S.vehicle)})]}),h("div",{className:"mt-6 flex gap-4",children:[h("button",{className:"mb-5 flex w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-sm font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",onClick:ht,children:"Clear Vehicle"}),L&&h("button",{className:"mb-5 flex w-full items-center justify-center rounded-md border border-theme-color bg-transparent px-4 py-2 text-sm font-medium text-theme-color shadow-sm hover:bg-theme-color hover:text-white",onClick:er,children:"Show Products"})]})]})}),!S&&!c&&h("div",{className:"modal-content",children:[h("div",{className:"mb-5 text-center",children:[h("div",{className:"inline-flex items-center text-2xl font-extrabold tracking-tight text-black",children:h("span",{children:"Number Plate Search"})}),h("div",{className:"[&>a]:text-theme-color hover:[&>a]:text-theme-color pl8srch-text text-balance mx-auto mt-3 mb-4 max-w-sm text-sm text-gray-500 whitespace-normal!",dangerouslySetInnerHTML:{__html:No.sanitize(ue)}})]}),h("form",{onSubmit:Q,className:"flex flex-col items-center text-black",children:[h("input",{type:"text",name:"plate",ref:_,className:`pl8srch-input h-[130px] w-full rounded-xl border-[6px] px-6 pt-5 pb-2 text-center font-license text-[60px] uppercase md:h-[150px] md:border-8 md:text-[75px] focus:outline-none focus:ring-bg-theme-color focus:border-theme-color transition-all duration-200 ${i?"border-theme-color":"border-stone-300"}`,placeholder:me,value:i,onChange:w=>l(w.target.value.toUpperCase())}),h("span",{className:"relative z-0 my-5 flex w-full rounded-md items-stretch shadow-sm",children:Fo.map((w,C)=>{let x="bg-white text-gray-700 hover:bg-gray-50 border-gray-300";return w===d&&(x="bg-theme-color text-white hover:bg-theme-color border-theme-color"),C===0?h("button",{onClick:D=>u(w),type:"button",className:`focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative inline-flex items-center cursor-pointer rounded-l-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`,children:w},w):Fo.length===C+1?h("button",{onClick:D=>u(w),type:"button",className:`focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer rounded-r-md border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`,children:w},w):h("button",{onClick:D=>u(w),type:"button",className:`focus:outline-none focus:ring-bg-theme-color text-center justify-center flex-grow focus:border-bg-theme-color relative -ml-px inline-flex items-center cursor-pointer border px-2 py-2 text-xs font-medium focus:z-10 focus:ring-1 sm:px-3 ${x}`,children:w},w)})}),h("button",{type:"submit",className:"hover:bg-theme-color-800 flex w-full items-center justify-center rounded-md border border-transparent bg-theme-color px-4 py-2 text-base font-medium text-white shadow-sm",children:["Find your vehicle",s?h(Ho,{weight:"bold",className:"ml-3 h-4 w-4 animate-spin","aria-hidden":"true"}):""]})]})]}),h("div",{className:"mt-8 text-center",children:h("a",{href:`https://use.partbot.io/?ref=${window.location.hostname}`,target:"_blank",rel:"noreferrer",className:"mx-auto inline-flex max-w-sm items-center text-center text-xs font-medium tracking-tight text-gray-500 transition gap-2",children:[h("span",{children:"Powered by"}),h(ka,{className:"inline h-4"})]})})]})})]})}Qt.propTypes={apiKey:re.string.isRequired,callbackUrl:re.string,productsUrl:re.string,themeColor:re.string,useGeolocation:re.bool,buttonTheme:re.oneOf(["light","dark"]),responsive:re.bool,placeholder:re.string,intro:re.string,supportMessage:re.string};const Wo=`@import"https://fonts.googleapis.com/css2?family=Inter:wght@400..800&display=swap";/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-leading:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}plate-search,plate-search *,plate-search:before,plate-search:after,plate-search::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-leading:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}:host,:host *,:host:before,:host:after,:host::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-leading:initial;--tw-ease:initial;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}plate-search,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-400:oklch(70.4% .191 22.216);--color-red-800:oklch(44.4% .177 26.899);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-800:oklch(47.3% .137 46.201);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-300:oklch(86.9% .005 56.366);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--container-2xl:42rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-license:"License Plate"}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{.modal-container{inset:calc(var(--spacing)*0);top:calc(var(--spacing)*0);z-index:9999;background-color:#00000080;justify-content:center;align-items:flex-start;width:100vw;height:100vh;display:flex;position:fixed;overflow-y:auto}@supports (color:color-mix(in lab,red,red)){.modal-container{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.modal-container{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media (min-width:48rem){.modal-container{align-items:center}}.modal-container-open{pointer-events:auto;opacity:1;--tw-duration:.2s;--tw-ease:var(--ease-out);transition-duration:.2s;transition-timing-function:var(--ease-out)}.modal-container-close{pointer-events:none;opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}.modal{width:100vw;height:100vh;transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);overscroll-behavior:auto;background-color:var(--color-white);padding-inline:calc(var(--spacing)*6);padding-top:calc(var(--spacing)*8);padding-bottom:calc(var(--spacing)*8);text-align:left;vertical-align:bottom;font-family:var(--font-sans);--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));display:inline-block;overflow:hidden}@media (min-width:40rem){.modal{margin-block:calc(var(--spacing)*8);width:100%;max-width:var(--container-lg);vertical-align:middle}}@media (min-width:48rem){.modal{margin:calc(var(--spacing)*3);height:auto;max-width:var(--container-lg);border-radius:var(--radius-xl);padding-inline:calc(var(--spacing)*12)}}.modal-close{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:0;--tw-duration:.2s;--tw-ease:var(--ease-in);transition-duration:.2s;transition-timing-function:var(--ease-in)}@media (min-width:40rem){.modal-close{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}}.modal-open{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y);opacity:1;--tw-duration:.3s;--tw-ease:var(--ease-out);transition-duration:.3s;transition-timing-function:var(--ease-out)}.modal-scroll-area{margin-top:calc(var(--spacing)*3);margin-bottom:calc(var(--spacing)*3);max-height:380px;overflow:auto}.pl8srch-text a{color:var(--partbot-theme);opacity:.8;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.2s;text-decoration-line:underline;transition-duration:.2s}@media (hover:hover){.pl8srch-text a:hover{color:var(--partbot-theme);opacity:1}}}@layer utilities{.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-0{top:calc(var(--spacing)*0)}.right-0{right:calc(var(--spacing)*0)}.isolate{isolation:isolate}.z-0{z-index:0}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing)*4)}.my-5{margin-block:calc(var(--spacing)*5)}.my-6{margin-block:calc(var(--spacing)*6)}.mt-1\\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-auto{margin-top:auto}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.-ml-px{margin-left:-1px}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\\!h-5{height:calc(var(--spacing)*5)!important}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-\\[44px\\]{height:44px}.h-\\[130px\\]{height:130px}.h-full{height:100%}.min-h-screen{min-height:100vh}.\\!w-5{width:calc(var(--spacing)*5)!important}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-full{width:100%}.max-w-7xl{max-width:var(--container-7xl)}.max-w-prose{max-width:65ch}.max-w-sm{max-width:var(--container-sm)}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-\\[6px\\]{border-style:var(--tw-border-style);border-width:6px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-double{--tw-border-style:double;border-style:double}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-stone-300{border-color:var(--color-stone-300)}.border-theme-color{border-color:var(--partbot-theme)}.border-transparent{border-color:#0000}.border-t-white\\/20{border-top-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-t-white\\/20{border-top-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-b-emerald-600{border-bottom-color:var(--color-emerald-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-stone-50{background-color:var(--color-stone-50)}.bg-theme-color{background-color:var(--partbot-theme)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\\[url\\(\\'\\/background-2\\.png\\'\\)\\]{background-image:url(/background-2.png)}.from-amber-50\\/50{--tw-gradient-from:#fffbeb80}@supports (color:color-mix(in lab,red,red)){.from-amber-50\\/50{--tw-gradient-from:color-mix(in oklab,var(--color-amber-50)50%,transparent)}}.from-amber-50\\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-amber-800\\/10{--tw-gradient-to:#953d001a}@supports (color:color-mix(in lab,red,red)){.to-amber-800\\/10{--tw-gradient-to:color-mix(in oklab,var(--color-amber-800)10%,transparent)}}.to-amber-800\\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-cover{background-size:cover}.bg-top-right{background-position:100% 0}.bg-no-repeat{background-repeat:no-repeat}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-5{padding-top:calc(var(--spacing)*5)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-5{padding-right:calc(var(--spacing)*5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[60px\\]{font-size:60px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-balance{text-wrap:balance}.whitespace-normal\\!{white-space:normal!important}.whitespace-nowrap{white-space:nowrap}.text-black{color:var(--color-black)}.text-emerald-100{color:var(--color-emerald-100)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-700{color:var(--color-emerald-700)}.text-gray-100{color:var(--color-gray-100)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-red-400{color:var(--color-red-400)}.text-red-800{color:var(--color-red-800)}.text-theme-color{color:var(--partbot-theme)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.group-open\\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media (hover:hover){.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-theme-color:hover{background-color:var(--partbot-theme)}.hover\\:text-gray-500:hover{color:var(--color-gray-500)}.hover\\:text-white:hover{color:var(--color-white)}}.focus\\:z-10:focus{z-index:10}.focus\\:border-bg-theme-color:focus,.focus\\:border-theme-color:focus{border-color:var(--partbot-theme)}.focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-bg-theme-color:focus{--tw-ring-color:var(--partbot-theme)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sm\\:flex{display:flex}.sm\\:max-w-prose{max-width:65ch}.sm\\:justify-between{justify-content:space-between}.sm\\:overflow-hidden{overflow:hidden}.sm\\:px-3{padding-inline:calc(var(--spacing)*3)}.sm\\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:48rem){.md\\:mt-6{margin-top:calc(var(--spacing)*6)}.md\\:mt-12{margin-top:calc(var(--spacing)*12)}.md\\:mr-2{margin-right:calc(var(--spacing)*2)}.md\\:-ml-1{margin-left:calc(var(--spacing)*-1)}.md\\:inline{display:inline}.md\\:h-\\[150px\\]{height:150px}.md\\:max-w-2xl{max-width:var(--container-2xl)}.md\\:flex-row{flex-direction:row}.md\\:items-center{align-items:center}.md\\:justify-center{justify-content:center}.md\\:border-8{border-style:var(--tw-border-style);border-width:8px}.md\\:p-4{padding:calc(var(--spacing)*4)}.md\\:px-3{padding-inline:calc(var(--spacing)*3)}.md\\:py-12{padding-block:calc(var(--spacing)*12)}.md\\:text-center{text-align:center}.md\\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.md\\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.md\\:text-\\[75px\\]{font-size:75px}}@media (min-width:64rem){.lg\\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\\:py-12{padding-block:calc(var(--spacing)*12)}.lg\\:text-8xl{font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.lg\\:leading-20{--tw-leading:calc(var(--spacing)*20);line-height:calc(var(--spacing)*20)}}.\\[\\&_summary\\:\\:-webkit-details-marker\\]\\:hidden summary::-webkit-details-marker{display:none}.\\[\\&\\>a\\]\\:text-theme-color>a{color:var(--partbot-theme)}@media (hover:hover){.hover\\:\\[\\&\\>a\\]\\:text-theme-color:hover>a{color:var(--partbot-theme)}}.font-license{font-family:var(--font-license)}}@font-face{font-family:License Plate;src:url(https://res.cloudinary.com/proex/raw/upload/v1730709140/partbot/PartbotPlate.woff2)format("woff2");font-weight:400;font-style:normal}:host{overflow-wrap:break-word;white-space:normal;display:block;overflow:visible}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-leading{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}`,Bo={version:"3.0.10"};function Go({domElement:e}){const t=e.getAttribute("data-api-key"),r=e.getAttribute("data-callback-url"),o=e.getAttribute("data-products-url"),n=e.getAttribute("data-theme-color"),i=e.getAttribute("data-use-geolocation")==="true",l=e.getAttribute("data-button"),d=e.getAttribute("data-responsive")?e.getAttribute("data-responsive")==="true":!0,u=e.getAttribute("data-placeholder"),c=e.getAttribute("data-intro"),m=e.getAttribute("data-support-message");return X(()=>{console.info("Vehicle Registration Search powered by Partbot https://use.partbot.io")},[]),h("div",{className:"App",children:h(Qt,{className:"partbot",apiKey:t,callbackUrl:r,productsUrl:o,themeColor:n,useGeolocation:i,buttonTheme:l,responsive:d,placeholder:u,intro:c,supportMessage:m})})}class Ee extends HTMLElement{constructor(){super(),this.apiKey=this.dataset.apiKey,this.callbackUrl=this.dataset.callbackUrl,this.productsUrl=this.dataset.productsUrl,this.themeColor=this.dataset.themeColor,this.useGeolocation=this.dataset.useGeolocation,this.debug=this.dataset.debug==="true",this.assetUrl=this.dataset.assetUrl,this.buttonTheme=this.dataset.button,this.responsive=this.dataset.responsive?this.dataset.responsive==="true":!0,this.placeholder=this.dataset.placeholder,this.intro=this.dataset.intro,this.supportMessage=this.dataset.supportMessage}connectedCallback(){var l;this.style.position||(this.style.position="relative"),this.style.zIndex="2147483647",this.style.visibility="hidden";let t;if(this.assetUrl&&(t=new URL(this.assetUrl.replace(/\/$/,"")+"/css/plate-search.css",window.location.href)),!t){let d="latest";try{const c=(((l=document.currentScript)==null?void 0:l.src)||"").match(/plate-search@([^/]+)/);c&&c[1]&&(d=c[1])}catch{}d==="latest"&&Bo.version&&(d=Bo.version),t=new URL(`https://unpkg.com/@cartbot/plate-search@${d}/build/dist/css/plate-search.css`)}const o=[["data-api-key",this.apiKey],["data-callback-url",this.callbackUrl],["data-products-url",this.productsUrl],["data-theme-color",this.themeColor],["data-use-geolocation",this.useGeolocation],["data-button",this.buttonTheme],["data-responsive",this.responsive],["data-placeholder",this.placeholder],["data-intro",this.intro],["data-support-message",this.supportMessage]].filter(([d,u])=>u!=null).map(([d,u])=>`${d}="${u}"`).join(" "),n=(d,u)=>{if(!/@import/i.test(d)&&"adoptedStyleSheets"in Document.prototype)try{const s=new CSSStyleSheet;return s.replaceSync(d),console.info(`Partbot: using constructable stylesheet (${u})`),s}catch(s){console.warn("Partbot: constructable sheet failed, falling back",s)}const m=document.createElement("style");return m.textContent=d,console.info(`Partbot: using <style> element fallback (${u})`),m};Ee.__stylePromise||(t?Ee.__stylePromise=fetch(t).then(d=>{if(!d.ok)throw new Error(`HTTP ${d.status}`);return d.text()}).then(d=>n(d,t.href)).catch(d=>(console.warn("Partbot: external stylesheet failed, falling back to inline",d),n(Wo,"inline-fallback"))):Ee.__stylePromise=Promise.resolve(n(Wo,"inline")));const i=document.createElement("template");if(i.innerHTML=`
|
|
9
|
+
<div class="partbot-plate-search isolate" ${o}></div>`,this.attachShadow({mode:"open"}),Ee.__stylePromise.then(d=>{var u,c;if(d){if(d instanceof CSSStyleSheet?this.shadowRoot.adoptedStyleSheets=[d]:d instanceof HTMLStyleElement&&this.shadowRoot.prepend(d.cloneNode(!0)),this.debug)try{const m=(u=this.shadowRoot.adoptedStyleSheets)==null?void 0:u[0];m&&console.info("Partbot debug: first rule in adopted sheet →",(c=m.cssRules[0])==null?void 0:c.cssText);const s=getComputedStyle(this).getPropertyValue("--tw-border-style");console.info("Partbot debug: --tw-border-style on :host →",s)}catch(m){console.warn("Partbot debug: failed to inspect stylesheet",m)}requestAnimationFrame(()=>{this.style.visibility="visible"})}}),this.shadowRoot.appendChild(i.content.cloneNode(!0)),!document.head.querySelector("style[data-partbot-license]")){const d=document.createElement("style");d.setAttribute("data-partbot-license",""),d.appendChild(document.createTextNode(`
|
|
10
10
|
@font-face {
|
|
11
11
|
font-family: "License Plate";
|
|
12
12
|
src: url(https://res.cloudinary.com/proex/raw/upload/v1730709140/partbot/PartbotPlate.woff2)
|
|
13
13
|
format("woff2");
|
|
14
14
|
font-weight: normal;
|
|
15
15
|
font-style: normal;
|
|
16
|
-
}`)),document.head.appendChild(
|
|
16
|
+
}`)),document.head.appendChild(d)}}}customElements.define("plate-search",Ee);const Aa=Zn;typeof window<"u"&&(window.React=window.React||ct,window.ReactDOM=window.ReactDOM||$n);const Te=document.querySelector("plate-search");if(Te){const e=((Yo=Te.shadowRoot)==null?void 0:Yo.querySelector(".partbot-plate-search"))||Te.querySelector(".partbot-plate-search");if(!e)console.error("Partbot: failed to locate .partbot-plate-search container");else{const t=[...Te.shadowRoot?Te.shadowRoot.querySelectorAll("link"):Te.querySelectorAll("link")];if(t.length===0)st(ct.createElement(Go,{domElement:e}),e);else{let r=0;const o=()=>{++r>=t.length&&st(ct.createElement(Go,{domElement:e}),e)};t.forEach(n=>{n.sheet||n.complete?o():(n.addEventListener("load",o,{once:!0}),n.addEventListener("error",o,{once:!0}))})}}}else console.warn("Missing <plate-search> element");_e.PlateSearch=Qt,_e.plateSearchCssUrl=Aa,Object.defineProperty(_e,Symbol.toStringTag,{value:"Module"})});
|