Current File : /home/bqrcodec/contact.rohto.com.vn/wp-content/plugins/code-snippets-pro/dist//blocks.js
/*! For license information please see blocks.js.LICENSE.txt */
(()=>{var e={4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8679:(e,t,n)=>{"use strict";var r=n(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=l(n);p&&(a=a.concat(p(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||m&&m[g]||s&&s[g])){var b=f(n,g);try{c(t,g,b)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case p:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case m:case u:return e;default:return t}}case o:return t}}}function S(e){return w(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||w(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===O||e.$$typeof===g)},t.typeOf=w},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},7061:(e,t,n)=>{var r=n(8698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var d={};function h(){}function m(){}function v(){}var g={};l(g,s,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(k([])));y&&y!==n&&i.call(y,s)&&(g=y);var O=v.prototype=h.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,a,s,u){var c=f(e[o],e,a);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==r(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(p).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function k(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return m.prototype=v,l(O,"constructor",v),l(v,"constructor",m),m.displayName=l(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},w(S.prototype),l(S.prototype,u,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(O),l(O,c,"Generator"),l(O,s,(function(){return this})),l(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=k,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:(e,t,n)=>{var r=n(7061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.blocks;function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const a=window.React,s=window.wp.i18n,u=window.wp.components,c=window.wp.blockEditor;var l=n(4184),p=n.n(l);const f=e=>(0,a.createElement)("path",e),d=e=>{let{className:t,isPressed:n,...r}=e;const o={...r,className:p()(t,{"is-pressed":n})||void 0,"aria-hidden":!0,focusable:!1};return(0,a.createElement)("svg",o)},h=(0,a.createElement)(d,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(f,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),m=(0,a.createElement)(d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(f,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}var g=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),b=Math.abs,y=String.fromCharCode,O=Object.assign;function w(e){return e.trim()}function S(e,t,n){return e.replace(t,n)}function x(e,t){return e.indexOf(t)}function C(e,t){return 0|e.charCodeAt(t)}function E(e,t,n){return e.slice(t,n)}function P(e){return e.length}function k(e){return e.length}function I(e,t){return t.push(e),e}var M=1,V=1,D=0,L=0,T=0,R="";function A(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:M,column:V,length:a,return:""}}function _(e,t){return O(A("",null,null,"",null,null,0),e,{length:-e.length},t)}function j(){return T=L>0?C(R,--L):0,V--,10===T&&(V=1,M--),T}function F(){return T=L<D?C(R,L++):0,V++,10===T&&(V=1,M++),T}function N(){return C(R,L)}function H(){return L}function $(e,t){return E(R,e,t)}function U(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function B(e){return M=V=1,D=P(R=e),L=0,[]}function z(e){return R="",e}function G(e){return w($(L-1,X(91===e?e+2:40===e?e+1:e)))}function W(e){for(;(T=N())&&T<33;)F();return U(e)>2||U(T)>3?"":" "}function Y(e,t){for(;--t&&F()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return $(e,H()+(t<6&&32==N()&&32==F()))}function X(e){for(;F();)switch(T){case e:return L;case 34:case 39:34!==e&&39!==e&&X(T);break;case 40:41===e&&X(e);break;case 92:F()}return L}function K(e,t){for(;F()&&e+T!==57&&(e+T!==84||47!==N()););return"/*"+$(t,L-1)+"*"+y(47===e?e:F())}function Z(e){for(;!U(N());)F();return $(e,L)}var q="-ms-",J="-moz-",Q="-webkit-",ee="comm",te="rule",ne="decl",re="@keyframes";function oe(e,t){for(var n="",r=k(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ie(e,t,n,r){switch(e.type){case"@import":case ne:return e.return=e.return||e.value;case ee:return"";case re:return e.return=e.value+"{"+oe(e.children,r)+"}";case te:e.value=e.props.join(",")}return P(n=oe(e.children,r))?e.return=e.value+"{"+n+"}":""}function ae(e,t){switch(function(e,t){return(((t<<2^C(e,0))<<2^C(e,1))<<2^C(e,2))<<2^C(e,3)}(e,t)){case 5103:return Q+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Q+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Q+e+J+e+q+e+e;case 6828:case 4268:return Q+e+q+e+e;case 6165:return Q+e+q+"flex-"+e+e;case 5187:return Q+e+S(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Q+e+q+"flex-item-"+S(e,/flex-|-self/,"")+e;case 4675:return Q+e+q+"flex-line-pack"+S(e,/align-content|flex-|-self/,"")+e;case 5548:return Q+e+q+S(e,"shrink","negative")+e;case 5292:return Q+e+q+S(e,"basis","preferred-size")+e;case 6060:return Q+"box-"+S(e,"-grow","")+Q+e+q+S(e,"grow","positive")+e;case 4554:return Q+S(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,Q+"$1"),/(image-set)/,Q+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,Q+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Q+e+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,Q+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(P(e)-1-t>6)switch(C(e,t+1)){case 109:if(45!==C(e,t+4))break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+J+(108==C(e,t+3)?"$3":"$2-$3"))+e;case 115:return~x(e,"stretch")?ae(S(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==C(e,t+1))break;case 6444:switch(C(e,P(e)-3-(~x(e,"!important")&&10))){case 107:return S(e,":",":"+Q)+e;case 101:return S(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(45===C(e,14)?"inline-":"")+"box$3$1"+Q+"$2$3$1"+q+"$2box$3")+e}break;case 5936:switch(C(e,t+11)){case 114:return Q+e+q+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+q+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+q+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+q+e+e}return e}function se(e){return z(ue("",null,null,null,[""],e=B(e),0,[0],e))}function ue(e,t,n,r,o,i,a,s,u){for(var c=0,l=0,p=a,f=0,d=0,h=0,m=1,v=1,g=1,b=0,O="",w=o,C=i,E=r,k=O;v;)switch(h=b,b=F()){case 40:if(108!=h&&58==k.charCodeAt(p-1)){-1!=x(k+=S(G(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:k+=G(b);break;case 9:case 10:case 13:case 32:k+=W(h);break;case 92:k+=Y(H()-1,7);continue;case 47:switch(N()){case 42:case 47:I(le(K(F(),H()),t,n),u);break;default:k+="/"}break;case 123*m:s[c++]=P(k)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+l:d>0&&P(k)-p&&I(d>32?pe(k+";",r,n,p-1):pe(S(k," ","")+";",r,n,p-2),u);break;case 59:k+=";";default:if(I(E=ce(k,t,n,c,l,o,s,O,w=[],C=[],p),i),123===b)if(0===l)ue(k,t,E,E,w,i,p,s,C);else switch(f){case 100:case 109:case 115:ue(e,E,E,r&&I(ce(e,E,E,0,0,o,s,O,o,w=[],p),C),o,C,p,s,r?w:C);break;default:ue(k,E,E,E,[""],C,0,s,C)}}c=l=d=0,m=g=1,O=k="",p=a;break;case 58:p=1+P(k),d=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==j())continue;switch(k+=y(b),b*m){case 38:g=l>0?1:(k+="\f",-1);break;case 44:s[c++]=(P(k)-1)*g,g=1;break;case 64:45===N()&&(k+=G(F())),f=N(),l=p=P(O=k+=Z(H())),b++;break;case 45:45===h&&2==P(k)&&(m=0)}}return i}function ce(e,t,n,r,o,i,a,s,u,c,l){for(var p=o-1,f=0===o?i:[""],d=k(f),h=0,m=0,v=0;h<r;++h)for(var g=0,y=E(e,p+1,p=b(m=a[h])),O=e;g<d;++g)(O=w(m>0?f[g]+" "+y:S(y,/&\f/g,f[g])))&&(u[v++]=O);return A(e,t,n,0===o?te:s,u,c,l)}function le(e,t,n){return A(e,t,n,ee,y(T),E(e,2,-2),0)}function pe(e,t,n,r){return A(e,t,n,ne,E(e,0,r),E(e,r+1,-1),r)}var fe=function(e,t,n){for(var r=0,o=0;r=o,o=N(),38===r&&12===o&&(t[n]=1),!U(o);)F();return $(e,L)},de=new WeakMap,he=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||de.get(n))&&!r){de.set(e,!0);for(var o=[],i=function(e,t){return z(function(e,t){var n=-1,r=44;do{switch(U(r)){case 0:38===r&&12===N()&&(t[n]=1),e[n]+=fe(L-1,t,n);break;case 2:e[n]+=G(r);break;case 4:if(44===r){e[++n]=58===N()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=y(r)}}while(r=F());return e}(B(e),t))}(t,o),a=n.props,s=0,u=0;s<i.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},me=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ve=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ne:e.return=ae(e.value,e.length);break;case re:return oe([_(e,{value:S(e.value,"@","@"+Q)})],r);case te:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return oe([_(e,{props:[S(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return oe([_(e,{props:[S(t,/:(plac\w+)/,":-webkit-input-$1")]}),_(e,{props:[S(t,/:(plac\w+)/,":-moz-$1")]}),_(e,{props:[S(t,/:(plac\w+)/,q+"input-$1")]})],r)}return""}))}}];const ge=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||ve,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var u,c,l,p,f=[ie,(p=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],d=(c=[he,me].concat(i,f),l=k(c),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){u=n,oe(se(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new g({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h};function be(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var ye=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Oe=function(e,t,n){ye(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};const we=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Se={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var xe=/[A-Z]|^ms/g,Ce=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ee=function(e){return 45===e.charCodeAt(1)},Pe=function(e){return null!=e&&"boolean"!=typeof e},ke=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=Ee(n=e)?n:n.replace(xe,"-$&").toLowerCase()),t[e];var n}}(),Ie=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ce,(function(e,t,n){return Ve={name:t,styles:n,next:Ve},t}))}return 1===Se[e]||Ee(e)||"number"!=typeof t||0===t?t:t+"px"};function Me(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ve={name:n.name,styles:n.styles,next:Ve},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ve={name:r.name,styles:r.styles,next:Ve},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Me(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Pe(a)&&(r+=ke(i)+":"+Ie(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Me(e,t,a);switch(i){case"animation":case"animationName":r+=ke(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)Pe(a[u])&&(r+=ke(i)+":"+Ie(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ve,i=n(e);return Ve=o,Me(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ve,De=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Le=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ve=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Me(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Me(n,t,e[a]),r&&(o+=i[a]);De.lastIndex=0;for(var s,u="";null!==(s=De.exec(o));)u+="-"+s[1];return{name:we(o)+u,styles:o,next:Ve}},Te={}.hasOwnProperty,Re=(0,a.createContext)("undefined"!=typeof HTMLElement?ge({key:"css"}):null),Ae=(Re.Provider,function(e){return(0,a.forwardRef)((function(t,n){var r=(0,a.useContext)(Re);return e(t,r,n)}))}),_e=(0,a.createContext)({}),je=a.useInsertionEffect?a.useInsertionEffect:function(e){e()};function Fe(e){je(e)}var Ne="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",He=function(e,t){var n={};for(var r in t)Te.call(t,r)&&(n[r]=t[r]);return n[Ne]=e,n},$e=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ye(t,n,r),Fe((function(){return Oe(t,n,r)})),null},Ue=Ae((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Ne],i=[r],s="";"string"==typeof e.className?s=be(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var u=Le(i,void 0,(0,a.useContext)(_e));s+=t.key+"-"+u.name;var c={};for(var l in e)Te.call(e,l)&&"css"!==l&&l!==Ne&&(c[l]=e[l]);return c.ref=n,c.className=s,(0,a.createElement)(a.Fragment,null,(0,a.createElement)($e,{cache:t,serialized:u,isStringTag:"string"==typeof o}),(0,a.createElement)(o,c))}));n(8679);var Be=function(e,t){var n=arguments;if(null==t||!Te.call(t,"css"))return a.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Ue,o[1]=He(e,t);for(var i=2;i<r;i++)o[i]=n[i];return a.createElement.apply(null,o)};function ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Le(t)}a.useInsertionEffect?a.useInsertionEffect:a.useLayoutEffect;var Ge=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function We(e,t,n){var r=[],o=be(e,r,n);return r.length<2?n:o+t(r)}var Ye=function(e){var t=e.cache,n=e.serializedArr;return Fe((function(){for(var e=0;e<n.length;e++)Oe(t,n[e],!1)})),null},Xe=Ae((function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=Le(r,t.registered);return n.push(i),ye(t,i,!1),t.key+"-"+i.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return We(t.registered,r,Ge(n))},theme:(0,a.useContext)(_e)},i=e.children(o);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ye,{cache:t,serializedArr:n}),i)}));function Ke(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(e)}function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function et(e,t,n){return t&&Qe(e.prototype,t),n&&Qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tt(e,t){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tt(e,t)}function nt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}const rt=window.ReactDOM;function ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){ot(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e){return st=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},st(e)}function ut(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=st(e);if(t){var o=st(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ut(this,n)}}var lt=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],pt=function(){};function ft(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function dt(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(ft(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ht=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===qe(e)&&null!==e?[e]:[];var t},mt=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,at({},Ke(e,lt))};function vt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function gt(e){return vt(e)?window.pageYOffset:e.scrollTop}function bt(e,t){vt(e)?window.scrollTo(0,t):e.scrollTop=t}function yt(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ot(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pt,o=gt(e),i=t-o,a=10,s=0;function u(){var t=yt(s+=a,o,i,n);bt(e,t),s<n?window.requestAnimationFrame(u):r(e)}u()}function wt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var St=!1,xt={get passive(){return St=!0}},Ct="undefined"!=typeof window?window:{};Ct.addEventListener&&Ct.removeEventListener&&(Ct.addEventListener("p",pt,xt),Ct.removeEventListener("p",pt,!1));var Et=St;function Pt(e){return null!=e}function kt(e,t,n){return e?t:n}function It(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l,p=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,h=f.height,m=f.top,v=n.offsetParent.getBoundingClientRect().top,g=a||vt(l=u)?window.innerHeight:l.clientHeight,b=gt(u),y=parseInt(getComputedStyle(n).marginBottom,10),O=parseInt(getComputedStyle(n).marginTop,10),w=v-O,S=g-m,x=w+b,C=p-b-m,E=d-g+b+y,P=b+m-O,k=160;switch(o){case"auto":case"bottom":if(S>=h)return{placement:"bottom",maxHeight:t};if(C>=h&&!a)return i&&Ot(u,E,k),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&S>=r)return i&&Ot(u,E,k),{placement:"bottom",maxHeight:a?S-y:C-y};if("auto"===o||a){var I=t,M=a?w:x;return M>=r&&(I=Math.min(M-y-s.controlHeight,t)),{placement:"top",maxHeight:I}}if("bottom"===o)return i&&bt(u,E),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(x>=h&&!a)return i&&Ot(u,P,k),{placement:"top",maxHeight:t};if(!a&&x>=r||a&&w>=r){var V=t;return(!a&&x>=r||a&&w>=r)&&(V=a?w-O:x-O),i&&Ot(u,P,k),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var Mt=function(e){return"auto"===e?"bottom":e},Vt=(0,a.createContext)({getPortalPlacement:null}),Dt=function(e){nt(n,e);var t=ct(n);function n(){var e;Je(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,u=n.theme;if(t){var c="fixed"===a,l=It({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!c,isFixedPosition:c,theme:u}),p=e.context.getPortalPlacement;p&&p(l),e.setState(l)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Mt(t);return at(at({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return et(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(a.Component);Dt.contextType=Vt;var Lt=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Tt=Lt,Rt=Lt,At=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Be("div",v({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};At.defaultProps={children:"No options"};var _t=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Be("div",v({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};_t.defaultProps={children:"Loading..."};var jt,Ft,Nt,Ht=function(e){nt(n,e);var t=ct(n);function n(){var e;Je(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Mt(e.props.menuPlacement)&&e.setState({placement:n})},e}return et(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,i=e.cx,a=e.innerProps,s=e.menuPlacement,u=e.menuPosition,c=e.getStyles,l="fixed"===u;if(!t&&!l||!o)return null;var p=this.state.placement||Mt(s),f=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),d=l?0:window.pageYOffset,h=f[p]+d,m=Be("div",v({css:c("menuPortal",{offset:h,position:u,rect:f}),className:i({"menu-portal":!0},r)},a),n);return Be(Vt.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,rt.createPortal)(m,t):m)}}]),n}(a.Component),$t=["size"],Ut={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Bt=function(e){var t=e.size,n=Ke(e,$t);return Be("svg",v({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ut},n))},zt=function(e){return Be(Bt,v({size:20},e),Be("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Gt=function(e){return Be(Bt,v({size:20},e),Be("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Wt=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Yt=Wt,Xt=Wt,Kt=function(){var e=ze.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(jt||(Ft=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Nt||(Nt=Ft.slice(0)),jt=Object.freeze(Object.defineProperties(Ft,{raw:{value:Object.freeze(Nt)}})))),Zt=function(e){var t=e.delay,n=e.offset;return Be("span",{css:ze({animation:"".concat(Kt," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},qt=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return Be("div",v({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),Be(Zt,{delay:0,offset:i}),Be(Zt,{delay:160,offset:!0}),Be(Zt,{delay:320,offset:!i}))};qt.defaultProps={size:4};var Jt=["data"],Qt=["innerRef","isDisabled","isHidden","inputClassName"],en={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},tn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":at({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},en)},nn=function(e){return at({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},en)},rn=function(e){var t=e.children,n=e.innerProps;return Be("div",n,t)},on={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Be("div",v({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},i),t||Be(zt,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,s=e.innerRef,u=e.innerProps,c=e.menuIsOpen;return Be("div",v({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":c},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Be("div",v({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},i),t||Be(Gt,null))},DownChevron:Gt,CrossIcon:zt,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,l=e.selectProps;return Be("div",v({css:o("group",e),className:r({group:!0},n)},s),Be(i,v({},a,{selectProps:l,theme:c,getStyles:o,cx:r}),u),Be("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=mt(e);o.data;var i=Ke(o,Jt);return Be("div",v({css:t("groupHeading",e),className:n({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.getStyles;return Be("div",v({css:i("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Be("span",v({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.value,i=mt(e),a=i.innerRef,s=i.isDisabled,u=i.isHidden,c=i.inputClassName,l=Ke(i,Qt);return Be("div",{className:n({"input-container":!0},t),css:r("input",e),"data-value":o||""},Be("input",v({className:n({input:!0},c),ref:a,style:nn(u),disabled:s},l)))},LoadingIndicator:qt,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return Be("div",v({css:o("menu",e),className:r({menu:!0},n),ref:i},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.innerRef,s=e.isMulti;return Be("div",v({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":s},n),ref:a},i),t)},MenuPortal:Ht,LoadingMessage:_t,NoOptionsMessage:At,MultiValue:function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,u=e.isDisabled,c=e.removeProps,l=e.selectProps,p=r.Container,f=r.Label,d=r.Remove;return Be(Xe,null,(function(r){var h=r.css,m=r.cx;return Be(p,{data:i,innerProps:at({className:m(h(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))},s),selectProps:l},Be(f,{data:i,innerProps:{className:m(h(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:l},t),Be(d,{data:i,innerProps:at({className:m(h(a("multiValueRemove",e)),o({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:l}))}))},MultiValueContainer:rn,MultiValueLabel:rn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Be("div",v({role:"button"},n),t||Be(zt,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,s=e.isSelected,u=e.innerRef,c=e.innerProps;return Be("div",v({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:u,"aria-disabled":i},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return Be("div",v({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,s=e.isRtl;return Be("div",v({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return Be("div",v({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.isMulti,a=e.getStyles,s=e.hasValue;return Be("div",v({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},n)},o),t)}},an=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],sn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function un(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||sn(r)&&sn(o)))return!1;var r,o;return!0}for(var cn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ln=function(e){return Be("span",v({css:cn},e))},pn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,u=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t){var l=s?" disabled":"",p="".concat(u?"selected":"focused").concat(l);return"option ".concat(i," ").concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},fn=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,s=e.selectValue,u=e.selectProps,c=e.id,l=u.ariaLiveMessages,p=u.getOptionLabel,f=u.inputValue,d=u.isMulti,h=u.isOptionDisabled,m=u.isSearchable,v=u.menuIsOpen,g=u.options,b=u.screenReaderStatus,y=u.tabSelectsValue,O=u["aria-label"],w=u["aria-live"],S=(0,a.useMemo)((function(){return at(at({},pn),l||{})}),[l]),x=(0,a.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,a=t.removedValues,u=t.value,c=i||r||(e=u,Array.isArray(e)?null:e),l=c?p(c):"",f=o||a||void 0,d=f?f.map(p):[],m=at({isDisabled:c&&h(c,s),label:l,labels:d},t);n=S.onChange(m)}return n}),[t,S,h,s,p]),C=(0,a.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&S.onFocus){var i={focused:t,label:p(t),isDisabled:h(t,s),isSelected:o,options:g,context:t===n?"menu":"value",selectValue:s};e=S.onFocus(i)}return e}),[n,r,p,h,S,g,s]),E=(0,a.useMemo)((function(){var e="";if(v&&g.length&&S.onFilter){var t=b({count:o.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,v,S,g,b]),P=(0,a.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":v?"menu":"input";e=S.guidance({"aria-label":O,context:t,isDisabled:n&&h(n,s),isMulti:d,isSearchable:m,tabSelectsValue:y})}return e}),[O,n,r,d,h,m,v,S,s,y]),k="".concat(C," ").concat(E," ").concat(P),I=Be(a.Fragment,null,Be("span",{id:"aria-selection"},x),Be("span",{id:"aria-context"},k)),M="initial-input-focus"===(null==t?void 0:t.action);return Be(a.Fragment,null,Be(ln,{id:c},M&&I),Be(ln,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},i&&!M&&I))},dn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],hn=new RegExp("["+dn.map((function(e){return e.letters})).join("")+"]","g"),mn={},vn=0;vn<dn.length;vn++)for(var gn=dn[vn],bn=0;bn<gn.letters.length;bn++)mn[gn.letters[bn]]=gn.base;var yn=function(e){return e.replace(hn,(function(e){return mn[e]}))},On=function(e,t){var n;void 0===t&&(t=un);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(yn),wn=function(e){return e.replace(/^\s+|\s+$/g,"")},Sn=function(e){return"".concat(e.label," ").concat(e.value)},xn=["innerRef"];function Cn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=Ze(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Ze(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Ke(e,xn),"onExited","in","enter","exit","appear");return Be("input",v({ref:t},n,{css:ze({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var En=["boxSizing","height","overflow","paddingRight","position"],Pn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function kn(e){e.preventDefault()}function In(e){e.stopPropagation()}function Mn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Vn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Dn=!("undefined"==typeof window||!window.document||!window.document.createElement),Ln=0,Tn={capture:!1,passive:!1},Rn=function(){return document.activeElement&&document.activeElement.blur()},An={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function _n(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,s=(0,a.useRef)(!1),u=(0,a.useRef)(!1),c=(0,a.useRef)(0),l=(0,a.useRef)(null),p=(0,a.useCallback)((function(e,t){if(null!==l.current){var a=l.current,c=a.scrollTop,p=a.scrollHeight,f=a.clientHeight,d=l.current,h=t>0,m=p-f-c,v=!1;m>t&&s.current&&(r&&r(e),s.current=!1),h&&u.current&&(i&&i(e),u.current=!1),h&&t>m?(n&&!s.current&&n(e),d.scrollTop=p,v=!0,s.current=!0):!h&&-t>c&&(o&&!u.current&&o(e),d.scrollTop=0,v=!0,u.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),f=(0,a.useCallback)((function(e){p(e,e.deltaY)}),[p]),d=(0,a.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,a.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;p(e,t)}),[p]),m=(0,a.useCallback)((function(e){if(e){var t=!!Et&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",h,t)}}),[h,d,f]),v=(0,a.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",h,!1))}),[h,d,f]);return(0,a.useEffect)((function(){if(t){var e=l.current;return m(e),function(){v(e)}}}),[t,m,v]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,a.useRef)({}),i=(0,a.useRef)(null),s=(0,a.useCallback)((function(e){if(Dn){var t=document.body,n=t&&t.style;if(r&&En.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Ln<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Pn).forEach((function(e){var t=Pn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Vn()&&(t.addEventListener("touchmove",kn,Tn),e&&(e.addEventListener("touchstart",Mn,Tn),e.addEventListener("touchmove",In,Tn))),Ln+=1}}),[r]),u=(0,a.useCallback)((function(e){if(Dn){var t=document.body,n=t&&t.style;Ln=Math.max(Ln-1,0),r&&Ln<1&&En.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Vn()&&(t.removeEventListener("touchmove",kn,Tn),e&&(e.removeEventListener("touchstart",Mn,Tn),e.removeEventListener("touchmove",In,Tn)))}}),[r]);return(0,a.useEffect)((function(){if(t){var e=i.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){i.current=e}}({isEnabled:n});return Be(a.Fragment,null,n&&Be("div",{onClick:Rn,css:An}),t((function(e){o(e),i(e)})))}var jn={clearIndicator:Xt,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Yt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.value,r=e.theme,o=r.spacing,i=r.colors;return at({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:n?"translateZ(0)":""},tn)},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Rt,menu:function(e){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return t(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),t(n,"backgroundColor",s.neutral0),t(n,"borderRadius",i),t(n,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),t(n,"marginBottom",a.menuGutter),t(n,"marginTop",a.menuGutter),t(n,"position","absolute"),t(n,"width","100%"),t(n,"zIndex",1),n},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Tt,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},Fn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Nn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:wt(),captureMenuScroll:!wt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=at({ignoreCase:!0,ignoreAccents:!0,stringify:Sn,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,u=a?wn(t):t,c=a?wn(i(e)):i(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=On(u),c=yn(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function Hn(e,t,n,r){return{type:"option",data:t,isDisabled:Wn(e,t,n),isSelected:Yn(e,t,n),label:zn(e,t),value:Gn(e,t),index:r}}function $n(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Hn(e,n,t,r)})).filter((function(t){return Bn(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Hn(e,n,t,r);return Bn(e,i)?i:void 0})).filter(Pt)}function Un(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,i(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Bn(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Kn(e)||!i)&&Xn(e,{label:a,value:s,data:o},r)}var zn=function(e,t){return e.getOptionLabel(t)},Gn=function(e,t){return e.getOptionValue(t)};function Wn(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Yn(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Gn(e,t);return n.some((function(t){return Gn(e,t)===r}))}function Xn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Kn=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Zn=1,qn=function(e){nt(n,e);var t=ct(n);function n(e){var r;return Je(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=t.name,s=r.state.selectValue,u=o&&r.isOptionSelected(e,s),c=r.isOptionDisabled(e,s);if(u){var l=r.getOptionValue(e);r.setValue(s.filter((function(e){return r.getOptionValue(e)!==l})),"deselect-option",e)}else{if(c)return void r.ariaOnChange(e,{action:"select-option",option:e,name:a});o?r.setValue([].concat(i(s),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=kt(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(kt(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=kt(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return dt.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return zn(r.props,e)},r.getOptionValue=function(e){return Gn(r.props,e)},r.getStyles=function(e,t){var n=jn[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,at(at({},on),e.components);var e},r.buildCategorizedOptions=function(){return $n(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Un(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:at({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&vt(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Kn(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,c=t.menuIsOpen,l=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,v=d.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!p||!h||f&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Zn),r.state.selectValue=ht(e.value),r}return et(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,u=a.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&u&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?bt(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&bt(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Fn):at(at({},Fn),this.props.theme):Fn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,s=a.isMulti,u=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:c,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Wn(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Yn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Xn(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,s=e.form,u=e.menuIsOpen,c=this.getComponents().Input,l=this.state,p=l.inputIsHidden,f=l.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=at(at(at({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},u&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(c,v({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:s,type:"text",value:o},m)):a.createElement(Cn,v({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:pt,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:s,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,c=this.commonProps,l=this.props,p=l.controlShouldRenderValue,f=l.isDisabled,d=l.isMulti,h=l.inputValue,m=l.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,O=g.isFocused;if(!this.hasValue()||!p)return h?null:a.createElement(u,v({},c,{key:"placeholder",isDisabled:f,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),m);if(d)return b.map((function(t,s){var u=t===y,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,v({},c,{components:{Container:r,Label:o,Remove:i},isFocused:u,isDisabled:f,key:l,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=b[0];return a.createElement(s,v({},c,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,v({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?a.createElement(e,v({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return a.createElement(n,v({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,v({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,s=t.MenuPortal,u=t.LoadingMessage,c=t.NoOptionsMessage,l=t.Option,p=this.commonProps,f=this.state.focusedOption,d=this.props,h=d.captureMenuScroll,m=d.inputValue,g=d.isLoading,b=d.loadingMessage,y=d.minMenuHeight,O=d.maxMenuHeight,w=d.menuIsOpen,S=d.menuPlacement,x=d.menuPosition,C=d.menuPortalTarget,E=d.menuShouldBlockScroll,P=d.menuShouldScrollIntoView,k=d.noOptionsMessage,I=d.onMenuScrollToTop,M=d.onMenuScrollToBottom;if(!w)return null;var V,D=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,s=t.isSelected,u=t.label,c=t.value,d=f===o,h=i?void 0:function(){return e.onOptionHover(o)},m=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1};return a.createElement(l,v({},p,{innerProps:b,data:o,isDisabled:i,isSelected:s,key:g,label:u,type:r,value:c,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())V=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,s=t.index,u="".concat(e.getElementId("group"),"-").concat(s),c="".concat(u,"-heading");return a.createElement(n,v({},p,{key:u,data:o,options:i,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return D(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return D(t,"".concat(t.index))}));else if(g){var L=b({inputValue:m});if(null===L)return null;V=a.createElement(u,p,L)}else{var T=k({inputValue:m});if(null===T)return null;V=a.createElement(c,p,T)}var R={minMenuHeight:y,maxMenuHeight:O,menuPlacement:S,menuPosition:x,menuShouldScrollIntoView:P},A=a.createElement(Dt,v({},p,R),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,u=r.maxHeight;return a.createElement(o,v({},p,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:g,placement:s}),a.createElement(_n,{captureEnabled:h,onTopArrive:I,onBottomArrive:M,lockEnabled:E},(function(t){return a.createElement(i,v({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:g,maxHeight:u,focusedOption:f}),V)})))}));return C||"fixed"===x?a.createElement(s,v({},p,{appendTo:C,controlElement:this.controlRef,menuPlacement:S,menuPosition:x}),A):A}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,s=this.state.selectValue;if(i&&!r){if(o){if(n){var u=s.map((function(t){return e.getOptionValue(t)})).join(n);return a.createElement("input",{name:i,type:"hidden",value:u})}var c=s.length>0?s.map((function(t,n){return a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):a.createElement("input",{name:i,type:"hidden"});return a.createElement("div",null,c)}var l=s[0]?this.getOptionValue(s[0]):"";return a.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,s=t.selectValue,u=this.getFocusableOptions();return a.createElement(fn,v({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:s,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,s=i.className,u=i.id,c=i.isDisabled,l=i.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return a.createElement(r,v({},f,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:p}),this.renderLiveRegion(),a.createElement(t,v({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:p,menuIsOpen:l}),a.createElement(o,v({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,v({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,u=e.options,c=e.value,l=e.menuIsOpen,p=e.inputValue,f=e.isMulti,d=ht(c),h={};if(n&&(c!==n.value||u!==n.options||l!==n.menuIsOpen||p!==n.inputValue)){var m=l?function(e,t){return Un($n(e,t))}(e,d):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null,g=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:d,focusedOption:g,focusedValue:v,clearFocusValueOnUpdate:!1}}var b=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=i,O=a&&s;return a&&!O&&(y={value:kt(f,d,d[0]||null),options:d,action:"initial-input-focus"},O=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(y=null),at(at(at({},h),b),{},{prevProps:e,ariaSelection:y,prevWasFocused:O})}}]),n}(a.Component);qn.defaultProps=Nn;var Jn=(0,a.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,s=void 0===i?null:i,u=e.inputValue,c=e.menuIsOpen,l=e.onChange,p=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,h=e.value,m=Ke(e,an),v=Ze((0,a.useState)(void 0!==u?u:n),2),g=v[0],b=v[1],y=Ze((0,a.useState)(void 0!==c?c:o),2),O=y[0],w=y[1],S=Ze((0,a.useState)(void 0!==h?h:s),2),x=S[0],C=S[1],E=(0,a.useCallback)((function(e,t){"function"==typeof l&&l(e,t),C(e)}),[l]),P=(0,a.useCallback)((function(e,t){var n;"function"==typeof p&&(n=p(e,t)),b(void 0!==n?n:e)}),[p]),k=(0,a.useCallback)((function(){"function"==typeof d&&d(),w(!0)}),[d]),I=(0,a.useCallback)((function(){"function"==typeof f&&f(),w(!1)}),[f]),M=void 0!==u?u:g,V=void 0!==c?c:O,D=void 0!==h?h:x;return at(at({},m),{},{inputValue:M,menuIsOpen:V,onChange:E,onInputChange:P,onMenuClose:I,onMenuOpen:k,value:D})}(e);return a.createElement(qn,v({ref:t},n))}));a.Component;const Qn=Jn;var er=function(e){var t=e.label,n=e.className,r=e.icon,o=e.options,i=e.attributes,l=e.setAttributes,p=e.renderContent;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(c.BlockControls,null,(0,a.createElement)(u.ToolbarGroup,null,(0,a.createElement)(u.ToolbarButton,{icon:m,label:(0,s.__)("Choose a different snippet","code-snippets"),onClick:function(){return l({snippet_id:0})}}))),0===i.snippet_id?(0,a.createElement)(u.Placeholder,{className:"code-snippet-selector ".concat(n),icon:r,label:t},(0,a.createElement)("form",null,(0,a.createElement)(Qn,{name:"snippet-select",className:"code-snippets-large-select",options:o,onChange:function(e){return l({snippet_id:e&&"value"in e?e.value:0})},placeholder:(0,s.__)("Select a snippet to insert…","code-snippets")}))):p())},tr=n(4687),nr=n.n(tr);const rr=window.wp.data,or=window.wp.apiFetch;var ir=n.n(or);function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ar(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ar(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ur="code-snippets/snippets-data",cr="SET_SNIPPETS_DATA",lr="RECEIVE_SNIPPETS_DATA",pr={snippetsData:[],loading:!0},fr={setSnippetsData:function(e){return{type:cr,snippetsData:e}},receiveSnippetsData:function(e){return{type:lr,path:e}}},dr={reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pr,t=arguments.length>1?arguments[1]:void 0;if(cr===t.type){var n=t.snippetsData;return sr(sr({},e),{},{snippetsData:n,loading:!1})}return e},actions:fr,selectors:{receiveSnippetsData:function(e){return e.snippetsData}},controls:t({},lr,(function(e){return ir()({path:e.path})})),resolvers:{receiveSnippetsData:nr().mark((function e(){var t;return nr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fr.receiveSnippetsData("/code-snippets/v1/snippets-info/");case 2:return t=e.sent,e.abrupt("return",fr.setSnippetsData(t));case 4:case"end":return e.stop()}}),e)}))}},hr=(0,rr.createReduxStore)(ur,dr);(0,rr.register)(hr);var mr=function(){return(0,rr.useSelect)((function(e){return e(ur).receiveSnippetsData()}),[])};function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?vr(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yr=function(e){var t,n={php:{label:(0,s.__)("Functions (PHP)","code-snippets"),options:[]},html:{label:(0,s.__)("Content (Mixed)","code-snippets"),options:[]},css:{label:(0,s.__)("Styles (CSS)","code-snippets"),options:[]},js:{label:(0,s.__)("Scripts (JS)","code-snippets"),options:[]}},r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return br(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?br(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.type in n&&n[o.type].options.push({value:o.id,label:o.name})}}catch(e){r.e(e)}finally{r.f()}return Object.values(n)},Or={title:(0,s.__)("Snippet Source Code","code-snippet"),description:(0,s.__)("Display the source code of a snippet in the post.","code-snippet"),category:"code-snippets",icon:"editor-code",supports:{html:!1,className:!1,customClassName:!1},attributes:{snippet_id:{type:"number",default:0},network:{type:"boolean",default:!1},line_numbers:{type:"boolean",default:!0},highlight_lines:{type:"string",default:""},className:{type:"string"}},edit:function(e){var t=e.attributes,n=e.setAttributes,r=(0,c.useBlockProps)(),o=mr(),l=0!==t.snippet_id?o.find((function(e){return e.id===t.snippet_id})):void 0;return(0,a.createElement)("div",r,(0,a.createElement)(c.InspectorControls,null,(0,a.createElement)(u.PanelBody,{title:(0,s.__)("Options","code-snippets")},(0,a.createElement)(u.ToggleControl,{label:(0,s.__)("Show line numbers","code-snippets"),checked:t.line_numbers,onChange:function(e){return n(gr(gr({},t),{},{line_numbers:e}))}}),(0,a.createElement)(u.TextControl,{label:(0,s.__)("Highlight lines","code-snippets"),value:t.highlight_lines,placeholder:"1, 3-6",onChange:function(e){return n(gr(gr({},t),{},{highlight_lines:e}))}}))),(0,a.createElement)(er,{icon:h,label:(0,s.__)("Snippet Source Code","code-snippets"),className:"code-snippets-source-block",options:yr(o),attributes:t,setAttributes:n,renderContent:function(){return l?function(e,t){var n=t.className,r=t.line_numbers,o=t.highlight_lines,s="css"===e.type?"css":"js"===e.type?"js":"php",u=["language-".concat(s)].concat(i(r?["line-numbers"]:[]));return(0,a.useEffect)((function(){var e;null===(e=window.code_snippets_prism)||void 0===e||e.highlightAll()}),[e.type,e.code,r,o,n]),(0,a.createElement)("div",{className:n},(0,a.createElement)("pre",{id:"code-snippets-source-".concat(e.id),className:r?"linkable-line-numbers":"","data-line":o},(0,a.createElement)("code",{className:u.join(" ")},"php"===e.type?"<?php\n\n".concat(e.code):e.code)))}(l,t):(0,a.createElement)(u.Spinner,null)}}))},save:function(){return null}};const wr=window.wp.serverSideRender;var Sr=n.n(wr);function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?xr(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Er="code-snippets/content",Pr=function(e){return e.filter((function(e){return"html"===e.type&&e.active})).map((function(e){return{value:e.id,label:e.name}}))},kr={title:(0,s.__)("Content Snippet","code-snippet"),description:(0,s.__)("Include a content code snippet in the post.","code-snippet"),category:"code-snippets",icon:"shortcode",supports:{html:!1,className:!1,customClassName:!1},attributes:{snippet_id:{type:"number",default:0},network:{type:"boolean",default:!1},php:{type:"boolean",default:!1},format:{type:"boolean",default:!0},shortcodes:{type:"boolean",default:!1},debug:{type:"boolean",default:!1},className:{type:"string"}},edit:function(e){var t=e.setAttributes,n=e.attributes,r=(0,c.useBlockProps)(),o=mr();return(0,a.createElement)("div",r,(0,a.createElement)(c.InspectorControls,null,(0,a.createElement)(u.PanelBody,{title:(0,s.__)("Processing Options","code-snippets")},(0,a.createElement)(u.ToggleControl,{label:(0,s.__)("Run PHP code","code-snippets"),checked:n.php,onChange:function(e){return t(Cr(Cr({},n),{},{php:e}))}}),(0,a.createElement)(u.ToggleControl,{label:(0,s.__)("Add paragraphs and formatting","code-snippets"),checked:n.format,onChange:function(e){return t(Cr(Cr({},n),{},{format:e}))}}),(0,a.createElement)(u.ToggleControl,{label:(0,s.__)("Enable embedded shortcodes","code-snippets"),checked:n.shortcodes,onChange:function(e){return t(Cr(Cr({},n),{},{shortcodes:e}))}}))),(0,a.createElement)(er,{label:(0,s.__)("Content Snippet","code-snippets"),className:"code-snippets-content-block",icon:"shortcode",options:Pr(o),attributes:n,setAttributes:t,renderContent:function(){return(0,a.createElement)(Sr(),{block:Er,attributes:Cr(Cr({},n),{},{debug:!0})})}}))},save:function(){return null}};(0,e.registerBlockType)("code-snippets/source",Or),(0,e.registerBlockType)(Er,kr)})()})();